/AWS1/IF_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 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.
Method Signature¶
METHODS /AWS1/IF_FRM~UPDATETERMINATIONPROTECTION
IMPORTING
!IV_ENBTERMINATIONPROTECTION TYPE /AWS1/FRMENBTERMINATIONPROTE00 OPTIONAL
!IV_STACKNAME TYPE /AWS1/FRMSTACKNAMEORID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_frmupterminationpro01
RAISING
/AWS1/CX_FRMCLIENTEXC
/AWS1/CX_FRMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
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¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->updateterminationprotection(
iv_enbterminationprotection = ABAP_TRUE
iv_stackname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_stackid = lo_result->get_stackid( ).
ENDIF.