| Modifier and Type | Method and Description |
|---|---|
NodejsFunction.Builder |
NodejsFunction.Builder.allowAllOutbound(Boolean allowAllOutbound)
Whether to allow the Lambda to send all network traffic.
|
NodejsFunction.Builder |
NodejsFunction.Builder.allowPublicSubnet(Boolean allowPublicSubnet)
Lambda Functions in a public subnet can NOT access the internet.
|
NodejsFunction.Builder |
NodejsFunction.Builder.awsSdkConnectionReuse(Boolean awsSdkConnectionReuse)
(experimental) Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript.
|
NodejsFunction.Builder |
NodejsFunction.Builder.buildArgs(Map<String,String> buildArgs)
(experimental) Build arguments to pass when building the bundling image.
|
NodejsFunction.Builder |
NodejsFunction.Builder.bundlingDockerImage(BundlingDockerImage bundlingDockerImage)
(experimental) A custom bundling Docker image.
|
NodejsFunction.Builder |
NodejsFunction.Builder.cacheDir(String cacheDir)
(experimental) The cache directory (relative to the project root).
|
static NodejsFunction.Builder |
NodejsFunction.Builder.create(Construct scope,
String id) |
NodejsFunction.Builder |
NodejsFunction.Builder.currentVersionOptions(VersionOptions currentVersionOptions)
Options for the `lambda.Version` resource automatically created by the `fn.currentVersion` method.
|
NodejsFunction.Builder |
NodejsFunction.Builder.deadLetterQueue(software.amazon.awscdk.services.sqs.IQueue deadLetterQueue)
The SQS queue to use if DLQ is enabled.
|
NodejsFunction.Builder |
NodejsFunction.Builder.deadLetterQueueEnabled(Boolean deadLetterQueueEnabled)
Enabled DLQ.
|
NodejsFunction.Builder |
NodejsFunction.Builder.description(String description)
A description of the function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.entry(String entry)
(experimental) Path to the entry file (JavaScript or TypeScript).
|
NodejsFunction.Builder |
NodejsFunction.Builder.environment(Map<String,String> environment)
Key-value pairs that Lambda caches and makes available for your Lambda functions.
|
NodejsFunction.Builder |
NodejsFunction.Builder.events(List<? extends IEventSource> events)
Event sources for this function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.externalModules(List<String> externalModules)
(experimental) A list of modules that should be considered as externals (already available in the runtime).
|
NodejsFunction.Builder |
NodejsFunction.Builder.filesystem(FileSystem filesystem)
The filesystem configuration for the lambda function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.forceDockerBundling(Boolean forceDockerBundling)
(experimental) Force bundling in a Docker container even if local bundling is possible.This is useful if your function relies on node modules that should be installed (`nodeModules`) in a Lambda compatible environment.
|
NodejsFunction.Builder |
NodejsFunction.Builder.functionName(String functionName)
A name for the function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.handler(String handler)
(experimental) The name of the exported handler in the entry file.
|
NodejsFunction.Builder |
NodejsFunction.Builder.initialPolicy(List<? extends software.amazon.awscdk.services.iam.PolicyStatement> initialPolicy)
Initial policy statements to add to the created Lambda Role.
|
NodejsFunction.Builder |
NodejsFunction.Builder.layers(List<? extends ILayerVersion> layers)
A list of layers to add to the function's execution environment.
|
NodejsFunction.Builder |
NodejsFunction.Builder.logRetention(software.amazon.awscdk.services.logs.RetentionDays logRetention)
The number of days log events are kept in CloudWatch Logs.
|
NodejsFunction.Builder |
NodejsFunction.Builder.logRetentionRetryOptions(LogRetentionRetryOptions logRetentionRetryOptions)
When log retention is specified, a custom resource attempts to create the CloudWatch log group.
|
NodejsFunction.Builder |
NodejsFunction.Builder.logRetentionRole(software.amazon.awscdk.services.iam.IRole logRetentionRole)
The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
|
NodejsFunction.Builder |
NodejsFunction.Builder.maxEventAge(Duration maxEventAge)
The maximum age of a request that Lambda sends to a function for processing.
|
NodejsFunction.Builder |
NodejsFunction.Builder.memorySize(Number memorySize)
The amount of memory, in MB, that is allocated to your Lambda function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.minify(Boolean minify)
(experimental) Whether to minify files when bundling.
|
NodejsFunction.Builder |
NodejsFunction.Builder.nodeModules(List<String> nodeModules)
(experimental) A list of modules that should be installed instead of bundled.
|
NodejsFunction.Builder |
NodejsFunction.Builder.onFailure(IDestination onFailure)
The destination for failed invocations.
|
NodejsFunction.Builder |
NodejsFunction.Builder.onSuccess(IDestination onSuccess)
The destination for successful invocations.
|
NodejsFunction.Builder |
NodejsFunction.Builder.parcelEnvironment(Map<String,String> parcelEnvironment)
(experimental) Environment variables defined when Parcel runs.
|
NodejsFunction.Builder |
NodejsFunction.Builder.parcelVersion(String parcelVersion)
(experimental) The version of Parcel to use when running in a Docker container.
|
NodejsFunction.Builder |
NodejsFunction.Builder.profiling(Boolean profiling)
Enable profiling.
|
NodejsFunction.Builder |
NodejsFunction.Builder.profilingGroup(software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup profilingGroup)
Profiling Group.
|
NodejsFunction.Builder |
NodejsFunction.Builder.projectRoot(String projectRoot)
(experimental) The root of the project.
|
NodejsFunction.Builder |
NodejsFunction.Builder.reservedConcurrentExecutions(Number reservedConcurrentExecutions)
The maximum of concurrent executions you want to reserve for the function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.retryAttempts(Number retryAttempts)
The maximum number of times to retry when the function returns an error.
|
NodejsFunction.Builder |
NodejsFunction.Builder.role(software.amazon.awscdk.services.iam.IRole role)
Lambda execution role.
|
NodejsFunction.Builder |
NodejsFunction.Builder.runtime(Runtime runtime)
(experimental) The runtime environment.
|
NodejsFunction.Builder |
NodejsFunction.Builder.securityGroup(software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup)
Deprecated.
- This property is deprecated, use securityGroups instead
|
NodejsFunction.Builder |
NodejsFunction.Builder.securityGroups(List<? extends software.amazon.awscdk.services.ec2.ISecurityGroup> securityGroups)
The list of security groups to associate with the Lambda's network interfaces.
|
NodejsFunction.Builder |
NodejsFunction.Builder.sourceMaps(Boolean sourceMaps)
(experimental) Whether to include source maps when bundling.
|
NodejsFunction.Builder |
NodejsFunction.Builder.timeout(Duration timeout)
The function execution time (in seconds) after which Lambda terminates the function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.tracing(Tracing tracing)
Enable AWS X-Ray Tracing for Lambda Function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.vpc(software.amazon.awscdk.services.ec2.IVpc vpc)
VPC network to place Lambda network interfaces.
|
NodejsFunction.Builder |
NodejsFunction.Builder.vpcSubnets(software.amazon.awscdk.services.ec2.SubnetSelection vpcSubnets)
Where to place the network interfaces within the VPC.
|
Copyright © 2020. All rights reserved.