update_termination_protection¶
Operation¶
update_termination_protection
async
¶
update_termination_protection(input: UpdateTerminationProtectionInput, plugins: list[Plugin] | None = None) -> UpdateTerminationProtectionOutput
Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide.
For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
UpdateTerminationProtectionInput
|
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 |
|---|---|
UpdateTerminationProtectionOutput
|
An instance of |
Input¶
UpdateTerminationProtectionInput
dataclass
¶
Output¶
UpdateTerminationProtectionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateTerminationProtectionOutput structure.