S3BucketAssociationArgs

data class S3BucketAssociationArgs(val bucketName: Output<String>? = null, val classificationType: Output<S3BucketAssociationClassificationTypeArgs>? = null, val memberAccountId: Output<String>? = null, val prefix: Output<String>? = null) : ConvertibleToJava<S3BucketAssociationArgs>

NOTE: This resource interacts with Amazon Macie Classic. Macie Classic cannot be activated in new accounts. See the FAQ for more details. Associates an S3 resource with Amazon Macie for monitoring and data classification. NOTE: Before using Amazon Macie for the first time it must be enabled manually. Instructions are here.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.macie.S3BucketAssociation;
import com.pulumi.aws.macie.S3BucketAssociationArgs;
import com.pulumi.aws.macie.inputs.S3BucketAssociationClassificationTypeArgs;
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 example = new S3BucketAssociation("example", S3BucketAssociationArgs.builder()
.bucketName("tf-macie-example")
.classificationType(S3BucketAssociationClassificationTypeArgs.builder()
.oneTime("FULL")
.build())
.prefix("data")
.build());
}
}

Constructors

Link copied to clipboard
constructor(bucketName: Output<String>? = null, classificationType: Output<S3BucketAssociationClassificationTypeArgs>? = null, memberAccountId: Output<String>? = null, prefix: Output<String>? = null)

Properties

Link copied to clipboard
val bucketName: Output<String>? = null

The name of the S3 bucket that you want to associate with Amazon Macie.

Link copied to clipboard

The configuration of how Amazon Macie classifies the S3 objects.

Link copied to clipboard
val memberAccountId: Output<String>? = null

The ID of the Amazon Macie member account whose S3 resources you want to associate with Macie. If member_account_id isn't specified, the action associates specified S3 resources with Macie for the current master account.

Link copied to clipboard
val prefix: Output<String>? = null

Object key prefix identifying one or more S3 objects to which the association applies.

Functions

Link copied to clipboard
open override fun toJava(): S3BucketAssociationArgs