domains
Creates, updates, deletes or gets a domain
resource or lists domains
in a region
Overview
Name | domains |
Type | Resource |
Description | A domain defined for 3rd party data source in Profile Service |
Id | aws.customerprofiles.domains |
Fields
Name | Datatype | Description |
---|---|---|
domain_name | string | The unique name of the domain. |
dead_letter_queue_url | string | The URL of the SQS dead letter queue |
default_encryption_key | string | The default encryption key |
default_expiration_days | integer | The default number of days until the data within the domain expires. |
matching | object | The 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_matching | object | The 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. |
stats | object | Usage-specific statistics about the domain. |
tags | array | The tags (keys and values) associated with the domain |
created_at | string | The time of this integration got created |
last_updated_at | string | The time of this integration got last updated at |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | DomainName, DefaultExpirationDays, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all domains
in a region.
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 aws.customerprofiles.domains
WHERE region = 'us-east-1';
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 aws.customerprofiles.domains
WHERE region = 'us-east-1' AND data__Identifier = '<DomainName>';
INSERT
example
Use the following StackQL query and manifest file to create a new domain
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.customerprofiles.domains (
DomainName,
DefaultExpirationDays,
region
)
SELECT
'{{ DomainName }}',
'{{ DefaultExpirationDays }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.customerprofiles.domains (
DomainName,
DeadLetterQueueUrl,
DefaultEncryptionKey,
DefaultExpirationDays,
Matching,
RuleBasedMatching,
Tags,
region
)
SELECT
'{{ DomainName }}',
'{{ DeadLetterQueueUrl }}',
'{{ DefaultEncryptionKey }}',
'{{ DefaultExpirationDays }}',
'{{ Matching }}',
'{{ RuleBasedMatching }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: domain
props:
- name: DomainName
value: '{{ DomainName }}'
- name: DeadLetterQueueUrl
value: '{{ DeadLetterQueueUrl }}'
- name: DefaultEncryptionKey
value: '{{ DefaultEncryptionKey }}'
- name: DefaultExpirationDays
value: '{{ DefaultExpirationDays }}'
- name: Matching
value:
Enabled: '{{ Enabled }}'
AutoMerging:
Enabled: '{{ Enabled }}'
ConflictResolution:
ConflictResolvingModel: '{{ ConflictResolvingModel }}'
SourceName: '{{ SourceName }}'
Consolidation:
MatchingAttributesList:
- - '{{ 0[0] }}'
MinAllowedConfidenceScoreForMerging: null
ExportingConfig:
S3Exporting:
S3BucketName: '{{ S3BucketName }}'
S3KeyName: '{{ S3KeyName }}'
JobSchedule:
DayOfTheWeek: '{{ DayOfTheWeek }}'
Time: '{{ Time }}'
- name: RuleBasedMatching
value:
Enabled: '{{ Enabled }}'
AttributeTypesSelector:
AttributeMatchingModel: '{{ AttributeMatchingModel }}'
Address:
- '{{ Address[0] }}'
EmailAddress:
- '{{ EmailAddress[0] }}'
PhoneNumber:
- '{{ PhoneNumber[0] }}'
ConflictResolution: null
ExportingConfig: null
MatchingRules:
- Rule:
- '{{ Rule[0] }}'
MaxAllowedRuleLevelForMatching: '{{ MaxAllowedRuleLevelForMatching }}'
MaxAllowedRuleLevelForMerging: '{{ MaxAllowedRuleLevelForMerging }}'
Status: '{{ Status }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.customerprofiles.domains
WHERE data__Identifier = '<DomainName>'
AND region = 'us-east-1';
Permissions
To operate on the domains
resource, the following permissions are required:
Create
profile:CreateDomain,
profile:TagResource
Read
profile:GetDomain
Update
profile:GetDomain,
profile:UpdateDomain,
profile:UntagResource,
profile:TagResource
Delete
profile:DeleteDomain
List
profile:ListDomains