Complete AWS SDK v2 async client calls that blocked in v1

Apache 2.0

Runs after software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2, which retypes a v1 async client to the v2 async client but keeps each call's v1 return type. A call on a v2 *AsyncClient that still returns a response was a blocking call in v1: it gets .join(), so it still blocks and throws instead of becoming a fire-and-forget future whose failure is lost. A call that still returns Future was an xxxAsync(..) call renamed by PrepareAwsAsyncClientCalls: its type and the variable holding it become CompletableFuture. Calls that Mockito stubs or verifies are left alone.

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

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