0.3.0 • Published 3 years ago

@cdk-util/aws-lambda v0.3.0

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

@cdk-util/aws-lambda

Installation

npm i @cdk-util/aws-lambda

Usage

import { NodejsFunction } from "@cdk-util/aws-lambda";

/**
 * Defines a Lambda Function and a Lambda Layer for NodeJS.
 * 
 * This construct requires package.json in a specified directory
 * to generate the Function and the Layer.
 * 
 * The directory pointed by the `main` property of the package.json
 * is used for the code asset of the Function.
 * 
 * The `dependencies` property is used to generate the Layer with CodeBuild.
 */
const handler = new NodejsFunction(this, "handler", {
  packageDirectory: 'path/to/dir',
});

License

MIT

0.3.0

3 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago