1import type * as comprehendmedical from "@distilled.cloud/aws/comprehendmedical";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `comprehendmedical:StartEntitiesDetectionV2Job` — start an asynchronous medical entity detection job over a collection of documents in S3. Also grants `iam:PassRole` (conditioned to `comprehendmedical.amazonaws.com`) for the job's data-access role.
7 *
8 * Comprehend Medical has no resource-level IAM, so the binding takes no
9 * arguments and grants `comprehendmedical:StartEntitiesDetectionV2Job` on `*`. Provide the
10 * implementation with `Effect.provide(AWS.ComprehendMedical.StartEntitiesDetectionV2JobHttp)`.
11 *
12 * ### Batch Entity Detection Jobs
13 * **Example:** Start a Batch Job
14 * ```typescript
15 * // init
16 * const startEntitiesDetectionV2Job = yield* AWS.ComprehendMedical.StartEntitiesDetectionV2Job();
17 *
18 * // runtime
19 * const job = yield* startEntitiesDetectionV2Job({
20 * InputDataConfig: { S3Bucket: "my-input-bucket", S3Key: "notes/" },
21 * OutputDataConfig: { S3Bucket: "my-output-bucket" },
22 * DataAccessRoleArn: dataAccessRole.roleArn,
23 * LanguageCode: "en",
24 * });
25 * ```
26 *
27 * @binding
28 */
29export interface StartEntitiesDetectionV2Job extends Binding.Service<
30 StartEntitiesDetectionV2Job,
31 "AWS.ComprehendMedical.StartEntitiesDetectionV2Job",
32 () => Effect.Effect<
33 (
34 request: comprehendmedical.StartEntitiesDetectionV2JobRequest,
35 ) => Effect.Effect<
36 comprehendmedical.StartEntitiesDetectionV2JobResponse,
37 comprehendmedical.StartEntitiesDetectionV2JobError
38 >
39 >
40> {}
41export const StartEntitiesDetectionV2Job =
42 Binding.Service<StartEntitiesDetectionV2Job>(
43 "AWS.ComprehendMedical.StartEntitiesDetectionV2Job",
44 );