You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WDYT about adding optional additional filtering to event.pattern? This would allow to listen to a subset of event patterns.
Right now we're accomplishing it by doing something like this:
consteventBridgePattern: DeepPartial<Input>={detail: {status: [RentalDeliveryStatus.DELIVERED]asunknownasInput['detail']['status']},// Make sure this value is somewhat linked to event type};
...
events: [{eventBridge: {eventBus: 'bus',// Augmenting the default typebridge pattern, to only listen to events with status "DELIVERED"pattern: {
...event.pattern,
...eventBridgePattern,},},},],
would be amazing in our use case to have something more like this: event.pattern({ status: "Delivered" })
let me know what you think, would be happy to create a PR regarding this 😊
The text was updated successfully, but these errors were encountered:
Hi @fredericbarthelet,
WDYT about adding optional additional filtering to
event.pattern
? This would allow to listen to a subset of event patterns.Right now we're accomplishing it by doing something like this:
would be amazing in our use case to have something more like this:
event.pattern({ status: "Delivered" })
let me know what you think, would be happy to create a PR regarding this 😊
The text was updated successfully, but these errors were encountered: