The NodejsFunction from the @aws-cdk/aws-lambda-nodejs package but with the AWS_NODEJS_CONNECTION_REUSE_ENABLED automatically set.
Project description
Matt's Lambda Node.js Library
---This is a developer preview (public beta) module. Releases might lack important features and might have future breaking changes.
This API is still under active development and subject to non-backward compatible changes or removal in any future version. Use of the API is not recommended in production environments. Experimental APIs are not subject to the Semantic Versioning model.
This library provides constructs for Node.js Lambda functions. Well, ok, so AWS already does that with the @aws-cdk/aws-lambda-nodejs package.
All this CDK construct does it expose the same NodejsFunction
construct as that other package, but I set the AWS_NODEJS_CONNECTION_REUSE_ENABLED
for you. Why? Because it's a super great environment flag built into the AWS SDK which enables http keep-alive, and greatly improves performance.
Usage
This is a drop-in replacement:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
# import {NodejsFunction} from '@aws-cdk/aws-lambda-nodejs';
from nodejsfunction_plus import NodejsFunction
NodejsFunction(self, "whatever")
Contributing
Just submit a PR.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mbonig.aws_lambda_nodejs.NodejsFunctionPlus-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 632357a0804e369a8795899718a95dbe03fd3d935d9e58224de0a7e44523739f |
|
MD5 | 3611c3c25c1e03c83d02db9c6ea9124d |
|
BLAKE2b-256 | 924c6502f2216f9c27fb7e3f37482d380984973ca2935bc86e359628826b3181 |
Hashes for mbonig.aws_lambda_nodejs.NodejsFunctionPlus-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3823fae09cf3994ee347e30ab90ce26e070b411bfc541481fd39bd78a1a6a409 |
|
MD5 | 998c93b261aa7e2811ecb3ac6af194b5 |
|
BLAKE2b-256 | c6360cacee60a6e44aaa4955596e53c850a1b5bd3ea66e47bb0d48cb05bc9313 |