amazonka-rekognition-1.4.5: Amazon Rekognition SDK.

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

Network.AWS.Rekognition.ListCollections

Contents

Description

Returns list of collection IDs in your account. If the result is truncated, the response also provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

For an example, see example1 .

This operation requires permissions to perform the rekognition:ListCollections action.

Synopsis

Creating a Request

listCollections :: ListCollections #

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

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

  • lcNextToken - Pagination token from the previous response.
  • lcMaxResults - Maximum number of collection IDs to return.

data ListCollections #

See: listCollections smart constructor.

Instances

Eq ListCollections # 
Data ListCollections # 

Methods

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

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

toConstr :: ListCollections -> Constr #

dataTypeOf :: ListCollections -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListCollections # 
Show ListCollections # 
Generic ListCollections # 
Hashable ListCollections # 
ToJSON ListCollections # 
NFData ListCollections # 

Methods

rnf :: ListCollections -> () #

AWSRequest ListCollections # 
ToQuery ListCollections # 
ToPath ListCollections # 
ToHeaders ListCollections # 
type Rep ListCollections # 
type Rep ListCollections = D1 (MetaData "ListCollections" "Network.AWS.Rekognition.ListCollections" "amazonka-rekognition-1.4.5-7kQQXfpD3s0BAUEtxNCePO" False) (C1 (MetaCons "ListCollections'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lcNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lcMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))))
type Rs ListCollections # 

Request Lenses

lcNextToken :: Lens' ListCollections (Maybe Text) #

Pagination token from the previous response.

lcMaxResults :: Lens' ListCollections (Maybe Natural) #

Maximum number of collection IDs to return.

Destructuring the Response

listCollectionsResponse #

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

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

  • lcrsCollectionIds - An array of collection IDs.
  • lcrsNextToken - If the result is truncated, the response provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.
  • lcrsResponseStatus - -- | The response status code.

data ListCollectionsResponse #

See: listCollectionsResponse smart constructor.

Instances

Eq ListCollectionsResponse # 
Data ListCollectionsResponse # 

Methods

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

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

toConstr :: ListCollectionsResponse -> Constr #

dataTypeOf :: ListCollectionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListCollectionsResponse # 
Show ListCollectionsResponse # 
Generic ListCollectionsResponse # 
NFData ListCollectionsResponse # 

Methods

rnf :: ListCollectionsResponse -> () #

type Rep ListCollectionsResponse # 
type Rep ListCollectionsResponse = D1 (MetaData "ListCollectionsResponse" "Network.AWS.Rekognition.ListCollections" "amazonka-rekognition-1.4.5-7kQQXfpD3s0BAUEtxNCePO" False) (C1 (MetaCons "ListCollectionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lcrsCollectionIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_lcrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

lcrsCollectionIds :: Lens' ListCollectionsResponse [Text] #

An array of collection IDs.

lcrsNextToken :: Lens' ListCollectionsResponse (Maybe Text) #

If the result is truncated, the response provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

lcrsResponseStatus :: Lens' ListCollectionsResponse Int #

  • - | The response status code.