in ingest_suricata_rules/convert_ids_ips.py [0:0]
def check_rule_group_exists(RuleGroupName):
try:
RuleGroup = anf.describe_rule_group(
RuleGroupName=RuleGroupName,
Type=RuleGroupType
)
except Exception as ResourceNotFoundException:
return False
except Exception as err:
# Raise exception for any other errors
raise err
else:
return True