S3Client.complete_multipart_upload
rboto-s3==0.4.0 · Service index · Types
Model summary (excerpt): Completes a multipart upload by assembling previously uploaded parts. You first initiate the multipart upload and then upload all parts using the UploadPart operation or the UploadPartCopy operation. After successfully uploading all relevant parts of an upload, you call this CompleteMultipartUpload operation to complete the upload. Upon receiving this request, Amazon S3 concatenates all the...
Install and imports
from rboto import S3Client
from rboto_s3.types import (
ChecksumType,
CompleteMultipartUploadOutput,
CompletedMultipartUpload,
RequestPayer,
)
Signature
async def complete_multipart_upload(
*,
bucket: str,
key: str,
upload_id: str,
multipart_upload: CompletedMultipartUpload | None = None,
checksum_crc32: str | None = None,
checksum_crc32_c: str | None = None,
checksum_crc64_nvme: str | None = None,
checksum_sha1: str | None = None,
checksum_sha256: str | None = None,
checksum_sha512: str | None = None,
checksum_md5: str | None = None,
checksum_xxhash64: str | None = None,
checksum_xxhash3: str | None = None,
checksum_xxhash128: str | None = None,
checksum_type: ChecksumType | None = None,
mpu_object_size: int | None = None,
request_payer: RequestPayer | None = None,
expected_bucket_owner: str | None = None,
if_match: str | None = None,
if_none_match: str | None = None,
sse_customer_algorithm: str | None = None,
sse_customer_key: str | None = None,
sse_customer_key_md5: str | None = None,
) -> CompleteMultipartUploadOutput: ...
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 | 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). Bucket... |
key |
Yes | Object key for which the multipart upload was initiated. |
upload_id |
Yes | ID for the initiated multipart upload. |
multipart_upload |
No | The container for the multipart upload request information. |
checksum_crc32 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_crc32_c |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_crc64_nvme |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC64NVME checksum of the object. The CRC64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_sha1 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_sha256 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_sha512 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 512-bit SHA512 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_md5 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 128-bit MD5 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_xxhash64 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit XXHASH64 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_xxhash3 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit XXHASH3 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_xxhash128 |
No | This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 128-bit XXHASH128 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_type |
No | This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object... |
mpu_object_size |
No | The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error. |
request_payer |
No | |
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). |
if_match |
No | Uploads the object only if the ETag (entity tag) value provided during the WRITE operation matches the ETag of the object in S3. If the ETag values do not match, the operation returns a 412 Precondition Failed error. If a conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should fetch the object's ETag, re-initiate the... |
if_none_match |
No | Uploads the object only if the object key name does not already exist in the bucket specified. Otherwise, Amazon S3 returns a 412 Precondition Failed error. If a conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should re-initiate the multipart upload with CreateMultipartUpload and re-upload each part. Expects the '*'... |
sse_customer_algorithm |
No | The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is required only when the object was created using a checksum algorithm or if your bucket policy requires the use of SSE-C. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide . This functionality is not supported for directory buckets. |
sse_customer_key |
No | The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide . This functionality is not supported for directory buckets. |
sse_customer_key_md5 |
No | The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide . This functionality is not supported for directory buckets. |
Output
CompleteMultipartUploadOutput.
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 |
|---|---|---|---|
location |
str | None |
Always present | — |
bucket |
str | None |
Always present | — |
key |
str | None |
Always present | — |
expiration |
str | None |
Always present | — |
e_tag |
str | None |
Always present | — |
checksum_crc32 |
str | None |
Always present | — |
checksum_crc32_c |
str | None |
Always present | — |
checksum_crc64_nvme |
str | None |
Always present | — |
checksum_sha1 |
str | None |
Always present | — |
checksum_sha256 |
str | None |
Always present | — |
checksum_sha512 |
str | None |
Always present | — |
checksum_md5 |
str | None |
Always present | — |
checksum_xxhash64 |
str | None |
Always present | — |
checksum_xxhash3 |
str | None |
Always present | — |
checksum_xxhash128 |
str | None |
Always present | — |
checksum_type |
ChecksumTypeOutput | None |
Always present | ChecksumTypeOutput |
server_side_encryption |
ServerSideEncryptionOutput | None |
Always present | ServerSideEncryptionOutput |
version_id |
str | None |
Always present | — |
ssekms_key_id |
str | None |
Always present | — |
bucket_key_enabled |
bool | None |
Always present | — |
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
ChecksumType, CompleteMultipartUploadOutput, CompletedMultipartUpload, RequestPayer
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
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.