AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CopyDistribution operation. 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.
This API operation requires the following IAM permissions:
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z
public class CopyDistributionRequest : AmazonCloudFrontRequest IAmazonWebServiceRequest
The CopyDistributionRequest type exposes the following members
Name | Description | |
---|---|---|
CopyDistributionRequest() |
Name | Type | Description | |
---|---|---|---|
CallerReference | System.String |
Gets and sets the property 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. |
|
Enabled | System.Boolean |
Gets and sets the property Enabled.
A Boolean flag to specify the state of the staging distribution when it's created.
When you set this value to
If you omit this field, the default value is |
|
IfMatch | System.String |
Gets and sets the property IfMatch.
The version identifier of the primary distribution whose configuration you are copying.
This is the |
|
PrimaryDistributionId | System.String |
Gets and sets the property PrimaryDistributionId.
The identifier of the primary distribution whose configuration you are copying. To
get a distribution ID, use |
|
Staging | System.Boolean |
Gets and sets the property Staging.
The type of distribution that your primary distribution will be copied to. The only
valid value is |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5