Describe the bug
The AWS SDK for JavaScript v3 is codegen and doesn't support multiple API versions for a client.
However, it accepts apiVersion in the configuration which can be confusing as discussed in #1844
SDK version number
3.1.0
Is the issue in the browser/Node.js/ReactNative?
All
Details of the browser/Node.js/ReactNative version
N/A
To Reproduce (observed behavior)
const { Lambda } = require("@aws-sdk/client-lambda")
const lambda = new Lambda({
region: "ap-south-1",
apiVersion: "2015-03-31"
});
Expected behavior
Do not allow apiVersion in client configuration.
Describe the bug
The AWS SDK for JavaScript v3 is codegen and doesn't support multiple API versions for a client.
However, it accepts
apiVersionin the configuration which can be confusing as discussed in #1844SDK version number
3.1.0Is the issue in the browser/Node.js/ReactNative?
All
Details of the browser/Node.js/ReactNative version
N/A
To Reproduce (observed behavior)
Expected behavior
Do not allow apiVersion in client configuration.