libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail
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.CloudTrail.ListTags

Description

Lists the tags for the trail in the current region.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTags Source #

Specifies a list of trail tags to return.

See: newListTags smart constructor.

Constructors

ListTags' 

Fields

  • nextToken :: Maybe Text

    Reserved for future use.

  • resourceIdList :: [Text]

    Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The following is the format of a trail ARN.

    arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Instances

Instances details
Eq ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Read ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Show ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Generic ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Associated Types

type Rep ListTags :: Type -> Type #

Methods

from :: ListTags -> Rep ListTags x #

to :: Rep ListTags x -> ListTags #

NFData ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Methods

rnf :: ListTags -> () #

Hashable ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Methods

hashWithSalt :: Int -> ListTags -> Int #

hash :: ListTags -> Int #

ToJSON ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

AWSPager ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

AWSRequest ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Associated Types

type AWSResponse ListTags #

ToHeaders ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Methods

toHeaders :: ListTags -> [Header] #

ToPath ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

ToQuery ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

type Rep ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

type Rep ListTags = D1 ('MetaData "ListTags" "Amazonka.CloudTrail.ListTags" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "ListTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceIdList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))
type AWSResponse ListTags Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

newListTags :: ListTags Source #

Create a value of ListTags 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:nextToken:ListTags', listTags_nextToken - Reserved for future use.

$sel:resourceIdList:ListTags', listTags_resourceIdList - Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Request Lenses

listTags_nextToken :: Lens' ListTags (Maybe Text) Source #

Reserved for future use.

listTags_resourceIdList :: Lens' ListTags [Text] Source #

Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The following is the format of a trail ARN.

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Destructuring the Response

data ListTagsResponse Source #

Returns the objects or data listed below if successful. Otherwise, returns an error.

See: newListTagsResponse smart constructor.

Constructors

ListTagsResponse' 

Fields

Instances

Instances details
Eq ListTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Read ListTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Show ListTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Generic ListTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Associated Types

type Rep ListTagsResponse :: Type -> Type #

NFData ListTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

Methods

rnf :: ListTagsResponse -> () #

type Rep ListTagsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTags

type Rep ListTagsResponse = D1 ('MetaData "ListTagsResponse" "Amazonka.CloudTrail.ListTags" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "ListTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceTagList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResourceTag])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTagsResponse Source #

Create a value of ListTagsResponse 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:nextToken:ListTags', listTagsResponse_nextToken - Reserved for future use.

$sel:resourceTagList:ListTagsResponse', listTagsResponse_resourceTagList - A list of resource tags.

$sel:httpStatus:ListTagsResponse', listTagsResponse_httpStatus - The response's http status code.

Response Lenses

listTagsResponse_httpStatus :: Lens' ListTagsResponse Int Source #

The response's http status code.