def _acl_rule_is_public(acl_rule: dict, egress: bool, action: str) ->bool:
    """Check if an ACL rule allow all ingress traffic."""
    is_public = False
    if acl_rule['Egress'] == egress and acl_rule['RuleAction'] == action:
        if 'CidrBlock' in acl_rule.keys():
            is_public = acl_rule['CidrBlock'] == '0.0.0.0/0'
        if 'Ipv6CidrBlock' in acl_rule.keys():
            is_public = acl_rule['Ipv6CidrBlock'] == '::/0'
    return is_public and 'PortRange' not in acl_rule.keys() and acl_rule[
        'Protocol'] == '-1'
