Skip to content

Unable to get storage type of bucket #3233

Answered by kdaily
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shenhongwei33,

Thanks for writing! Only objects have a storage class. Buckets don't have a storage class directly associated with them, they have a lifecycle policy. You can read more about how this works here:

https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html

The related operation in the AWS CLI and the SDK is this one:

https://docs.aws.amazon.com/cli/latest/reference/s3api/get-bucket-lifecycle-configuration.html

You can read more about object storage classes here:

https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tim-finnigan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation This is a problem with documentation. response-requested Waiting on additional information or feedback.
1 participant
Converted from issue

This discussion was converted from issue #3231 on April 19, 2022 17:14.