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:StopPiiEntitiesDetectionJob` — request termination
7 * of an in-progress asynchronous PII entity 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 PiiEntitiesDetection Job
16 * ```typescript
17 * // init
18 * const stopPiiEntitiesDetectionJob = yield* AWS.Comprehend.StopPiiEntitiesDetectionJob();
19 *
20 * // runtime
21 * const result = yield* stopPiiEntitiesDetectionJob({ JobId: jobId });
22 * // result.JobStatus === "STOP_REQUESTED"
23 * ```
24 *
25 * @binding
26 */
27export interface StopPiiEntitiesDetectionJob extends Binding.Service<
28 StopPiiEntitiesDetectionJob,
29 "AWS.Comprehend.StopPiiEntitiesDetectionJob",
30 () => Effect.Effect<
31 (
32 request: comprehend.StopPiiEntitiesDetectionJobRequest,
33 ) => Effect.Effect<
34 comprehend.StopPiiEntitiesDetectionJobResponse,
35 comprehend.StopPiiEntitiesDetectionJobError
36 >
37 >
38> {}
39export const StopPiiEntitiesDetectionJob =
40 Binding.Service<StopPiiEntitiesDetectionJob>(
41 "AWS.Comprehend.StopPiiEntitiesDetectionJob",
42 );