v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14106607606.1 KB

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.

post/2020-05-31/distribution/{PrimaryDistributionId}/copy

Path parameters

PrimaryDistributionIdstring required

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

Headers

Stagingboolean

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

If-Matchstring

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

Response

Success