Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ListFaces = ListFaces' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- collectionId :: Text
- newListFaces :: Text -> ListFaces
- listFaces_nextToken :: Lens' ListFaces (Maybe Text)
- listFaces_maxResults :: Lens' ListFaces (Maybe Natural)
- listFaces_collectionId :: Lens' ListFaces Text
- data ListFacesResponse = ListFacesResponse' {}
- newListFacesResponse :: Int -> ListFacesResponse
- listFacesResponse_faceModelVersion :: Lens' ListFacesResponse (Maybe Text)
- listFacesResponse_nextToken :: Lens' ListFacesResponse (Maybe Text)
- listFacesResponse_faces :: Lens' ListFacesResponse (Maybe [Face])
- listFacesResponse_httpStatus :: Lens' ListFacesResponse Int
Creating a Request
See: newListFaces
smart constructor.
ListFaces' | |
|
Instances
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_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.
ListFacesResponse' | |
|
Instances
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_faces :: Lens' ListFacesResponse (Maybe [Face]) Source #
An array of Face
objects.
listFacesResponse_httpStatus :: Lens' ListFacesResponse Int Source #
The response's http status code.