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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.customerprofiles.domains
WHERE
Identifier = '{{ domain_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

profile:CreateDomain,
profile:TagResource