Skip to content

Commit

Permalink
Update eample in _index.md to use Bucket V2
Browse files Browse the repository at this point in the history
This is probably one of our more visible examples so it should point to our recommended resource
  • Loading branch information
mjeffryes authored Jan 13, 2025
1 parent 235ddc7 commit 90bda0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}}
Expand All @@ -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 %}}
Expand All @@ -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
}
Expand All @@ -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");
});
```

Expand All @@ -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());
}
}
Expand All @@ -99,7 +99,7 @@ public class App {
```yaml
resources:
mybucket:
type: aws:s3:Bucket
type: aws:s3:BucketV2
outputs:
bucketName: ${mybucket.name}
```
Expand Down

0 comments on commit 90bda0e

Please sign in to comment.