@Stability(value=Experimental) public static final class LambdaFunctionOptions.Builder extends Object implements software.amazon.jsii.Builder<LambdaFunctionOptions>
LambdaFunctionOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LambdaFunctionOptions |
build()
Builds the configured instance.
|
LambdaFunctionOptions.Builder |
bundlingOptions(BundlingOptions bundlingOptions)
Sets the value of
LambdaFunctionCommonOptions.getBundlingOptions() |
LambdaFunctionOptions.Builder |
cdkDeps(AwsCdkDeps cdkDeps)
Sets the value of
LambdaFunctionOptions.getCdkDeps() |
LambdaFunctionOptions.Builder |
constructFile(String constructFile)
Sets the value of
LambdaFunctionOptions.getConstructFile() |
LambdaFunctionOptions.Builder |
constructName(String constructName)
Sets the value of
LambdaFunctionOptions.getConstructName() |
LambdaFunctionOptions.Builder |
entrypoint(String entrypoint)
Sets the value of
LambdaFunctionOptions.getEntrypoint() |
LambdaFunctionOptions.Builder |
runtime(LambdaRuntime runtime)
Sets the value of
LambdaFunctionCommonOptions.getRuntime() |
@Stability(value=Experimental) public LambdaFunctionOptions.Builder cdkDeps(AwsCdkDeps cdkDeps)
LambdaFunctionOptions.getCdkDeps()cdkDeps - AWS CDK dependency manager. This parameter is required.this@Stability(value=Experimental) public LambdaFunctionOptions.Builder entrypoint(String entrypoint)
LambdaFunctionOptions.getEntrypoint()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 is relative to the root directory of the project.this@Stability(value=Experimental) public LambdaFunctionOptions.Builder constructFile(String constructFile)
LambdaFunctionOptions.getConstructFile()constructFile - The name of the generated TypeScript source file.
This file should also be
under the source tree.this@Stability(value=Experimental) public LambdaFunctionOptions.Builder constructName(String constructName)
LambdaFunctionOptions.getConstructName()constructName - The name of the generated `lambda.Function` subclass.this@Stability(value=Experimental) public LambdaFunctionOptions.Builder bundlingOptions(BundlingOptions bundlingOptions)
LambdaFunctionCommonOptions.getBundlingOptions()bundlingOptions - Bundling options for this AWS Lambda function.
If not specified the default bundling options specified for the project
Bundler instance will be used.this@Stability(value=Experimental) public LambdaFunctionOptions.Builder runtime(LambdaRuntime runtime)
LambdaFunctionCommonOptions.getRuntime()runtime - The node.js version to target.this@Stability(value=Experimental) public LambdaFunctionOptions build()
build in interface software.amazon.jsii.Builder<LambdaFunctionOptions>LambdaFunctionOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.