Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
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.
See: newTag
smart constructor.
Tag' | |
|
Instances
Eq Tag Source # | |
Read Tag Source # | |
Show Tag Source # | |
Generic Tag Source # | |
NFData Tag Source # | |
Defined in Amazonka.IAM.Types.Tag | |
Hashable Tag Source # | |
Defined in Amazonka.IAM.Types.Tag | |
ToQuery Tag Source # | |
Defined in Amazonka.IAM.Types.Tag toQuery :: Tag -> QueryString # | |
FromXML Tag Source # | |
type Rep Tag Source # | |
Defined in Amazonka.IAM.Types.Tag type Rep Tag = D1 ('MetaData "Tag" "Amazonka.IAM.Types.Tag" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Tag
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:key:Tag'
, tag_key
- The key name that can be used to look up or retrieve the associated
value. For example, Department
or Cost Center
are common choices.
$sel:value:Tag'
, tag_value
- 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.
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.
tag_key :: Lens' Tag Text Source #
The key name that can be used to look up or retrieve the associated
value. For example, Department
or Cost Center
are common choices.
tag_value :: Lens' Tag Text Source #
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.
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.