libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
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.StorageGateway.ListTagsForResource

Description

Lists the tags that have been added to the specified resource. This operation is supported in storage gateways of all types.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTagsForResource Source #

ListTagsForResourceInput

See: newListTagsForResource smart constructor.

Constructors

ListTagsForResource' 

Fields

  • marker :: Maybe Text

    An opaque string that indicates the position at which to begin returning the list of tags.

  • limit :: Maybe Natural

    Specifies that the list of tags returned be limited to the specified number of items.

  • resourceARN :: Text

    The Amazon Resource Name (ARN) of the resource for which you want to list tags.

Instances

Instances details
Eq ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Read ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Show ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Generic ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Associated Types

type Rep ListTagsForResource :: Type -> Type #

NFData ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Methods

rnf :: ListTagsForResource -> () #

Hashable ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

ToJSON ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

AWSPager ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

AWSRequest ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Associated Types

type AWSResponse ListTagsForResource #

ToHeaders ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

ToPath ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

ToQuery ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

type Rep ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

type Rep ListTagsForResource = D1 ('MetaData "ListTagsForResource" "Amazonka.StorageGateway.ListTagsForResource" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListTagsForResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "resourceARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListTagsForResource Source # 
Instance details

Defined in Amazonka.StorageGateway.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:marker:ListTagsForResource', listTagsForResource_marker - An opaque string that indicates the position at which to begin returning the list of tags.

$sel:limit:ListTagsForResource', listTagsForResource_limit - Specifies that the list of tags returned be limited to the specified number of items.

$sel:resourceARN:ListTagsForResource', listTagsForResource_resourceARN - The Amazon Resource Name (ARN) of the resource for which you want to list tags.

Request Lenses

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

An opaque string that indicates the position at which to begin returning the list of tags.

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

Specifies that the list of tags returned be limited to the specified number of items.

listTagsForResource_resourceARN :: Lens' ListTagsForResource Text Source #

The Amazon Resource Name (ARN) of the resource for which you want to list tags.

Destructuring the Response

data ListTagsForResourceResponse Source #

ListTagsForResourceOutput

See: newListTagsForResourceResponse smart constructor.

Constructors

ListTagsForResourceResponse' 

Fields

  • resourceARN :: Maybe Text

    The Amazon Resource Name (ARN) of the resource for which you want to list tags.

  • marker :: Maybe Text

    An opaque string that indicates the position at which to stop returning the list of tags.

  • tags :: Maybe [Tag]

    An array that contains the tags for the specified resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Read ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Show ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Generic ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

Associated Types

type Rep ListTagsForResourceResponse :: Type -> Type #

NFData ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

type Rep ListTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTagsForResource

type Rep ListTagsForResourceResponse = D1 ('MetaData "ListTagsForResourceResponse" "Amazonka.StorageGateway.ListTagsForResource" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListTagsForResourceResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resourceARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "marker") '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:resourceARN:ListTagsForResource', listTagsForResourceResponse_resourceARN - The Amazon Resource Name (ARN) of the resource for which you want to list tags.

$sel:marker:ListTagsForResource', listTagsForResourceResponse_marker - An opaque string that indicates the position at which to stop returning the list of tags.

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

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

Response Lenses

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

The Amazon Resource Name (ARN) of the resource for which you want to list tags.

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

An opaque string that indicates the position at which to stop returning the list of tags.

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

An array that contains the tags for the specified resource.