Boto3 S3 Storage Classes

When using the Boto3 client for uploading files to S3 storage. For example, the upload_fileobj call there is a parameter to the call called ExtraArgs which is a dictionary object. It contains a key called StorageClass which can be set to:

STANDARDStandard Frequent Access
STANDARD_IAStandard Infrequenct Access
REDUCED_REDUNDANCYReduced Redundancy
GLACIERGlacier Storage
These are reported to work but cannot be confirmed at the moment.

Object Storage Classes – Amazon S3

amazon web services – AWS S3 Standard Infrequent Access vs Reduced Redundancy storage class when coupled with CloudFront? – Stack Overflow

amazon web services – How to change storage class of existing key via boto3 – Stack Overflow

upload_fileobj – Boto3 1.34.135 documentation (amazonaws.com)


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *