Class 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.
    • 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.
      • LambdaRuntime

        @Stability(Experimental)
        public LambdaRuntime​(@NotNull
                             String functionRuntime,
                             @NotNull
                             String esbuildTarget)
        Parameters:
        functionRuntime - The Node.js runtime to use. This parameter is required.
        esbuildTarget - The esbuild setting to use. This parameter is required.
    • Method Detail

      • getDefaultExternals

        @Stability(Experimental)
        @NotNull
        public List<String> getDefaultExternals()
      • 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.