"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Runtime=exports.RuntimeFamily=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../core");var RuntimeFamily;(function(RuntimeFamily2){RuntimeFamily2[RuntimeFamily2.NODEJS=0]="NODEJS",RuntimeFamily2[RuntimeFamily2.JAVA=1]="JAVA",RuntimeFamily2[RuntimeFamily2.PYTHON=2]="PYTHON",RuntimeFamily2[RuntimeFamily2.DOTNET_CORE=3]="DOTNET_CORE",RuntimeFamily2[RuntimeFamily2.GO=4]="GO",RuntimeFamily2[RuntimeFamily2.RUBY=5]="RUBY",RuntimeFamily2[RuntimeFamily2.OTHER=6]="OTHER"})(RuntimeFamily||(exports.RuntimeFamily=RuntimeFamily={}));class Runtime{constructor(name,family,props={}){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_lambda_RuntimeFamily(family),jsiiDeprecationWarnings.aws_cdk_lib_aws_lambda_LambdaRuntimeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Runtime),error}this.name=name,this.supportsInlineCode=!!props.supportsInlineCode,this.family=family,this.isVariable=!!props.isVariable;const imageName=props.bundlingDockerImage??`public.ecr.aws/sam/build-${name}`;this.bundlingDockerImage=core_1.DockerImage.fromRegistry(imageName),this.bundlingImage=this.bundlingDockerImage,this.supportsCodeGuruProfiling=props.supportsCodeGuruProfiling??!1,this.supportsSnapStart=props.supportsSnapStart??!1,Runtime.ALL.push(this)}toString(){return this.name}runtimeEquals(other){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_lambda_Runtime(other)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.runtimeEquals),error}return other.name===this.name&&other.family===this.family&&other.supportsInlineCode===this.supportsInlineCode}}exports.Runtime=Runtime,_a=JSII_RTTI_SYMBOL_1,Runtime[_a]={fqn:"aws-cdk-lib.aws_lambda.Runtime",version:"2.96.1"},Runtime.ALL=new Array,Runtime.NODEJS=new Runtime("nodejs",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_4_3=new Runtime("nodejs4.3",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_6_10=new Runtime("nodejs6.10",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_8_10=new Runtime("nodejs8.10",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_10_X=new Runtime("nodejs10.x",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_12_X=new Runtime("nodejs12.x",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_14_X=new Runtime("nodejs14.x",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_16_X=new Runtime("nodejs16.x",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_18_X=new Runtime("nodejs18.x",RuntimeFamily.NODEJS,{supportsInlineCode:!0}),Runtime.NODEJS_LATEST=new Runtime("nodejs18.x",RuntimeFamily.NODEJS,{supportsInlineCode:!0,isVariable:!0}),Runtime.PYTHON_2_7=new Runtime("python2.7",RuntimeFamily.PYTHON,{supportsInlineCode:!0}),Runtime.PYTHON_3_6=new Runtime("python3.6",RuntimeFamily.PYTHON,{supportsInlineCode:!0,supportsCodeGuruProfiling:!0}),Runtime.PYTHON_3_7=new Runtime("python3.7",RuntimeFamily.PYTHON,{supportsInlineCode:!0,supportsCodeGuruProfiling:!0}),Runtime.PYTHON_3_8=new Runtime("python3.8",RuntimeFamily.PYTHON,{supportsInlineCode:!0,supportsCodeGuruProfiling:!0}),Runtime.PYTHON_3_9=new Runtime("python3.9",RuntimeFamily.PYTHON,{supportsInlineCode:!0,supportsCodeGuruProfiling:!0}),Runtime.PYTHON_3_10=new Runtime("python3.10",RuntimeFamily.PYTHON,{supportsInlineCode:!0,supportsCodeGuruProfiling:!0}),Runtime.PYTHON_3_11=new Runtime("python3.11",RuntimeFamily.PYTHON,{supportsInlineCode:!0,supportsCodeGuruProfiling:!0}),Runtime.JAVA_8=new Runtime("java8",RuntimeFamily.JAVA,{supportsCodeGuruProfiling:!0}),Runtime.JAVA_8_CORRETTO=new Runtime("java8.al2",RuntimeFamily.JAVA,{supportsCodeGuruProfiling:!0}),Runtime.JAVA_11=new Runtime("java11",RuntimeFamily.JAVA,{supportsCodeGuruProfiling:!0,supportsSnapStart:!0}),Runtime.JAVA_17=new Runtime("java17",RuntimeFamily.JAVA,{supportsCodeGuruProfiling:!0,supportsSnapStart:!0}),Runtime.DOTNET_6=new Runtime("dotnet6",RuntimeFamily.DOTNET_CORE),Runtime.DOTNET_CORE_1=new Runtime("dotnetcore1.0",RuntimeFamily.DOTNET_CORE),Runtime.DOTNET_CORE_2=new Runtime("dotnetcore2.0",RuntimeFamily.DOTNET_CORE),Runtime.DOTNET_CORE_2_1=new Runtime("dotnetcore2.1",RuntimeFamily.DOTNET_CORE),Runtime.DOTNET_CORE_3_1=new Runtime("dotnetcore3.1",RuntimeFamily.DOTNET_CORE),Runtime.GO_1_X=new Runtime("go1.x",RuntimeFamily.GO),Runtime.RUBY_2_5=new Runtime("ruby2.5",RuntimeFamily.RUBY),Runtime.RUBY_2_7=new Runtime("ruby2.7",RuntimeFamily.RUBY),Runtime.RUBY_3_2=new Runtime("ruby3.2",RuntimeFamily.RUBY),Runtime.PROVIDED=new Runtime("provided",RuntimeFamily.OTHER),Runtime.PROVIDED_AL2=new Runtime("provided.al2",RuntimeFamily.OTHER),Runtime.FROM_IMAGE=new Runtime("FROM_IMAGE");
