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

main
ts 40 lines 1.44 KB
Raw
1 import type * as comprehend from "@distilled.cloud/aws/comprehend";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `comprehend:DescribeKeyPhrasesDetectionJob` — get the
7 * properties (status, input/output config, timings) of an asynchronous
8 * key-phrase detection job started with {@link StartKeyPhrasesDetectionJob}.
9 *
10 * The binding takes no arguments and grants the action on `*` (job APIs
11 * have no resource-level IAM).
12 *
13 * ### Monitoring Analysis Jobs
14 * **Example:** Poll a KeyPhrasesDetection Job
15 * ```typescript
16 * // init
17 * const describeKeyPhrasesDetectionJob = yield* AWS.Comprehend.DescribeKeyPhrasesDetectionJob();
18 *
19 * // runtime
20 * const job = yield* describeKeyPhrasesDetectionJob({ JobId: jobId });
21 * // job.KeyPhrasesDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …
22 * ```
23 *
24 * @binding
25 */
26 export interface DescribeKeyPhrasesDetectionJob extends Binding.Service<
27 DescribeKeyPhrasesDetectionJob,
28 "AWS.Comprehend.DescribeKeyPhrasesDetectionJob",
29 () => Effect.Effect<
30 (
31 request: comprehend.DescribeKeyPhrasesDetectionJobRequest,
32 ) => Effect.Effect<
33 comprehend.DescribeKeyPhrasesDetectionJobResponse,
34 comprehend.DescribeKeyPhrasesDetectionJobError
35 >
36 >
37 > {}
38 export const DescribeKeyPhrasesDetectionJob = Binding.Service<DescribeKeyPhrasesDetectionJob>(
39 "AWS.Comprehend.DescribeKeyPhrasesDetectionJob",
40 );