| 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.buildDir(String buildDir)
The build directory.
|
NodejsFunction.Builder |
NodejsFunction.Builder.cacheDir(String cacheDir)
The cache directory.
|
static NodejsFunction.Builder |
NodejsFunction.Builder.create(software.amazon.awscdk.core.Construct scope,
String id)
EXPERIMENTAL
|
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)
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<software.amazon.awscdk.services.lambda.IEventSource> events)
Event sources for this function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.functionName(String functionName)
A name for the function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.handler(String handler)
The name of the exported handler in the entry file.
|
NodejsFunction.Builder |
NodejsFunction.Builder.initialPolicy(List<software.amazon.awscdk.services.iam.PolicyStatement> initialPolicy)
Initial policy statements to add to the created Lambda Role.
|
NodejsFunction.Builder |
NodejsFunction.Builder.layers(List<software.amazon.awscdk.services.lambda.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.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(software.amazon.awscdk.core.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)
Whether to minify files when bundling.
|
NodejsFunction.Builder |
NodejsFunction.Builder.onFailure(software.amazon.awscdk.services.lambda.IDestination onFailure)
The destination for failed invocations.
|
NodejsFunction.Builder |
NodejsFunction.Builder.onSuccess(software.amazon.awscdk.services.lambda.IDestination onSuccess)
The destination for successful invocations.
|
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(software.amazon.awscdk.services.lambda.Runtime runtime)
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<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)
Whether to include source maps when bundling.
|
NodejsFunction.Builder |
NodejsFunction.Builder.timeout(software.amazon.awscdk.core.Duration timeout)
The function execution time (in seconds) after which Lambda terminates the function.
|
NodejsFunction.Builder |
NodejsFunction.Builder.tracing(software.amazon.awscdk.services.lambda.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 © 2024. All rights reserved.