Closed
Description
Use case
SQS events can encapsulate events originated in other AWS resources, such as S3 and SNS. When processing a SQSEvent
in a Lambda function, a function to decode these nested events - returning the desired data class - would improve the user experience.
Solution/User Experience
@event_source(data_class=SQSEvent)
def lambda_handler(event: SQSEvent, context):
for record in event.records:
nested_event: S3Event = record.decode_nested_s3_event
Alternative solutions
No response
Acknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped