Resource: aws_macie2_classification_export_configuration

Provides a resource to manage an Amazon Macie Classification Export Configuration.

Example Usage

resource "aws_macie2_account" "example" {}

resource "aws_macie2_classification_export_configuration" "example" {
  depends_on = [
    aws_macie2_account.example,
  ]
  s3_destination {
    bucket_name = aws_s3_bucket.example.bucket
    key_prefix  = "exampleprefix/"
    kms_key_arn = aws_kms_key.example.arn
  }
}

Argument Reference

This resource supports the following arguments:

s3_destination Configuration Block

The s3_destination configuration block supports the following arguments:

Additional information can be found in the Storing and retaining sensitive data discovery results with Amazon Macie for AWS Macie documentation.

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_export_configuration using the account ID and region. For example:

import {
  to = aws_macie2_classification_export_configuration.example
  id = "123456789012:us-west-2"
}

Using terraform import, import aws_macie2_classification_export_configuration using the account ID and region. For example:

% terraform import aws_macie2_classification_export_configuration.example 123456789012:us-west-2