Difference between revisions of "Aws s3api get-bucket-lifecycle-configuration"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/get-bucket-lifecycle-configuration.html | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/get-bucket-lifecycle-configuration.html | ||
− | [[aws s3api]] get-bucket-lifecycle-configuration --bucket | + | [[aws s3api]] get-bucket-lifecycle-configuration --bucket NAME |
== Examples == | == Examples == |
Revision as of 11:51, 23 February 2022
aws s3api get-bucket-lifecycle-configuration --bucket NAME
Examples
{ "Rules": [ { "Expiration": { "Days": 3652 }, "ID": "cleanup", "Filter": { "Prefix": "" }, "Status": "Enabled", "NoncurrentVersionExpiration": { "NoncurrentDays": 1 } } ] }
Official example:
{ "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": 0, "StorageClass": "GLACIER" } ], "ID": "Move old versions to Glacier" } ] }
aws s3api get-bucket-lifecycle-configuration --bucket-name NAME An error occurred (NoSuchLifecycleConfiguration) when calling the GetBucketLifecycleConfiguration operation: The lifecycle configuration does not exist
Related
See also
- AWS S3 lifecycle:
aws s3api get-bucket-lifecycle-configuration
- AWS S3:
s3api
|list-buckets
|get-bucket-website
|get-bucket-policy
|create-bucket
|put-bucket-encryption
|aws s3api put-bucket-policy
|get-bucket-acl
|get-bucket-versioning
|get-bucket-location
|put-bucket-versioning | get-bucket-tagging | head-bucket | put-object-lock-configuration
Advertising: