You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::S3::MultipartUploadCollection

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/aws/s3/multipart_upload_collection.rb

Overview

Represents the uploads in progress for a bucket.

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.

Examples:

Finding uploads by prefix


bucket.multipart_uploads.with_prefix("photos/").
  map { |upload| upload.object.key }
# => ["photos/1.jpg", "photos/2.jpg", ...]

Browsing with a tree interface


bucket.multipart_uploads.with_prefix("photos").as_tree.
  children.select(&:branch?).map(&:prefix)
# => ["photos/2010", "photos/2011", ...]

See Also:

Instance Attribute Summary collapse

Attributes included from PrefixedCollection

#prefix

Method Summary

Methods included from PrefixedCollection

#with_prefix

Methods included from Core::Collection

#each, #each_batch, #enum, #first, #in_groups_of, #page

Instance Attribute Details

#bucketBucket (readonly)

Returns The bucket in which the uploads are taking place.

Returns:

  • (Bucket)

    The bucket in which the uploads are taking place.



46
47
48
# File 'lib/aws/s3/multipart_upload_collection.rb', line 46

def bucket
  @bucket
end