Initiates a multipart upload and returns an upload ID.
s3_create_multipart_upload(ACL, Bucket, CacheControl,
ContentDisposition, ContentEncoding, ContentLanguage, ContentType,
Expires, GrantFullControl, GrantRead, GrantReadACP, GrantWriteACP, Key,
Metadata, ServerSideEncryption, StorageClass, WebsiteRedirectLocation,
SSECustomerAlgorithm, SSECustomerKey, SSECustomerKeyMD5, SSEKMSKeyId,
SSEKMSEncryptionContext, RequestPayer, Tagging, ObjectLockMode,
ObjectLockRetainUntilDate, ObjectLockLegalHoldStatus)
The canned ACL to apply to the object.
[required]
Specifies caching behavior along the request/reply chain.
Specifies presentational information for the object.
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.
The language the content is in.
A standard MIME type describing the format of the object data.
The date and time at which the object is no longer cacheable.
Gives the grantee READ, READ\_ACP, and WRITE\_ACP permissions on the object.
Allows grantee to read the object data and its metadata.
Allows grantee to read the object ACL.
Allows grantee to write the ACL for the applicable object.
[required]
A map of metadata to store with the object in S3.
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
The type of storage to use for the object. Defaults to 'STANDARD'.
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.
Specifies the algorithm to use to when encrypting the object (e.g., AES256).
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 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side<U+00E2><U+20AC><U+2039>-encryption<U+00E2><U+20AC><U+2039>-customer-algorithm header.
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error.
Specifies the AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS will fail if not made via SSL or using SigV4. Documentation on configuring any of the officially supported AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html\#specify-signature-version
Specifies the AWS KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
The tag-set for the object. The tag-set must be encoded as URL Query parameters
Specifies the object lock mode that you want to apply to the uploaded object.
Specifies the date and time when you want the object lock to expire.
Specifies whether you want to apply a Legal Hold to the uploaded object.
svc$create_multipart_upload( ACL = "private"|"public-read"|"public-read-write"|"authenticated-read"|"aws-exec-read"|"bucket-owner-read"|"bucket-owner-full-control", Bucket = "string", CacheControl = "string", ContentDisposition = "string", ContentEncoding = "string", ContentLanguage = "string", ContentType = "string", Expires = as.POSIXct( "2015-01-01" ), GrantFullControl = "string", GrantRead = "string", GrantReadACP = "string", GrantWriteACP = "string", Key = "string", Metadata = list( "string" ), ServerSideEncryption = "AES256"|"aws:kms", StorageClass = "STANDARD"|"REDUCED_REDUNDANCY"|"STANDARD_IA"|"ONEZONE_IA"|"INTELLIGENT_TIERING"|"GLACIER"|"DEEP_ARCHIVE", WebsiteRedirectLocation = "string", SSECustomerAlgorithm = "string", SSECustomerKey = raw, SSECustomerKeyMD5 = "string", SSEKMSKeyId = "string", SSEKMSEncryptionContext = "string", RequestPayer = "requester", Tagging = "string", ObjectLockMode = "GOVERNANCE"|"COMPLIANCE", ObjectLockRetainUntilDate = as.POSIXct( "2015-01-01" ), ObjectLockLegalHoldStatus = "ON"|"OFF" )
Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.
# NOT RUN {
# The following example initiates a multipart upload.
# }
# NOT RUN {
svc$create_multipart_upload(
Bucket = "examplebucket",
Key = "largeobject"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab