amazonka-clouddirectory-1.6.0: Amazon CloudDirectory SDK.

Copyright(c) 2013-2018 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.CloudDirectory.ListTagsForResource

Contents

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

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:

  • ltfrNextToken - The pagination token. This is for future use. Currently pagination is not supported for tagging.
  • ltfrMaxResults - The MaxResults parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.
  • ltfrResourceARN - The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

data ListTagsForResource Source #

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 -> () #

AWSPager ListTagsForResource Source # 
AWSRequest ListTagsForResource Source # 
ToHeaders ListTagsForResource Source # 
ToPath ListTagsForResource Source # 
ToQuery ListTagsForResource Source # 
type Rep ListTagsForResource Source # 
type Rep ListTagsForResource = D1 * (MetaData "ListTagsForResource" "Network.AWS.CloudDirectory.ListTagsForResource" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" False) (C1 * (MetaCons "ListTagsForResource'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltfrNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltfrMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_ltfrResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ListTagsForResource Source # 

Request Lenses

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

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

ltfrMaxResults :: 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.

ltfrResourceARN :: Lens' ListTagsForResource Text Source #

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

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:

  • ltfrrsNextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.
  • ltfrrsTags - A list of tag key value pairs that are associated with the response.
  • ltfrrsResponseStatus - -- | The response status code.

data ListTagsForResourceResponse Source #

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.CloudDirectory.ListTagsForResource" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" False) (C1 * (MetaCons "ListTagsForResourceResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltfrrsNextToken") 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

ltfrrsNextToken :: 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.

ltfrrsTags :: Lens' ListTagsForResourceResponse [Tag] Source #

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