Skip to main content

domains

Creates, updates, deletes or gets a domain resource or lists domains in a region

Overview

Namedomains
TypeResource
DescriptionA domain defined for 3rd party data source in Profile Service
Idawscc.customerprofiles.domains

Fields

NameDatatypeDescription
domain_namestringThe unique name of the domain.
dead_letter_queue_urlstringThe URL of the SQS dead letter queue
default_encryption_keystringThe default encryption key
default_expiration_daysintegerThe default number of days until the data within the domain expires.
matchingobjectThe process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains. After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from S3.
rule_based_matchingobjectThe process of matching duplicate profiles using the Rule-Based matching. If RuleBasedMatching = true, Amazon Connect Customer Profiles will start to match and merge your profiles according to your configuration in the RuleBasedMatchingRequest. You can use the ListRuleBasedMatches and GetSimilarProfiles API to return and review the results. Also, if you have configured ExportingConfig in the RuleBasedMatchingRequest, you can download the results from S3.
statsobjectUsage-specific statistics about the domain.
tagsarrayThe tags (keys and values) associated with the domain
created_atstringThe time of this integration got created
last_updated_atstringThe time of this integration got last updated at
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcedomainsINSERTDomainName, DefaultExpirationDays, region
delete_resourcedomainsDELETEIdentifier, region
update_resourcedomainsUPDATEIdentifier, PatchDocument, region
list_resourcesdomains_list_onlySELECTregion
get_resourcedomainsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual domain.

SELECT
region,
domain_name,
dead_letter_queue_url,
default_encryption_key,
default_expiration_days,
matching,
rule_based_matching,
stats,
tags,
created_at,
last_updated_at
FROM awscc.customerprofiles.domains
WHERE
region = 'us-east-1' AND
Identifier = '{{ domain_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.customerprofiles.domains
SET PatchDocument = string('{{ {
"DeadLetterQueueUrl": dead_letter_queue_url,
"DefaultEncryptionKey": default_encryption_key,
"DefaultExpirationDays": default_expiration_days,
"Matching": matching,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_name }}';

DELETE example

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

Permissions

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

profile:CreateDomain,
profile:TagResource