Rust library lambda_sqs
Specialised lambda_runtime to accept and process events from SQS.
SQS Events
SQS dispatches events to a lambda function in batches (often, it seems to my surprise). This crate provides a lambda_runtime implementation that expects to receive a batch of messages in the[SqsEvent] type and provides a method to transform the batch of events to a vec of your Struct.
Usage
To use the crate add the dependency in Cargo.toml.
[]
= " 0.2.31"
Example
use YourStruct;
use ;
use SqsEvent;
async
pub async
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or apache-url)
- MIT license (LICENSE-MIT or mit-url)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.