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

Class: Aws::Lightsail::Types::Tag

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

Overview

Note:

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

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

Describes a tag key and optional value assigned to an Amazon Lightsail resource.

For more information about tags in Lightsail, see the Lightsail Dev Guide.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The key of the tag.

Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Returns:

  • (String)


7250
7251
7252
7253
7254
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 7250

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

#valueString

The value of the tag.

Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Returns:

  • (String)


7250
7251
7252
7253
7254
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 7250

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