Class: Aws::EC2::Types::Tag

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Note:

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

{
  key: "String",
  value: "String",
}

Describes a tag.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The key of the tag.

Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with ‘aws:`.

Returns:

  • (String)


35177
35178
35179
35180
35181
# File 'lib/aws-sdk-ec2/types.rb', line 35177

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

#valueString

The value of the tag.

Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.

Returns:

  • (String)


35177
35178
35179
35180
35181
# File 'lib/aws-sdk-ec2/types.rb', line 35177

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