Class NodejsFunction
A Node.js Lambda function bundled using esbuild.
Implements
Constructs.IConstruct
Constructs.IDependable
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda.Nodejs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NodejsFunction : Function, IFunction, IResource, IConnectable, IGrantable, IClientVpnConnectionHandler
Syntax (vb)
Public Class NodejsFunction
Inherits
Function Implements IFunction, IResource, IConnectable, IGrantable, IClientVpnConnectionHandler
Remarks
ExampleMetadata: infused
Examples
new NodejsFunction(this, "my-handler", new NodejsFunctionProps {
Bundling = new BundlingOptions {
Network = "host",
SecurityOpt = "no-new-privileges",
User = "user:group",
VolumesFrom = new [] { "777f7dc92da7" },
Volumes = new [] { new DockerVolume { HostPath = "/host-path", ContainerPath = "/container-path" } }
}
});
Synopsis
Constructors
NodejsFunction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
NodejsFunction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
NodejsFunction(Construct, String, INodejsFunctionProps) |
Constructors
NodejsFunction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected NodejsFunction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
NodejsFunction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected NodejsFunction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
NodejsFunction(Construct, String, INodejsFunctionProps)
public NodejsFunction(Construct scope, string id, INodejsFunctionProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props INodejsFunctionProps
Implements
Constructs.IConstruct
Constructs.IDependable