What is a contract between a prime contractor and a secondary contractor or supplier called?

What is a contract between a prime contractor and a secondary contractor or supplier called?