Classification Job Args
Provides a resource to manage an AWS Macie Classification Job.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.macie2.Account;
import com.pulumi.aws.macie2.ClassificationJob;
import com.pulumi.aws.macie2.ClassificationJobArgs;
import com.pulumi.aws.macie2.inputs.ClassificationJobS3JobDefinitionArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testAccount = new Account("testAccount");
var testClassificationJob = new ClassificationJob("testClassificationJob", ClassificationJobArgs.builder()
.jobType("ONE_TIME")
.s3JobDefinition(ClassificationJobS3JobDefinitionArgs.builder()
.bucketDefinitions(ClassificationJobS3JobDefinitionBucketDefinitionArgs.builder()
.accountId("ACCOUNT ID")
.buckets("S3 BUCKET NAME")
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(testAccount)
.build());
}
}
Import
aws_macie2_classification_job
can be imported using the id, e.g.,
$ pulumi import aws:macie2/classificationJob:ClassificationJob example abcd1
Constructors
Properties
The custom data identifiers to use for data analysis and classification.
A custom description of the job. The description can contain as many as 200 characters.
Specifies whether to analyze all existing, eligible objects immediately after the job is created.
The schedule for running the job. Valid values are: ONE_TIME
- Run the job only once. If you specify this value, don't specify a value for the schedule_frequency
property. SCHEDULED
- Run the job on a daily, weekly, or monthly basis. If you specify this value, use the schedule_frequency
property to define the recurrence pattern for the job.
Creates a unique name beginning with the specified prefix. Conflicts with name
.
The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below)
The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the job_type
property to ONE_TIME
. (documented below)
A map of key-value pairs that specifies the tags to associate with the job. A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.