awslabs / aws-lambda-rust-runtime

A Rust runtime for AWS Lambda
Apache License 2.0
3.3k stars 335 forks source link

Api Gateway authorizer improvements #827

Closed calavera closed 6 months ago

calavera commented 6 months ago

Issue #, if available:

The discussion in https://github.com/awslabs/aws-lambda-rust-runtime/discussions/823 made me think that we can provide much better ergonomics to work with Api Gateway Authorizers, since it looks like a common use case.

Description of changes:

There are changes in the events crate that are not backwards compatible, but I believe they provide much better user experience. I've divided this PR in three commits so you can check the changes out in isolation. There are more details in the commit messages.

By submitting this pull request