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

Description

Creates a staging distribution using the configuration of the provided primary distribution. A staging distribution is a copy of an existing distribution (called the primary distribution) that you can use in a continuous deployment workflow.

After you create a staging distribution, you can use UpdateDistribution to modify the staging distribution's configuration. Then you can use CreateContinuousDeploymentPolicy to incrementally move traffic to the staging distribution.

Synopsis

Creating a Request

data CopyDistribution Source #

See: newCopyDistribution smart constructor.

Constructors

CopyDistribution' 

Fields

  • ifMatch :: Maybe Text

    The version identifier of the primary distribution whose configuration you are copying. This is the ETag value returned in the response to GetDistribution and GetDistributionConfig.

  • staging :: Maybe Bool

    The type of distribution that your primary distribution will be copied to. The only valid value is True, indicating that you are copying to a staging distribution.

  • primaryDistributionId :: Text

    The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions.

  • callerReference :: Text

    A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.

Instances

Instances details
ToHeaders CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

ToPath CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

ToQuery CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

ToElement CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

ToXML CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

AWSRequest CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

Associated Types

type AWSResponse CopyDistribution #

Generic CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

Associated Types

type Rep CopyDistribution :: Type -> Type #

Read CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

Show CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

NFData CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

Methods

rnf :: CopyDistribution -> () #

Eq CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

Hashable CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

type AWSResponse CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

type Rep CopyDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

type Rep CopyDistribution = D1 ('MetaData "CopyDistribution" "Amazonka.CloudFront.CopyDistribution" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "CopyDistribution'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ifMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "staging") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "primaryDistributionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "callerReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCopyDistribution Source #

Create a value of CopyDistribution 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:ifMatch:CopyDistribution', copyDistribution_ifMatch - The version identifier of the primary distribution whose configuration you are copying. This is the ETag value returned in the response to GetDistribution and GetDistributionConfig.

CopyDistribution, copyDistribution_staging - The type of distribution that your primary distribution will be copied to. The only valid value is True, indicating that you are copying to a staging distribution.

$sel:primaryDistributionId:CopyDistribution', copyDistribution_primaryDistributionId - The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions.

CopyDistribution, copyDistribution_callerReference - A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.

Request Lenses

copyDistribution_ifMatch :: Lens' CopyDistribution (Maybe Text) Source #

The version identifier of the primary distribution whose configuration you are copying. This is the ETag value returned in the response to GetDistribution and GetDistributionConfig.

copyDistribution_staging :: Lens' CopyDistribution (Maybe Bool) Source #

The type of distribution that your primary distribution will be copied to. The only valid value is True, indicating that you are copying to a staging distribution.

copyDistribution_primaryDistributionId :: Lens' CopyDistribution Text Source #

The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions.

copyDistribution_callerReference :: Lens' CopyDistribution Text Source #

A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.

Destructuring the Response

data CopyDistributionResponse Source #

See: newCopyDistributionResponse smart constructor.

Constructors

CopyDistributionResponse' 

Fields

Instances

Instances details
Generic CopyDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

Associated Types

type Rep CopyDistributionResponse :: Type -> Type #

Show CopyDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

NFData CopyDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

Eq CopyDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

type Rep CopyDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CopyDistribution

type Rep CopyDistributionResponse = D1 ('MetaData "CopyDistributionResponse" "Amazonka.CloudFront.CopyDistribution" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "CopyDistributionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "distribution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Distribution)) :*: S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCopyDistributionResponse Source #

Create a value of CopyDistributionResponse 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:distribution:CopyDistributionResponse', copyDistributionResponse_distribution - Undocumented member.

$sel:eTag:CopyDistributionResponse', copyDistributionResponse_eTag - The version identifier for the current version of the staging distribution.

$sel:location:CopyDistributionResponse', copyDistributionResponse_location - The URL of the staging distribution.

$sel:httpStatus:CopyDistributionResponse', copyDistributionResponse_httpStatus - The response's http status code.

Response Lenses

copyDistributionResponse_eTag :: Lens' CopyDistributionResponse (Maybe Text) Source #

The version identifier for the current version of the staging distribution.