An action may be brought pursuant to Chapter 9 (commencing with Section 860) of Title 10 of Part 2 of the Code of Civil Procedure to determine the validity of any bonds issued pursuant to Article 5 (commencing with Section 34350) and the legality and validity of all proceedings previously taken and (as provided in the bond resolution) proposed to be taken for the authorization, issuance, sale, and delivery of the bonds and for the payment of the principal thereof and interest thereon.