41 releases (14 breaking)

0.15.1 May 8, 2024
0.15.0 Feb 26, 2024
0.14.0 Feb 14, 2024
0.13.0 Dec 20, 2023
0.1.0 Oct 30, 2018

#2 in #amazon

Download history 38184/week @ 2024-03-14 34813/week @ 2024-03-21 33343/week @ 2024-03-28 37320/week @ 2024-04-04 39925/week @ 2024-04-11 44135/week @ 2024-04-18 46862/week @ 2024-04-25 45660/week @ 2024-05-02 43074/week @ 2024-05-09 46148/week @ 2024-05-16 47848/week @ 2024-05-23 50070/week @ 2024-05-30 46806/week @ 2024-06-06 46925/week @ 2024-06-13 45648/week @ 2024-06-20 37882/week @ 2024-06-27

187,166 downloads per month
Used in 45 crates (24 directly)

MIT license


AWS Lambda Events

crates.io Documentation

This crate provides strongly-typed AWS Lambda event structs in Rust.


Add the dependency with Cargo: cargo add aws_lambda_events.


The crate itself has no AWS Lambda handler logic and instead exists to serialize and deserialize AWS Lambda events into strongly-typed Rust structs.

The types defined in this crate are usually used with handlers / runtimes provided by the official Rust runtime.

For a list of supported AWS Lambda events and services, see the crate reference documentation.

Conditional compilation of features

This crate divides all Lambda Events into features named after the service that the events are generated from. By default all events are enabled when you include this crate as a dependency to your project. If you only want to import specific events from this crate, you can disable the default features, and enable only the events that you need. This will make your project to compile a little bit faster, since rustc doesn't need to compile events that you're not going to use. Here's an example on how to do that:

cargo add aws_lambda_events --no-default-features --features apigw,alb


The AWS Lambda Events crate was created by Christian Legnitto. Without all his work and dedication, this project could have not been possible.

In 2023, the AWS Lambda Event crate was moved into this repository to continue its support for all AWS customers that use Rust on AWS Lambda.


~49K SLoC