Skip to content

Update Domain Association

cloudfront_update_domain_association R Documentation

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

Description

We recommend that you use the update_domain_association API operation to move a domain association, as it supports both standard distributions and distribution tenants. associate_alias performs similar checks but only supports standard distributions.

Moves a domain from its current standard distribution or distribution tenant to another one.

You must first disable the source distribution (standard distribution or distribution tenant) and then separately call this operation to move the domain to another target distribution (standard distribution or distribution tenant).

To use this operation, specify the domain and the ID of the target resource (standard distribution or distribution tenant). For more information, including how to set up the target resource, prerequisites that you must complete, and other restrictions, see Moving an alternate domain name to a different standard distribution or distribution tenant in the Amazon CloudFront Developer Guide.

Usage

cloudfront_update_domain_association(Domain, TargetResource, IfMatch)

Arguments

Domain

[required] The domain to update.

TargetResource

[required] The target standard distribution or distribution tenant resource for the domain. You can specify either DistributionId or DistributionTenantId, but not both.

IfMatch

The value of the ETag identifier for the standard distribution or distribution tenant that will be associated with the domain.

Value

A list with the following syntax:

list(
  Domain = "string",
  ResourceId = "string",
  ETag = "string"
)

Request syntax

svc$update_domain_association(
  Domain = "string",
  TargetResource = list(
    DistributionId = "string",
    DistributionTenantId = "string"
  ),
  IfMatch = "string"
)