libZSservicesZSamazonka-efsZSamazonka-efs
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.EFS.ListTagsForResource

Description

Lists all tags for a top-level EFS resource. You must provide the ID of the resource that you want to retrieve the tags for.

This operation requires permissions for the elasticfilesystem:DescribeAccessPoints action.

Synopsis

Creating a Request

data ListTagsForResource Source #

See: newListTagsForResource smart constructor.

Constructors

ListTagsForResource' 

Fields

  • nextToken :: Maybe Text

    (Optional) You can use NextToken in a subsequent request to fetch the next page of access point descriptions if the response payload was paginated.

  • maxResults :: Maybe Natural

    (Optional) Specifies the maximum number of tag objects to return in the response. The default value is 100.

  • resourceId :: Text

    Specifies the EFS resource you want to retrieve tags for. You can retrieve tags for EFS file systems and access points using this API endpoint.

Instances

Instances details
Eq ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Read ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Show ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Generic ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Associated Types

type Rep ListTagsForResource :: Type -> Type #

NFData ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Methods

rnf :: ListTagsForResource -> () #

Hashable ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

AWSRequest ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Associated Types

type AWSResponse ListTagsForResource #

ToHeaders ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

ToPath ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

ToQuery ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

type Rep ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

type Rep ListTagsForResource = D1 ('MetaData "ListTagsForResource" "Amazonka.EFS.ListTagsForResource" "libZSservicesZSamazonka-efsZSamazonka-efs" '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 "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListTagsForResource Source # 
Instance details

Defined in Amazonka.EFS.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 - (Optional) You can use NextToken in a subsequent request to fetch the next page of access point descriptions if the response payload was paginated.

$sel:maxResults:ListTagsForResource', listTagsForResource_maxResults - (Optional) Specifies the maximum number of tag objects to return in the response. The default value is 100.

$sel:resourceId:ListTagsForResource', listTagsForResource_resourceId - Specifies the EFS resource you want to retrieve tags for. You can retrieve tags for EFS file systems and access points using this API endpoint.

Request Lenses

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

(Optional) You can use NextToken in a subsequent request to fetch the next page of access point descriptions if the response payload was paginated.

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

(Optional) Specifies the maximum number of tag objects to return in the response. The default value is 100.

listTagsForResource_resourceId :: Lens' ListTagsForResource Text Source #

Specifies the EFS resource you want to retrieve tags for. You can retrieve tags for EFS file systems and access points using this API endpoint.

Destructuring the Response

data ListTagsForResourceResponse Source #

See: newListTagsForResourceResponse smart constructor.

Constructors

ListTagsForResourceResponse' 

Fields

  • nextToken :: Maybe Text

    NextToken is present if the response payload is paginated. You can use NextToken in a subsequent request to fetch the next page of access point descriptions.

  • tags :: Maybe [Tag]

    An array of the tags for the specified EFS resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Read ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Show ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Generic ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

Associated Types

type Rep ListTagsForResourceResponse :: Type -> Type #

NFData ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

type Rep ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.EFS.ListTagsForResource

type Rep ListTagsForResourceResponse = D1 ('MetaData "ListTagsForResourceResponse" "Amazonka.EFS.ListTagsForResource" "libZSservicesZSamazonka-efsZSamazonka-efs" '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 - NextToken is present if the response payload is paginated. You can use NextToken in a subsequent request to fetch the next page of access point descriptions.

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

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

Response Lenses

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

NextToken is present if the response payload is paginated. You can use NextToken in a subsequent request to fetch the next page of access point descriptions.

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

An array of the tags for the specified EFS resource.