def rule(event):
    if event.deep_get("eventType", default="") in [
        "application.policy.sign_on.update",
        "application.policy.sign_on.rule.delete",
    ]:
        return True
    return False
