Route and Emit Event
A 3-step recipe with Amazon EventBridge. We can help you get access.
Recipe · 3 steps
Route and Emit Event
with Amazon EventBridge
Define a rule and target, then emit a matching custom event.
- Create the pattern-matching rule on the event bus, enabled immediately.
- Attach the supplied targets to the rule so matched events are delivered.
- Publish a custom event onto the event bus so it routes through the rule.
What you'll need to have ready
- ruleName: The name of the rule to create.
- eventBusName: The name or ARN of the event bus to use.
- eventPattern: The event pattern (JSON string) the rule matches against.
- targets: The list of Target objects to attach to the rule.
- eventSource: The source field of the event to publish.
- eventDetailType: The detail-type field of the event to publish.
- eventDetail: A valid JSON string containing the event detail.
For your developer
Arazzo workflow amazon-eventbridge:route-and-emit-event, 3 operations: PutRule → PutTargets → PutEvents. Specs on APIs.io.