Skip to content

ListRules

Source: src/AWS/EventBridge/ListRules.ts

Lists the rules on an EventBridge event bus (events:ListRules).

Bind this operation to an EventBus inside a function runtime to get a callable scoped to that bus; omit the bus argument to list rules on the account’s default bus. Provide the ListRulesHttp layer on the Function to satisfy the binding.

// init — bind the bus (provide AWS.EventBridge.ListRulesHttp on the Function)
const listRules = yield* AWS.EventBridge.ListRules(bus);
// runtime — list rules, optionally filtered by name prefix
const { Rules } = yield* listRules({ NamePrefix: "orders-" });