Skip to main content

integrations

Creates, updates, deletes or gets an integration resource or lists integrations in a region

Overview

Nameintegrations
TypeResource
DescriptionThe resource schema for creating an Amazon Connect Customer Profiles Integration.
Idawscc.customerprofiles.integrations

Fields

NameDatatypeDescription
domain_namestringThe unique name of the domain.
uristringThe URI of the S3 bucket or any other type of data source.
flow_definitionobject
object_type_namestringThe name of the ObjectType defined for the 3rd party data in Profile Service
created_atstringThe time of this integration got created
last_updated_atstringThe time of this integration got last updated at
tagsarrayThe tags (keys and values) associated with the integration
object_type_namesarrayThe mapping between 3rd party event types and ObjectType names
event_trigger_namesarrayA list of unique names for active event triggers associated with the integration.
regionstringAWS region.

For more information, see AWS::CustomerProfiles::Integration.

Methods

NameResourceAccessible byRequired Params
create_resourceintegrationsINSERTDomainName, region
delete_resourceintegrationsDELETEIdentifier, region
update_resourceintegrationsUPDATEIdentifier, PatchDocument, region
list_resourcesintegrations_list_onlySELECTregion
get_resourceintegrationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual integration.

SELECT
region,
domain_name,
uri,
flow_definition,
object_type_name,
created_at,
last_updated_at,
tags,
object_type_names,
event_trigger_names
FROM awscc.customerprofiles.integrations
WHERE
region = 'us-east-1' AND
Identifier = '{{ domain_name }}|{{ uri }}';

INSERT example

Use the following StackQL query and manifest file to create a new integration resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.customerprofiles.integrations (
DomainName,
region
)
SELECT
'{{ domain_name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a integration resource, using stack-deploy.

/*+ update */
UPDATE awscc.customerprofiles.integrations
SET PatchDocument = string('{{ {
"FlowDefinition": flow_definition,
"ObjectTypeName": object_type_name,
"Tags": tags,
"ObjectTypeNames": object_type_names,
"EventTriggerNames": event_trigger_names
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_name }}|{{ uri }}';

DELETE example

/*+ delete */
DELETE FROM awscc.customerprofiles.integrations
WHERE
Identifier = '{{ domain_name }}|{{ uri }}' AND
region = 'us-east-1';

Permissions

To operate on the integrations resource, the following permissions are required:

profile:GetIntegration,
profile:PutIntegration,
appflow:CreateFlow,
app-integrations:CreateEventIntegrationAssociation,
app-integrations:GetEventIntegration,
connect:DescribeInstance,
ds:DescribeDirectories,
events:ListTargetsByRule,
events:PutRule,
events:PutTargets,
events:PutEvents,
profile:TagResource