def create_rule_group()

in lambda.py [0:0]


def create_rule_group(name, ranges):

    client = boto3.client('network-firewall')
    global RULE_GROUP_CAP
    
    createRuleGr = client.create_rule_group(
        RuleGroupName=name,
        Type='STATELESS',
        Capacity=int(RULE_GROUP_CAP),
        RuleGroup=
        {
            'RulesSource': 
            {
                'StatelessRulesAndCustomActions': 
                {
                    'StatelessRules': generate_rules(ranges),
                    'CustomActions': []
                }
            }
        }
    )