| 1 | import type * as rekognition from "@distilled.cloud/aws/rekognition"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `rekognition:CreateUser` — create a user in a face collection to aggregate multiple face IDs of the same person. |
| 7 | * |
| 8 | * The binding takes no arguments and grants the function |
| 9 | * `rekognition:CreateUser` 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.CreateUserHttp)`. |
| 13 | * |
| 14 | * ### User Search |
| 15 | * **Example:** Create a User |
| 16 | * ```typescript |
| 17 | * // init |
| 18 | * const createUser = yield* AWS.Rekognition.CreateUser(); |
| 19 | * |
| 20 | * // runtime |
| 21 | * yield* createUser({ CollectionId: "tenant-42", UserId: userId }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface CreateUser extends Binding.Service< |
| 27 | CreateUser, |
| 28 | "AWS.Rekognition.CreateUser", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request: rekognition.CreateUserRequest, |
| 32 | ) => Effect.Effect< |
| 33 | rekognition.CreateUserResponse, |
| 34 | rekognition.CreateUserError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const CreateUser = Binding.Service<CreateUser>( |
| 39 | "AWS.Rekognition.CreateUser", |
| 40 | ); |