-
Notifications
You must be signed in to change notification settings - Fork 464
feat(parser): add model for the DynamoDB Stream Lambda invocation record #7818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(parser): add model for the DynamoDB Stream Lambda invocation record #7818
Conversation
|
Thank you for creating this issue and the accompanying PR! We will review your PR shortly. |
This commit adds a model for the invocation record that a Lambda with a DynamoDB event source sends to a SNS, SQS or S3 destination for failed invocations. The record format is described in https://docs.aws.amazon.com/lambda/latest/dg/services-dynamodb-errors.html The model can be used in the handler of a lambda that processes failed invocations from SNS or SQS by combining it with the source envelope model, e.g., from aws_lambda_powertools.utilities.parser import envelopes, event_parser from aws_lambda_powertools.utilities.parser.models import DynamoDBStreamLambdaOnFailureDestinationModel @event_parser(model=DynamoDBStreamLambdaOnFailureDestinationModel, envelope=envelopes.SqsEnvelope) def lambda_handler(event: list[DynamoDBStreamLambdaOnFailureDestinationModel], context: LambdaContext): ...
d7e1c79 to
c686394
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #7818 +/- ##
===========================================
+ Coverage 96.49% 96.53% +0.03%
===========================================
Files 275 275
Lines 13123 13151 +28
Branches 990 990
===========================================
+ Hits 12663 12695 +32
+ Misses 355 353 -2
+ Partials 105 103 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
leandrodamascena
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APPROVED!

Issue number: closes #7817
Summary
Data model for DynamoDB Stream Lambda Invocation records
Changes
This commit adds a model for the invocation record that a Lambda with a DynamoDB event source sends to a SNS, SQS or S3 destination for failed invocations. The record format is described in
https://docs.aws.amazon.com/lambda/latest/dg/services-dynamodb-errors.html
The model can be used in the handler of a lambda that processes failed invocations from SNS or SQS by combining it with the source envelope model, e.g.,
User experience
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.