SearchFaces
Source:
src/AWS/Rekognition/SearchFaces.ts
Runtime binding for rekognition:SearchFaces — search a face collection for faces matching a face ID already stored in the collection.
The binding takes no arguments and grants the function
rekognition:SearchFaces on * (Rekognition data-plane resources such
as collections, users, and jobs are routinely created at runtime, so
their identifiers are unknown at deploy time). Provide the
implementation with Effect.provide(AWS.Rekognition.SearchFacesHttp).
Face Collections
Section titled “Face Collections”// initconst searchFaces = yield* AWS.Rekognition.SearchFaces();
// runtimeconst result = yield* searchFaces({ CollectionId: "tenant-42", FaceId: faceId, FaceMatchThreshold: 95,});const matches = result.FaceMatches ?? [];