Migrate AWS SDK v1 AmazonSQSBufferedAsyncClient

Apache 2.0

Replaces new AmazonSQSBufferedAsyncClient(client) with a generated BufferedSqsAsyncClient.wrap(client), a v2 SqsAsyncClient whose send, delete, change-visibility and receive calls go through v2's batch manager (client.batchManager()). Other references to the buffered type become AmazonSQSAsync, which v2-migration turns into SqsAsyncClient. QueueBufferConfig becomes the generated class's nested QueueBufferConfig, with v1's accessors and defaults, whose batch size, send frequency, visibility timeout, minimum receive wait and attribute names configure the batch manager.

org.openrewrite.aws.sdk.MigrateSqsBufferedClient

Optional

generateHelpersBoolean

Whether to generate the helper classes that the changes use. Compositions that limit where helpers are generated set it to false and generate them with org.openrewrite.aws.sdk.GenerateAwsSdkV2Helpers. Defaults to true.

mod run . --recipe=org.openrewrite.aws.sdk.MigrateSqsBufferedClient

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.