aws_lambda_events 0.8.0

AWS Lambda event definitions
docs.rs failed to build aws_lambda_events-0.8.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: aws_lambda_events-0.15.0

aws_lambda_events

Documentation

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

Installation

Include the crate in your Cargo.toml:

[dependencies]
aws_lambda_events = "^0.7"

Usage

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:

[dependencies]
aws_lambda_events = { version = "^0.7", default-features = false, features = ["apigw", "alb"] }