Sets a stack policy for a specified stack.
Request ParametersFor information about the parameters that are common to all actions, see Common Parameters.
The name or unique stack ID that you want to associate a policy with.
Type: String
Required: Yes
Structure that contains the stack policy body. For more information, see Prevent updates to stack resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 16384.
Required: No
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 AWS 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 the StackPolicyURL
parameter, but not both.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 5120.
Required: No
For information about the errors that are common to all actions, see Common Errors.
Examples SetStackPolicyThis example illustrates one usage of SetStackPolicy.
Sample Request
https://cloudformation.us-east-1.amazonaws.com/
?Action=SetStackPolicy
&StackName=MyStack
&StackPolicyBody=[Stack Policy Document]
&Version=2010-05-15
&SignatureVersion=2
&Timestamp=2010-07-27T22%3A26%3A28.000Z
&AWSAccessKeyId=[AWS Access KeyID]
&Signature=[Signature]
Sample Response
<SetStackPolicyResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/">
<ResponseMetadata>
<RequestId>e7d8c346-744b-11e5-b40b-example</RequestId>
</ResponseMetadata>
</SetStackPolicyResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
RollbackStack
SetTypeConfiguration
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4