AWS SDK for .NET Documentation
SetStackPolicyRequest Class
AmazonAmazon.CloudFormation.ModelSetStackPolicyRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the SetStackPolicy operation.

Sets a stack policy for a specified stack.

Declaration Syntax
C#
public class SetStackPolicyRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
SetStackPolicyRequest()()()()
Initializes a new instance of the SetStackPolicyRequest class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
StackName
The name or stack ID that you want to associate a policy with.

StackPolicyBody
Structure containing the stack policy body. (For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide.) You must pass StackPolicyBody or StackPolicyURL. If both are passed, only StackPolicyBody is used.

Constraints:

Length
1 - 16384


StackPolicyURL
Location of a file containing the stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You must pass StackPolicyBody or StackPolicyURL. If both are passed, only StackPolicyBody is used.

Constraints:

Length
1 - 1350


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithStackName(String) Obsolete.
Sets the StackName property

WithStackPolicyBody(String) Obsolete.
Sets the StackPolicyBody property

WithStackPolicyURL(String) Obsolete.
Sets the StackPolicyURL property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 SetStackPolicyRequest
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)