CloudFormation.Client.
get_stack_policy
(**kwargs)¶Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
See also: AWS API Documentation
Request Syntax
response = client.get_stack_policy(
StackName='string'
)
[REQUIRED]
The name or unique stack ID that's associated with the stack whose policy you want to get.
{
'StackPolicyBody': 'string'
}
Response Structure
The output for the GetStackPolicy action.
Structure containing the stack policy body. (For more information, go to Prevent Updates to Stack Resources in the CloudFormation User Guide.)