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

Class: Aws::Transfer::Types::Tag

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Tag as input to an Aws::Client method, you can use a vanilla Hash:

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

Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to servers, users, and roles. A tag key can take more than one value. For example, to group servers for accounting purposes, you might create a tag called Group and assign the values Research and Accounting to that group.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The name assigned to the tag that you create.

Returns:

  • (String)

    The name assigned to the tag that you create.

#valueString

Contains one or more values that you assigned to the key name you create.

Returns:

  • (String)

    Contains one or more values that you assigned to the key name you create.