MCPcopy Create free account
hub / github.com/aws/aws-cli / requires_multipart_upload

Method requires_multipart_upload

awscli/s3transfer/upload.py:166–179  ·  view source on GitHub ↗

Determines where a multipart upload is required :type transfer_future: s3transfer.futures.TransferFuture :param transfer_future: The future associated with upload request :type config: s3transfer.manager.TransferConfig :param config: The config associated to the tra

(self, transfer_future, config)

Source from the content-addressed store, hash-verified

164 raise NotImplementedError('must implement provide_transfer_size()')
165
166 def requires_multipart_upload(self, transfer_future, config):
167 """Determines where a multipart upload is required
168
169 :type transfer_future: s3transfer.futures.TransferFuture
170 :param transfer_future: The future associated with upload request
171
172 :type config: s3transfer.manager.TransferConfig
173 :param config: The config associated to the transfer manager
174
175 :rtype: boolean
176 :returns: True, if the upload should be multipart based on
177 configuration and size. False, otherwise.
178 """
179 raise NotImplementedError('must implement requires_multipart_upload()')
180
181 def get_put_object_body(self, transfer_future):
182 """Returns the body to use for PutObject

Callers 3

_submitMethod · 0.45

Calls

no outgoing calls

Tested by 2