1import type * as comprehend from "@distilled.cloud/aws/comprehend";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `comprehend:DescribeDominantLanguageDetectionJob` — get the
7 * properties (status, input/output config, timings) of an asynchronous
8 * dominant-language detection job started with {@link StartDominantLanguageDetectionJob}.
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 DominantLanguageDetection Job
15 * ```typescript
16 * // init
17 * const describeDominantLanguageDetectionJob = yield* AWS.Comprehend.DescribeDominantLanguageDetectionJob();
18 *
19 * // runtime
20 * const job = yield* describeDominantLanguageDetectionJob({ JobId: jobId });
21 * // job.DominantLanguageDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …
22 * ```
23 *
24 * @binding
25 */
26export interface DescribeDominantLanguageDetectionJob extends Binding.Service<
27 DescribeDominantLanguageDetectionJob,
28 "AWS.Comprehend.DescribeDominantLanguageDetectionJob",
29 () => Effect.Effect<
30 (
31 request: comprehend.DescribeDominantLanguageDetectionJobRequest,
32 ) => Effect.Effect<
33 comprehend.DescribeDominantLanguageDetectionJobResponse,
34 comprehend.DescribeDominantLanguageDetectionJobError
35 >
36 >
37> {}
38export const DescribeDominantLanguageDetectionJob =
39 Binding.Service<DescribeDominantLanguageDetectionJob>(
40 "AWS.Comprehend.DescribeDominantLanguageDetectionJob",
41 );