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 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 Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an Amazon S3 bucket must start with https://. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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