Uses of Class
software.amazon.awscdk.services.lambda.nodejs.NodejsFunction.Builder
-
Uses of NodejsFunction.Builder in software.amazon.awscdk.services.lambda.nodejs
Modifier and TypeMethodDescriptionNodejsFunction.Builder.allowAllOutbound
(Boolean allowAllOutbound) Whether to allow the Lambda to send all network traffic.NodejsFunction.Builder.allowPublicSubnet
(Boolean allowPublicSubnet) Lambda Functions in a public subnet can NOT access the internet.NodejsFunction.Builder.architecture
(Architecture architecture) The system architectures compatible with this lambda function.NodejsFunction.Builder.architectures
(List<? extends Architecture> architectures) Deprecated.NodejsFunction.Builder.awsSdkConnectionReuse
(Boolean awsSdkConnectionReuse) Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript.NodejsFunction.Builder.bundling
(BundlingOptions bundling) Bundling options.NodejsFunction.Builder.codeSigningConfig
(ICodeSigningConfig codeSigningConfig) Code signing config associated with this function.static NodejsFunction.Builder
NodejsFunction.Builder.currentVersionOptions
(VersionOptions currentVersionOptions) Options for thelambda.Version
resource automatically created by thefn.currentVersion
method.NodejsFunction.Builder.deadLetterQueue
(IQueue deadLetterQueue) The SQS queue to use if DLQ is enabled.NodejsFunction.Builder.deadLetterQueueEnabled
(Boolean deadLetterQueueEnabled) Enabled DLQ.NodejsFunction.Builder.deadLetterTopic
(ITopic deadLetterTopic) The SNS topic to use as a DLQ.NodejsFunction.Builder.depsLockFilePath
(String depsLockFilePath) The path to the dependencies lock file (yarn.lock
orpackage-lock.json
).NodejsFunction.Builder.description
(String description) A description of the function.Path to the entry file (JavaScript or TypeScript).NodejsFunction.Builder.environment
(Map<String, String> environment) Key-value pairs that Lambda caches and makes available for your Lambda functions.NodejsFunction.Builder.environmentEncryption
(IKey environmentEncryption) The AWS KMS key that's used to encrypt your function's environment variables.NodejsFunction.Builder.ephemeralStorageSize
(Size ephemeralStorageSize) The size of the function’s /tmp directory in MiB.NodejsFunction.Builder.events
(List<? extends IEventSource> events) Event sources for this function.NodejsFunction.Builder.filesystem
(FileSystem filesystem) The filesystem configuration for the lambda function.NodejsFunction.Builder.functionName
(String functionName) A name for the function.The name of the exported handler in the entry file.NodejsFunction.Builder.initialPolicy
(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.NodejsFunction.Builder.insightsVersion
(LambdaInsightsVersion insightsVersion) Specify the version of CloudWatch Lambda insights to use for monitoring.NodejsFunction.Builder.layers
(List<? extends ILayerVersion> layers) A list of layers to add to the function's execution environment.NodejsFunction.Builder.logRetention
(RetentionDays logRetention) The number of days log events are kept in CloudWatch Logs.NodejsFunction.Builder.logRetentionRetryOptions
(LogRetentionRetryOptions logRetentionRetryOptions) When log retention is specified, a custom resource attempts to create the CloudWatch log group.NodejsFunction.Builder.logRetentionRole
(IRole logRetentionRole) The IAM role for the Lambda function associated with the custom resource that sets the retention policy.NodejsFunction.Builder.maxEventAge
(Duration maxEventAge) The maximum age of a request that Lambda sends to a function for processing.NodejsFunction.Builder.memorySize
(Number memorySize) The amount of memory, in MB, that is allocated to your Lambda function.NodejsFunction.Builder.onFailure
(IDestination onFailure) The destination for failed invocations.NodejsFunction.Builder.onSuccess
(IDestination onSuccess) The destination for successful invocations.Enable profiling.NodejsFunction.Builder.profilingGroup
(IProfilingGroup profilingGroup) Profiling Group.NodejsFunction.Builder.projectRoot
(String projectRoot) The path to the directory containing project config files (package.json
ortsconfig.json
).NodejsFunction.Builder.reservedConcurrentExecutions
(Number reservedConcurrentExecutions) The maximum of concurrent executions you want to reserve for the function.NodejsFunction.Builder.retryAttempts
(Number retryAttempts) The maximum number of times to retry when the function returns an error.Lambda execution role.The runtime environment.NodejsFunction.Builder.securityGroup
(ISecurityGroup securityGroup) Deprecated.This property is deprecated, use securityGroups insteadNodejsFunction.Builder.securityGroups
(List<? extends ISecurityGroup> securityGroups) The list of security groups to associate with the Lambda's network interfaces.The function execution time (in seconds) after which Lambda terminates the function.Enable AWS X-Ray Tracing for Lambda Function.VPC network to place Lambda network interfaces.NodejsFunction.Builder.vpcSubnets
(SubnetSelection vpcSubnets) Where to place the network interfaces within the VPC.
architecture