EventBridge / Client / exceptions / ManagedRuleException
ManagedRuleException#
- class EventBridge.Client.exceptions.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
DeleteRule
orRemoveTargets
, you can use theForce
parameter 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
.Example
try: ... except client.exceptions.ManagedRuleException as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{}
Structure
(dict) –
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
DeleteRule
orRemoveTargets
, you can use theForce
parameter 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
.Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.