What grammatical role does al-shamsu take in zālat al-shamsu?

Book of Hajj: Return to Mina, Stoning the Three Jamarahs, and Days of Tashriq