S3Client.create_multipart_upload
rboto-s3==0.4.0 · Service index · Types
Model summary (excerpt): End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). If you attempt to use an Email Grantee ACL in a request after October 1, 2025, the request will receive an HTTP 405 (Method Not Allowed) error. This change affects the following Amazon Web Services Regions: US East (N. Virginia), US West (N. California), US West...
Install and imports
from rboto import S3Client
from rboto_s3.types import (
ChecksumAlgorithm,
ChecksumType,
CreateMultipartUploadOutput,
ObjectCannedACL,
ObjectLockEventHold,
ObjectLockLegalHoldStatus,
ObjectLockMode,
RequestPayer,
ServerSideEncryption,
StorageClass,
)
Signature
async def create_multipart_upload(
*,
bucket: str,
key: str,
acl: ObjectCannedACL | None = None,
cache_control: str | None = None,
content_disposition: str | None = None,
content_encoding: str | None = None,
content_language: str | None = None,
content_type: str | None = None,
expires: str | None = None,
grant_full_control: str | None = None,
grant_read: str | None = None,
grant_read_acp: str | None = None,
grant_write_acp: str | None = None,
metadata: dict[str, str] | None = None,
server_side_encryption: ServerSideEncryption | None = None,
storage_class: StorageClass | None = None,
website_redirect_location: str | None = None,
sse_customer_algorithm: str | None = None,
sse_customer_key: str | None = None,
sse_customer_key_md5: str | None = None,
ssekms_key_id: str | None = None,
ssekms_encryption_context: str | None = None,
bucket_key_enabled: bool | None = None,
request_payer: RequestPayer | None = None,
tagging: str | None = None,
object_lock_mode: ObjectLockMode | None = None,
object_lock_retain_until_date: str | None = None,
object_lock_legal_hold_status: ObjectLockLegalHoldStatus | None = None,
object_lock_event_hold: ObjectLockEventHold | None = None,
object_lock_event_hold_duration_days: int | None = None,
object_lock_event_hold_duration_years: int | None = None,
expected_bucket_owner: str | None = None,
checksum_algorithm: ChecksumAlgorithm | None = None,
checksum_type: ChecksumType | None = None,
) -> CreateMultipartUploadOutput: ...
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 where the multipart upload is initiated and where the object is uploaded. 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... |
key |
Yes | Object key for which the multipart upload is to be initiated. |
acl |
No | The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as canned ACLs . Each canned ACL has a predefined set of grantees and permissions. For more information, see Canned ACL in the Amazon S3 User Guide . By default, all objects are private. Only the owner has full access control. When uploading an object, you can grant access permissions to individual Amazon... |
cache_control |
No | Specifies caching behavior along the request/reply chain. |
content_disposition |
No | Specifies presentational information for the object. |
content_encoding |
No | Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. For directory buckets, only the aws-chunked value is supported in this header field. |
content_language |
No | The language that the content is in. |
content_type |
No | A standard MIME type describing the format of the object data. |
expires |
No | The date and time at which the object is no longer cacheable. |
grant_full_control |
No | Specify access permissions explicitly to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3... |
grant_read |
No | Specify access permissions explicitly to allow grantee to read the object data and its metadata. By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For... |
grant_read_acp |
No | Specify access permissions explicitly to allows grantee to read the object ACL. By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3 supports in an ACL. For more information,... |
grant_write_acp |
No | Specify access permissions explicitly to allows grantee to allow grantee to write the ACL for the applicable object. By default, all objects are private. Only the owner has full access control. When uploading an object, you can use this header to explicitly grant access permissions to specific Amazon Web Services accounts or groups. This header maps to specific permissions that Amazon S3... |
metadata |
No | A map of metadata to store with the object in S3. |
server_side_encryption |
No | The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. Directory buckets - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) ( AES256 ) and server-side encryption with KMS keys (SSE-KMS) ( aws:kms ). We recommend that the bucket's default encryption uses... |
storage_class |
No | By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The STANDARD storage class provides high durability and high availability. Depending on performance needs, you can specify a different Storage Class. For more information, see Storage Classes in the Amazon S3 User Guide . Directory buckets only support EXPRESS_ONEZONE (the S3 Express One Zone storage class)... |
website_redirect_location |
No | If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata. This functionality is not supported for directory buckets. |
sse_customer_algorithm |
No | Specifies the algorithm to use when encrypting the object (for example, AES256). This functionality is not supported for directory buckets. |
sse_customer_key |
No | Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. This functionality is not supported for directory buckets. |
sse_customer_key_md5 |
No | Specifies the 128-bit MD5 digest of the customer-provided encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. This functionality is not supported for directory buckets. |
ssekms_key_id |
No | Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same account that's issuing the command, you must use the full Key ARN not the Key ID. General purpose buckets - If you specify x-amz-server-side-encryption with aws:kms or aws:kms:dsse , this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use.... |
ssekms_encryption_context |
No | Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name... |
bucket_key_enabled |
No | Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). General purpose buckets - Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key.... |
request_payer |
No | |
tagging |
No | The tag-set for the object. The tag-set must be encoded as URL Query parameters. This functionality is not supported for directory buckets. |
object_lock_mode |
No | Specifies the Object Lock mode that you want to apply to the uploaded object. This functionality is not supported for directory buckets. |
object_lock_retain_until_date |
No | Specifies the date and time when you want the Object Lock to expire. This functionality is not supported for directory buckets. |
object_lock_legal_hold_status |
No | Specifies whether you want to apply a legal hold to the uploaded object. This functionality is not supported for directory buckets. |
object_lock_event_hold |
No | Specifies the event hold status to apply to the uploaded object. Set to ON to enable or OFF to disable. This functionality is not supported for directory buckets. |
object_lock_event_hold_duration_days |
No | Specifies the event hold duration in days to apply to the uploaded object. You cannot specify a duration in both days and years. This functionality is not supported for directory buckets. |
object_lock_event_hold_duration_years |
No | Specifies the event hold duration in years to apply to the uploaded object. You cannot specify a duration in both days and years. This functionality is not supported for directory buckets. |
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). |
checksum_algorithm |
No | Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see Checking object integrity in the Amazon S3 User Guide . |
checksum_type |
No | Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide . |
Output
CreateMultipartUploadOutput.
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 |
|---|---|---|---|
abort_date |
str | None |
Always present | — |
abort_rule_id |
str | None |
Always present | — |
bucket |
str | None |
Always present | — |
key |
str | None |
Always present | — |
upload_id |
str | None |
Always present | — |
server_side_encryption |
ServerSideEncryptionOutput | None |
Always present | ServerSideEncryptionOutput |
sse_customer_algorithm |
str | None |
Always present | — |
sse_customer_key_md5 |
str | None |
Always present | — |
ssekms_key_id |
str | None |
Always present | — |
ssekms_encryption_context |
str | None |
Always present | — |
bucket_key_enabled |
bool | None |
Always present | — |
request_charged |
RequestChargedOutput | None |
Always present | RequestChargedOutput |
checksum_algorithm |
ChecksumAlgorithmOutput | None |
Always present | ChecksumAlgorithmOutput |
checksum_type |
ChecksumTypeOutput | None |
Always present | ChecksumTypeOutput |
version_id |
str | None |
Always present | — |
| 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
ChecksumAlgorithm, ChecksumType, CreateMultipartUploadOutput, ObjectCannedACL, ObjectLockEventHold, ObjectLockLegalHoldStatus, ObjectLockMode, RequestPayer, ServerSideEncryption, StorageClass
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.