1import type * as rekognition from "@distilled.cloud/aws/rekognition";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `rekognition:CreateCollection` — create a face collection — e.g. one collection per application tenant, created at runtime.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:CreateCollection` on `*` (Rekognition data-plane resources such
10 * as collections, users, and jobs are routinely created at runtime, so
11 * their identifiers are unknown at deploy time). Provide the
12 * implementation with `Effect.provide(AWS.Rekognition.CreateCollectionHttp)`.
13 *
14 * ### Face Collections
15 * **Example:** Create a Tenant Collection
16 * ```typescript
17 * // init
18 * const createCollection = yield* AWS.Rekognition.CreateCollection();
19 *
20 * // runtime
21 * const created = yield* createCollection({ CollectionId: `tenant-${tenantId}` });
22 * // created.CollectionArn, created.FaceModelVersion
23 * ```
24 *
25 * @binding
26 */
27export interface CreateCollection extends Binding.Service<
28 CreateCollection,
29 "AWS.Rekognition.CreateCollection",
30 () => Effect.Effect<
31 (
32 request: rekognition.CreateCollectionRequest,
33 ) => Effect.Effect<
34 rekognition.CreateCollectionResponse,
35 rekognition.CreateCollectionError
36 >
37 >
38> {}
39export const CreateCollection = Binding.Service<CreateCollection>(
40 "AWS.Rekognition.CreateCollection",
41);