Skip to content

s3.setBucket()

SaltwaterC edited this page Jul 30, 2012 · 4 revisions

About

S3 helper for setting up the bucket name when doing host based addressing.

Reference

s3.setBucket(bucketName)

Basically this helper modifies the endpoint. Its modifications may be revealed by client.getEndPoint(). For example, s3.setBucket('foo') sets the endpoint to be foo.s3.amazonaws.com.

This method is chainable (aka it returns the client object).

Clone this wiki locally