capabilities.work

Route and Emit Event

A 3-step recipe with Amazon EventBridge. We can help you get access.

Recipe · 3 steps

Route and Emit Event

Define a rule and target, then emit a matching custom event.

  1. Create the pattern-matching rule on the event bus, enabled immediately.
  2. Attach the supplied targets to the rule so matched events are delivered.
  3. 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.