CmdID / aws / aws cloudfront
aws cloudfront list-domain-conflicts
We recommend that you use the ListDomainConflicts API operation to check for domain conflicts, as it supports both standard distributions and distribution tenants. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To list domain conflicts for a CloudFront distribution
The following list-domain-conflicts example lists domain conflicts for a CloudFront distribution.
aws cloudfront list-domain-conflicts --domain example.com --domain-control-validation-resource "DistributionTenantId=dt_2x9GhoK0TZRsohWzv1b9It8J1AB"Identify--domainThe domain to check for conflicts.--domain-control-validation-resourceThe distribution resource identifier.Its output
{
"DomainConflicts": [
{
"Domain": "example.com",
"ResourceType": "distribution-tenant",
"ResourceId": "***************ohWzv1b9It8J1AB",
"AccountId": "123456789012"
}
]
}For more information, see Move an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.
Options
--domain-control-validation-resourceThe distribution resource identifier.--domainThe domain to check for conflicts.--markerThe marker for the next set of domain conflicts.--max-itemsThe maximum number of domain conflicts to return.