![]() As I said, the v3 SDK is not part of the Node.js AWS Lambda runtime.X-Ray support missing (tracked here and here. ![]() If you want to keep your Lambda function code as small as possible, you should still use the v2 SDK because you don’t have to include it at all in your ZIP file. The Node.js Lambda runtime does not include the v3 SDK. Now, tree shaking can kick in and remove all the commands that you never use! Frontend developers will love it! Good old v2 code with callbacks looked like this: const AWS = require( 'aws-sdk') Ĭonst dynamodb = new AWS.DynamoDB() Īwait nd( new GetItemCommand( /*.*/)) Each batch contains a token to retrieve the next batch or indicate that you reached the list’s end. ![]() All list APIs offer a paging mechanism to retrieve one batch at a time. Many AWS APIs could potentially return a long list of data (e.g., list all S3 objects in a bucket). In this blog post, I show you the new capabilities and use cases where they help you most, no matter if you use JavaScript on the frontend or the backend (Node.js). This challenge unites all AWS users: is this new version worth investing your precious time? The AWS SDK for JavaScript v3 is generally available since December 2020.
0 Comments
Leave a Reply. |