You can use this operation to create a default storage class for a bucket or change the default storage class of a bucket.
Only users granted the s3:PutBucketStoragePolicy permission can perform this operation. By default, only the bucket owner can perform this operation. The bucket owner can allow other users to perform this operation by granting them the permission or setting a bucket policy.
When a bucket has a default storage class, if users do not specify the object storage class when uploading or copying an object or initializing a multipart upload task, the object will use the default bucket storage class.
When users do not manually set a default storage class for a bucket, the bucket will have the Standard storage class by default.