java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:05.019Z") @Stability(Stable) public class CfnObjectType extends CfnResource implements IInspectable, ITaggable
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")
         .description("description")
         .domainName("domainName")
         .objectTypeName("objectTypeName")
         // the properties below are optional
         .allowProfileCreation(false)
         .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()))
         .sourceLastUpdatedTimestampFormat("sourceLastUpdatedTimestampFormat")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .templateId("templateId")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnObjectTypeProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp of when the object type was created.
    • getAttrLastUpdatedAt

      @Stability(Stable) @NotNull public String getAttrLastUpdatedAt()
      The timestamp of when the object type was most recently edited.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getDescription

      @Stability(Stable) @NotNull public String getDescription()
      The description of the profile object type mapping.
    • setDescription

      @Stability(Stable) public void setDescription(@NotNull String value)
      The description of the profile object type mapping.
    • getDomainName

      @Stability(Stable) @NotNull public String getDomainName()
      The unique name of the domain.
    • setDomainName

      @Stability(Stable) public void setDomainName(@NotNull String value)
      The unique name of the domain.
    • getObjectTypeName

      @Stability(Stable) @NotNull public String getObjectTypeName()
      The name of the profile object type.
    • setObjectTypeName

      @Stability(Stable) public void setObjectTypeName(@NotNull String value)
      The name of the profile object type.
    • getAllowProfileCreation

      @Stability(Stable) @Nullable public Object getAllowProfileCreation()
      Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.
    • setAllowProfileCreation

      @Stability(Stable) public void setAllowProfileCreation(@Nullable Boolean value)
      Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.
    • setAllowProfileCreation

      @Stability(Stable) public void setAllowProfileCreation(@Nullable IResolvable value)
      Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.
    • getEncryptionKey

      @Stability(Stable) @Nullable public String getEncryptionKey()
      The customer-provided key to encrypt the profile object that will be created in this profile object type mapping.
    • setEncryptionKey

      @Stability(Stable) public void setEncryptionKey(@Nullable String value)
      The customer-provided key to encrypt the profile object that will be created in this profile object type mapping.
    • getExpirationDays

      @Stability(Stable) @Nullable public Number getExpirationDays()
      The number of days until the data of this type expires.
    • setExpirationDays

      @Stability(Stable) public void setExpirationDays(@Nullable Number value)
      The number of days until the data of this type expires.
    • getFields

      @Stability(Stable) @Nullable public Object getFields()
      A list of field definitions for the object type mapping.
    • setFields

      @Stability(Stable) public void setFields(@Nullable IResolvable value)
      A list of field definitions for the object type mapping.
    • setFields

      @Stability(Stable) public void setFields(@Nullable List<Object> value)
      A list of field definitions for the object type mapping.
    • getKeys

      @Stability(Stable) @Nullable public Object getKeys()
      A list of keys that can be used to map data to the profile or search for the profile.
    • setKeys

      @Stability(Stable) public void setKeys(@Nullable IResolvable value)
      A list of keys that can be used to map data to the profile or search for the profile.
    • setKeys

      @Stability(Stable) public void setKeys(@Nullable List<Object> value)
      A list of keys that can be used to map data to the profile or search for the profile.
    • getSourceLastUpdatedTimestampFormat

      @Stability(Stable) @Nullable public String getSourceLastUpdatedTimestampFormat()
      The format of your sourceLastUpdatedTimestamp that was previously set up.
    • setSourceLastUpdatedTimestampFormat

      @Stability(Stable) public void setSourceLastUpdatedTimestampFormat(@Nullable String value)
      The format of your sourceLastUpdatedTimestamp that was previously set up.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags used to organize, track, or control access for this resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for this resource.
    • getTemplateId

      @Stability(Stable) @Nullable public String getTemplateId()
      A unique identifier for the template mapping.
    • setTemplateId

      @Stability(Stable) public void setTemplateId(@Nullable String value)
      A unique identifier for the template mapping.