BucketArgs

data class BucketArgs(val bucket: Output<String>? = null, val outpostId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<BucketArgs>

Provides a resource to manage an S3 Control Bucket.

This functionality is for managing S3 on Outposts. To manage S3 Buckets in an AWS Partition, see the aws.s3.BucketV2 resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3control.Bucket;
import com.pulumi.aws.s3control.BucketArgs;
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 Bucket("example", BucketArgs.builder()
.bucket("example")
.outpostId(data.aws_outposts_outpost().example().id())
.build());
}
}

Import

S3 Control Buckets can be imported using Amazon Resource Name (ARN), e.g.,

$ pulumi import aws:s3control/bucket:Bucket example arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/bucket/example

Constructors

Link copied to clipboard
constructor(bucket: Output<String>? = null, outpostId: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Name of the bucket.

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

Identifier of the Outpost to contain this bucket.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

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