Skip to content

ListUsers

Source: src/AWS/Rekognition/ListUsers.ts

Runtime binding for rekognition:ListUsers — list the users in a face collection.

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

// init
const listUsers = yield* AWS.Rekognition.ListUsers();
// runtime
const page = yield* listUsers({ CollectionId: "tenant-42" });
const userIds = (page.Users ?? []).map((u) => u.UserId);