CloudFormationClient.update_termination_protection
rboto-cloudformation==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
UpdateTerminationProtectionOutput,
)
Signature
async def update_termination_protection(
*,
enable_termination_protection: bool,
stack_name: str,
) -> UpdateTerminationProtectionOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
enable_termination_protection |
Yes | Whether to enable termination protection on the specified stack. |
stack_name |
Yes | The name or unique ID of the stack for which you want to set termination protection. |
Output
UpdateTerminationProtectionOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
stack_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
UpdateTerminationProtectionOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
No modeled service errors for this operation.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.