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:
-
Use
GetContinuousDeploymentPolicyConfigto get the current configuration. -
Locally modify the fields in the continuous deployment policy configuration that you want to update.
-
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 |
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 |
Input¶
UpdateContinuousDeploymentPolicyInput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateContinuousDeploymentPolicyInput structure.
Output¶
UpdateContinuousDeploymentPolicyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateContinuousDeploymentPolicyOutput structure.
Attributes¶
continuous_deployment_policy
class-attribute
instance-attribute
¶
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
¶
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.