Bucket
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.s3control.Bucket("example", {
bucket: "example",
outpostId: exampleAwsOutpostsOutpost.id,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.s3control.Bucket("example",
bucket="example",
outpost_id=example_aws_outposts_outpost["id"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.S3Control.Bucket("example", new()
{
BucketName = "example",
OutpostId = exampleAwsOutpostsOutpost.Id,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3control"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := s3control.NewBucket(ctx, "example", &s3control.BucketArgs{
Bucket: pulumi.String("example"),
OutpostId: pulumi.Any(exampleAwsOutpostsOutpost.Id),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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(exampleAwsOutpostsOutpost.id())
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:s3control:Bucket
properties:
bucket: example
outpostId: ${exampleAwsOutpostsOutpost.id}
Content copied to clipboard
Import
Using pulumi import
, import S3 Control Buckets using Amazon Resource Name (ARN). For example:
$ pulumi import aws:s3control/bucket:Bucket example arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/bucket/example
Content copied to clipboard
Properties
Link copied to clipboard
UTC creation date in RFC3339 format.
Link copied to clipboard
Boolean whether Public Access Block is enabled.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard