Closed
Description
Use case
Currently, an event is expected to be of type Dict[str,Any]
. When using 'BatchInvoke' in a direct lambda resolver, the event becomes type List[Dict[str,Any]]
. Hence, it is not possible to route the event to the expected resolver.
A use case is given by the official dev guide. Without the ability to use 'BatchInvoke' users will run into n + 1 problems, when using appsync-GraphQl.
Solution/User Experience
I am not 100% sure how a good solution would look like. Maybe it would be possible to use the AppSyncResolverEvent
to handle one individual event, or a list of events.
Given the described use case, the events should usually only diverge in the source.
Alternative solutions
No response
Acknowledgment
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped