amazonka-athena-2.0: Amazon Athena 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.Athena.ListTagsForResource

Description

Lists the tags associated with an Athena workgroup or data catalog resource.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTagsForResource Source #

See: newListTagsForResource smart constructor.

Constructors

ListTagsForResource' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to be returned per request that lists the tags for the resource.

  • nextToken :: Maybe Text

    The token for the next set of results, or null if there are no additional results for this request, where the request lists the tags for the resource with the specified ARN.

  • resourceARN :: Text

    Lists the tags for the resource with the specified ARN.

Instances

Instances details
ToJSON ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

ToHeaders ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

ToPath ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

ToQuery ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

AWSPager ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

AWSRequest ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Associated Types

type AWSResponse ListTagsForResource #

Generic ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Associated Types

type Rep ListTagsForResource :: Type -> Type #

Read ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Show ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

NFData ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Methods

rnf :: ListTagsForResource -> () #

Eq ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Hashable ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

type AWSResponse ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

type Rep ListTagsForResource Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

type Rep ListTagsForResource = D1 ('MetaData "ListTagsForResource" "Amazonka.Athena.ListTagsForResource" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" '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 - The maximum number of results to be returned per request that lists the tags for the resource.

ListTagsForResource, listTagsForResource_nextToken - The token for the next set of results, or null if there are no additional results for this request, where the request lists the tags for the resource with the specified ARN.

$sel:resourceARN:ListTagsForResource', listTagsForResource_resourceARN - Lists the tags for the resource with the specified ARN.

Request Lenses

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

The maximum number of results to be returned per request that lists the tags for the resource.

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

The token for the next set of results, or null if there are no additional results for this request, where the request lists the tags for the resource with the specified ARN.

listTagsForResource_resourceARN :: Lens' ListTagsForResource Text Source #

Lists the tags for the resource with the specified ARN.

Destructuring the Response

data ListTagsForResourceResponse Source #

See: newListTagsForResourceResponse smart constructor.

Constructors

ListTagsForResourceResponse' 

Fields

  • nextToken :: Maybe Text

    A token to be used by the next request if this request is truncated.

  • tags :: Maybe [Tag]

    The list of tags associated with the specified resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Associated Types

type Rep ListTagsForResourceResponse :: Type -> Type #

Read ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Show ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

NFData ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

Eq ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

type Rep ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.Athena.ListTagsForResource

type Rep ListTagsForResourceResponse = D1 ('MetaData "ListTagsForResourceResponse" "Amazonka.Athena.ListTagsForResource" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" '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 [Tag])) :*: 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 - A token to be used by the next request if this request is truncated.

$sel:tags:ListTagsForResourceResponse', listTagsForResourceResponse_tags - The list of tags associated with the specified resource.

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

Response Lenses

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

A token to be used by the next request if this request is truncated.

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

The list of tags associated with the specified resource.