Ravi Sir's Cards › AWS
Event patterns
This revision card explains Event patterns. A rule that is too wide floods targets; too narrow never fires. An event pattern is JSON that must match fields like source, detail-type, and detail keys. The how-to section notes match source myapp.orders and detail-type OrderPlaced; optionally detail.status = PAID. An example on the card is only paid orders hit the ship target; draft orders do not.
Read card text
What this card says
Why do we need it?
A rule that is too wide floods targets; too narrow never fires.
What is it?
An event pattern is JSON that must match fields like source, detail-type, and detail keys.
event pattern
How to do it
Match source myapp.orders and detail-type OrderPlaced; optionally detail.status = PAID.
Example
Only paid orders hit the ship target; draft orders do not.