upload or download a document from amazon using specified bucket name.