CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

4 in the AWS CLI reference
--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.