ClassificationJob
Source:
src/AWS/Macie2/ClassificationJob.ts
An Amazon Macie classification job — scans one or more S3 buckets for
sensitive data. Requires Macie to be enabled for the account (see
Macie2.Session). Jobs are immutable once created; changing the job type,
name, or bucket set replaces the job. Destroy cancels the job.
Creating a classification job
Section titled “Creating a classification job”One-time job over a bucket
const job = yield* Macie2.ClassificationJob("Scan", { jobType: "ONE_TIME", bucketDefinitions: [{ accountId, buckets: ["my-bucket"] }],});Sampled scan with a description
const job = yield* Macie2.ClassificationJob("Scan", { jobType: "ONE_TIME", bucketDefinitions: [{ accountId, buckets: ["my-bucket"] }], samplingPercentage: 20, description: "PII sweep",});