It can be left unattended indefinitely as long as astronauts can at least get up there occasionally to perform maintenance. Without that minimal level of maintenance, though, the ISS runs a serious risk of becoming uninhabitable. And, of course, all the experiments and stuff currently on-board would be lost.