Class NodejsFunction

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:19.344Z") @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()
                 .network("host")
                 .securityOpt("no-new-privileges")
                 .user("user:group")
                 .volumesFrom(List.of("777f7dc92da7"))
                 .volumes(List.of(DockerVolume.builder().hostPath("/host-path").containerPath("/container-path").build()))
                 .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 software.constructs.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 software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.