title: Setting AWS S3 storage class for object uploaded with Ruby
body: <p>I use this code to upload files to S3:</p>
  
  <pre class="lang-rb prettyprint-override"><code>s3 = Aws::S3::Resource.new(...)
  obj = s3.bucket(s3_bucket).object("final/path")
  success = obj.upload_file('my/local/file')
  </code></pre>
  
  <p>How can I change the storage class to <em>Standard-Infrequent Access</em>?</p>