Migrate AWS SDK v1 client builders that v2-migration cannot convert

Apache 2.0

Converts a v1 client builder chain to its v2 form when it contains something software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2 cannot do: withEndpointConfiguration, path-style access, a ClientConfiguration with retries or a proxy, RequestHandler2s, or a legacy client constructor with arguments. RequestHandler2 subclasses that only edit the request become ExecutionInterceptors. Other chains are left for v2-migration, so this must run before it. Sites that cannot be converted are marked.

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

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