diff --git a/plugins/modules/cloudwatchevent_rule.py b/plugins/modules/cloudwatchevent_rule.py index 4d2ad1427f5..4228d6c0ef7 100644 --- a/plugins/modules/cloudwatchevent_rule.py +++ b/plugins/modules/cloudwatchevent_rule.py @@ -203,6 +203,7 @@ def _format_json(json_string): except json.decoder.JSONDecodeError: return str(json.dumps(json_string)) + def _validate_json(s): try: json.loads(s) @@ -210,10 +211,12 @@ def _validate_json(s): except json.JSONDecodeError: return False + def _snakify(dict): """Converts camel case to snake case""" return camel_dict_to_snake_dict(dict) + class CloudWatchEventRule: def __init__( self, module, name, client, schedule_expression=None, event_pattern=None, description=None, role_arn=None @@ -353,8 +356,6 @@ def _targets_request(self, targets): return targets_request - - class CloudWatchEventRuleManager: RULE_FIELDS = ["name", "event_pattern", "schedule_expression", "description", "role_arn"]