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

Class: Aws::CloudFormation::Types::Tag

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 Tag data as a hash:

{
  key: "TagKey", # required
  value: "TagValue", # required
}

The Tag type enables you to specify a key-value pair that can be used to store information about an AWS CloudFormation stack.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

Returns:

  • (String)


4352
4353
4354
4355
4356
# File 'gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/types.rb', line 4352

class Tag < Struct.new(
  :key,
  :value)
  include Aws::Structure
end

#valueString

Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

Returns:

  • (String)


4352
4353
4354
4355
4356
# File 'gems/aws-sdk-cloudformation/lib/aws-sdk-cloudformation/types.rb', line 4352

class Tag < Struct.new(
  :key,
  :value)
  include Aws::Structure
end