Skip to content

CloudFront  >  Operations  >  update_continuous_deployment_policy

update_continuous_deployment_policy

Operation

update_continuous_deployment_policy async

update_continuous_deployment_policy(input: UpdateContinuousDeploymentPolicyInput, plugins: list[Plugin] | None = None) -> UpdateContinuousDeploymentPolicyOutput

Updates a continuous deployment policy. You can update a continuous deployment policy to enable or disable it, to change the percentage of traffic that it sends to the staging distribution, or to change the staging distribution that it sends traffic to.

When you update a continuous deployment policy configuration, all the fields are updated with the values that are provided in the request. You cannot update some fields independent of others. To update a continuous deployment policy configuration:

  1. Use GetContinuousDeploymentPolicyConfig to get the current configuration.

  2. Locally modify the fields in the continuous deployment policy configuration that you want to update.

  3. Use UpdateContinuousDeploymentPolicy, providing the entire continuous deployment policy configuration, including the fields that you modified and those that you didn't.

Parameters:

Name Type Description Default
input UpdateContinuousDeploymentPolicyInput

An instance of UpdateContinuousDeploymentPolicyInput.

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
UpdateContinuousDeploymentPolicyOutput

An instance of UpdateContinuousDeploymentPolicyOutput.

Input

UpdateContinuousDeploymentPolicyInput dataclass

Bases: _SerdeShape

Dataclass for UpdateContinuousDeploymentPolicyInput structure.

Attributes

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

The continuous deployment policy configuration.

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

The identifier of the continuous deployment policy that you are updating.

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

The current version (ETag value) of the continuous deployment policy that you are updating.

Output

UpdateContinuousDeploymentPolicyOutput dataclass

Bases: _SerdeShape

Dataclass for UpdateContinuousDeploymentPolicyOutput 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.

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.