def rule(event):
    if event.deep_get("properties", "message", default="") in [
        "Delete device",
        "Delete device configuration",
        "Update device",
        "Update device configuration",
    ]:
        return True
    return False
