Create Rule with Targets
A 3-step recipe with Amazon EventBridge. We can help you get access.
Recipe · 3 steps
Create Rule with Targets
with Amazon EventBridge
Add a rule and its targets to an existing event bus and verify them.
- Create the pattern-matching rule on the event bus, enabled immediately.
- Attach the supplied targets to the newly created rule.
- Read the targets back from the rule to confirm they registered.
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 add the rule to.
- eventPattern: The event pattern (JSON string) the rule matches against.
- ruleDescription: An optional human-readable description for the rule.
- targets: The list of Target objects to attach to the rule.
For your developer
Arazzo workflow amazon-eventbridge:create-rule-with-targets, 3 operations: PutRule → PutTargets → ListTargetsByRule. Specs on APIs.io.