amazonka-ram-2.0: Amazon Resource Access Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RAM.Types.Tag

Description

 
Synopsis

Documentation

data Tag Source #

A structure containing a tag. A tag is metadata that you can attach to your resources to help organize and categorize them. You can also use them to help you secure your resources. For more information, see Controlling access to Amazon Web Services resources using tags.

For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.

See: newTag smart constructor.

Constructors

Tag' 

Fields

  • key :: Maybe Text

    The key, or name, attached to the tag. Every tag must have a key. Key names are case sensitive.

  • value :: Maybe Text

    The string value attached to the tag. The value can be an empty string. Key values are case sensitive.

Instances

Instances details
FromJSON Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

ToJSON Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

Generic Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

Associated Types

type Rep Tag :: Type -> Type #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

Read Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

Show Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

NFData Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

Methods

rnf :: Tag -> () #

Eq Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Hashable Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

type Rep Tag Source # 
Instance details

Defined in Amazonka.RAM.Types.Tag

type Rep Tag = D1 ('MetaData "Tag" "Amazonka.RAM.Types.Tag" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newTag :: Tag Source #

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, or name, attached to the tag. Every tag must have a key. Key names are case sensitive.

$sel:value:Tag', tag_value - The string value attached to the tag. The value can be an empty string. Key values are case sensitive.

tag_key :: Lens' Tag (Maybe Text) Source #

The key, or name, attached to the tag. Every tag must have a key. Key names are case sensitive.

tag_value :: Lens' Tag (Maybe Text) Source #

The string value attached to the tag. The value can be an empty string. Key values are case sensitive.