libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory
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.CloudDirectory.ListTagsForResource

Description

Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTagsForResource Source #

See: newListTagsForResource smart constructor.

Constructors

ListTagsForResource' 

Fields

  • nextToken :: Maybe Text

    The pagination token. This is for future use. Currently pagination is not supported for tagging.

  • maxResults :: Maybe Natural

    The MaxResults parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

Instances

Instances details
Eq ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Read ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Show ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Generic ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Associated Types

type Rep ListTagsForResource :: Type -> Type #

NFData ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Methods

rnf :: ListTagsForResource -> () #

Hashable ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

ToJSON ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

AWSPager ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

AWSRequest ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Associated Types

type AWSResponse ListTagsForResource #

ToHeaders ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

ToPath ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

ToQuery ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

type Rep ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

type Rep ListTagsForResource = D1 ('MetaData "ListTagsForResource" "Amazonka.CloudDirectory.ListTagsForResource" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "ListTagsForResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListTagsForResource Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

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:nextToken:ListTagsForResource', listTagsForResource_nextToken - The pagination token. This is for future use. Currently pagination is not supported for tagging.

$sel:maxResults:ListTagsForResource', listTagsForResource_maxResults - The MaxResults parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.

$sel:resourceArn:ListTagsForResource', listTagsForResource_resourceArn - The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

Request Lenses

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

The pagination token. This is for future use. Currently pagination is not supported for tagging.

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

The MaxResults parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.

listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #

The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

Destructuring the Response

data ListTagsForResourceResponse Source #

See: newListTagsForResourceResponse smart constructor.

Constructors

ListTagsForResourceResponse' 

Fields

  • nextToken :: Maybe Text

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

  • tags :: Maybe [Tag]

    A list of tag key value pairs that are associated with the response.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Read ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Show ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Generic ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

Associated Types

type Rep ListTagsForResourceResponse :: Type -> Type #

NFData ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

type Rep ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.ListTagsForResource

type Rep ListTagsForResourceResponse = D1 ('MetaData "ListTagsForResourceResponse" "Amazonka.CloudDirectory.ListTagsForResource" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" '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:

$sel:nextToken:ListTagsForResource', listTagsForResourceResponse_nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:tags:ListTagsForResourceResponse', listTagsForResourceResponse_tags - A list of tag key value pairs that are associated with the response.

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

Response Lenses

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

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

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

A list of tag key value pairs that are associated with the response.