amazonka-resourcegroups-2.0: Amazon Resource Groups 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.ResourceGroups.Tag

Description

Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.

Do not store personally identifiable information (PII) or other confidential or sensitive information in tags. We use tags to provide you with billing and administration services. Tags are not intended to be used for private or sensitive data.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:Tag
Synopsis

Creating a Request

data Tag Source #

See: newTag smart constructor.

Constructors

Tag' 

Fields

  • arn :: Text

    The ARN of the resource group to which to add tags.

  • tags :: HashMap Text Text

    The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.

Instances

Instances details
ToJSON Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

ToHeaders Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

toHeaders :: Tag -> [Header] #

ToPath Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

toPath :: Tag -> ByteString #

ToQuery Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

toQuery :: Tag -> QueryString #

AWSRequest Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Associated Types

type AWSResponse Tag #

Generic Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.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.ResourceGroups.Tag

Show Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

NFData Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

rnf :: Tag -> () #

Eq Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

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

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

Hashable Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

type AWSResponse Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

type Rep Tag Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

type Rep Tag = D1 ('MetaData "Tag" "Amazonka.ResourceGroups.Tag" "amazonka-resourcegroups-2.0-B1PbpVYkdAmDCiu1dJFqfU" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))))

newTag Source #

Arguments

:: Text

Tag

-> Tag 

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:

Tag, tag_arn - The ARN of the resource group to which to add tags.

Tag, tag_tags - The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.

Request Lenses

tag_arn :: Lens' Tag Text Source #

The ARN of the resource group to which to add tags.

tag_tags :: Lens' Tag (HashMap Text Text) Source #

The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.

Destructuring the Response

data TagResponse Source #

See: newTagResponse smart constructor.

Constructors

TagResponse' 

Fields

Instances

Instances details
Generic TagResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Associated Types

type Rep TagResponse :: Type -> Type #

Read TagResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Show TagResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

NFData TagResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

Methods

rnf :: TagResponse -> () #

Eq TagResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

type Rep TagResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.Tag

type Rep TagResponse = D1 ('MetaData "TagResponse" "Amazonka.ResourceGroups.Tag" "amazonka-resourcegroups-2.0-B1PbpVYkdAmDCiu1dJFqfU" 'False) (C1 ('MetaCons "TagResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newTagResponse Source #

Create a value of TagResponse 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:

Tag, tagResponse_arn - The ARN of the tagged resource.

Tag, tagResponse_tags - The tags that have been added to the specified resource group.

$sel:httpStatus:TagResponse', tagResponse_httpStatus - The response's http status code.

Response Lenses

tagResponse_arn :: Lens' TagResponse (Maybe Text) Source #

The ARN of the tagged resource.

tagResponse_tags :: Lens' TagResponse (Maybe (HashMap Text Text)) Source #

The tags that have been added to the specified resource group.

tagResponse_httpStatus :: Lens' TagResponse Int Source #

The response's http status code.