Skip to content

CloudFront  >  Operations  >  create_continuous_deployment_policy

create_continuous_deployment_policy

Operation

create_continuous_deployment_policy async

create_continuous_deployment_policy(input: CreateContinuousDeploymentPolicyInput, plugins: list[Plugin] | None = None) -> CreateContinuousDeploymentPolicyOutput

Creates a continuous deployment policy that distributes traffic for a custom domain name to two different CloudFront distributions.

To use a continuous deployment policy, first use CopyDistribution to create a staging distribution, then use UpdateDistribution to modify the staging distribution's configuration.

After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This workflow enables you to test changes to a distribution's configuration before moving all of your domain's production traffic to the new configuration.

Parameters:

Name Type Description Default
input CreateContinuousDeploymentPolicyInput

An instance of CreateContinuousDeploymentPolicyInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CreateContinuousDeploymentPolicyOutput

An instance of CreateContinuousDeploymentPolicyOutput.

Input

CreateContinuousDeploymentPolicyInput dataclass

Bases: _SerdeShape

Dataclass for CreateContinuousDeploymentPolicyInput structure.

Attributes

continuous_deployment_policy_config class-attribute instance-attribute
continuous_deployment_policy_config: ContinuousDeploymentPolicyConfig | None = ...

Contains the configuration for a continuous deployment policy.

Output

CreateContinuousDeploymentPolicyOutput dataclass

Bases: _SerdeShape

Dataclass for CreateContinuousDeploymentPolicyOutput structure.

Attributes

continuous_deployment_policy class-attribute instance-attribute
continuous_deployment_policy: ContinuousDeploymentPolicy | None = ...

A continuous deployment policy.

e_tag class-attribute instance-attribute
e_tag: str | None = ...

The version identifier for the current version of the continuous deployment policy.

location class-attribute instance-attribute
location: str | None = ...

The location of the continuous deployment policy.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.