You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudFormation::Types::SetStackPolicyInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/types.rb

Overview

Note:

When making an API call, you may pass SetStackPolicyInput data as a hash:

{
  stack_name: "StackName", # required
  stack_policy_body: "StackPolicyBody",
  stack_policy_url: "StackPolicyURL",
}

The input for the SetStackPolicy action.

Instance Attribute Summary collapse

Instance Attribute Details

#stack_nameString

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

Returns:

  • (String)


3297
3298
3299
3300
3301
3302
# File 'gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/types.rb', line 3297

class SetStackPolicyInput < Struct.new(
  :stack_name,
  :stack_policy_body,
  :stack_policy_url)
  include Aws::Structure
end

#stack_policy_bodyString

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.

Returns:

  • (String)


3297
3298
3299
3300
3301
3302
# File 'gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/types.rb', line 3297

class SetStackPolicyInput < Struct.new(
  :stack_name,
  :stack_policy_body,
  :stack_policy_url)
  include Aws::Structure
end

#stack_policy_urlString

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.

Returns:

  • (String)


3297
3298
3299
3300
3301
3302
# File 'gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/types.rb', line 3297

class SetStackPolicyInput < Struct.new(
  :stack_name,
  :stack_policy_body,
  :stack_policy_url)
  include Aws::Structure
end