def check_rule_group_exists()

in ingest_suricata_rules/rules_processor.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