An event rule is used to monitor a specific type of events. If an event that matches an event rule occurs, the event is routed to an event target that is associated with the event rule. An event rule can be associated with one or more event targets. You can manage event rules in the EventBridge console. This topic describes how to perform management operations in the EventBridge console, including how to create, view, and delete event rules.
Prerequisites
Activate EventBridge and grant permissions to a RAM userCreate an event rule
- Log on to the EventBridge console.
- In the left-side navigation pane, click Event Buses.
- In the top navigation bar, select a region.
- On the Event Buses page, click the name of the target event bus.
- In the left-side navigation pane, click Event Rules.
- On the Event Rules page, click Create Rule.
- Perform the following operations in the Create Rule panel:
View the details of an event rule
On the Event Rules page, find the rule whose details you want to view and click Details in the Operations column.
On the
Rule Detail page, you can view the basic information, event pattern, and event targets of the event rule.
Disable an event rule
- On the Event Rules page, find the rule that you want to disable and click Disable in the Operations column.
- In the Note message, read the note and click OK.
- In the Verify Account Security dialog box, click Obtain Verification Code, enter the verification code in the Verification Code field, and then click OK.
Warning After you disable an event rule, specific services may be unavailable.
Enable an event rule
- On the Event Rules page, find the rule that you want to enable and click Enable in the Operations column.
- In the Note message, read the note and click OK.
Modify event targets
- On the Event Rules page, find the rule for which you want to modify the event targets and click Edit Targets in the Operations column.
- On the Edit Rule page, modify the settings of the event targets and click OK.
Modify an event pattern
- On the Event Rules page, find the rule for which you want to modify the event pattern and click Edit Pattern in the Operations column.
- On the Edit Rule page, modify the Event Source and Pattern Content parameters and click OK.
Delete an event rule
- On the Event Rules page, find the rule that you want to delete and click in the Operations column.
- In the Note message, read the note and click OK.
- In the Verify Account Security dialog box, click Obtain Verification Code, enter the verification code in the Verification Code field, and then click OK.
Warning After you delete an event rule, the data in the event rule cannot be restored.