More docs for attributes and resources.

Review: https://reviews.apache.org/r/23752