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.ListFaces

Contents

Description

Returns metadata for faces in the specified collection. This metadata includes information such as the bounding box coordinates, the confidence (that the bounding box contains a face), and face ID. For an example, see 'list-faces-in-collection-procedure' .

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

This operation returns paginated results.

Synopsis

Creating a Request

listFaces Source #

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

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

  • lfNextToken - If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
  • lfMaxResults - Maximum number of faces to return.
  • lfCollectionId - ID of the collection from which to list the faces.

data ListFaces Source #

See: listFaces smart constructor.

Instances
Eq ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Data ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Methods

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

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

toConstr :: ListFaces -> Constr #

dataTypeOf :: ListFaces -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Show ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Generic ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Associated Types

type Rep ListFaces :: Type -> Type #

Hashable ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

ToJSON ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

AWSPager ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

AWSRequest ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Associated Types

type Rs ListFaces :: Type #

ToHeaders ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Methods

toHeaders :: ListFaces -> [Header] #

ToPath ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

ToQuery ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

NFData ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Methods

rnf :: ListFaces -> () #

type Rep ListFaces Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

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

Defined in Network.AWS.Rekognition.ListFaces

Request Lenses

lfNextToken :: Lens' ListFaces (Maybe Text) Source #

If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.

lfMaxResults :: Lens' ListFaces (Maybe Natural) Source #

Maximum number of faces to return.

lfCollectionId :: Lens' ListFaces Text Source #

ID of the collection from which to list the faces.

Destructuring the Response

listFacesResponse Source #

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

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

  • lfrsFaceModelVersion - Version number of the face detection model associated with the input collection (CollectionId ).
  • lfrsNextToken - If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.
  • lfrsFaces - An array of Face objects.
  • lfrsResponseStatus - -- | The response status code.

data ListFacesResponse Source #

See: listFacesResponse smart constructor.

Instances
Eq ListFacesResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Data ListFacesResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Methods

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

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

toConstr :: ListFacesResponse -> Constr #

dataTypeOf :: ListFacesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListFacesResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Show ListFacesResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Generic ListFacesResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Associated Types

type Rep ListFacesResponse :: Type -> Type #

NFData ListFacesResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

Methods

rnf :: ListFacesResponse -> () #

type Rep ListFacesResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.ListFaces

type Rep ListFacesResponse = D1 (MetaData "ListFacesResponse" "Network.AWS.Rekognition.ListFaces" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "ListFacesResponse'" PrefixI True) ((S1 (MetaSel (Just "_lfrsFaceModelVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lfrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lfrsFaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Face])) :*: S1 (MetaSel (Just "_lfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lfrsFaceModelVersion :: Lens' ListFacesResponse (Maybe Text) Source #

Version number of the face detection model associated with the input collection (CollectionId ).

lfrsNextToken :: Lens' ListFacesResponse (Maybe Text) Source #

If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.

lfrsFaces :: Lens' ListFacesResponse [Face] Source #

An array of Face objects.

lfrsResponseStatus :: Lens' ListFacesResponse Int Source #

  • - | The response status code.