Package io.github.cdklabs.projen.awscdk
Class LambdaFunctionOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.awscdk.LambdaFunctionOptions.Jsii$Proxy
-
- All Implemented Interfaces:
LambdaFunctionCommonOptions,LambdaFunctionOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- LambdaFunctionOptions
@Stability(Experimental) @Internal public static final class LambdaFunctionOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LambdaFunctionOptions
An implementation forLambdaFunctionOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.awscdk.LambdaFunctionOptions
LambdaFunctionOptions.Builder, LambdaFunctionOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(LambdaFunctionOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theLambdaFunctionOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)BooleangetAwsSdkConnectionReuse()(experimental) Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript.BundlingOptionsgetBundlingOptions()(experimental) Bundling options for this AWS Lambda function.AwsCdkDepsgetCdkDeps()(experimental) AWS CDK dependency manager.StringgetConstructFile()(experimental) The name of the generated TypeScript source file.StringgetConstructName()(experimental) The name of the generatedlambda.Functionsubclass.BooleangetEdgeLambda()(experimental) Whether to create acloudfront.experimental.EdgeFunctioninstead of alambda.Function.StringgetEntrypoint()(experimental) A path from the project root directory to a TypeScript file which contains the AWS Lambda handler entrypoint (exports ahandlerfunction).LambdaRuntimegetRuntime()(experimental) The node.js version to target.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(LambdaFunctionOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theLambdaFunctionOptions.Builder.
-
-
Method Detail
-
getCdkDeps
public final AwsCdkDeps getCdkDeps()
Description copied from interface:LambdaFunctionOptions(experimental) AWS CDK dependency manager.- Specified by:
getCdkDepsin interfaceLambdaFunctionOptions
-
getEntrypoint
public final String getEntrypoint()
Description copied from interface:LambdaFunctionOptions(experimental) A path from the project root directory to a TypeScript file which contains the AWS Lambda handler entrypoint (exports ahandlerfunction).This is relative to the root directory of the project.
Example:
"src/subdir/foo.lambda.ts"
- Specified by:
getEntrypointin interfaceLambdaFunctionOptions
-
getConstructFile
public final String getConstructFile()
Description copied from interface:LambdaFunctionOptions(experimental) The name of the generated TypeScript source file.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`.
- Specified by:
getConstructFilein interfaceLambdaFunctionOptions
-
getConstructName
public final String getConstructName()
Description copied from interface:LambdaFunctionOptions(experimental) The name of the generatedlambda.Functionsubclass.Default: - A pascal cased version of the name of the entrypoint file, with the extension `Function` (e.g. `ResizeImageFunction`).
- Specified by:
getConstructNamein interfaceLambdaFunctionOptions
-
getAwsSdkConnectionReuse
public final Boolean getAwsSdkConnectionReuse()
Description copied from interface:LambdaFunctionCommonOptions(experimental) Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript.This sets the
AWS_NODEJS_CONNECTION_REUSE_ENABLEDenvironment variable to1.Not applicable when
edgeLambdais set totruebecause environment variables are not supported in Lambda@Edge.Default: true
- Specified by:
getAwsSdkConnectionReusein interfaceLambdaFunctionCommonOptions- See Also:
- https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html
-
getBundlingOptions
public final BundlingOptions getBundlingOptions()
Description copied from interface:LambdaFunctionCommonOptions(experimental) Bundling options for this AWS Lambda function.If not specified the default bundling options specified for the project
Bundlerinstance will be used.Default: - defaults
- Specified by:
getBundlingOptionsin interfaceLambdaFunctionCommonOptions
-
getEdgeLambda
public final Boolean getEdgeLambda()
Description copied from interface:LambdaFunctionCommonOptions(experimental) Whether to create acloudfront.experimental.EdgeFunctioninstead of alambda.Function.Default: false
- Specified by:
getEdgeLambdain interfaceLambdaFunctionCommonOptions
-
getRuntime
public final LambdaRuntime getRuntime()
Description copied from interface:LambdaFunctionCommonOptions(experimental) The node.js version to target.Default: Runtime.NODEJS_18_X
- Specified by:
getRuntimein interfaceLambdaFunctionCommonOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-