Description
Use case
I'm starting with Appsync events, but the lambda that is called as data source (on publish/subscribe) also receives input from other sources.
Therefore, I want to filter within the lambda event handler from which service the event came from to check which message processor is required. The current new AppSync Events event headers examples contain only the app.resolve(event, context)
but I would like to place a filter in advance like "if event === appsyncevent". I do not see Validation schema/envelope for these appsync events. I could make one myself, but I think it would be a great addition to this package.
Solution/User Experience
A validator that can verify if an incoming message is a AppSync Events event, for use cases where multiple sources/services call the same lambda.
Alternative solutions
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status