Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example in _index.md to use Bucket V2 #5098

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading