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