Class CfnObjectType
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::CustomerProfiles::ObjectType.
Specifies an Amazon Connect Customer Profiles Object Type Mapping.
Example:
// 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.*;
CfnObjectType cfnObjectType = CfnObjectType.Builder.create(this, "MyCfnObjectType")
.domainName("domainName")
// the properties below are optional
.allowProfileCreation(false)
.description("description")
.encryptionKey("encryptionKey")
.expirationDays(123)
.fields(List.of(FieldMapProperty.builder()
.name("name")
.objectTypeField(ObjectTypeFieldProperty.builder()
.contentType("contentType")
.source("source")
.target("target")
.build())
.build()))
.keys(List.of(KeyMapProperty.builder()
.name("name")
.objectTypeKeyList(List.of(ObjectTypeKeyProperty.builder()
.fieldNames(List.of("fieldNames"))
.standardIdentifiers(List.of("standardIdentifiers"))
.build()))
.build()))
.objectTypeName("objectTypeName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.templateId("templateId")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnObjectType.static interfaceA map of the name and ObjectType field.static interfaceA unique key map that can be used to map data to the profile.static interfaceRepresents a field in a ProfileObjectType.static interfaceAn object that defines the Key element of a ProfileObject.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnObjectType(Construct scope, String id, CfnObjectTypeProps props) Create a newAWS::CustomerProfiles::ObjectType.protectedCfnObjectType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnObjectType(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionIndicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.The timestamp of when the object type was created.The timestamp of when the object type was most recently edited.The description of the profile object type mapping.The unique name of the domain.The customer-provided key to encrypt the profile object that will be created in this profile object type mapping.The number of days until the data of this type expires.A list of field definitions for the object type mapping.getKeys()A list of keys that can be used to map data to the profile or search for the profile.The name of the profile object type.getTags()The tags used to organize, track, or control access for this resource.A unique identifier for the template mapping.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAllowProfileCreation(Boolean value) Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.voidIndicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.voidsetDescription(String value) The description of the profile object type mapping.voidsetDomainName(String value) The unique name of the domain.voidsetEncryptionKey(String value) The customer-provided key to encrypt the profile object that will be created in this profile object type mapping.voidsetExpirationDays(Number value) The number of days until the data of this type expires.voidA list of field definitions for the object type mapping.voidsetFields(IResolvable value) A list of field definitions for the object type mapping.voidA list of keys that can be used to map data to the profile or search for the profile.voidsetKeys(IResolvable value) A list of keys that can be used to map data to the profile or search for the profile.voidsetObjectTypeName(String value) The name of the profile object type.voidsetTemplateId(String value) A unique identifier for the template mapping.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnObjectType
protected CfnObjectType(software.amazon.jsii.JsiiObjectRef objRef) -
CfnObjectType
protected CfnObjectType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnObjectType
@Stability(Stable) public CfnObjectType(@NotNull Construct scope, @NotNull String id, @NotNull CfnObjectTypeProps props) Create a newAWS::CustomerProfiles::ObjectType.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The timestamp of when the object type was created. -
getAttrLastUpdatedAt
The timestamp of when the object type was most recently edited. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags used to organize, track, or control access for this resource. -
getDomainName
The unique name of the domain. -
setDomainName
The unique name of the domain. -
getAllowProfileCreation
Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.The default is
FALSE. If the AllowProfileCreation flag is set toFALSE, then the service tries to fetch a standard profile and associate this object with the profile. If it is set toTRUE, and if no match is found, then the service creates a new standard profile. -
setAllowProfileCreation
Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.The default is
FALSE. If the AllowProfileCreation flag is set toFALSE, then the service tries to fetch a standard profile and associate this object with the profile. If it is set toTRUE, and if no match is found, then the service creates a new standard profile. -
setAllowProfileCreation
Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.The default is
FALSE. If the AllowProfileCreation flag is set toFALSE, then the service tries to fetch a standard profile and associate this object with the profile. If it is set toTRUE, and if no match is found, then the service creates a new standard profile. -
getDescription
The description of the profile object type mapping. -
setDescription
The description of the profile object type mapping. -
getEncryptionKey
The customer-provided key to encrypt the profile object that will be created in this profile object type mapping.If not specified the system will use the encryption key of the domain.
-
setEncryptionKey
The customer-provided key to encrypt the profile object that will be created in this profile object type mapping.If not specified the system will use the encryption key of the domain.
-
getExpirationDays
The number of days until the data of this type expires. -
setExpirationDays
The number of days until the data of this type expires. -
getFields
A list of field definitions for the object type mapping. -
setFields
A list of field definitions for the object type mapping. -
setFields
A list of field definitions for the object type mapping. -
getKeys
A list of keys that can be used to map data to the profile or search for the profile. -
setKeys
A list of keys that can be used to map data to the profile or search for the profile. -
setKeys
A list of keys that can be used to map data to the profile or search for the profile. -
getObjectTypeName
The name of the profile object type. -
setObjectTypeName
The name of the profile object type. -
getTemplateId
A unique identifier for the template mapping.This can be used instead of specifying the Keys and Fields properties directly.
-
setTemplateId
A unique identifier for the template mapping.This can be used instead of specifying the Keys and Fields properties directly.
-