aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
2.96k stars 557 forks source link

MIGRATION ISSUE: Provide example for migrating from Event Listener to Middleware Stack for a common use case #6231

Open trivikr opened 5 days ago

trivikr commented 5 days ago

Pre-Migration Checklist

Which JavaScript Runtime is this issue in?

Node.js (includes AWS Lambda)

AWS Lambda Usage

Describe the Migration Issue

The https://github.com/aws/aws-sdk-js-v3/blob/main/UPGRADING.md provides link to Middleware Stack blog post which explains how a middleware should be written. But there's no example of migration from v2 event listener to v3 middleware.

Code Comparison

No response

Observed Differences/Errors

N/A. This request is to add example of v2 event listener to v3 middleware in UPGRADING.md

Additional Context

No response