From c6b879b17938a06f8867d719f1bb5dc9607e1f59 Mon Sep 17 00:00:00 2001 From: Kat Schelonka Date: Thu, 16 Nov 2023 16:42:20 -0800 Subject: [PATCH] chore(lambda): update lambda runtimes --- src/base/ApplicationVersionedLambda.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/base/ApplicationVersionedLambda.ts b/src/base/ApplicationVersionedLambda.ts index 934a0563..995ff9ba 100644 --- a/src/base/ApplicationVersionedLambda.ts +++ b/src/base/ApplicationVersionedLambda.ts @@ -23,9 +23,13 @@ import { Construct } from 'constructs'; export enum LAMBDA_RUNTIMES { PYTHON38 = 'python3.8', - NODEJS12 = 'nodejs12.x', + PYTHON39 = 'python3.9', + PYTHON310 = 'python3.10', + PYTHON311 = 'python3.11', NODEJS14 = 'nodejs14.x', NODEJS16 = 'nodejs16.x', + NODEJS18 = 'nodejs18.x', + NODEJS20 = 'nodejs20.x', } export interface ApplicationVersionedLambdaProps @@ -60,7 +64,7 @@ export class ApplicationVersionedLambda extends Construct { constructor( scope: Construct, name: string, - private config: ApplicationVersionedLambdaProps, + private config: ApplicationVersionedLambdaProps ) { super(scope, name); @@ -206,7 +210,7 @@ export class ApplicationVersionedLambda extends Construct { return new DataAwsIamPolicyDocument( this, 'execution-policy-document', - document, + document ).json; }