Migrate the AWS SDK v1 DynamoDB Document API

Apache 2.0

Runs before software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2. Moves the v1 Document API (DynamoDB, Table, Item, PrimaryKey, the item specs and outcomes, ItemCollection, ValueMap, NameMap, TableWriteItems, ItemUtils, the legacy Expected, RangeKeyCondition, AttributeUpdate, QueryFilter and ScanFilter conditions and Item's JSON conversions) to a generated DynamoDbDocumentApi with the same API and item values on the v2 DynamoDbClient, which still takes the legacy conditions.

org.openrewrite.aws.sdk.MigrateDynamoDbDocumentApi

Optional

generateHelpersBoolean

Whether to generate the helper classes that the changes use. Compositions that limit where helpers are generated set it to false and generate them with org.openrewrite.aws.sdk.GenerateAwsSdkV2Helpers. Defaults to true.

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

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