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

Amazonka.Rekognition.ListFaces

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 Listing Faces in a Collection in the Amazon Rekognition Developer Guide.

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

This operation returns paginated results.

Synopsis

Creating a Request

data ListFaces Source #

See: newListFaces smart constructor.

Constructors

ListFaces' 

Fields

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

    Maximum number of faces to return.

  • collectionId :: Text

    ID of the collection from which to list the faces.

Instances

Instances details
Eq ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Read ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Show ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Generic ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Associated Types

type Rep ListFaces :: Type -> Type #

NFData ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Methods

rnf :: ListFaces -> () #

Hashable ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

ToJSON ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

AWSPager ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

AWSRequest ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Associated Types

type AWSResponse ListFaces #

ToHeaders ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Methods

toHeaders :: ListFaces -> [Header] #

ToPath ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

ToQuery ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

type Rep ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

type Rep ListFaces = D1 ('MetaData "ListFaces" "Amazonka.Rekognition.ListFaces" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "ListFaces'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "collectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListFaces Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

newListFaces Source #

Create a value of ListFaces with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:ListFaces', listFaces_nextToken - 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.

$sel:maxResults:ListFaces', listFaces_maxResults - Maximum number of faces to return.

$sel:collectionId:ListFaces', listFaces_collectionId - ID of the collection from which to list the faces.

Request Lenses

listFaces_nextToken :: 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.

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

Maximum number of faces to return.

listFaces_collectionId :: Lens' ListFaces Text Source #

ID of the collection from which to list the faces.

Destructuring the Response

data ListFacesResponse Source #

See: newListFacesResponse smart constructor.

Constructors

ListFacesResponse' 

Fields

  • faceModelVersion :: Maybe Text

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

  • nextToken :: Maybe Text

    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.

  • faces :: Maybe [Face]

    An array of Face objects.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListFacesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Read ListFacesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Show ListFacesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Generic ListFacesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Associated Types

type Rep ListFacesResponse :: Type -> Type #

NFData ListFacesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

Methods

rnf :: ListFacesResponse -> () #

type Rep ListFacesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListFaces

type Rep ListFacesResponse = D1 ('MetaData "ListFacesResponse" "Amazonka.Rekognition.ListFaces" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "ListFacesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "faceModelVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "faces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Face])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListFacesResponse Source #

Create a value of ListFacesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:faceModelVersion:ListFacesResponse', listFacesResponse_faceModelVersion - Version number of the face detection model associated with the input collection (CollectionId).

$sel:nextToken:ListFaces', listFacesResponse_nextToken - 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.

$sel:faces:ListFacesResponse', listFacesResponse_faces - An array of Face objects.

$sel:httpStatus:ListFacesResponse', listFacesResponse_httpStatus - The response's http status code.

Response Lenses

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

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

listFacesResponse_nextToken :: 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.

listFacesResponse_httpStatus :: Lens' ListFacesResponse Int Source #

The response's http status code.