Feat/update lambda events for more ergonomic apis#26
Merged
jeastham1993 merged 1 commit intoJan 22, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the aws_lambda_events library from version 1.0.0 to 1.0.3 to introduce more ergonomic APIs for handling batch failures in AWS Lambda functions that process SQS and Kinesis events.
Changes:
- Updated
aws_lambda_eventsdependency from 1.0.0 to 1.0.3 across multiple Cargo.toml files - Replaced manual
BatchItemFailureconstruction withadd_failure()andset_failures()helper methods - Removed unnecessary imports of
BatchItemFailureandKinesisBatchItemFailure
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| chapter-09/lambdas/process_link_created/Cargo.toml | Updated aws_lambda_events to 1.0.3 |
| chapter-09/lambdas/process_link_clicked/Cargo.toml | Updated aws_lambda_events to 1.0.3 |
| chapter-09/examples/lambda-process-sqs/Cargo.toml | Updated aws_lambda_events to 1.0.3 |
| chapter-09/lambdas/process_link_created/src/event_handler.rs | Replaced manual BatchItemFailure construction with set_failures() method, removed BatchItemFailure import |
| chapter-08/lambdas/process_link_created/Cargo.toml | Updated aws_lambda_events to 1.0.3 |
| chapter-08/lambdas/process_link_created/src/event_handler.rs | Replaced manual BatchItemFailure construction with set_failures() method, removed BatchItemFailure import |
| chapter-08/examples/lambda-process-sqs-failure/Cargo.toml | Updated aws_lambda_events to 1.0.3 |
| chapter-08/examples/lambda-process-sqs-failure/src/event_handler.rs | Replaced manual BatchItemFailure construction with add_failure() method, removed BatchItemFailure import |
| chapter-08/examples/lambda-process-kinesis-failure/Cargo.toml | Updated aws_lambda_events to 1.0.3 |
| chapter-08/examples/lambda-process-kinesis-failure/src/event_handler.rs | Replaced manual KinesisBatchItemFailure construction with add_failure() method, removed KinesisBatchItemFailure import |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This should be merged after
And it might require changing the PR base back to main and possibly rebasing