S3Bucket Association Args
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());
}
}
Content copied to clipboard
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
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
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.