AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

SetStackPolicyInput

import "github.com/aws/aws-sdk-go/service/cloudformation"

type SetStackPolicyInput struct { StackName *string `type:"string" required:"true"` StackPolicyBody *string `min:"1" type:"string"` StackPolicyURL *string `min:"1" type:"string"` }

The input for the SetStackPolicy action.

StackName

Type: *string

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

StackName is a required field

StackPolicyBody

Type: *string

Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

StackPolicyURL

Type: *string

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.

Method

GoString

func (s SetStackPolicyInput) GoString() string

GoString returns the string representation

SetStackName

func (s *SetStackPolicyInput) SetStackName(v string) *SetStackPolicyInput

SetStackName sets the StackName field's value.

SetStackPolicyBody

func (s *SetStackPolicyInput) SetStackPolicyBody(v string) *SetStackPolicyInput

SetStackPolicyBody sets the StackPolicyBody field's value.

SetStackPolicyURL

func (s *SetStackPolicyInput) SetStackPolicyURL(v string) *SetStackPolicyInput

SetStackPolicyURL sets the StackPolicyURL field's value.

String

func (s SetStackPolicyInput) String() string

String returns the string representation

Validate

func (s *SetStackPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: