CfnObjectTypeProps Struct
Properties for defining a CfnObjectType.
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 cfnObjectTypeProps: customerprofiles.CfnObjectTypeProps = {
description: 'description',
domainName: 'domainName',
objectTypeName: 'objectTypeName',
// the properties below are optional
allowProfileCreation: false,
encryptionKey: 'encryptionKey',
expirationDays: 123,
fields: [{
name: 'name',
objectTypeField: {
contentType: 'contentType',
source: 'source',
target: 'target',
},
}],
keys: [{
name: 'name',
objectTypeKeyList: [{
fieldNames: ['fieldNames'],
standardIdentifiers: ['standardIdentifiers'],
}],
}],
maxProfileObjectCount: 123,
sourceLastUpdatedTimestampFormat: 'sourceLastUpdatedTimestampFormat',
sourcePriority: 123,
tags: [{
key: 'key',
value: 'value',
}],
templateId: 'templateId',
};
Properties
allowProfileCreationoptionalboolean | IResolvableallow_profile_creationoptionaltyping.Union[bool, IResolvable]allowProfileCreationoptionalBooleanAllowProfileCreationoptionalboolAllowProfileCreationoptionalinterface{}#Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.
notes
The default is FALSE . If the AllowProfileCreation flag is set to FALSE , then the service tries to fetch a standard profile and associate this object with the profile. If it is set to TRUE , and if no match is found, then the service creates a new standard profile.
The description of the profile object type mapping.
The unique name of the domain.
encryptionKeyoptionalstringencryption_keyoptionalstrencryptionKeyoptionalStringEncryptionKeyoptionalstringEncryptionKeyoptional*string#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.
expirationDaysoptionalnumberexpiration_daysoptionalint | floatexpirationDaysoptionalNumberExpirationDaysoptionaldoubleExpirationDaysoptional*float64#The number of days until the data of this type expires.
fieldsoptionalIResolvable | IResolvable | CfnObjectType.FieldMapProperty[]fieldsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FieldMapProperty]]]fieldsoptionalIResolvableFieldsoptionalIResolvableFieldsoptionalinterface{}#A list of field definitions for the object type mapping.
keysoptionalIResolvable | IResolvable | CfnObjectType.KeyMapProperty[]keysoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyMapProperty]]]keysoptionalIResolvableKeysoptionalIResolvableKeysoptionalinterface{}#A list of keys that can be used to map data to the profile or search for the profile.
maxProfileObjectCountoptionalnumbermax_profile_object_countoptionalint | floatmaxProfileObjectCountoptionalNumberMaxProfileObjectCountoptionaldoubleMaxProfileObjectCountoptional*float64#The amount of profile object max count assigned to the object type.
objectTypeNamestringobject_type_namestrobjectTypeNameStringObjectTypeNamestringObjectTypeName*stringrequired#The name of the profile object type.
sourceLastUpdatedTimestampFormatoptionalstringsource_last_updated_timestamp_formatoptionalstrsourceLastUpdatedTimestampFormatoptionalStringSourceLastUpdatedTimestampFormatoptionalstringSourceLastUpdatedTimestampFormatoptional*string#The format of your sourceLastUpdatedTimestamp that was previously set up.
sourcePriorityoptionalnumbersource_priorityoptionalint | floatsourcePriorityoptionalNumberSourcePriorityoptionaldoubleSourcePriorityoptional*float64#Defines the priority order of object types.
Lower value indicates higher priority.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#The tags used to organize, track, or control access for this resource.
templateIdoptionalstringtemplate_idoptionalstrtemplateIdoptionalStringTemplateIdoptionalstringTemplateIdoptional*string#A unique identifier for the template mapping.
This can be used instead of specifying the Keys and Fields properties directly.