Class: Aws::S3::MultipartUpload
- Inherits:
-
Object
- Object
- Aws::S3::MultipartUpload
- Defined in:
- lib/aws-sdk-resources/services/s3/multipart_upload.rb
Instance Method Summary collapse
- #basic_complete ⇒ Object
-
#complete(options = {}) ⇒ Object
Completes the upload, requires a list of completed parts.
Instance Method Details
#basic_complete ⇒ Object
5 |
# File '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 'lib/aws-sdk-resources/services/s3/multipart_upload.rb', line 25 def complete( = {}) if .delete(:compute_parts) [:multipart_upload] = { parts: compute_parts } end basic_complete() end |