Smaws_Client_EventBridge.DeleteRule
val request :
Smaws_Lib.Context.t ->
delete_rule_request ->
(unit,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConcurrentModificationException of concurrent_modification_exception
| `InternalException of internal_exception
| `ManagedRuleException of managed_rule_exception
| `ResourceNotFoundException of resource_not_found_exception ])
Stdlib.result
Deletes the specified rule.
Before you can delete the rule, you must remove all targets, using RemoveTargets.
When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect.
If you call delete rule multiple times for the same rule, all calls will succeed. When you call delete rule for a non-existent custom eventbus, ResourceNotFoundException
is returned.
Managed rules are rules created and managed by another Amazon Web Services service on your behalf. These rules are created by those other Amazon Web Services services to support functionality in those services. You can delete these rules using the Force
option, but you should do so only if you are sure the other service is not still using that rule.