'Is there any command (s3/s3api) that will show the storage class of an object/file with a given s3 bucket

Is there any command (s3/s3api) that will show the storage class of an object/file within a given s3 bucket? Suppose my s3 bucket name is test-bucket-01 and the object path is s3://test-bucket-01/abc/01/3ri//33/rf6/1xxx.tif.

From the console, I can easily tell that the data resides in the DEEP_ARCHIVE storage class. How can I extract the same information using the command line such as s3 or s3api?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source