PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
s3api
The following command applies a lifecycle configuration to a bucket named ``my-bucket``:: aws s3api put-bucket-lifecycle-configuration --bucket my-bucket --lifecycle-configuration file://lifecycle.json The file ``lifecycle.json`` is a JSON document in the current folder that specifies two rules:: { "Rules": [ { "ID": "Move rotated logs to Glacier", "Prefix": "rotated/", "Status": "Enabled", "Transitions": [ { "Date": "2015-11-10T00:00:00.000Z", "StorageClass": "GLACIER" } ] }, { "Status": "Enabled", "Prefix": "", "NoncurrentVersionTransitions": [ { "NoncurrentDays": 2, "StorageClass": "GLACIER" } ], "ID": "Move old versions to Glacier" } ] } The first rule moves files with the prefix ``rotated`` to Glacier on the specified date. The second rule moves old object versions to Glacier when they are no longer current. For information on acceptable timestamp formats, see `Specifying Parameter Values`_ in the *AWS CLI User Guide*. .. _`Specifying Parameter Values`: http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html
[-] put-bucket-policy.rst
[edit]
[-] delete-bucket.rst
[edit]
[-] put-bucket-notification-configuration.rst
[edit]
[-] delete-bucket-website.rst
[edit]
[-] put-bucket-logging.rst
[edit]
[+]
..
[-] list-buckets.rst
[edit]
[-] delete-objects.rst
[edit]
[-] list-object-versions.rst
[edit]
[-] delete-bucket-lifecycle.rst
[edit]
[-] complete-multipart-upload.rst
[edit]
[-] list-parts.rst
[edit]
[-] get-bucket-website.rst
[edit]
[-] put-bucket-lifecycle.rst
[edit]
[-] get-bucket-tagging.rst
[edit]
[-] list-multipart-uploads.rst
[edit]
[-] get-bucket-location.rst
[edit]
[-] get-bucket-cors.rst
[edit]
[-] delete-object.rst
[edit]
[-] put-object-acl.rst
[edit]
[-] copy-object.rst
[edit]
[-] upload-part.rst
[edit]
[-] put-bucket-replication.rst
[edit]
[-] create-bucket.rst
[edit]
[-] put-bucket-cors.rst
[edit]
[-] get-object.rst
[edit]
[-] abort-multipart-upload.rst
[edit]
[-] put-bucket-website.rst
[edit]
[-] get-object-torrent.rst
[edit]
[-] delete-bucket-replication.rst
[edit]
[-] delete-bucket-cors.rst
[edit]
[-] get-bucket-acl.rst
[edit]
[-] head-object.rst
[edit]
[-] head-bucket.rst
[edit]
[-] get-bucket-lifecycle.rst
[edit]
[-] get-bucket-policy.rst
[edit]
[-] delete-bucket-tagging.rst
[edit]
[-] put-object.rst
[edit]
[-] get-bucket-notification-configuration.rst
[edit]
[-] put-bucket-notification.rst
[edit]
[-] delete-bucket-policy.rst
[edit]
[-] put-bucket-lifecycle-configuration.rst
[edit]
[-] put-bucket-versioning.rst
[edit]
[-] put-bucket-tagging.rst
[edit]
[-] get-bucket-versioning.rst
[edit]
[-] create-multipart-upload.rst
[edit]
[-] get-bucket-notification.rst
[edit]
[-] put-bucket-acl.rst
[edit]
[-] get-object-acl.rst
[edit]
[-] list-objects.rst
[edit]
[-] get-bucket-replication.rst
[edit]
[-] get-bucket-lifecycle-configuration.rst
[edit]