title: S3 buckets to Glacier on demand Is it possible from boto3 API?
body: <p>I'm testing a script to recover date stored in an S3 bucket, with a lifecycle rule that moves the data to glacier each day. So, in theory, when I upload a file to the S3 bucket, after a day, the Amazon infrastructure should move it to glacier.</p>
  
  <p>But I want to test a script that I'm developing in python to test the
  restore process. So, if I understand the boto3 API I haven't seen any method to force a file stored in the S3 bucket to move immediately
  to the glacier storage. Is is possible to do that or it's necessary
  to wait till the Amazon infrastructure fires the lifecycle rule.</p>
  
  <p>I would like to use some code like this:</p>
  
  <pre><code>bucket = s3.Bucket(TARGET_BUCKET)
  for obj in bucket.objects.filter(Bucket=TARGET_BUCKET, Prefix=TARGET_KEYS + KEY_SEPARATOR):
      obj.move_to_glacier()
  </code></pre>
  
  <p>But I can't find any API that make this move to glacier on demand. Also, I don't
  know if I can force this on demand using a bucket lifecycle rule    </p>