0.3.0 • Published 2 years ago

@cdk-util/aws-lambda v0.3.0

Weekly downloads
10
License
MIT
Repository
github
Last release
2 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

2 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago