Lambda functions and AWS API versions
Different Lambda runtimes are bundled with different AWS API versions
The different runtimes, depending on how new they are, can come with different versions of the AWS APIs for the language in question.
For example, Node.js functions which use 16.x or lower use the AWS JavaScript API v2, whereas using 18.x or higher uses the AWS JavaScript API v3. There are some breaking changes between the two API versions, be careful when upgrading!