Skip to content

EnableRule

Source: src/AWS/EventBridge/EnableRule.ts

Enables an EventBridge rule (events:EnableRule) so it resumes matching events.

Bind this operation to a Rule inside a function runtime to get a callable that re-enables the rule — the runtime half of a feature toggle or kill switch. Provide the EnableRuleHttp layer on the Function to satisfy the binding.

// init — bind the rule (provide AWS.EventBridge.EnableRuleHttp on the Function)
const enableRule = yield* AWS.EventBridge.EnableRule(rule);
// runtime — turn event routing back on
yield* enableRule();