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.
Listing Rules
Section titled “Listing Rules”// 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 prefixconst { Rules } = yield* listRules({ NamePrefix: "orders-" });