Licence
Apache-2.0
Version
1.23.0-1
Deps
2
Size
18 kB
Vulns
0
Weekly
0
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.