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:ListPHIDetectionJobs` — list the asynchronous protected health information (PHI) detection jobs you have submitted.
7 *
8 * Comprehend Medical has no resource-level IAM, so the binding takes no
9 * arguments and grants `comprehendmedical:ListPHIDetectionJobs` on `*`. Provide the
10 * implementation with `Effect.provide(AWS.ComprehendMedical.ListPHIDetectionJobsHttp)`.
11 *
12 * ### Batch PHI Detection Jobs
13 * **Example:** List Submitted Jobs
14 * ```typescript
15 * // init
16 * const listPHIDetectionJobs = yield* AWS.ComprehendMedical.ListPHIDetectionJobs();
17 *
18 * // runtime
19 * const jobs = yield* listPHIDetectionJobs({});
20 * console.log(jobs.ComprehendMedicalAsyncJobPropertiesList?.length ?? 0);
21 * ```
22 *
23 * @binding
24 */
25export interface ListPHIDetectionJobs extends Binding.Service<
26 ListPHIDetectionJobs,
27 "AWS.ComprehendMedical.ListPHIDetectionJobs",
28 () => Effect.Effect<
29 (
30 request: comprehendmedical.ListPHIDetectionJobsRequest,
31 ) => Effect.Effect<
32 comprehendmedical.ListPHIDetectionJobsResponse,
33 comprehendmedical.ListPHIDetectionJobsError
34 >
35 >
36> {}
37export const ListPHIDetectionJobs = Binding.Service<ListPHIDetectionJobs>(
38 "AWS.ComprehendMedical.ListPHIDetectionJobs",
39);