amazonka-cloudfront-2.0: Amazon CloudFront SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
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

AWSRequest AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Associated Types

type AWSResponse AssociateAlias #

Generic AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Associated Types

type Rep AssociateAlias :: Type -> Type #

Read AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Show AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

NFData AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Methods

rnf :: AssociateAlias -> () #

Eq AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Hashable AssociateAlias Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

type AWSResponse 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" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "AssociateAlias'" 'PrefixI 'True) (S1 ('MetaSel ('Just "targetDistributionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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.

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
Generic AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Associated Types

type Rep AssociateAliasResponse :: Type -> Type #

Read AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Show AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

NFData AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

Methods

rnf :: AssociateAliasResponse -> () #

Eq AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

type Rep AssociateAliasResponse Source # 
Instance details

Defined in Amazonka.CloudFront.AssociateAlias

type Rep AssociateAliasResponse = D1 ('MetaData "AssociateAliasResponse" "Amazonka.CloudFront.AssociateAlias" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" '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.