The best way to control Claude Code, Codex and more from any computer or phone

main
ts 40 lines 1.39 KB
Raw
1 import type * as rekognition from "@distilled.cloud/aws/rekognition";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `rekognition:GetTextDetection` — get the results of an asynchronous text detection job started by StartTextDetection.
7 *
8 * The binding takes no arguments and grants the function
9 * `rekognition:GetTextDetection` 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.GetTextDetectionHttp)`.
13 *
14 * ### Video Analysis
15 * **Example:** Poll Text Detection Results
16 * ```typescript
17 * // init
18 * const getTextDetection = yield* AWS.Rekognition.GetTextDetection();
19 *
20 * // runtime
21 * const results = yield* getTextDetection({ JobId: jobId });
22 * if (results.JobStatus === "SUCCEEDED") {
23 * // consume the detections
24 * }
25 * ```
26 *
27 * @binding
28 */
29 export interface GetTextDetection extends Binding.Service<
30 GetTextDetection,
31 "AWS.Rekognition.GetTextDetection",
32 () => Effect.Effect<
33 (
34 request: rekognition.GetTextDetectionRequest,
35 ) => Effect.Effect<rekognition.GetTextDetectionResponse, rekognition.GetTextDetectionError>
36 >
37 > {}
38 export const GetTextDetection = Binding.Service<GetTextDetection>(
39 "AWS.Rekognition.GetTextDetection",
40 );