| 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:DescribeEventsDetectionJob` — get the |
| 7 | * properties (status, input/output config, timings) of an asynchronous |
| 8 | * event detection job started with {@link StartEventsDetectionJob}. |
| 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 EventsDetection Job |
| 15 | * ```typescript |
| 16 | * // init |
| 17 | * const describeEventsDetectionJob = yield* AWS.Comprehend.DescribeEventsDetectionJob(); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const job = yield* describeEventsDetectionJob({ JobId: jobId }); |
| 21 | * // job.EventsDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | … |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface DescribeEventsDetectionJob extends Binding.Service< |
| 27 | DescribeEventsDetectionJob, |
| 28 | "AWS.Comprehend.DescribeEventsDetectionJob", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request: comprehend.DescribeEventsDetectionJobRequest, |
| 32 | ) => Effect.Effect< |
| 33 | comprehend.DescribeEventsDetectionJobResponse, |
| 34 | comprehend.DescribeEventsDetectionJobError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const DescribeEventsDetectionJob = |
| 39 | Binding.Service<DescribeEventsDetectionJob>( |
| 40 | "AWS.Comprehend.DescribeEventsDetectionJob", |
| 41 | ); |