Package io.github.cdklabs.projen.awscdk
Class LambdaRuntime
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.awscdk.LambdaRuntime
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:42.948Z") @Stability(Experimental) public class LambdaRuntime extends software.amazon.jsii.JsiiObject
(experimental) The runtime for the AWS Lambda function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLambdaRuntime.Builder(experimental) A fluent builder forLambdaRuntime.
-
Field Summary
Fields Modifier and Type Field Description static LambdaRuntimeNODEJS_10_XDeprecated.NodeJS10 has been deprecated on February 14, 2022static LambdaRuntimeNODEJS_12_XDeprecated.NodeJS12 has been deprecated on April 30, 2023static LambdaRuntimeNODEJS_14_XDeprecated.NodeJS14 will be deprecated on November 27, 2023static LambdaRuntimeNODEJS_16_XDeprecated.NodeJS16 will be deprecated on March 11, 2024static LambdaRuntimeNODEJS_18_X(experimental) Node.js 18.x.static LambdaRuntimeNODEJS_20_X(experimental) Node.js 20.x.
-
Constructor Summary
Constructors Modifier Constructor Description LambdaRuntime(String functionRuntime, String esbuildTarget)LambdaRuntime(String functionRuntime, String esbuildTarget, LambdaRuntimeOptions options)protectedLambdaRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedLambdaRuntime(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getDefaultExternals()StringgetEsbuildPlatform()StringgetEsbuildTarget()(experimental) The esbuild setting to use.StringgetFunctionRuntime()(experimental) The Node.js runtime to use.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Field Detail
-
NODEJS_10_X
@Stability(Deprecated) @Deprecated public static final LambdaRuntime NODEJS_10_X
Deprecated.NodeJS10 has been deprecated on February 14, 2022(deprecated) Node.js 10.x.
-
NODEJS_12_X
@Stability(Deprecated) @Deprecated public static final LambdaRuntime NODEJS_12_X
Deprecated.NodeJS12 has been deprecated on April 30, 2023(deprecated) Node.js 12.x.
-
NODEJS_14_X
@Stability(Deprecated) @Deprecated public static final LambdaRuntime NODEJS_14_X
Deprecated.NodeJS14 will be deprecated on November 27, 2023(deprecated) Node.js 14.x.
-
NODEJS_16_X
@Stability(Deprecated) @Deprecated public static final LambdaRuntime NODEJS_16_X
Deprecated.NodeJS16 will be deprecated on March 11, 2024(deprecated) Node.js 16.x.
-
NODEJS_18_X
@Stability(Experimental) public static final LambdaRuntime NODEJS_18_X
(experimental) Node.js 18.x.
-
NODEJS_20_X
@Stability(Experimental) public static final LambdaRuntime NODEJS_20_X
(experimental) Node.js 20.x.
-
-
Constructor Detail
-
LambdaRuntime
protected LambdaRuntime(software.amazon.jsii.JsiiObjectRef objRef)
-
LambdaRuntime
protected LambdaRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
LambdaRuntime
@Stability(Experimental) public LambdaRuntime(@NotNull String functionRuntime, @NotNull String esbuildTarget, @Nullable LambdaRuntimeOptions options)- Parameters:
functionRuntime- The Node.js runtime to use. This parameter is required.esbuildTarget- The esbuild setting to use. This parameter is required.options- Options for this runtime.
-
-
Method Detail
-
getEsbuildPlatform
@Stability(Experimental) @NotNull public String getEsbuildPlatform()
-
getEsbuildTarget
@Stability(Experimental) @NotNull public String getEsbuildTarget()
(experimental) The esbuild setting to use.
-
getFunctionRuntime
@Stability(Experimental) @NotNull public String getFunctionRuntime()
(experimental) The Node.js runtime to use.
-
-