The mechanism available for defining a Lambda function is as follows:
Create a type that conforms to the
Handler trait. This type can then be passed
to the the
lambda_runtime::run function, which launches and runs the Lambda runtime.
Configuration derived from environment variables.
The Lambda function execution context. The values in this struct are populated using the Lambda environment variables and the headers returned by the poll request to the Runtime APIs.
A trait describing an asynchronous function
Returns a new
Starts the Lambda Rust runtime and begins polling for events on the Lambda Runtime APIs.
Error type that lambdas may result in