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:StartPHIDetectionJob` — start an asynchronous protected health information (PHI) 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:StartPHIDetectionJob` on `*`. Provide the
10 * implementation with `Effect.provide(AWS.ComprehendMedical.StartPHIDetectionJobHttp)`.
11 *
12 * ### Batch PHI Detection Jobs
13 * **Example:** Start a Batch Job
14 * ```typescript
15 * // init
16 * const startPHIDetectionJob = yield* AWS.ComprehendMedical.StartPHIDetectionJob();
17 *
18 * // runtime
19 * const job = yield* startPHIDetectionJob({
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 StartPHIDetectionJob extends Binding.Service<
30 StartPHIDetectionJob,
31 "AWS.ComprehendMedical.StartPHIDetectionJob",
32 () => Effect.Effect<
33 (
34 request: comprehendmedical.StartPHIDetectionJobRequest,
35 ) => Effect.Effect<
36 comprehendmedical.StartPHIDetectionJobResponse,
37 comprehendmedical.StartPHIDetectionJobError
38 >
39 >
40> {}
41export const StartPHIDetectionJob = Binding.Service<StartPHIDetectionJob>(
42 "AWS.ComprehendMedical.StartPHIDetectionJob",
43);