Resource: aws_macie2_classification_job

Provides a resource to manage an AWS Macie Classification Job.

Example Usage

resource "aws_macie2_account" "test" {}

resource "aws_macie2_classification_job" "test" {
  job_type = "ONE_TIME"
  name     = "NAME OF THE CLASSIFICATION JOB"
  s3_job_definition {
    bucket_definitions {
      account_id = "ACCOUNT ID"
      buckets    = ["S3 BUCKET NAME"]
    }
  }
  depends_on = [aws_macie2_account.test]
}

Argument Reference

This resource supports the following arguments:

The schedule_frequency object supports the following:

The s3_job_definition object supports the following:

bucket_criteria Configuration Block

The bucket_criteria object supports the following:

The excludes and includes object supports the following:

The and object supports the following:

The simple_criterion object supports the following:

The tag_criterion object supports the following:

The tag_values object supports the following:

bucket_definitions Configuration Block

The bucket_definitions object supports the following:

scoping Configuration Block

The scoping object supports the following:

The excludes and includes object supports the following:

The and object supports the following:

The simple_scope_term object supports the following:

The tag_scope_term object supports the following:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_macie2_classification_job using the id. For example:

import {
  to = aws_macie2_classification_job.example
  id = "abcd1"
}

Using terraform import, import aws_macie2_classification_job using the id. For example:

% terraform import aws_macie2_classification_job.example abcd1