Sussan Ley has officially resigned from Parliament.