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 Protecting a Stack From Being Deleted in the AWS CloudFormation User Guide.
cloudformation_update_termination_protection(
EnableTerminationProtection, StackName)
[required] Whether to enable termination protection on the specified stack.
[required] The name or unique ID of the stack for which you want to set termination protection.
svc$update_termination_protection( EnableTerminationProtection = TRUE|FALSE, StackName = "string" )
For nested stacks, termination protection is set on the root stack and cannot be changed directly on the nested stack.