amazonka-fsx-2.0: Amazon FSx 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.FSx.ListTagsForResource

Description

Lists tags for Amazon FSx resources.

When retrieving all tags, you can optionally specify the MaxResults parameter to limit the number of tags in a response. If more tags remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

This action is used in an iterative process to retrieve a list of your tags. ListTagsForResource is called first without a NextTokenvalue. Then the action continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken.

When using this action, keep the following in mind:

  • The implementation might return fewer than MaxResults file system descriptions while still including a NextToken value.
  • The order of tags returned in the response of one ListTagsForResource call and the order of tags returned across the responses of a multi-call iteration is unspecified.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTagsForResource Source #

The request object for ListTagsForResource operation.

See: newListTagsForResource smart constructor.

Constructors

ListTagsForResource' 

Fields

  • maxResults :: Maybe Natural

    Maximum number of tags to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

  • nextToken :: Maybe Text

    Opaque pagination token returned from a previous ListTagsForResource operation (String). If a token present, the action continues the list from where the returning call left off.

  • resourceARN :: Text

    The ARN of the Amazon FSx resource that will have its tags listed.

Instances

Instances details
ToJSON ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

ToHeaders ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

ToPath ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

ToQuery ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

AWSPager ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

AWSRequest ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Associated Types

type AWSResponse ListTagsForResource #

Generic ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Associated Types

type Rep ListTagsForResource :: Type -> Type #

Read ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Show ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

NFData ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Methods

rnf :: ListTagsForResource -> () #

Eq ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Hashable ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

type AWSResponse ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

type Rep ListTagsForResource Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

type Rep ListTagsForResource = D1 ('MetaData "ListTagsForResource" "Amazonka.FSx.ListTagsForResource" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" '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 - Maximum number of tags to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

ListTagsForResource, listTagsForResource_nextToken - Opaque pagination token returned from a previous ListTagsForResource operation (String). If a token present, the action continues the list from where the returning call left off.

ListTagsForResource, listTagsForResource_resourceARN - The ARN of the Amazon FSx resource that will have its tags listed.

Request Lenses

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

Maximum number of tags to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

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

Opaque pagination token returned from a previous ListTagsForResource operation (String). If a token present, the action continues the list from where the returning call left off.

listTagsForResource_resourceARN :: Lens' ListTagsForResource Text Source #

The ARN of the Amazon FSx resource that will have its tags listed.

Destructuring the Response

data ListTagsForResourceResponse Source #

The response object for ListTagsForResource operation.

See: newListTagsForResourceResponse smart constructor.

Constructors

ListTagsForResourceResponse' 

Fields

  • nextToken :: Maybe Text

    This is present if there are more tags than returned in the response (String). You can use the NextToken value in the later request to fetch the tags.

  • tags :: Maybe (NonEmpty Tag)

    A list of tags on the resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Associated Types

type Rep ListTagsForResourceResponse :: Type -> Type #

Read ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Show ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

NFData ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

Eq ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

type Rep ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.FSx.ListTagsForResource

type Rep ListTagsForResourceResponse = D1 ('MetaData "ListTagsForResourceResponse" "Amazonka.FSx.ListTagsForResource" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" '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 (NonEmpty 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 - This is present if there are more tags than returned in the response (String). You can use the NextToken value in the later request to fetch the tags.

ListTagsForResourceResponse, listTagsForResourceResponse_tags - A list of tags on the resource.

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

Response Lenses

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

This is present if there are more tags than returned in the response (String). You can use the NextToken value in the later request to fetch the tags.