MCPcopy Create free account
hub / github.com/s3tools/s3cmd / storage_class

Method storage_class

S3/S3.py:259–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

257 self.expect_continue_not_supported = False
258
259 def storage_class(self):
260 # Note - you cannot specify GLACIER here
261 # https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
262 cls = 'STANDARD'
263 if self.config.storage_class != "":
264 return self.config.storage_class
265 if self.config.reduced_redundancy:
266 cls = 'REDUCED_REDUNDANCY'
267 return cls
268
269 def get_hostname(self, bucket):
270 if bucket and bucket in S3Request.redir_map:

Callers 2

object_putMethod · 0.95
object_copyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected