enable_rule
async
¶
enable_rule(
name: RuleName,
*,
config_overrides: Optional[AsyncEventBridgeClientConfig] = None,
event_bus_name: Optional[EventBusNameOrArn] = None,
) -> None
Enables the specified rule. If the rule does not exist, the operation fails.
When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Allow a short period of time for changes to take effect.
Parameters:
-
name(RuleName) –The name of the rule.
-
event_bus_name(Optional[EventBusNameOrArn], default:None) –The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
Raises:
-
ConcurrentModificationException–There is concurrent modification on a rule, target, archive, or replay.
-
InternalException–This exception occurs due to unexpected causes.
-
ManagedRuleException–This rule was created by an Amazon Web Services service on behalf of your account. It is managed by that service. If you see this error in response to
DeleteRuleorRemoveTargets, you can use theForceparameter in those calls to delete the rule or remove targets from the rule. You cannot modify these managed rules by usingDisableRule,EnableRule,PutTargets,PutRule,TagResource, orUntagResource. -
ResourceNotFoundException–An entity that you specified does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.