S3BucketAssociation

class S3BucketAssociation : KotlinCustomResource

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());
}
}

Properties

Link copied to clipboard
val bucketName: Output<String>

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 id: Output<String>
Link copied to clipboard
val memberAccountId: Output<String>?

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>?

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>