StartPiiEntitiesDetectionJob
Source:
src/AWS/Comprehend/StartPiiEntitiesDetectionJob.ts
Runtime binding for comprehend:StartPiiEntitiesDetectionJob — start an asynchronous
PII entity detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartPiiEntitiesDetectionJob
action (which has no resource-level IAM). Track the job with
DescribePiiEntitiesDetectionJob and stop it with
StopPiiEntitiesDetectionJob.
Starting Analysis Jobs
Section titled “Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startPiiEntitiesDetectionJob = yield* AWS.Comprehend.StartPiiEntitiesDetectionJob(dataAccessRole);
// runtimeconst job = yield* startPiiEntitiesDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"