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:AssociateFaces` — associate up to 100 indexed face IDs with a user.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:AssociateFaces` 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.AssociateFacesHttp)`.
13 *
14 * ### User Search
15 * **Example:** Associate Faces with a User
16 * ```typescript
17 * // init
18 * const associateFaces = yield* AWS.Rekognition.AssociateFaces();
19 *
20 * // runtime
21 * const result = yield* associateFaces({
22 * CollectionId: "tenant-42",
23 * UserId: userId,
24 * FaceIds: [faceId],
25 * });
26 * // result.AssociatedFaces, result.UserStatus
27 * ```
28 *
29 * @binding
30 */
31export interface AssociateFaces extends Binding.Service<
32 AssociateFaces,
33 "AWS.Rekognition.AssociateFaces",
34 () => Effect.Effect<
35 (
36 request: rekognition.AssociateFacesRequest,
37 ) => Effect.Effect<
38 rekognition.AssociateFacesResponse,
39 rekognition.AssociateFacesError
40 >
41 >
42> {}
43export const AssociateFaces = Binding.Service<AssociateFaces>(
44 "AWS.Rekognition.AssociateFaces",
45);