title: Redirect for S3 bucket from SDK
body: <p>I have a couple of functions that create 2 buckets on S3, one for example.com and the other for www.example.com.  I need to know what I should use to enable the second bucket so that it will redirect to the first one.</p>
  
  <p><a href="http://i.stack.imgur.com/K98sW.png" rel="nofollow">example of how to set it in the backend</a></p>
  
  <p>My problem is I need to be able to do this using the SDK.</p>
  
  <p>Thanks,</p>