update_termination_protection¶
Operation¶
update_termination_protection
¶
update_termination_protection(request: UpdateTerminationProtectionInput | UpdateTerminationProtectionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateTerminationProtectionInputDict]) -> 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 |
|---|---|---|---|
request
|
UpdateTerminationProtectionInput | UpdateTerminationProtectionInputDict | 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[UpdateTerminationProtectionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
UpdateTerminationProtectionOutput
|
An instance of |
update_termination_protection
async
¶
update_termination_protection(request: UpdateTerminationProtectionInput | UpdateTerminationProtectionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateTerminationProtectionInputDict]) -> 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 |
|---|---|---|---|
request
|
UpdateTerminationProtectionInput | UpdateTerminationProtectionInputDict | 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[UpdateTerminationProtectionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
UpdateTerminationProtectionOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
UpdateTerminationProtectionInput
dataclass
¶
Output¶
UpdateTerminationProtectionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateTerminationProtectionOutput structure.