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

Description

Copies the staging distribution's configuration to its corresponding primary distribution. The primary distribution retains its Aliases (also known as alternate domain names or CNAMEs) and ContinuousDeploymentPolicyId value, but otherwise its configuration is overwritten to match the staging distribution.

You can use this operation in a continuous deployment workflow after you have tested configuration changes on the staging distribution. After using a continuous deployment policy to move a portion of your domain name's traffic to the staging distribution and verifying that it works as intended, you can use this operation to copy the staging distribution's configuration to the primary distribution. This action will disable the continuous deployment policy and move your domain's traffic back to the primary distribution.

Synopsis

Creating a Request

data UpdateDistributionWithStagingConfig Source #

Constructors

UpdateDistributionWithStagingConfig' 

Fields

  • ifMatch :: Maybe Text

    The current versions (ETag values) of both primary and staging distributions. Provide these in the following format:

    <primary ETag>, <staging ETag>
  • stagingDistributionId :: Maybe Text

    The identifier of the staging distribution whose configuration you are copying to the primary distribution.

  • id :: Text

    The identifier of the primary distribution to which you are copying a staging distribution's configuration.

Instances

Instances details
ToHeaders UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

ToPath UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

ToQuery UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

AWSRequest UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

Generic UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

Read UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

Show UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

NFData UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

Eq UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

Hashable UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

type AWSResponse UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

type Rep UpdateDistributionWithStagingConfig Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

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

newUpdateDistributionWithStagingConfig Source #

Create a value of UpdateDistributionWithStagingConfig 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:UpdateDistributionWithStagingConfig', updateDistributionWithStagingConfig_ifMatch - The current versions (ETag values) of both primary and staging distributions. Provide these in the following format:

<primary ETag>, <staging ETag>

$sel:stagingDistributionId:UpdateDistributionWithStagingConfig', updateDistributionWithStagingConfig_stagingDistributionId - The identifier of the staging distribution whose configuration you are copying to the primary distribution.

UpdateDistributionWithStagingConfig, updateDistributionWithStagingConfig_id - The identifier of the primary distribution to which you are copying a staging distribution's configuration.

Request Lenses

updateDistributionWithStagingConfig_ifMatch :: Lens' UpdateDistributionWithStagingConfig (Maybe Text) Source #

The current versions (ETag values) of both primary and staging distributions. Provide these in the following format:

<primary ETag>, <staging ETag>

updateDistributionWithStagingConfig_stagingDistributionId :: Lens' UpdateDistributionWithStagingConfig (Maybe Text) Source #

The identifier of the staging distribution whose configuration you are copying to the primary distribution.

updateDistributionWithStagingConfig_id :: Lens' UpdateDistributionWithStagingConfig Text Source #

The identifier of the primary distribution to which you are copying a staging distribution's configuration.

Destructuring the Response

data UpdateDistributionWithStagingConfigResponse Source #

Constructors

UpdateDistributionWithStagingConfigResponse' 

Fields

Instances

Instances details
Generic UpdateDistributionWithStagingConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

Show UpdateDistributionWithStagingConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

NFData UpdateDistributionWithStagingConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

Eq UpdateDistributionWithStagingConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

type Rep UpdateDistributionWithStagingConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateDistributionWithStagingConfig

type Rep UpdateDistributionWithStagingConfigResponse = D1 ('MetaData "UpdateDistributionWithStagingConfigResponse" "Amazonka.CloudFront.UpdateDistributionWithStagingConfig" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "UpdateDistributionWithStagingConfigResponse'" '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 "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

Response Lenses

updateDistributionWithStagingConfigResponse_eTag :: Lens' UpdateDistributionWithStagingConfigResponse (Maybe Text) Source #

The current version of the primary distribution (after it's updated).