1.23.0-1 • Published 4 years ago
aws-lambda-rust v1.23.0-1
Amazon Lambda Rust Library
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.
1.23.0-1
4 years ago