[Feature]: Support v2-to-v3 transformation of waiters #53
Closed
Description
Self-service
- I'd be willing to implement this feature
Input code
import AWS from "aws-sdk";
const Bucket = "BUCKET_NAME";
const client = new AWS.S3({ region: "REGION" });
await client.createBucket({ Bucket }).promise();
await client.waitFor("bucketExists", { Bucket }).promise();
Expected Output
import { S3, waitUntilBucketExists } from "@aws-sdk/client-s3";
const Bucket = "BUCKET_NAME";
const client = new S3({ region: "REGION" });
await client.createBucket({ Bucket });
await waitUntilBucketExists({ client, maxWaitTime: 60 }, { Bucket });
Additional context
Blog post: Waiters in modular AWS SDK for JavaScript