ExitContent-Based Routing: Event Patterns for Selective Forwarding1 / 9
Explanation

Combine envelope and payload predicates

How event-envelope and payload predicates select cross-account and cross-Region forwarding destinations, including overlapping matches, unmatched events, and forwarding-loop prevention. · advanced

An Amazon EventBridge event pattern determines whether a rule matches an event; the rule's configured targets determine where it goes. Envelope fields such as account, region, source, and detail-type constrain the event context. Fields nested under detail constrain business content. A payload value such as market = EU does not discover a destination: a rule must explicitly target the intended bus.

Throughout this lesson, both forwarding rules require this common pattern: {"account":["111111111111"],"region":["us-east-1"],"source":["com.shop.orders"],"detail-type":["OrderCreated"],"detail":{"routeStage":["origin"]}}. The HighValue rule adds "total":[{"numeric":[">=",1000]}] inside detail. The EU rule instead adds "market":["EU"] there.

Different specified fields combine with AND; alternative values in a field's array normally combine with OR. Unspecified fields impose no condition. An absent field fails an ordinary value condition, although an explicit exists condition can test absence. Numeric operators require JSON numbers, so the string "1200" does not satisfy the numeric predicate; ordinary string matching is case-sensitive.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.