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

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)


23797
23798
23799
23800
23801
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 23797

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)


23797
23798
23799
23800
23801
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 23797

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