libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudFront.AssociateAlias

Description

Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront distribution.

With this operation you can move an alias that’s already in use on a CloudFront distribution to a different distribution in one step. This prevents the downtime that could occur if you first remove the alias from one distribution and then separately add the alias to another distribution.

To use this operation to associate an alias with a distribution, you provide the alias and the ID of the target distribution for the alias. For more information, including how to set up the target distribution, prerequisites that you must complete, and other restrictions, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.

Synopsis

Creating a Request

data AssociateAlias Source #

See: newAssociateAlias smart constructor.

Constructors

AssociateAlias' 

Fields

  • targetDistributionId :: Text

    The ID of the distribution that you’re associating the alias with.

  • alias :: Text

    The alias (also known as a CNAME) to add to the target distribution.

Instances

Instances details
Eq AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Read AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Show AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Generic AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Associated Types

type Rep AssociateAlias :: Type -> Type #

NFData AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Methods

rnf :: AssociateAlias -> () #

Hashable AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

AWSRequest AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Associated Types

type AWSResponse AssociateAlias #

ToHeaders AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

ToPath AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

ToQuery AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

type Rep AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

type Rep AssociateAlias = D1 ('MetaData "AssociateAlias" "Amazonka.CloudFront.AssociateAlias" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "AssociateAlias'" 'PrefixI 'True) (S1 ('MetaSel ('Just "targetDistributionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

newAssociateAlias Source #

Create a value of AssociateAlias with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:targetDistributionId:AssociateAlias', associateAlias_targetDistributionId - The ID of the distribution that you’re associating the alias with.

$sel:alias:AssociateAlias', associateAlias_alias - The alias (also known as a CNAME) to add to the target distribution.

Request Lenses

associateAlias_targetDistributionId :: Lens' AssociateAlias Text Source #

The ID of the distribution that you’re associating the alias with.

associateAlias_alias :: Lens' AssociateAlias Text Source #

The alias (also known as a CNAME) to add to the target distribution.

Destructuring the Response

data AssociateAliasResponse Source #

See: newAssociateAliasResponse smart constructor.

Instances

Instances details
Eq AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Read AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Show AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Generic AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Associated Types

type Rep AssociateAliasResponse :: Type -> Type #

NFData AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Methods

rnf :: AssociateAliasResponse -> () #

type Rep AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

type Rep AssociateAliasResponse = D1 ('MetaData "AssociateAliasResponse" "Amazonka.CloudFront.AssociateAlias" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "AssociateAliasResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAssociateAliasResponse :: AssociateAliasResponse Source #

Create a value of AssociateAliasResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.