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:DeleteUser` — delete a user from a face collection.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:DeleteUser` 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.DeleteUserHttp)`.
13 *
14 * ### User Search
15 * **Example:** Delete a User
16 * ```typescript
17 * // init
18 * const deleteUser = yield* AWS.Rekognition.DeleteUser();
19 *
20 * // runtime
21 * yield* deleteUser({ CollectionId: "tenant-42", UserId: userId }).pipe(
22 * Effect.catchTag("ResourceNotFoundException", () => Effect.void),
23 * );
24 * ```
25 *
26 * @binding
27 */
28export interface DeleteUser extends Binding.Service<
29 DeleteUser,
30 "AWS.Rekognition.DeleteUser",
31 () => Effect.Effect<
32 (
33 request: rekognition.DeleteUserRequest,
34 ) => Effect.Effect<
35 rekognition.DeleteUserResponse,
36 rekognition.DeleteUserError
37 >
38 >
39> {}
40export const DeleteUser = Binding.Service<DeleteUser>(
41 "AWS.Rekognition.DeleteUser",
42);