forked from hashicorp/terraform-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nick
committed
Aug 3, 2022
1 parent
b838569
commit d454409
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
website/docs/r/macie2_classification_export_configuration.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
subcategory: "Macie" | ||
layout: "aws" | ||
page_title: "AWS: aws_macie2_classification_export_configuration" | ||
description: |- | ||
Provides a resource to manage Classification Results - Export Configuration | ||
--- | ||
|
||
# Resource: aws_macie2_classification_export_configuration | ||
|
||
Provides a resource to manage an [Amazon Macie Classification Export Configuration](https://docs.aws.amazon.com/macie/latest/APIReference/classification-export-configuration.html). | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
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 | ||
|
||
The following arguments are supported: | ||
|
||
* `s3_destination` - (Required) Configuration block for an S3 Destination. Defined below | ||
|
||
### s3_destination Configuration Block | ||
|
||
The `s3_destination` configuration block supports the following arguments: | ||
|
||
* `bucket_name` - (Required) The Amazon S3 bucket name in which Amazon Macie exports the data classification results. | ||
* `key_prefix` - (Optional) The object key for the bucket in which Amazon Macie exports the data classification results. | ||
* `kms_key_arn` - (Required) Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. | ||
|
||
Additional information can be found in the [Storing and retaining sensitive data discovery results with Amazon Macie for AWS Macie documentation](https://docs.aws.amazon.com/macie/latest/user/discovery-results-repository-s3.html). | ||
|
||
## Attributes Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `id` - The unique identifier (ID) of the configuration. | ||
|
||
## Import | ||
|
||
`aws_macie2_classification_export_configuration` can be imported using the account ID and region, e.g., | ||
|
||
``` | ||
$ terraform import aws_macie2_classification_export_configuration.example 123456789012:us-west-2 | ||
``` |