amazonka-rekognition-1.5.0: Amazon Rekognition 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.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.

This operation returns paginated results.

Synopsis

Creating a Request

listCollections :: ListCollections Source #

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 Source #

See: listCollections smart constructor.

Instances

Eq ListCollections Source # 
Data ListCollections Source # 

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 Source # 
Show ListCollections Source # 
Generic ListCollections Source # 
Hashable ListCollections Source # 
ToJSON ListCollections Source # 
NFData ListCollections Source # 

Methods

rnf :: ListCollections -> () #

AWSPager ListCollections Source # 
AWSRequest ListCollections Source # 
ToQuery ListCollections Source # 
ToPath ListCollections Source # 
ToHeaders ListCollections Source # 
type Rep ListCollections Source # 
type Rep ListCollections = D1 (MetaData "ListCollections" "Network.AWS.Rekognition.ListCollections" "amazonka-rekognition-1.5.0-B4jtpxqOYsT3vpCV9vDK91" 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 Source # 

Request Lenses

lcNextToken :: Lens' ListCollections (Maybe Text) Source #

Pagination token from the previous response.

lcMaxResults :: Lens' ListCollections (Maybe Natural) Source #

Maximum number of collection IDs to return.

Destructuring the Response

listCollectionsResponse Source #

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 Source #

See: listCollectionsResponse smart constructor.

Instances

Eq ListCollectionsResponse Source # 
Data ListCollectionsResponse Source # 

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 Source # 
Show ListCollectionsResponse Source # 
Generic ListCollectionsResponse Source # 
NFData ListCollectionsResponse Source # 

Methods

rnf :: ListCollectionsResponse -> () #

type Rep ListCollectionsResponse Source # 
type Rep ListCollectionsResponse = D1 (MetaData "ListCollectionsResponse" "Network.AWS.Rekognition.ListCollections" "amazonka-rekognition-1.5.0-B4jtpxqOYsT3vpCV9vDK91" 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 DecidedStrict) (Rec0 Int)))))

Response Lenses

lcrsNextToken :: Lens' ListCollectionsResponse (Maybe Text) Source #

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.