Complete AWS SDK v2 S3 object calls that v2-migration renames but cannot map

Apache 2.0

Runs after software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2, which renames v1 getters on S3 responses, transfers and ACLs to names v2 does not have. waitForCompletion() on a transfer becomes completionFuture().join() and isDone() becomes completionFuture().isDone(), ratioTransferred() standing for v1's percentage becomes one again, v2-migration's note on an eTag() whose quotes it already strips is dropped, userMetadata() on a response becomes metadata(), Download.getObjectMetadata() reads the completed download's response, grantsAsList() and Grantee.identifier() become grants() and id(), grants added to an AccessControlPolicy rebuild it, a grantee built from a v1 CanonicalGrantee gets its CANONICAL_USER type, setObjectTagging becomes putObjectTagging, and setBucketAcl/setObjectAcl become putBucketAcl/putObjectAcl.

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

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