Skip to main content

object_types

Creates, updates, deletes or gets an object_type resource or lists object_types in a region

Overview

Nameobject_types
TypeResource
DescriptionAn ObjectType resource of Amazon Connect Customer Profiles
Idawscc.customerprofiles.object_types

Fields

NameDatatypeDescription
domain_namestringThe unique name of the domain.
object_type_namestringThe name of the profile object type.
allow_profile_creationbooleanIndicates whether a profile should be created when data is received.
descriptionstringDescription of the profile object type.
encryption_keystringThe default encryption key
expiration_daysintegerThe default number of days until the data within the domain expires.
fieldsarrayA list of the name and ObjectType field.
keysarrayA list of unique keys that can be used to map data to the profile.
created_atstringThe time of this integration got created.
last_updated_atstringThe time of this integration got last updated at.
source_last_updated_timestamp_formatstringThe format of your sourceLastUpdatedTimestamp that was previously set up.
tagsarrayThe tags (keys and values) associated with the integration.
template_idstringA unique identifier for the object template.
max_profile_object_countintegerThe maximum number of profile objects for this object type
max_available_profile_object_countintegerThe maximum available number of profile objects
regionstringAWS region.

For more information, see AWS::CustomerProfiles::ObjectType.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainName, ObjectTypeName, Description, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual object_type.

SELECT
region,
domain_name,
object_type_name,
allow_profile_creation,
description,
encryption_key,
expiration_days,
fields,
keys,
created_at,
last_updated_at,
source_last_updated_timestamp_format,
tags,
template_id,
max_profile_object_count,
max_available_profile_object_count
FROM awscc.customerprofiles.object_types
WHERE region = 'us-east-1' AND data__Identifier = '<DomainName>|<ObjectTypeName>';

INSERT example

Use the following StackQL query and manifest file to create a new object_type resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.customerprofiles.object_types (
DomainName,
ObjectTypeName,
Description,
region
)
SELECT
'{{ DomainName }}',
'{{ ObjectTypeName }}',
'{{ Description }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.customerprofiles.object_types
WHERE data__Identifier = '<DomainName|ObjectTypeName>'
AND region = 'us-east-1';

Permissions

To operate on the object_types resource, the following permissions are required:

Create

profile:GetProfileObjectType,
profile:PutProfileObjectType,
profile:TagResource,
kms:GenerateDataKey,
kms:Decrypt

Read

profile:GetProfileObjectType,
kms:GenerateDataKey,
kms:Decrypt

Update

profile:GetProfileObjectType,
profile:PutProfileObjectType,
profile:UntagResource,
profile:TagResource,
kms:GenerateDataKey,
kms:Decrypt

Delete

profile:DeleteProfileObjectType

List

profile:ListProfileObjectTypes,
kms:GenerateDataKey,
kms:Decrypt