1.23.0-1 • Published 4 years ago

aws-lambda-rust v1.23.0-1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

Amazon Lambda Rust Library


Stability: Experimental

This is unofficial CDK library based on Amazon Lambda Node.js Library

This library provides constructs for Rust Lambda functions.

Rust Function

Define a RustFunction:

new lambda.RustFunction(this, 'my-handler', {
    executable: "my_lambda"
});

By default, the construct will use directory where cdn was invoked as directory where Cargo files are located.

Alternatively, directory can be specified:

new lambda.RustFunction(this, 'MyFunction', {
  directory: '/path/to/directory/with/Cargo.toml'
  executable: "my_lambda"
});

All other properties of lambda.Function are supported, see also the AWS Lambda construct library.