-
Notifications
You must be signed in to change notification settings - Fork 32
s3.setBucket()
SaltwaterC edited this page Jul 30, 2012
·
4 revisions
S3 helper for setting up the bucket name when doing host based addressing.
s3.setBucket(bucketName)
- 'bucketName' - Bucket Name.
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).