/AWS1/IF_FRM=>SETSTACKPOLICY()
¶
About SetStackPolicy¶
Sets a stack policy for a specified stack.
Method Signature¶
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
StackPolicyBody
or theStackPolicyURL
parameter, 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
StackPolicyBody
or theStackPolicyURL
parameter, 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->/aws1/if_frm~setstackpolicy(
iv_stackname = |string|
iv_stackpolicybody = |string|
iv_stackpolicyurl = |string|
).