Skip to content

SearchUsers

Source: src/AWS/Rekognition/SearchUsers.ts

Runtime binding for rekognition:SearchUsers — search a face collection for users matching a face ID or user ID.

The binding takes no arguments and grants the function rekognition:SearchUsers 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.SearchUsersHttp).

// init
const searchUsers = yield* AWS.Rekognition.SearchUsers();
// runtime
const result = yield* searchUsers({
CollectionId: "tenant-42",
FaceId: faceId,
});
const matches = result.UserMatches ?? [];