/AWS1/IF_FRM=>SETSTACKPOLICY()¶
About SetStackPolicy¶
Sets a stack policy for a specified stack.
Method Signature¶
METHODS /AWS1/IF_FRM~SETSTACKPOLICY
IMPORTING
!IV_STACKNAME TYPE /AWS1/FRMSTACKNAME OPTIONAL
!IV_STACKPOLICYBODY TYPE /AWS1/FRMSTACKPOLICYBODY OPTIONAL
!IV_STACKPOLICYURL TYPE /AWS1/FRMSTACKPOLICYURL OPTIONAL
RAISING
/AWS1/CX_FRMCLIENTEXC
/AWS1/CX_FRMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_stackname TYPE /AWS1/FRMSTACKNAME /AWS1/FRMSTACKNAME¶
The name or unique stack ID that you want to associate a policy with.
Optional arguments:¶
iv_stackpolicybody TYPE /AWS1/FRMSTACKPOLICYBODY /AWS1/FRMSTACKPOLICYBODY¶
Structure that contains the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the
StackPolicyBodyor theStackPolicyURLparameter, but not both.
iv_stackpolicyurl TYPE /AWS1/FRMSTACKPOLICYURL /AWS1/FRMSTACKPOLICYURL¶
Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an Amazon S3 bucket must start with
https://. URLs from S3 static websites are not supported.You can specify either the
StackPolicyBodyor theStackPolicyURLparameter, but not both.
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.
lo_client->setstackpolicy(
iv_stackname = |string|
iv_stackpolicybody = |string|
iv_stackpolicyurl = |string|
).