Skip to main content

integrations

Creates, updates, deletes, gets or lists an integrations resource.

Overview

Nameintegrations
TypeResource
Idaws.customer_profiles.integrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp of when the domain was created.
domain_namestringThe unique name of the domain. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)
event_trigger_namesarrayA list of unique names for active event triggers associated with the integration. This list would be empty if no Event Trigger is associated with the integration.
is_unstructuredbooleanBoolean that shows if the Flow that's associated with the Integration is created in Amazon Appflow, or with ObjectTypeName equals _unstructured via API/CLI in flowDefinition.
last_updated_atstring (date-time)The timestamp of when the domain was most recently edited.
object_type_namestringThe name of the profile object type. (pattern: <code>^[a-zA-Z_][a-zA-Z_0-9-]*$</code>)
object_type_namesobjectA map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event. It supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, ShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.
role_arnstringThe Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make Customer Profiles requests on your behalf. (pattern: <code>arn:aws:iam:.:[0-9]+:.</code>)
scopestringSpecifies whether the integration applies to profile level data (associated with profiles) or domain level data (not associated with any specific profile). The default value is PROFILE. (PROFILE, DOMAIN)
tagsobjectThe tags used to organize, track, or control access for this resource.
uristringThe URI of the S3 bucket or any other type of data source.
workflow_idstringUnique identifier for the workflow.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_integrationselectdomain_name, regionReturns an integration for a domain.
put_integrationreplacedomain_name, regionAdds an integration between the service and a third-party service, which includes Amazon AppFlow and Amazon Connect. An integration can belong to only one domain. To add or remove tags on an existing Integration, see TagResource / UntagResource.
delete_integrationdeletedomain_name, regionRemoves an integration from a specific domain.
list_integrationsexecdomain_name, regionnext-token, max-results, include-hiddenLists all of the integrations in your 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.
regionstringAWS region (default: us-east-1)
include-hiddenbooleanBoolean to indicate if hidden integration should be returned. Defaults to False.
max-resultsintegerThe maximum number of objects returned per page.
next-tokenstringThe pagination token from the previous ListIntegrations API call.

SELECT examples

Returns an integration for a domain.

SELECT
created_at,
domain_name,
event_trigger_names,
is_unstructured,
last_updated_at,
object_type_name,
object_type_names,
role_arn,
scope,
tags,
uri,
workflow_id
FROM aws.customer_profiles.integrations
WHERE domain_name = '{{ domain_name }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Adds an integration between the service and a third-party service, which includes Amazon AppFlow and Amazon Connect. An integration can belong to only one domain. To add or remove tags on an existing Integration, see TagResource / UntagResource.

REPLACE aws.customer_profiles.integrations
SET
Uri = '{{ Uri }}',
ObjectTypeName = '{{ ObjectTypeName }}',
ObjectTypeNames = '{{ ObjectTypeNames }}',
Tags = '{{ Tags }}',
FlowDefinition = '{{ FlowDefinition }}',
RoleArn = '{{ RoleArn }}',
EventTriggerNames = '{{ EventTriggerNames }}',
Scope = '{{ Scope }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
RETURNING
created_at,
domain_name,
event_trigger_names,
is_unstructured,
last_updated_at,
object_type_name,
object_type_names,
role_arn,
scope,
tags,
uri,
workflow_id;

DELETE examples

Removes an integration from a specific domain.

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

Lifecycle Methods

Lists all of the integrations in your domain.

EXEC aws.customer_profiles.integrations.list_integrations
@domain_name='{{ domain_name }}' --required,
@region='{{ region }}' --required,
@next-token='{{ next-token }}',
@max-results='{{ max-results }}',
@include-hidden={{ include-hidden }}
;