Skip to content

s3.setBucket()

SaltwaterC edited this page Nov 15, 2011 · 4 revisions

About

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

Reference

s3.setBucket(bucket)
  • 'bucket' - the S3 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.

Clone this wiki locally