Skip to content

create_continuous_deployment_policy

Operation

create_continuous_deployment_policy

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
request CreateContinuousDeploymentPolicyInput | CreateContinuousDeploymentPolicyInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[CreateContinuousDeploymentPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateContinuousDeploymentPolicyOutput

An instance of CreateContinuousDeploymentPolicyOutput.

create_continuous_deployment_policy async

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
request CreateContinuousDeploymentPolicyInput | CreateContinuousDeploymentPolicyInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[CreateContinuousDeploymentPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateContinuousDeploymentPolicyOutput

An instance of CreateContinuousDeploymentPolicyOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

CreateContinuousDeploymentPolicyInputDict

Bases: TypedDict

Dictionary form of CreateContinuousDeploymentPolicyInput.

Attributes

continuous_deployment_policy_config instance-attribute

Contains the configuration for a continuous deployment policy.

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.