Package io.github.cdklabs.projen.awscdk
Class LambdaExtensionOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.awscdk.LambdaExtensionOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaExtensionOptions>
- Enclosing interface:
- LambdaExtensionOptions
@Stability(Experimental) public static final class LambdaExtensionOptions.Builder extends Object implements software.amazon.jsii.Builder<LambdaExtensionOptions>
A builder forLambdaExtensionOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
cdkDeps
@Stability(Experimental) public LambdaExtensionOptions.Builder cdkDeps(AwsCdkDeps cdkDeps)
Sets the value ofLambdaExtensionOptions.getCdkDeps()- Parameters:
cdkDeps- AWS CDK dependency manager. This parameter is required.- Returns:
this
-
entrypoint
@Stability(Experimental) public LambdaExtensionOptions.Builder entrypoint(String entrypoint)
Sets the value ofLambdaExtensionOptions.getEntrypoint()- Parameters:
entrypoint- A path from the project root directory to a TypeScript file which contains the AWS Lambda extension entrypoint (stand-alone script). This parameter is required. This is relative to the root directory of the project.- Returns:
this
-
constructFile
@Stability(Experimental) public LambdaExtensionOptions.Builder constructFile(String constructFile)
Sets the value ofLambdaExtensionOptions.getConstructFile()- Parameters:
constructFile- The name of the generated TypeScript source file. This file should also be under the source tree.- Returns:
this
-
constructName
@Stability(Experimental) public LambdaExtensionOptions.Builder constructName(String constructName)
Sets the value ofLambdaExtensionOptions.getConstructName()- Parameters:
constructName- The name of the generatedlambda.LayerVersionsubclass.- Returns:
this
-
name
@Stability(Experimental) public LambdaExtensionOptions.Builder name(String name)
Sets the value ofLambdaExtensionOptions.getName()- Parameters:
name- Name of the extension.- Returns:
this
-
bundlingOptions
@Stability(Experimental) public LambdaExtensionOptions.Builder bundlingOptions(BundlingOptions bundlingOptions)
Sets the value ofLambdaExtensionCommonOptions.getBundlingOptions()- Parameters:
bundlingOptions- Bundling options for this AWS Lambda extension. If not specified the default bundling options specified for the projectBundlerinstance will be used.- Returns:
this
-
compatibleRuntimes
@Stability(Experimental) public LambdaExtensionOptions.Builder compatibleRuntimes(List<? extends LambdaRuntime> compatibleRuntimes)
Sets the value ofLambdaExtensionCommonOptions.getCompatibleRuntimes()- Parameters:
compatibleRuntimes- The extension's compatible runtimes.- Returns:
this
-
build
@Stability(Experimental) public LambdaExtensionOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaExtensionOptions>- Returns:
- a new instance of
LambdaExtensionOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-