Skip to content

ListCollections

Source: src/AWS/Rekognition/ListCollections.ts

Runtime binding for rekognition:ListCollections — list the face collection IDs in the account.

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

// init
const listCollections = yield* AWS.Rekognition.ListCollections();
// runtime
const page = yield* listCollections({ MaxResults: 20 });
// page.CollectionIds, page.NextToken