CfnDomainObjectTypeProps Struct
Properties for defining a CfnDomainObjectType.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const cfnDomainObjectTypeProps: customerprofiles.CfnDomainObjectTypeProps = {
domainName: 'domainName',
fields: {
fieldsKey: {
source: 'source',
target: 'target',
// the properties below are optional
contentType: 'contentType',
featureType: 'featureType',
},
},
objectTypeName: 'objectTypeName',
// the properties below are optional
description: 'description',
encryptionKey: 'encryptionKey',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_customerprofiles as customerprofiles
cfn_domain_object_type_props = customerprofiles.CfnDomainObjectTypeProps(
domain_name="domainName",
fields={
"fields_key": customerprofiles.CfnDomainObjectType.DomainObjectTypeFieldProperty(
source="source",
target="target",
# the properties below are optional
content_type="contentType",
feature_type="featureType"
)
},
object_type_name="objectTypeName",
# the properties below are optional
description="description",
encryption_key="encryptionKey",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.customerprofiles.*;
CfnDomainObjectTypeProps cfnDomainObjectTypeProps = CfnDomainObjectTypeProps.builder()
.domainName("domainName")
.fields(Map.of(
"fieldsKey", DomainObjectTypeFieldProperty.builder()
.source("source")
.target("target")
// the properties below are optional
.contentType("contentType")
.featureType("featureType")
.build()))
.objectTypeName("objectTypeName")
// the properties below are optional
.description("description")
.encryptionKey("encryptionKey")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CustomerProfiles;
var cfnDomainObjectTypeProps = new CfnDomainObjectTypeProps {
DomainName = "domainName",
Fields = new Dictionary<string, object> {
{ "fieldsKey", new DomainObjectTypeFieldProperty {
Source = "source",
Target = "target",
// the properties below are optional
ContentType = "contentType",
FeatureType = "featureType"
} }
},
ObjectTypeName = "objectTypeName",
// the properties below are optional
Description = "description",
EncryptionKey = "encryptionKey",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnDomainObjectTypeProps := &CfnDomainObjectTypeProps{
DomainName: jsii.String("domainName"),
Fields: map[string]interface{}{
"fieldsKey": &DomainObjectTypeFieldProperty{
"source": jsii.String("source"),
"target": jsii.String("target"),
// the properties below are optional
"contentType": jsii.String("contentType"),
"featureType": jsii.String("featureType"),
},
},
ObjectTypeName: jsii.String("objectTypeName"),
// the properties below are optional
Description: jsii.String("description"),
EncryptionKey: jsii.String("encryptionKey"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Description of the domain object type.
The unique name of the domain.
encryptionKeyoptionalstringencryption_keyoptionalstrencryptionKeyoptionalStringEncryptionKeyoptionalstringEncryptionKeyoptional*string #The default encryption key.
fieldsIResolvable | { [key: string]: IResolvable | CfnDomainObjectType.fieldstyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, DomainObjectTypeFieldProperty]]]fieldsIResolvableFieldsIResolvableFieldsinterface{} required #A map of the name and ObjectType field.
objectTypeNamestringobject_type_namestrobjectTypeNameStringObjectTypeNamestringObjectTypeName*string required #The name of the domain object type.