AWS SDK Version 3 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.

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.CloudFormation.dll
Version: 3.x.y.z

Syntax

C#
public class SetStackPolicyRequest : AmazonCloudFormationRequest
         IAmazonWebServiceRequest

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 (maximum size: 16 KB) 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 Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms