Class NodejsFunction
A Node.js Lambda function bundled using esbuild.
Implements
Constructs.IConstruct
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda.Nodejs
Assembly: Amazon.CDK.AWS.Lambda.Nodejs.dll
Syntax (csharp)
public class NodejsFunction : Function, IFunction, IResource, IConstruct, IDependable, IConnectable, IGrantable, IClientVpnConnectionHandler
Syntax (vb)
Public Class NodejsFunction
Inherits
Function Implements IFunction, IResource, IConstruct, IDependable, IConnectable, IGrantable, IClientVpnConnectionHandler
Remarks
ExampleMetadata: infused
Examples
new NodejsFunction(this, "my-handler", new NodejsFunctionProps {
Bundling = new BundlingOptions {
DockerImage = DockerImage.FromBuild("/path/to/Dockerfile")
}
});
Synopsis
Constructors
NodejsFunction(Construct, String, INodejsFunctionProps) | |
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 |
Constructors
NodejsFunction(Construct, String, INodejsFunctionProps)
public NodejsFunction(Construct scope, string id, INodejsFunctionProps props = null)
Parameters
- scope Construct
- id System.String
- props INodejsFunctionProps
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
Implements
Constructs.IConstruct