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:DescribeEventsDetectionJob` — get the
* properties (status, input/output config, timings) of an asynchronous
* event detection job started with {@link StartEventsDetectionJob}.
*
* The binding takes no arguments and grants the action on `*` (job APIs
* have no resource-level IAM).
*
* ### Monitoring Analysis Jobs
* **Example:** Poll a EventsDetection Job
* ```typescript
* // init
* const describeEventsDetectionJob = yield* AWS.Comprehend.DescribeEventsDetectionJob();
*
* // runtime
* const job = yield* describeEventsDetectionJob({ JobId: jobId });
* // job.EventsDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …
* ```
*
* @binding
*/
export interface DescribeEventsDetectionJob extends Binding.Service<
DescribeEventsDetectionJob,
"AWS.Comprehend.DescribeEventsDetectionJob",
() => Effect.Effect<
(
request: comprehend.DescribeEventsDetectionJobRequest,
) => Effect.Effect<
comprehend.DescribeEventsDetectionJobResponse,
comprehend.DescribeEventsDetectionJobError
>
>
> {}
export const DescribeEventsDetectionJob = Binding.Service<DescribeEventsDetectionJob>(
"AWS.Comprehend.DescribeEventsDetectionJob",
);