CmdID

CmdID / aws / aws cloudfront

aws cloudfront update-domain-association

We recommend that you use the UpdateDomainAssociation API operation to move a domain association, as it supports both standard distributions and distribution tenants. AWS CLI reference

1 example 3 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 update a domain association

The following update-domain-association example updates a domain association for a distribution tenant with ETag E23ZP02F085ABC.

aws cloudfront update-domain-association --domain example.com --target-resource DistributionTenantId=dt_2x9GhoK0TZRsohWzv1b9It8J1AB --if-match E23ZP02F085ABCIdentify
--domainThe domain to update.
--target-resourceThe target standard distribution or distribution tenant resource for the domain.
--if-matchThe value of the ETag identifier for the standard distribution or distribution tenant that will be associated with the domain.
Its output
{
    "ETag": "ETVPDKIKX0ABC",
    "Domain": "example.com",
    "ResourceId": "dt_2x9GhoK0TZRsohWzv1b9It8J1AB"
}

For more information, see Move an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.

Options

3 in the AWS CLI reference
--domainThe domain to update.
--if-matchThe value of the ETag identifier for the standard distribution or distribution tenant that will be associated with the domain.
--target-resourceThe target standard distribution or distribution tenant resource for the domain.