Class: Aws::S3::Types::Object

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb

Overview

An object consists of data and its descriptive metadata.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#etagString

The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:

  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.

  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.

  • If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.

Returns:

  • (String)


8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8668

class Object < Struct.new(
  :key,
  :last_modified,
  :etag,
  :size,
  :storage_class,
  :owner)
  SENSITIVE = []
  include Aws::Structure
end

#keyString

The name that you assign to an object. You use the object key to retrieve the object.

Returns:

  • (String)


8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8668

class Object < Struct.new(
  :key,
  :last_modified,
  :etag,
  :size,
  :storage_class,
  :owner)
  SENSITIVE = []
  include Aws::Structure
end

#last_modifiedTime

The date the Object was Last Modified

Returns:

  • (Time)


8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8668

class Object < Struct.new(
  :key,
  :last_modified,
  :etag,
  :size,
  :storage_class,
  :owner)
  SENSITIVE = []
  include Aws::Structure
end

#ownerTypes::Owner

The owner of the object

Returns:



8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8668

class Object < Struct.new(
  :key,
  :last_modified,
  :etag,
  :size,
  :storage_class,
  :owner)
  SENSITIVE = []
  include Aws::Structure
end

#sizeInteger

Size in bytes of the object

Returns:

  • (Integer)


8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8668

class Object < Struct.new(
  :key,
  :last_modified,
  :etag,
  :size,
  :storage_class,
  :owner)
  SENSITIVE = []
  include Aws::Structure
end

#storage_classString

The class of storage used to store the object.

Returns:

  • (String)


8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8668

class Object < Struct.new(
  :key,
  :last_modified,
  :etag,
  :size,
  :storage_class,
  :owner)
  SENSITIVE = []
  include Aws::Structure
end