amazonka-cloudhsmv2-1.6.0: Amazon CloudHSM V2 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.CloudHSMv2.ListTags

Contents

Description

Gets a list of tags for the specified AWS CloudHSM cluster.

This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTags request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.

This operation returns paginated results.

Synopsis

Creating a Request

listTags Source #

Arguments

:: Text

ltResourceId

-> ListTags 

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

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

  • ltNextToken - The NextToken value that you received in the previous response. Use this value to get more tags.
  • ltMaxResults - The maximum number of tags to return in the response. When there are more tags than the number you specify, the response contains a NextToken value.
  • ltResourceId - The cluster identifier (ID) for the cluster whose tags you are getting. To find the cluster ID, use DescribeClusters .

data ListTags Source #

See: listTags smart constructor.

Instances

Eq ListTags Source # 
Data ListTags Source # 

Methods

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

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

toConstr :: ListTags -> Constr #

dataTypeOf :: ListTags -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTags Source # 
Show ListTags Source # 
Generic ListTags Source # 

Associated Types

type Rep ListTags :: * -> * #

Methods

from :: ListTags -> Rep ListTags x #

to :: Rep ListTags x -> ListTags #

Hashable ListTags Source # 

Methods

hashWithSalt :: Int -> ListTags -> Int #

hash :: ListTags -> Int #

ToJSON ListTags Source # 
NFData ListTags Source # 

Methods

rnf :: ListTags -> () #

AWSPager ListTags Source # 
AWSRequest ListTags Source # 
ToHeaders ListTags Source # 

Methods

toHeaders :: ListTags -> [Header] #

ToPath ListTags Source # 
ToQuery ListTags Source # 
type Rep ListTags Source # 
type Rep ListTags = D1 * (MetaData "ListTags" "Network.AWS.CloudHSMv2.ListTags" "amazonka-cloudhsmv2-1.6.0-9vsD5g1UuU59SmJh0gvUWW" False) (C1 * (MetaCons "ListTags'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_ltResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ListTags Source # 

Request Lenses

ltNextToken :: Lens' ListTags (Maybe Text) Source #

The NextToken value that you received in the previous response. Use this value to get more tags.

ltMaxResults :: Lens' ListTags (Maybe Natural) Source #

The maximum number of tags to return in the response. When there are more tags than the number you specify, the response contains a NextToken value.

ltResourceId :: Lens' ListTags Text Source #

The cluster identifier (ID) for the cluster whose tags you are getting. To find the cluster ID, use DescribeClusters .

Destructuring the Response

listTagsResponse Source #

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

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

  • ltrsNextToken - An opaque string that indicates that the response contains only a subset of tags. Use this value in a subsequent ListTags request to get more tags.
  • ltrsResponseStatus - -- | The response status code.
  • ltrsTagList - A list of tags.

data ListTagsResponse Source #

See: listTagsResponse smart constructor.

Instances

Eq ListTagsResponse Source # 
Data ListTagsResponse Source # 

Methods

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

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

toConstr :: ListTagsResponse -> Constr #

dataTypeOf :: ListTagsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTagsResponse Source # 
Show ListTagsResponse Source # 
Generic ListTagsResponse Source # 
NFData ListTagsResponse Source # 

Methods

rnf :: ListTagsResponse -> () #

type Rep ListTagsResponse Source # 
type Rep ListTagsResponse = D1 * (MetaData "ListTagsResponse" "Network.AWS.CloudHSMv2.ListTags" "amazonka-cloudhsmv2-1.6.0-9vsD5g1UuU59SmJh0gvUWW" False) (C1 * (MetaCons "ListTagsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_ltrsTagList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Tag])))))

Response Lenses

ltrsNextToken :: Lens' ListTagsResponse (Maybe Text) Source #

An opaque string that indicates that the response contains only a subset of tags. Use this value in a subsequent ListTags request to get more tags.

ltrsResponseStatus :: Lens' ListTagsResponse Int Source #

  • - | The response status code.