Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
s3api
/
File Content:
put-bucket-lifecycle.rst
The following command applies a lifecycle configuration to the bucket ``my-bucket``:: aws s3api put-bucket-lifecycle --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 to Glacier after sixty days (objects in logs/2015/)", "Prefix": "logs/2015/", "Status": "Enabled", "Transition": { "Days": 60, "StorageClass": "GLACIER" } }, { "Expiration": { "Date": "2016-01-01T00:00:00.000Z" }, "ID": "Delete 2014 logs in 2016.", "Prefix": "logs/2014/", "Status": "Enabled" } ] } The first rule moves files to Amazon Glacier after sixty days. The second rule deletes files from Amazon S3 on the specified date. For information on acceptable timestamp formats, see `Specifying Parameter Values`_ in the *AWS CLI User Guide*. Each rule in the above example specifies a policy (``Transition`` or ``Expiration``) and file prefix (folder name) to which it applies. You can also create a rule that applies to an entire bucket by specifying a blank prefix:: { "Rules": [ { "ID": "Move to Glacier after sixty days (all objects in bucket)", "Prefix": "", "Status": "Enabled", "Transition": { "Days": 60, "StorageClass": "GLACIER" } } ] } .. _`Specifying Parameter Values`: http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
abort-multipart-upload.rst
463 bytes
0644
complete-multipart-upload.rst
1550 bytes
0644
copy-object.rst
386 bytes
0644
create-bucket.rst
626 bytes
0644
create-multipart-upload.rst
596 bytes
0644
delete-bucket-cors.rst
163 bytes
0644
delete-bucket-lifecycle.rst
148 bytes
0644
delete-bucket-policy.rst
135 bytes
0644
delete-bucket-replication.rst
152 bytes
0644
delete-bucket-tagging.rst
144 bytes
0644
delete-bucket-website.rst
144 bytes
0644
delete-bucket.rst
126 bytes
0644
delete-object.rst
538 bytes
0644
delete-objects.rst
558 bytes
0644
get-bucket-acl.rst
582 bytes
0644
get-bucket-cors.rst
960 bytes
0644
get-bucket-lifecycle-configuration.rst
880 bytes
0644
get-bucket-lifecycle.rst
631 bytes
0644
get-bucket-location.rst
225 bytes
0644
get-bucket-notification-configuration.rst
489 bytes
0644
get-bucket-notification.rst
468 bytes
0644
get-bucket-policy.rst
1075 bytes
0644
get-bucket-replication.rst
667 bytes
0644
get-bucket-tagging.rst
285 bytes
0644
get-bucket-versioning.rst
195 bytes
0644
get-bucket-website.rst
300 bytes
0644
get-object-acl.rst
790 bytes
0644
get-object-torrent.rst
391 bytes
0644
get-object.rst
553 bytes
0644
head-bucket.rst
326 bytes
0644
head-object.rst
417 bytes
0644
list-buckets.rst
483 bytes
0644
list-multipart-uploads.rst
1035 bytes
0644
list-object-versions.rst
2584 bytes
0644
list-objects.rst
560 bytes
0644
list-parts.rst
1327 bytes
0644
put-bucket-acl.rst
531 bytes
0644
put-bucket-cors.rst
701 bytes
0644
put-bucket-lifecycle-configuration.rst
1405 bytes
0644
put-bucket-lifecycle.rst
1598 bytes
0644
put-bucket-logging.rst
1318 bytes
0644
put-bucket-notification-configuration.rst
1109 bytes
0644
put-bucket-notification.rst
1019 bytes
0644
put-bucket-policy.rst
1007 bytes
0644
put-bucket-replication.rst
1247 bytes
0644
put-bucket-tagging.rst
563 bytes
0644
put-bucket-versioning.rst
356 bytes
0644
put-bucket-website.rst
434 bytes
0644
put-object-acl.rst
554 bytes
0644
put-object.rst
647 bytes
0644
upload-part.rst
845 bytes
0644
N4ST4R_ID | Naxtarrr