update_continuous_deployment_policy¶
Operation¶
update_continuous_deployment_policy
async
¶
update_continuous_deployment_policy(request: UpdateContinuousDeploymentPolicyInput | UpdateContinuousDeploymentPolicyInputDict, /, *, plugins: list[Plugin] | None = None) -> UpdateContinuousDeploymentPolicyOutput
update_continuous_deployment_policy(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateContinuousDeploymentPolicyInputDict]) -> 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 |
|---|---|---|---|
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¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
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.
Dictionaries¶
UpdateContinuousDeploymentPolicyInputDict
¶
Bases: TypedDict
Dictionary form of UpdateContinuousDeploymentPolicyInput.
Attributes¶
continuous_deployment_policy_config
instance-attribute
¶
continuous_deployment_policy_config: Required[ContinuousDeploymentPolicyConfig | ContinuousDeploymentPolicyConfigDict]
The continuous deployment policy configuration.
id
instance-attribute
¶
The identifier 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
¶
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.