Skip to content

ListPHIDetectionJobs

Source: src/AWS/ComprehendMedical/ListPHIDetectionJobs.ts

Runtime binding for comprehendmedical:ListPHIDetectionJobs — list the asynchronous protected health information (PHI) detection jobs you have submitted.

Comprehend Medical has no resource-level IAM, so the binding takes no arguments and grants comprehendmedical:ListPHIDetectionJobs on *. Provide the implementation with Effect.provide(AWS.ComprehendMedical.ListPHIDetectionJobsHttp).

// init
const listPHIDetectionJobs = yield* AWS.ComprehendMedical.ListPHIDetectionJobs();
// runtime
const jobs = yield* listPHIDetectionJobs({});
console.log(jobs.ComprehendMedicalAsyncJobPropertiesList?.length ?? 0);