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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/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)


44261
44262
44263
44264
44265
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 44261

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)


44261
44262
44263
44264
44265
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 44261

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