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:GetCelebrityRecognition` — get the results of an asynchronous celebrities detection job started by StartCelebrityRecognition.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:GetCelebrityRecognition` 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.GetCelebrityRecognitionHttp)`.
13 *
14 * ### Video Analysis
15 * **Example:** Poll Celebrity Recognition Results
16 * ```typescript
17 * // init
18 * const getCelebrityRecognition = yield* AWS.Rekognition.GetCelebrityRecognition();
19 *
20 * // runtime
21 * const results = yield* getCelebrityRecognition({ JobId: jobId });
22 * if (results.JobStatus === "SUCCEEDED") {
23 * // consume the detections
24 * }
25 * ```
26 *
27 * @binding
28 */
29export interface GetCelebrityRecognition extends Binding.Service<
30 GetCelebrityRecognition,
31 "AWS.Rekognition.GetCelebrityRecognition",
32 () => Effect.Effect<
33 (
34 request: rekognition.GetCelebrityRecognitionRequest,
35 ) => Effect.Effect<
36 rekognition.GetCelebrityRecognitionResponse,
37 rekognition.GetCelebrityRecognitionError
38 >
39 >
40> {}
41export const GetCelebrityRecognition = Binding.Service<GetCelebrityRecognition>(
42 "AWS.Rekognition.GetCelebrityRecognition",
43);