-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: The v2-to-v3 transform should convert to v3 style of making API calls #497
Comments
The codemod defaults to making minimal changes to the customer code to move from v2 to v3. |
A better solution could be to write a different transform which converts application code which uses v3 aggregated client to v3 barebones client. That transform can be written separately, but used by default in Example (transform name is assumed to be $ cat example.ts
import { DynamoDB } from "@aws-sdk/client-dynamodb";
const region = "us-west-2";
const client = new DynamoDB({ region });
const response = await client.listTables();
$ npx aws-sdk-js-codemod -t to-bare-bones-client example.ts
$ cat example.ts
import { DynamoDB, ListTablesCommand } from "@aws-sdk/client-dynamodb";
const region = "us-west-2";
const client = new DynamoDB({ region });
const response = await client.send(new ListTablesCommand({}));
|
In #480 (comment), the name |
We discussed the naming during scrum on 2023-08-15, we decided to stick with |
Are there any updates to this? Are there any known community provided transformers out there? We're actively migrating now so this would be a huge win. |
There are no updates at this point in time. The JS SDK v3 applications can continue to use v2 style of making API calls. There are no community provided transformers that I know of. This work will likely get prioritized after JS SDK v2 end-of-life in Sept'25 after most JS SDK customers have migrated to v3. |
Self-service
Template name
v2-to-v3
Input code
Expected Output
Existing output
Recommended output
Additional context
Reference blog post: https://www.10printiamcool.com/updating-to-nodejs-18-and-aws-javascript-sdk-v3-part-1
The text was updated successfully, but these errors were encountered: