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

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

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

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

Associated Types

type Rep ListFaces :: * -> * #

Hashable ListFaces Source # 
ToJSON ListFaces Source # 
NFData ListFaces Source # 

Methods

rnf :: ListFaces -> () #

AWSRequest ListFaces Source # 
ToPath ListFaces Source # 
ToHeaders ListFaces Source # 

Methods

toHeaders :: ListFaces -> [Header] #

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

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:

  • 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 # 
Data ListFacesResponse Source # 

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

Methods

rnf :: ListFacesResponse -> () #

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

Response Lenses

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.