Skip to main content

profile_object_type_templates

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

Overview

Nameprofile_object_type_templates
TypeResource
Idaws.customer_profiles.profile_object_type_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allow_profile_creationbooleanIndicates whether a profile should be created when data is received if one doesn’t exist for an object of this type. 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.
fieldsobjectA map of the name and ObjectType field.
keysobjectA list of unique keys that can be used to map data to the profile.
source_last_updated_timestamp_formatstringThe format of your sourceLastUpdatedTimestamp that was previously set up.
source_namestringThe name of the source of the object template. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)
source_objectstringThe source of the object template. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)
template_idstringA unique identifier for the object template. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_profile_object_type_templateselecttemplate_id, regionReturns the template information for a specific object type. A template is a predefined ProfileObjectType, such as “Salesforce-Account” or “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API, with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the template.
list_profile_object_type_templatesselectregionnext-token, max-resultsLists all of the template information for object types.

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
regionstringAWS region (default: us-east-1)
template_idstringA unique identifier for the object template.
max-resultsintegerThe maximum number of objects returned per page.
next-tokenstringThe pagination token from the previous ListObjectTypeTemplates API call.

SELECT examples

Returns the template information for a specific object type. A template is a predefined ProfileObjectType, such as “Salesforce-Account” or “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API, with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the template.

SELECT
allow_profile_creation,
fields,
keys,
source_last_updated_timestamp_format,
source_name,
source_object,
template_id
FROM aws.customer_profiles.profile_object_type_templates
WHERE template_id = '{{ template_id }}' -- required
AND region = '{{ region }}' -- required
;