Migrate AWS SDK v1 retry policies

Apache 2.0

Runs before software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2, which does not map com.amazonaws.retry. Converts RetryPolicy, its RetryCondition and BackoffStrategy (including user implementations, which now take a RetryPolicyContext) and PredefinedRetryPolicies to their v2 software.amazon.awssdk.core.retry equivalents. v1's default policies become v2's LEGACY retry mode, which has the same retry count and backoff.

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

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