How is the entire noun clause used in the sentence?

She saw what was an amazing collection of marine life in the tide pool.

a. object of a preposition

b. direct object

c. subject

d. predicate nominative