amazonka-storagegateway-1.5.0: Amazon Storage Gateway SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.StorageGateway.ListTagsForResource

Contents

Description

Lists the tags that have been added to the specified resource. This operation is only supported in the cached volume, stored volume and tape gateway architecture.

Synopsis

Creating a Request

listTagsForResource Source #

Creates a value of ListTagsForResource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ltfrMarker - An opaque string that indicates the position at which to begin returning the list of tags.
  • ltfrLimit - Specifies that the list of tags returned be limited to the specified number of items.
  • ltfrResourceARN - The Amazon Resource Name (ARN) of the resource for which you want to list tags.

data ListTagsForResource Source #

ListTagsForResourceInput

See: listTagsForResource smart constructor.

Instances

Eq ListTagsForResource Source # 
Data ListTagsForResource Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTagsForResource -> c ListTagsForResource #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTagsForResource #

toConstr :: ListTagsForResource -> Constr #

dataTypeOf :: ListTagsForResource -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListTagsForResource) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTagsForResource) #

gmapT :: (forall b. Data b => b -> b) -> ListTagsForResource -> ListTagsForResource #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTagsForResource -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTagsForResource -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTagsForResource -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTagsForResource -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTagsForResource -> m ListTagsForResource #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTagsForResource -> m ListTagsForResource #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTagsForResource -> m ListTagsForResource #

Read ListTagsForResource Source # 
Show ListTagsForResource Source # 
Generic ListTagsForResource Source # 
Hashable ListTagsForResource Source # 
ToJSON ListTagsForResource Source # 
NFData ListTagsForResource Source # 

Methods

rnf :: ListTagsForResource -> () #

AWSRequest ListTagsForResource Source # 
ToQuery ListTagsForResource Source # 
ToPath ListTagsForResource Source # 
ToHeaders ListTagsForResource Source # 
type Rep ListTagsForResource Source # 
type Rep ListTagsForResource = D1 (MetaData "ListTagsForResource" "Network.AWS.StorageGateway.ListTagsForResource" "amazonka-storagegateway-1.5.0-Dl0pEQb6pvFBwTkfuWFwCu" False) (C1 (MetaCons "ListTagsForResource'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ltfrMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ltfrLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_ltfrResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListTagsForResource Source # 

Request Lenses

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

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

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

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

ltfrResourceARN :: Lens' ListTagsForResource Text Source #

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

Destructuring the Response

listTagsForResourceResponse Source #

Creates a value of ListTagsForResourceResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ltfrrsResourceARN - he Amazon Resource Name (ARN) of the resource for which you want to list tags.
  • ltfrrsMarker - An opaque string that indicates the position at which to stop returning the list of tags.
  • ltfrrsTags - An array that contains the tags for the specified resource.
  • ltfrrsResponseStatus - -- | The response status code.

data ListTagsForResourceResponse Source #

ListTagsForResourceOutput

See: listTagsForResourceResponse smart constructor.

Instances

Eq ListTagsForResourceResponse Source # 
Data ListTagsForResourceResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTagsForResourceResponse -> c ListTagsForResourceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTagsForResourceResponse #

toConstr :: ListTagsForResourceResponse -> Constr #

dataTypeOf :: ListTagsForResourceResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListTagsForResourceResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTagsForResourceResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListTagsForResourceResponse -> ListTagsForResourceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTagsForResourceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTagsForResourceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTagsForResourceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTagsForResourceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTagsForResourceResponse -> m ListTagsForResourceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTagsForResourceResponse -> m ListTagsForResourceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTagsForResourceResponse -> m ListTagsForResourceResponse #

Read ListTagsForResourceResponse Source # 
Show ListTagsForResourceResponse Source # 
Generic ListTagsForResourceResponse Source # 
NFData ListTagsForResourceResponse Source # 
type Rep ListTagsForResourceResponse Source # 
type Rep ListTagsForResourceResponse = D1 (MetaData "ListTagsForResourceResponse" "Network.AWS.StorageGateway.ListTagsForResource" "amazonka-storagegateway-1.5.0-Dl0pEQb6pvFBwTkfuWFwCu" False) (C1 (MetaCons "ListTagsForResourceResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ltfrrsResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ltfrrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ltfrrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag]))) (S1 (MetaSel (Just Symbol "_ltfrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

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

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

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

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

ltfrrsTags :: Lens' ListTagsForResourceResponse [Tag] Source #

An array that contains the tags for the specified resource.