Skip to main content

profile_history_records

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

Overview

Nameprofile_history_records
TypeResource
Idaws.customer_profiles.profile_history_records

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_typestringThe action type of the profile history record. (ADDED_PROFILE_KEY, DELETED_PROFILE_KEY, CREATED, UPDATED, INGESTED, DELETED_BY_CUSTOMER, EXPIRED, MERGED, DELETED_BY_MERGE)
contentstringA string containing the customer profile, profile object, or profile key content.
created_atstring (date-time)The timestamp of when the profile history record was created.
idstringThe unique identifier of the profile history record. (pattern: <code>[a-f0-9]{32}</code>)
last_updated_atstring (date-time)The timestamp of when the profile history record was last updated.
object_type_namestringThe name of the profile object type. (pattern: <code>^[a-zA-Z_][a-zA-Z_0-9-]*$</code>)
performed_bystringThe Amazon Resource Name (ARN) of the person or service principal who performed the action.
profile_object_unique_keystringThe unique identifier of the profile object generated by the service.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_profile_history_recordselectdomain_name, profile_id, id, regionReturns a history record for a specific profile, for a specific domain.
list_profile_history_recordsselectdomain_name, regionnext-token, max-resultsReturns a list of history records for a specific profile, for a specific domain.

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 for which to return profile history records.
idstringThe unique identifier of the profile history record to return.
profile_idstringThe unique identifier of the profile for which to return a history record.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to return per page.
next-tokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Returns a history record for a specific profile, for a specific domain.

SELECT
action_type,
content,
created_at,
id,
last_updated_at,
object_type_name,
performed_by,
profile_object_unique_key
FROM aws.customer_profiles.profile_history_records
WHERE domain_name = '{{ domain_name }}' -- required
AND profile_id = '{{ profile_id }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;