Skip to main content

domain_object_types

Creates, updates, deletes, gets or lists a domain_object_types resource.

Overview

Namedomain_object_types
TypeResource
Idaws.customer_profiles.domain_object_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp of when the domain object type was created.
descriptionstringThe description of the domain object type.
encryption_keystringThe customer provided KMS key used to encrypt this type of domain object.
fieldsobjectA map of field names to their corresponding domain object type field definitions.
last_updated_atstring (date-time)The timestamp of when the domain object type was most recently edited.
object_type_namestringThe unique name of the domain object type. (pattern: <code>^[a-zA-Z_][a-zA-Z_0-9-]*$</code>)
tagsobjectThe tags used to organize, track, or control access for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domain_object_typeselectdomain_name, object_type_name, regionReturn a DomainObjectType for the input Domain and ObjectType names.
list_domain_object_typesselectdomain_name, regionmax-results, next-tokenList all DomainObjectType(s) in a Customer Profiles domain.
put_domain_object_typereplacedomain_name, object_type_name, regionCreate/Update a DomainObjectType in a Customer Profiles domain. To create a new DomainObjectType, Data Store needs to be enabled on the Domain.
delete_domain_object_typedeletedomain_name, object_type_name, regionDelete a DomainObjectType for the given Domain and ObjectType name.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domain_namestringThe unique name of the domain.
object_type_namestringThe unique name of the domain object type.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of domain object types returned per page.
next-tokenstringThe pagination token from the previous call to ListDomainObjectTypes.

SELECT examples

Return a DomainObjectType for the input Domain and ObjectType names.

SELECT
created_at,
description,
encryption_key,
fields,
last_updated_at,
object_type_name,
tags
FROM aws.customer_profiles.domain_object_types
WHERE domain_name = '{{ domain_name }}' -- required
AND object_type_name = '{{ object_type_name }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Create/Update a DomainObjectType in a Customer Profiles domain. To create a new DomainObjectType, Data Store needs to be enabled on the Domain.

REPLACE aws.customer_profiles.domain_object_types
SET
Description = '{{ Description }}',
EncryptionKey = '{{ EncryptionKey }}',
Fields = '{{ Fields }}',
Tags = '{{ Tags }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND object_type_name = '{{ object_type_name }}' --required
AND region = '{{ region }}' --required
RETURNING
created_at,
description,
encryption_key,
fields,
last_updated_at,
object_type_name,
tags;

DELETE examples

Delete a DomainObjectType for the given Domain and ObjectType name.

DELETE FROM aws.customer_profiles.domain_object_types
WHERE domain_name = '{{ domain_name }}' --required
AND object_type_name = '{{ object_type_name }}' --required
AND region = '{{ region }}' --required
;