{"uid":"cap_OGI8eCUxMOS-st6b44r8n","slug":"eventbridge-content-pattern-array-conjunction-matching-07102c72","name":"EventBridge Content Pattern Array Conjunction Matching","description":"Evaluate EventBridge nested event patterns with arrays, exists, numeric, prefix/suffix, anything-but and OR contracts.","url":"https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-05/eventbridge-content-pattern-operator-array-conjunction-matching?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","$defs":{"json":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string","maxLength":6000},{"type":"array","items":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"},"maxItems":512},{"type":"object","maxProperties":128,"additionalProperties":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"}}]}},"required":["eventBridge"],"properties":{"eventBridge":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["canonical_numbers","events","pattern"],"properties":{"events":{"type":"array","items":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"},"maxItems":128},"pattern":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"},"canonical_numbers":{"type":"boolean"}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"object","required":["events"],"properties":{"events":{"type":"array","items":{"type":"object","required":["matches"],"properties":{"matches":{"type":"boolean"}},"additionalProperties":false},"maxItems":512}},"additionalProperties":false}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__Dxff5y5nlMlEWHfaOijq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates AWS EventBridge nested event patterns—including arrays, exists, numeric, prefix/suffix, anything-but, and OR operators—against one or more events to determine which match.","exampleAgentPrompt":"Check whether these three EventBridge events match my pattern — the pattern uses a numeric range on 'price' between 10 and 100, an 'anything-but' on 'region' excluding 'us-east-1', and an exists check on 'orderId'; use canonical numbers mode and tell me which events match.","exampleUseCases":[{"title":"Debug failing EventBridge routing rule","prompt":"I have an EventBridge rule that should catch order events where status is anything-but 'cancelled' and amount is greater than 50, but events aren't routing as expected — can you test these 5 sample events against that pattern and show me which ones actually match?"},{"title":"Validate prefix and suffix pattern filters","prompt":"I want to confirm my EventBridge pattern is correctly filtering S3 object keys that start with 'uploads/' and end with '.jpg' — here are 10 sample events, please evaluate them all against my pattern and tell me which ones match."},{"title":"Test OR condition and array containment logic","prompt":"Can you evaluate whether this EventBridge pattern — which uses an OR across two source values and checks that the 'tags' array contains at least one of my allowed values — correctly matches these events? Use canonical numbers mode."}],"resultDescription":"Returns a per-event list of boolean match results indicating whether each submitted event satisfies the provided EventBridge content pattern. Optionally validates against a supplied claim of expected results for assertion-style testing.","failureModes":["Pattern JSON is malformed or uses unsupported EventBridge syntax — returns validation error","Events array exceeds 128 items — rejected by schema","Event or pattern object exceeds allowed nesting or property count limits","Mismatch between events array length and claim.events array length — may cause assertion failure or error","Network timeout for unusually large or deeply nested payloads"],"whenToPreferThis":"Use this endpoint when you need to programmatically evaluate AWS EventBridge content-based filtering patterns — especially when patterns involve advanced operators like numeric ranges, prefix/suffix matching, exists checks, anything-but, array containment, or OR logic. Ideal for automated testing, debugging, and CI/CD validation of EventBridge rules without deploying to AWS.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:41:08.755Z","isFirstParty":false,"canonicalSlug":"eventbridge-content-pattern-array-conjunction-matching-07102c72"}