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:DetectProtectiveEquipment` — detect personal protective equipment (face covers, hand covers, head covers) worn by persons in an image.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:DetectProtectiveEquipment` 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.DetectProtectiveEquipmentHttp)`.
13 *
14 * ### Image Analysis
15 * **Example:** Check for Face Covers
16 * ```typescript
17 * // init
18 * const detectProtectiveEquipment = yield* AWS.Rekognition.DetectProtectiveEquipment();
19 *
20 * // runtime
21 * const result = yield* detectProtectiveEquipment({
22 * Image: { Bytes: imageBytes },
23 * SummarizationAttributes: {
24 * MinConfidence: 80,
25 * RequiredEquipmentTypes: ["FACE_COVER"],
26 * },
27 * });
28 * ```
29 *
30 * @binding
31 */
32export interface DetectProtectiveEquipment extends Binding.Service<
33 DetectProtectiveEquipment,
34 "AWS.Rekognition.DetectProtectiveEquipment",
35 () => Effect.Effect<
36 (
37 request: rekognition.DetectProtectiveEquipmentRequest,
38 ) => Effect.Effect<
39 rekognition.DetectProtectiveEquipmentResponse,
40 rekognition.DetectProtectiveEquipmentError
41 >
42 >
43> {}
44export const DetectProtectiveEquipment =
45 Binding.Service<DetectProtectiveEquipment>(
46 "AWS.Rekognition.DetectProtectiveEquipment",
47 );