Class AWS::S3::ObjectVersion
In: lib/aws/s3/object_version.rb
Parent: Object

Represents a single version of an S3Object.

When you enable versioning on a S3 bucket, writing to an object will create an object version instead of replacing the existing object.

Methods

==   bucket   content_length   content_type   delete   delete_marker?   eql?   etag   head   inspect   key   latest?   metadata   new   read   url_for  

Included Modules

Core::Model

Attributes

object  [R]  @return [S3Object] the object this is a version of.
version_id  [R]  @return [String] The unique version identifier.

Public Class methods

@param [S3Object] object The object this is a version of. @param [String] version_id The unique id for this version. @param [Hash] options @option options [Boolean] :delete_marker Is this version a

  delete marker?

Public Instance methods

@return [Boolean] Returns true if the other object version has

  the same s3 object key and version id.

Deletes this object version from S3. @return (see S3Object#delete)

If you delete an object in a versioned bucket, a delete marker is created. @return [Boolean] Returns true if this version is a delete marker.

eql?(other)

Alias for #==

@private

@return (see S3Object#key)

@return [Boolean] Returns this if this is the latest version of

  the object, false if the object has been written to since
  this version was created.

Reads the data from this object version. @see S3Object#read @options (see S3Object#read) @return (see S3Object#read)

(see S3Object#url_for)

[Validate]