Show / Hide Table of Contents

Class NodejsFunction

A Node.js Lambda function bundled using esbuild.

Inheritance
object
Resource
FunctionBase
Function
NodejsFunction
Implements
IFunction
IResource
IConnectable
IGrantable
IFunctionRef
IConstruct
IDependable
IEnvironmentAware
IClientVpnConnectionHandler
Inherited Members
Function.ClassifyVersionProperty(string, bool)
Function.FromFunctionArn(Construct, string, string)
Function.FromFunctionAttributes(Construct, string, IFunctionAttributes)
Function.FromFunctionName(Construct, string, string)
Function.MetricAll(string, IMetricOptions)
Function.MetricAllConcurrentExecutions(IMetricOptions)
Function.MetricAllDuration(IMetricOptions)
Function.MetricAllErrors(IMetricOptions)
Function.MetricAllInvocations(IMetricOptions)
Function.MetricAllThrottles(IMetricOptions)
Function.MetricAllUnreservedConcurrentExecutions(IMetricOptions)
Function.AddAlias(string, IAliasOptions)
Function.AddEnvironment(string, string, IEnvironmentOptions)
Function.AddLayers(params ILayerVersion[])
Function.InvalidateVersionBasedOn(string)
Function.PROPERTY_INJECTION_ID
Function.Architecture
Function.CanCreatePermissions
Function.CurrentVersion
Function.FunctionArn
Function.FunctionName
Function.GrantPrincipal
Function.LogGroup
Function.PermissionsNode
Function.ResourceArnsForGrantInvoke
Function.Runtime
Function.DeadLetterQueue
Function.DeadLetterTopic
Function.Role
Function.TenancyConfig
Function.Timeout
FunctionBase.AddEventSource(IEventSource)
FunctionBase.AddEventSourceMapping(string, IEventSourceMappingOptions)
FunctionBase.AddFunctionUrl(IFunctionUrlOptions)
FunctionBase.AddPermission(string, IPermission)
FunctionBase.AddToRolePolicy(PolicyStatement)
FunctionBase.ConfigureAsyncInvoke(IEventInvokeConfigOptions)
FunctionBase.ConsiderWarningOnInvokeFunctionPermissions(Construct, string)
FunctionBase.GrantInvoke(IGrantable)
FunctionBase.GrantInvokeCompositePrincipal(CompositePrincipal)
FunctionBase.GrantInvokeLatestVersion(IGrantable)
FunctionBase.GrantInvokeUrl(IGrantable)
FunctionBase.GrantInvokeVersion(IGrantable, IVersion)
FunctionBase.Metric(string, IMetricOptions)
FunctionBase.MetricDuration(IMetricOptions)
FunctionBase.MetricErrors(IMetricOptions)
FunctionBase.MetricInvocations(IMetricOptions)
FunctionBase.MetricThrottles(IMetricOptions)
FunctionBase.WarnInvokeFunctionPermissions(Construct)
FunctionBase.Connections
FunctionBase.FunctionRef
FunctionBase.IsBoundToVpc
FunctionBase.LatestVersion
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyCrossStackReferenceStrength(ReferenceStrength)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.With(params IMixin[])
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Lambda.Nodejs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NodejsFunction : Function, IFunction, IResource, IConnectable, IGrantable, IFunctionRef, IConstruct, IDependable, IEnvironmentAware, IClientVpnConnectionHandler
Syntax (vb)
Public Class NodejsFunction Inherits Function Implements IFunction, IResource, IConnectable, IGrantable, IFunctionRef, IConstruct, IDependable, IEnvironmentAware, 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(Construct, string, INodejsFunctionProps?)

A Node.js Lambda function bundled using esbuild.

Constructors

NodejsFunction(Construct, string, INodejsFunctionProps?)

A Node.js Lambda function bundled using esbuild.

public NodejsFunction(Construct scope, string id, INodejsFunctionProps? props = null)
Parameters
scope Construct
id string
props INodejsFunctionProps
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" } }
                }
            });

Implements

IFunction
IResource
IConnectable
IGrantable
IFunctionRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
IClientVpnConnectionHandler
Back to top Generated by DocFX