Skip to content

StartEntitiesDetectionV2Job

Source: src/AWS/ComprehendMedical/StartEntitiesDetectionV2Job.ts

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.

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

// init
const startEntitiesDetectionV2Job = yield* AWS.ComprehendMedical.StartEntitiesDetectionV2Job();
// runtime
const job = yield* startEntitiesDetectionV2Job({
InputDataConfig: { S3Bucket: "my-input-bucket", S3Key: "notes/" },
OutputDataConfig: { S3Bucket: "my-output-bucket" },
DataAccessRoleArn: dataAccessRole.roleArn,
LanguageCode: "en",
});