Build AWS SDK v2 service exceptions instead of constructing them

Apache 2.0

Runs after software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2. Replaces new XException(message) of a v2 service model exception with XException.builder().message(message).build().

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

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