libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ResourceGroups.GetTags

Description

Returns a list of tags that are associated with a resource group, specified by an ARN.

Minimum permissions

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

  • resource-groups:GetTags
Synopsis

Creating a Request

data GetTags Source #

See: newGetTags smart constructor.

Constructors

GetTags' 

Fields

  • arn :: Text

    The ARN of the resource group whose tags you want to retrieve.

Instances

Instances details
Eq GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Methods

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

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

Read GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Show GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Generic GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Associated Types

type Rep GetTags :: Type -> Type #

Methods

from :: GetTags -> Rep GetTags x #

to :: Rep GetTags x -> GetTags #

NFData GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Methods

rnf :: GetTags -> () #

Hashable GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Methods

hashWithSalt :: Int -> GetTags -> Int #

hash :: GetTags -> Int #

AWSRequest GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Associated Types

type AWSResponse GetTags #

ToHeaders GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Methods

toHeaders :: GetTags -> [Header] #

ToPath GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Methods

toPath :: GetTags -> ByteString #

ToQuery GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

type Rep GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

type Rep GetTags = D1 ('MetaData "GetTags" "Amazonka.ResourceGroups.GetTags" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "GetTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetTags Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

newGetTags Source #

Create a value of GetTags 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:arn:GetTags', getTags_arn - The ARN of the resource group whose tags you want to retrieve.

Request Lenses

getTags_arn :: Lens' GetTags Text Source #

The ARN of the resource group whose tags you want to retrieve.

Destructuring the Response

data GetTagsResponse Source #

See: newGetTagsResponse smart constructor.

Constructors

GetTagsResponse' 

Fields

Instances

Instances details
Eq GetTagsResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Read GetTagsResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Show GetTagsResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Generic GetTagsResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Associated Types

type Rep GetTagsResponse :: Type -> Type #

NFData GetTagsResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

Methods

rnf :: GetTagsResponse -> () #

type Rep GetTagsResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GetTags

type Rep GetTagsResponse = D1 ('MetaData "GetTagsResponse" "Amazonka.ResourceGroups.GetTags" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "GetTagsResponse'" '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))))

newGetTagsResponse Source #

Create a value of GetTagsResponse 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:arn:GetTags', getTagsResponse_arn - The ARN of the tagged resource group.

$sel:tags:GetTagsResponse', getTagsResponse_tags - The tags associated with the specified resource group.

$sel:httpStatus:GetTagsResponse', getTagsResponse_httpStatus - The response's http status code.

Response Lenses

getTagsResponse_arn :: Lens' GetTagsResponse (Maybe Text) Source #

The ARN of the tagged resource group.

getTagsResponse_tags :: Lens' GetTagsResponse (Maybe (HashMap Text Text)) Source #

The tags associated with the specified resource group.

getTagsResponse_httpStatus :: Lens' GetTagsResponse Int Source #

The response's http status code.