S3Client.list_multipart_uploads
rboto-s3==0.4.0 · Service index · Types
Model summary (excerpt): This operation lists in-progress multipart uploads in a bucket. An in-progress multipart upload is a multipart upload that has been initiated by the CreateMultipartUpload request, but has not yet been completed or aborted. Directory buckets - If multipart uploads in a directory bucket are in progress, you can't delete the bucket until all the in-progress multipart uploads are aborted or...
Install and imports
from rboto import S3Client
from rboto_s3.types import (
EncodingType,
ListMultipartUploadsOutput,
RequestPayer,
)
Signature
async def list_multipart_uploads(
*,
bucket: str,
delimiter: str | None = None,
encoding_type: EncodingType | None = None,
key_marker: str | None = None,
max_uploads: int | None = None,
prefix: str | None = None,
upload_id_marker: str | None = None,
expected_bucket_owner: str | None = None,
request_payer: RequestPayer | None = None,
) -> ListMultipartUploadsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
bucket |
Yes | The name of the bucket to which the multipart upload was initiated. Directory buckets - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format Bucket-name .s3express- zone-id . region-code .amazonaws.com . Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone).... |
delimiter |
No | 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 under CommonPrefixes result element are not... |
encoding_type |
No | |
key_marker |
No | Specifies the multipart upload after which listing should begin. General purpose buckets - For general purpose buckets, key-marker is an object key. Together with upload-id-marker , this parameter specifies the multipart upload after which listing should begin. If upload-id-marker is not specified, only the keys lexicographically greater than the specified key-marker will be included in the... |
max_uploads |
No | 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. |
prefix |
No | 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 that you'd use a folder in a file system.) Directory buckets - For directory buckets, only prefixes that end in a delimiter ( / ) are supported. |
upload_id_marker |
No | 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 . This functionality is not supported... |
expected_bucket_owner |
No | 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). |
request_payer |
No |
Output
ListMultipartUploadsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
bucket |
str | None |
Always present | — |
key_marker |
str | None |
Always present | — |
upload_id_marker |
str | None |
Always present | — |
next_key_marker |
str | None |
Always present | — |
prefix |
str | None |
Always present | — |
delimiter |
str | None |
Always present | — |
next_upload_id_marker |
str | None |
Always present | — |
max_uploads |
int | None |
Always present | — |
is_truncated |
bool | None |
Always present | — |
uploads |
list[MultipartUploadOutput] | None |
Always present | MultipartUploadOutput |
common_prefixes |
list[CommonPrefixOutput] | None |
Always present | CommonPrefixOutput |
encoding_type |
EncodingTypeOutput | None |
Always present | EncodingTypeOutput |
request_charged |
RequestChargedOutput | None |
Always present | RequestChargedOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
EncodingType, ListMultipartUploadsOutput, RequestPayer
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_multipart_uploads(...) accepts the same arguments and returns AsyncIterator[ListMultipartUploadsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: key_marker, upload_id_marker. Page-size argument: max_uploads.
No output stream.
Errors
No modeled service errors for this operation.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.