import type * as comprehend from "@distilled.cloud/aws/comprehend";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
/**
* Runtime binding for `comprehend:DescribeDominantLanguageDetectionJob` — get the
* properties (status, input/output config, timings) of an asynchronous
* dominant-language detection job started with {@link StartDominantLanguageDetectionJob}.
*
* The binding takes no arguments and grants the action on `*` (job APIs
* have no resource-level IAM).
*
* ### Monitoring Analysis Jobs
* **Example:** Poll a DominantLanguageDetection Job
* ```typescript
* // init
* const describeDominantLanguageDetectionJob = yield* AWS.Comprehend.DescribeDominantLanguageDetectionJob();
*
* // runtime
* const job = yield* describeDominantLanguageDetectionJob({ JobId: jobId });
* // job.DominantLanguageDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …
* ```
*
* @binding
*/
export interface DescribeDominantLanguageDetectionJob extends Binding.Service<
DescribeDominantLanguageDetectionJob,
"AWS.Comprehend.DescribeDominantLanguageDetectionJob",
() => Effect.Effect<
(
request: comprehend.DescribeDominantLanguageDetectionJobRequest,
) => Effect.Effect<
comprehend.DescribeDominantLanguageDetectionJobResponse,
comprehend.DescribeDominantLanguageDetectionJobError
>
>
> {}
export const DescribeDominantLanguageDetectionJob =
Binding.Service<DescribeDominantLanguageDetectionJob>(
"AWS.Comprehend.DescribeDominantLanguageDetectionJob",
);