amazonka-rekognition-1.6.1: Amazon Rekognition 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.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 'list-collection-procedure' .

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 # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Data ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.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 Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Show ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Generic ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Associated Types

type Rep ListCollections :: Type -> Type #

Hashable ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

ToJSON ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

AWSPager ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

AWSRequest ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Associated Types

type Rs ListCollections :: Type #

ToHeaders ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

ToPath ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

ToQuery ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

NFData ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Methods

rnf :: ListCollections -> () #

type Rep ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

type Rep ListCollections = D1 (MetaData "ListCollections" "Network.AWS.Rekognition.ListCollections" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "ListCollections'" PrefixI True) (S1 (MetaSel (Just "_lcNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lcMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))
type Rs ListCollections Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

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.
  • lcrsFaceModelVersions - Version numbers of the face detection models associated with the collections in the array CollectionIds . For example, the value of FaceModelVersions[2] is the version number for the face detection model used by the collection in CollectionId[2] .
  • lcrsResponseStatus - -- | The response status code.

data ListCollectionsResponse Source #

See: listCollectionsResponse smart constructor.

Instances
Eq ListCollectionsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Data ListCollectionsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

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 # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Show ListCollectionsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Generic ListCollectionsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Associated Types

type Rep ListCollectionsResponse :: Type -> Type #

NFData ListCollectionsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

Methods

rnf :: ListCollectionsResponse -> () #

type Rep ListCollectionsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListCollections

type Rep ListCollectionsResponse = D1 (MetaData "ListCollectionsResponse" "Network.AWS.Rekognition.ListCollections" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "ListCollectionsResponse'" PrefixI True) ((S1 (MetaSel (Just "_lcrsCollectionIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_lcrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lcrsFaceModelVersions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_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.

lcrsFaceModelVersions :: Lens' ListCollectionsResponse [Text] Source #

Version numbers of the face detection models associated with the collections in the array CollectionIds . For example, the value of FaceModelVersions[2] is the version number for the face detection model used by the collection in CollectionId[2] .