Skip to content

Commit

Permalink
chore(lambda-nodejs): update docs for default runtime value (#26664)
Browse files Browse the repository at this point in the history
The docs for `NodeJsFunction` say `runtime` defaults to `NODEJS_14_X` but the code defaults to `lambda.Runtime.NODEJS_18_X` (on `function.ts:104`)

Closes #26459.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
NathanTCz committed Aug 7, 2023
1 parent 6de3344 commit 60234de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda-nodejs/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface NodejsFunctionProps extends lambda.FunctionOptions {
* The runtime environment. Only runtimes of the Node.js family are
* supported.
*
* @default Runtime.NODEJS_14_X
* @default Runtime.NODEJS_18_X
*/
readonly runtime?: lambda.Runtime;

Expand Down

0 comments on commit 60234de

Please sign in to comment.