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
Idaws.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.
regionstringAWS region.

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 object_types in a region.

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
FROM aws.customerprofiles.object_types
WHERE region = 'us-east-1';

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
FROM aws.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 aws.customerprofiles.object_types (
DomainName,
ObjectTypeName,
Description,
region
)
SELECT
'{{ DomainName }}',
'{{ ObjectTypeName }}',
'{{ Description }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.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

Read

profile:GetProfileObjectType

Update

profile:GetProfileObjectType,
profile:PutProfileObjectType,
profile:UntagResource,
profile:TagResource

Delete

profile:DeleteProfileObjectType

List

profile:ListProfileObjectTypes