amazonka-datasync-2.0: Amazon DataSync 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.DataSync.ListTagsForResource

Description

Returns all the tags associated with an Amazon Web Services resource.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTagsForResource Source #

ListTagsForResourceRequest

See: newListTagsForResource smart constructor.

Constructors

ListTagsForResource' 

Fields

  • maxResults :: Maybe Natural

    Specifies how many results that you want in the response.

  • nextToken :: Maybe Text

    Specifies an opaque string that indicates the position to begin the next list of results in the response.

  • resourceArn :: Text

    Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on.

Instances

Instances details
ToJSON ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

ToHeaders ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

ToPath ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

ToQuery ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

AWSPager ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

AWSRequest ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Associated Types

type AWSResponse ListTagsForResource #

Generic ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Associated Types

type Rep ListTagsForResource :: Type -> Type #

Read ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Show ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

NFData ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Methods

rnf :: ListTagsForResource -> () #

Eq ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Hashable ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

type AWSResponse ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

type Rep ListTagsForResource Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

type Rep ListTagsForResource = D1 ('MetaData "ListTagsForResource" "Amazonka.DataSync.ListTagsForResource" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "ListTagsForResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListTagsForResource Source #

Create a value of ListTagsForResource 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:maxResults:ListTagsForResource', listTagsForResource_maxResults - Specifies how many results that you want in the response.

ListTagsForResource, listTagsForResource_nextToken - Specifies an opaque string that indicates the position to begin the next list of results in the response.

$sel:resourceArn:ListTagsForResource', listTagsForResource_resourceArn - Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on.

Request Lenses

listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural) Source #

Specifies how many results that you want in the response.

listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #

Specifies an opaque string that indicates the position to begin the next list of results in the response.

listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #

Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on.

Destructuring the Response

data ListTagsForResourceResponse Source #

ListTagsForResourceResponse

See: newListTagsForResourceResponse smart constructor.

Constructors

ListTagsForResourceResponse' 

Fields

Instances

Instances details
Generic ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Associated Types

type Rep ListTagsForResourceResponse :: Type -> Type #

Read ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Show ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

NFData ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

Eq ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

type Rep ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListTagsForResource

type Rep ListTagsForResourceResponse = D1 ('MetaData "ListTagsForResourceResponse" "Amazonka.DataSync.ListTagsForResource" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "ListTagsForResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagListEntry])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTagsForResourceResponse Source #

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

ListTagsForResource, listTagsForResourceResponse_nextToken - The opaque string that indicates the position to begin the next list of results in the response.

$sel:tags:ListTagsForResourceResponse', listTagsForResourceResponse_tags - An array of tags applied to the specified resource.

$sel:httpStatus:ListTagsForResourceResponse', listTagsForResourceResponse_httpStatus - The response's http status code.

Response Lenses

listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #

The opaque string that indicates the position to begin the next list of results in the response.

listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [TagListEntry]) Source #

An array of tags applied to the specified resource.