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:StopDominantLanguageDetectionJob` — request termination
7 * of an in-progress asynchronous dominant-language detection job. The job moves to
8 * `STOP_REQUESTED` and then `STOPPED`; documents already processed are
9 * written to the output location.
10 *
11 * The binding takes no arguments and grants the action on `*` (job APIs
12 * have no resource-level IAM).
13 *
14 * ### Stopping Analysis Jobs
15 * **Example:** Stop a Running DominantLanguageDetection Job
16 * ```typescript
17 * // init
18 * const stopDominantLanguageDetectionJob = yield* AWS.Comprehend.StopDominantLanguageDetectionJob();
19 *
20 * // runtime
21 * const result = yield* stopDominantLanguageDetectionJob({ JobId: jobId });
22 * // result.JobStatus === "STOP_REQUESTED"
23 * ```
24 *
25 * @binding
26 */
27export interface StopDominantLanguageDetectionJob extends Binding.Service<
28 StopDominantLanguageDetectionJob,
29 "AWS.Comprehend.StopDominantLanguageDetectionJob",
30 () => Effect.Effect<
31 (
32 request: comprehend.StopDominantLanguageDetectionJobRequest,
33 ) => Effect.Effect<
34 comprehend.StopDominantLanguageDetectionJobResponse,
35 comprehend.StopDominantLanguageDetectionJobError
36 >
37 >
38> {}
39export const StopDominantLanguageDetectionJob =
40 Binding.Service<StopDominantLanguageDetectionJob>(
41 "AWS.Comprehend.StopDominantLanguageDetectionJob",
42 );