| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data ListFaces = ListFaces' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- collectionId :: Text
- newListFaces :: Text -> ListFaces
- listFaces_maxResults :: Lens' ListFaces (Maybe Natural)
- listFaces_nextToken :: Lens' ListFaces (Maybe Text)
- listFaces_collectionId :: Lens' ListFaces Text
- data ListFacesResponse = ListFacesResponse' {}
- newListFacesResponse :: Int -> ListFacesResponse
- listFacesResponse_faceModelVersion :: Lens' ListFacesResponse (Maybe Text)
- listFacesResponse_faces :: Lens' ListFacesResponse (Maybe [Face])
- listFacesResponse_nextToken :: Lens' ListFacesResponse (Maybe Text)
- listFacesResponse_httpStatus :: Lens' ListFacesResponse Int
Creating a Request
See: newListFaces smart constructor.
Constructors
| ListFaces' | |
Fields
| |
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:maxResults:ListFaces', listFaces_maxResults - Maximum number of faces to return.
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.
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.
Constructors
| ListFacesResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> ListFacesResponse |
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:faces:ListFacesResponse', listFacesResponse_faces - An array of Face objects.
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: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_faces :: Lens' ListFacesResponse (Maybe [Face]) Source #
An array of Face objects.
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.