From 90bda0e813961c40ee24475a7230c361c077347b Mon Sep 17 00:00:00 2001 From: "Matthew (Matt) Jeffryes" Date: Mon, 13 Jan 2025 14:38:11 -0800 Subject: [PATCH] Update eample in _index.md to use Bucket V2 This is probably one of our more visible examples so it should point to our recommended resource --- docs/_index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/_index.md b/docs/_index.md index a5ddc0a74b8..8028c1ff133 100644 --- a/docs/_index.md +++ b/docs/_index.md @@ -19,7 +19,7 @@ The AWS provider must be configured with credentials to deploy and update resour ```typescript const aws = require("@pulumi/aws"); -const bucket = new aws.s3.Bucket("mybucket"); +const bucket = new aws.s3.BucketV2("mybucket"); ``` {{% /choosable %}} @@ -30,7 +30,7 @@ const bucket = new aws.s3.Bucket("mybucket"); import pulumi import pulumi_aws as aws -bucket = aws.s3.Bucket("bucket") +bucket = aws.s3.BucketV2("bucket") ``` {{% /choosable %}} @@ -47,7 +47,7 @@ import ( func main() { pulumi.Run(func(ctx *pulumi.Context) error { - _, err := s3.NewBucket(ctx, "bucket", &s3.BucketArgs{}) + _, err := s3.NewBucketV2(ctx, "bucket", &s3.BucketV2Args{}) if err != nil { return err } @@ -67,7 +67,7 @@ using Aws = Pulumi.Aws; await Deployment.RunAsync(() => { - var bucket = new Aws.S3.Bucket("bucket"); + var bucket = new Aws.S3.BucketV2("bucket"); }); ``` @@ -86,7 +86,7 @@ public class App { } private static void stack(Context ctx) { - final var bucket = new Bucket("my-bucket"); + final var bucket = new BucketV2("my-bucket"); ctx.export("bucketName", bucket.name()); } } @@ -99,7 +99,7 @@ public class App { ```yaml resources: mybucket: - type: aws:s3:Bucket + type: aws:s3:BucketV2 outputs: bucketName: ${mybucket.name} ```