Bucket / Collection / multipart_uploads
multipart_uploads#
- S3.Bucket.multipart_uploads#
A collection of MultipartUpload resources.A MultipartUpload Collection will include all resources by default, and extreme caution should be taken when performing actions on all resources.
- all()#
Creates an iterable of all MultipartUpload resources in the collection.
See also: AWS API Documentation
Request Syntax
multipart_upload_iterator = bucket.multipart_uploads.all()
- Return type:
list(
s3.MultipartUpload
)- Returns:
A list of MultipartUpload resources
- filter(**kwargs)#
Creates an iterable of all MultipartUpload resources in the collection filtered by kwargs passed to method. A MultipartUpload collection will include all resources by default if no filters are provided, and extreme caution should be taken when performing actions on all resources.
See also: AWS API Documentation
Request Syntax
multipart_upload_iterator = bucket.multipart_uploads.filter( Delimiter='string', EncodingType='url', KeyMarker='string', MaxUploads=123, MirrorDestination='string', Prefix='string', UploadIdMarker='string', ExpectedBucketOwner='string' )
- Parameters:
Delimiter (string) –
Character you use to group keys.
All keys that contain the same string between the prefix, if specified, and the first occurrence of the delimiter after the prefix are grouped under a single result element,
CommonPrefixes
. If you don’t specify the prefix parameter, then the substring starts at the beginning of the key. The keys that are grouped underCommonPrefixes
result element are not returned elsewhere in the response.EncodingType (string) – Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response.
KeyMarker (string) –
Specifies the multipart upload after which listing should begin.
Note
General purpose buckets - For general purpose buckets,
key-marker
is an object key. Together withupload-id-marker
, this parameter specifies the multipart upload after which listing should begin. Ifupload-id-marker
is not specified, only the keys lexicographically greater than the specifiedkey-marker
will be included in the list. Ifupload-id-marker
is specified, any multipart uploads for a key equal to thekey-marker
might also be included, provided those multipart uploads have upload IDs lexicographically greater than the specifiedupload-id-marker
.Directory buckets - For directory buckets,
key-marker
is obfuscated and isn’t a real object key. Theupload-id-marker
parameter isn’t supported by directory buckets. To list the additional multipart uploads, you only need to set the value ofkey-marker
to theNextKeyMarker
value from the previous response. In theListMultipartUploads
response, the multipart uploads aren’t sorted lexicographically based on the object keys.
MaxUploads (integer) – Sets the maximum number of multipart uploads, from 1 to 1,000, to return in the response body. 1,000 is the maximum number of uploads that can be returned in a response.
MirrorDestination (string) – Mirror source for object reads.
Prefix (string) – Lists in-progress uploads only for those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different grouping of keys. (You can think of using prefix to make groups in the same way you’d use a folder in a file system.)
UploadIdMarker (string) – Together with key-marker, specifies the multipart upload after which listing should begin. If key-marker is not specified, the upload-id-marker parameter is ignored. Otherwise, any multipart uploads for a key equal to the key-marker might be included in the list only if they have an upload ID lexicographically greater than the specified
upload-id-marker
.ExpectedBucketOwner (string) – The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code
403 Forbidden
(access denied).
- Return type:
list(
s3.MultipartUpload
)- Returns:
A list of MultipartUpload resources
- limit(**kwargs)#
Creates an iterable up to a specified amount of MultipartUpload resources in the collection.
See also: AWS API Documentation
Request Syntax
multipart_upload_iterator = bucket.multipart_uploads.limit( count=123 )
- Parameters:
count (integer) – The limit to the number of resources in the iterable.
- Return type:
list(
s3.MultipartUpload
)- Returns:
A list of MultipartUpload resources
- page_size(**kwargs)#
Creates an iterable of all MultipartUpload resources in the collection, but limits the number of items returned by each service call by the specified amount.
See also: AWS API Documentation
Request Syntax
multipart_upload_iterator = bucket.multipart_uploads.page_size( count=123 )
- Parameters:
count (integer) – The number of items returned by each service call
- Return type:
list(
s3.MultipartUpload
)- Returns:
A list of MultipartUpload resources