Skip to content

DescribePHIDetectionJob

Source: src/AWS/ComprehendMedical/DescribePHIDetectionJob.ts

Runtime binding for comprehendmedical:DescribePHIDetectionJob — get the properties and status of an asynchronous protected health information (PHI) detection job.

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

// init
const describePHIDetectionJob = yield* AWS.ComprehendMedical.DescribePHIDetectionJob();
// runtime
const status = yield* describePHIDetectionJob({ JobId: jobId });
console.log(status.ComprehendMedicalAsyncJobProperties?.JobStatus);