You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::S3::MultipartUpload Instance Attribute Summary collapseDate and time at which the multipart upload was initiated.
Identifies who initiated the multipart upload.
Key of the object for which the multipart upload was initiated.
Specifies the owner of the object that is part of the multipart upload.
The class of storage used to store the object.
Upload ID that identifies the multipart upload.
This operation aborts a multipart upload.
Completes the upload, requires a list of completed parts.
Returns a Collection of MultipartUploadPart resources.
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details #initialize(bucket_name, object_key, id, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object Instance Attribute Details #initiated ⇒ TimeDate and time at which the multipart upload was initiated.
#key ⇒ StringKey of the object for which the multipart upload was initiated.
#owner ⇒ Types::OwnerSpecifies the owner of the object that is part of the multipart upload.
#storage_class ⇒ StringThe class of storage used to store the object.
Possible values:
Upload ID that identifies the multipart upload.
Instance Method Details #abort(options = {}) ⇒ Types::AbortMultipartUploadOutputThis operation aborts a multipart upload. After a multipart upload is aborted, no additional parts can be uploaded using that upload ID. The storage consumed by any previously uploaded parts will be freed. However, if any part uploads are currently in progress, those part uploads might or might not succeed. As a result, it might be necessary to abort a given multipart upload multiple times in order to completely free all storage consumed by all parts.
To verify that all parts have been removed, so you don't get charged for the part storage, you should call the ListParts operation and ensure that the parts list is empty.
For information about permissions required to use the multipart upload API, see Multipart Upload API and Permissions.
The following operations are related to AbortMultipartUpload
:
5
# File 'aws-sdk-resources/lib/aws-sdk-resources/services/s3/multipart_upload.rb', line 5 alias_method :basic_complete, :complete#complete(options = {}) ⇒ Object
Completes the upload, requires a list of completed parts. You can provide the list of parts with :part_number
and :etag
values.
upload.complete(multipart_upload: { parts: [
{ part_number: 1, etag:'etag1' },
{ part_number: 2, etag:'etag2' },
...
]})
Alternatively, you can pass compute_parts: true
and the part list will be computed by calling Client#list_parts.
upload.complete(compute_parts: true)
25 26 27 28 29 30
# File 'aws-sdk-resources/lib/aws-sdk-resources/services/s3/multipart_upload.rb', line 25 def complete(options = {}) if options.delete(:compute_parts) options[:multipart_upload] = { parts: compute_parts } end basic_complete(options) end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4