You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IAM::Types::Tag
- Inherits:
-
Struct
- Object
- Struct
- Aws::IAM::Types::Tag
- Defined in:
- (unknown)
Overview
When passing Tag as input to an Aws::Client method, you can use a vanilla Hash:
{
key: "tagKeyType", # required
value: "tagValueType", # required
}
A structure that represents user-provided metadata that can be associated with a resource such as an IAM user or role. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.
Instance Attribute Summary collapse
-
#key ⇒ String
The key name that can be used to look up or retrieve the associated value.
-
#value ⇒ String
The value associated with this tag.
Instance Attribute Details
#key ⇒ String
The key name that can be used to look up or retrieve the associated
value. For example, Department
or Cost Center
are common choices.
#value ⇒ String
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.
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.