Class NodejsFunction

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IResource, IClientVpnConnectionHandler, IConnectable, IGrantable, IFunction, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.148Z") @Stability(Stable) public class NodejsFunction extends Function
A Node.js Lambda function bundled using esbuild.

Example:

 NodejsFunction.Builder.create(this, "my-handler")
         .bundling(BundlingOptions.builder()
                 .dockerImage(DockerImage.fromBuild("/path/to/Dockerfile"))
                 .build())
         .build();
 
  • Constructor Details

    • NodejsFunction

      protected NodejsFunction(software.amazon.jsii.JsiiObjectRef objRef)
    • NodejsFunction

      protected NodejsFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • NodejsFunction

      @Stability(Stable) public NodejsFunction(@NotNull Construct scope, @NotNull String id, @Nullable NodejsFunctionProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • NodejsFunction

      @Stability(Stable) public NodejsFunction(@NotNull Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.