Interface LambdaFunctionCommonOptions

    • Method Detail

      • getAwsSdkConnectionReuse

        @Stability(Experimental)
        @Nullable
        default Boolean getAwsSdkConnectionReuse()
        (experimental) Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript.

        This sets the AWS_NODEJS_CONNECTION_REUSE_ENABLED environment variable to 1.

        Not applicable when edgeLambda is set to true because environment variables are not supported in Lambda@Edge.

        Default: true

        See Also:
        https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html
      • getBundlingOptions

        @Stability(Experimental)
        @Nullable
        default BundlingOptions getBundlingOptions()
        (experimental) Bundling options for this AWS Lambda function.

        If not specified the default bundling options specified for the project Bundler instance will be used.

        Default: - defaults

      • getEdgeLambda

        @Stability(Experimental)
        @Nullable
        default Boolean getEdgeLambda()
        (experimental) Whether to create a cloudfront.experimental.EdgeFunction instead of a lambda.Function.

        Default: false

      • getRuntime

        @Stability(Experimental)
        @Nullable
        default LambdaRuntime getRuntime()
        (experimental) The node.js version to target.

        Default: Runtime.NODEJS_18_X