Skip to content

/AWS1/CL_FNT=>UPDISTRIBUTIONWITHSTAGINGCFG()

About UpdateDistributionWithStagingConfig

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.

This API operation requires the following IAM permissions:

Method Signature

IMPORTING

Required arguments:

IV_ID TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

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

Optional arguments:

IV_STAGINGDISTRIBUTIONID TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

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

IV_IFMATCH TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

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

<primary ETag>, <staging ETag>

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_FNTUPDISTRIBUTIONWS01 /AWS1/CL_FNTUPDISTRIBUTIONWS01