AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Container for the parameters to the SetStackPolicy operation. Sets a stack policy for a specified stack.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CloudFormation.AmazonCloudFormationRequest
      Amazon.CloudFormation.Model.SetStackPolicyRequest

Namespace: Amazon.CloudFormation.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class SetStackPolicyRequest : AmazonCloudFormationRequest
         IRequestEvents

The SetStackPolicyRequest type exposes the following members

Constructors

NameDescription
Public Method SetStackPolicyRequest()

Properties

NameTypeDescription
Public Property StackName System.String Gets and sets the property StackName.

The name or unique stack ID that you want to associate a policy with.

Public Property StackPolicyBody System.String Gets and sets the property StackPolicyBody.

Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

Public Property StackPolicyURL System.String Gets and sets the property 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 can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1