def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [4656, 4663, 4658],
            any(
                [
                    event.deep_get("ObjectName", default="").endswith(".AAA"),
                    event.deep_get("ObjectName", default="").endswith(".ZZZ"),
                ]
            ),
        ]
    ):
        return True
    return False
