import json


def rule(event):
    if any(
        [
            "access-session port-control force-authorized" in json.dumps(event.to_dict()),
            "authentication port-control force-authorized" in json.dumps(event.to_dict()),
            "dot1x port-control force-authorized" in json.dumps(event.to_dict()),
            "no access-session port-control" in json.dumps(event.to_dict()),
            "no authentication port-control" in json.dumps(event.to_dict()),
            "no dot1x port-control" in json.dumps(event.to_dict()),
            "no dot1x system-auth-control" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
