Crate lambda_runtime

source ·
Expand description

The mechanism available for defining a Lambda function is as follows:

Create a type that conforms to the tower::Service trait. This type can then be passed to the the lambda_runtime::run function, which launches and runs the Lambda runtime.

Re-exports

pub use tower;

Structs

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.
Incoming Lambda request containing the event payload and context.

Traits

An asynchronous function from a Request to a Response.

Functions

handler_fnDeprecated
Return a new ServiceFn with a closure that takes an event and context as separate arguments.
Starts the Lambda Rust runtime and begins polling for events on the Lambda Runtime APIs.
Returns a new ServiceFn with the given closure.

Type Definitions

Error type that lambdas may result in