@Stability(value=Experimental) public static final class LambdaFunction.Builder extends Object implements software.amazon.jsii.Builder<LambdaFunction>
LambdaFunction.| Modifier and Type | Method and Description |
|---|---|
LambdaFunction |
build() |
LambdaFunction.Builder |
bundlingOptions(BundlingOptions bundlingOptions)
(experimental) Bundling options for this AWS Lambda function.
|
LambdaFunction.Builder |
cdkDeps(AwsCdkDeps cdkDeps)
(experimental) AWS CDK dependency manager.
|
LambdaFunction.Builder |
constructFile(String constructFile)
(experimental) The name of the generated TypeScript source file.
|
LambdaFunction.Builder |
constructName(String constructName)
(experimental) The name of the generated `lambda.Function` subclass.
|
static LambdaFunction.Builder |
create(Project project) |
LambdaFunction.Builder |
entrypoint(String entrypoint)
(experimental) A path from the project root directory to a TypeScript file which contains the AWS Lambda handler entrypoint (exports a `handler` function).
|
LambdaFunction.Builder |
runtime(LambdaRuntime runtime)
(experimental) The node.js version to target.
|
@Stability(value=Experimental) public static LambdaFunction.Builder create(Project project)
project - The project to use. This parameter is required.LambdaFunction.Builder.@Stability(value=Experimental) public LambdaFunction.Builder bundlingOptions(BundlingOptions bundlingOptions)
If not specified the default bundling options specified for the project
Bundler instance will be used.
Default: - defaults
bundlingOptions - Bundling options for this AWS Lambda function. This parameter is required.this@Stability(value=Experimental) public LambdaFunction.Builder runtime(LambdaRuntime runtime)
Default: Runtime.NODEJS_14_X
runtime - The node.js version to target. This parameter is required.this@Stability(value=Experimental) public LambdaFunction.Builder cdkDeps(AwsCdkDeps cdkDeps)
cdkDeps - AWS CDK dependency manager. This parameter is required.this@Stability(value=Experimental) public LambdaFunction.Builder entrypoint(String entrypoint)
This is relative to the root directory of the project.
Example:
// Example automatically generated from non-compiling source. May contain errors. "src/subdir/foo.lambda.ts"
entrypoint - A path from the project root directory to a TypeScript file which contains the AWS Lambda handler entrypoint (exports a `handler` function). This parameter is required.this@Stability(value=Experimental) public LambdaFunction.Builder constructFile(String constructFile)
This file should also be under the source tree.
Default: - The name of the entrypoint file, with the `-function.ts` suffix instead of `.lambda.ts`.
constructFile - The name of the generated TypeScript source file. This parameter is required.this@Stability(value=Experimental) public LambdaFunction.Builder constructName(String constructName)
Default: - A pascal cased version of the name of the entrypoint file, with the extension `Function` (e.g. `ResizeImageFunction`).
constructName - The name of the generated `lambda.Function` subclass. This parameter is required.this@Stability(value=Experimental) public LambdaFunction build()
build in interface software.amazon.jsii.Builder<LambdaFunction>Copyright © 2021. All rights reserved.