Class: Aws::IAM::Types::Tag

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

Overview

Note:

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

{
  key: "tagKeyType", # required
  value: "tagValueType", # required
}

A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see [Tagging IAM resources] in the *IAM User Guide*.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The key name that can be used to look up or retrieve the associated value. For example, `Department` or `Cost Center` are common choices.

Returns:

  • (String)

11097
11098
11099
11100
11101
11102
# File 'lib/aws-sdk-iam/types.rb', line 11097

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

#valueString

The value associated with this tag. For example, tags with a key name of `Department` could have values such as `Human Resources`, `Accounting`, and `Support`. Tags with a key name of `Cost Center` might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

<note markdown=“1”> Amazon Web Services always interprets the tag `Value` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

</note>

Returns:

  • (String)

11097
11098
11099
11100
11101
11102
# File 'lib/aws-sdk-iam/types.rb', line 11097

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