Skip to content

/AWS1/CL_FRM=>UPDATETERMINATIONPROTECTION()

About UpdateTerminationProtection

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 CloudFormation User Guide.

For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.

Method Signature

IMPORTING

Required arguments:

IV_ENBTERMINATIONPROTECTION TYPE /AWS1/FRMENBTERMINATIONPROTE00 /AWS1/FRMENBTERMINATIONPROTE00

Whether to enable termination protection on the specified stack.

IV_STACKNAME TYPE /AWS1/FRMSTACKNAMEORID /AWS1/FRMSTACKNAMEORID

The name or unique ID of the stack for which you want to set termination protection.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_FRMUPTERMINATIONPRO01 /AWS1/CL_FRMUPTERMINATIONPRO01