Skip to content

S3  >  Structures  >  ObjectVersion

ObjectVersion

Structure Class

ObjectVersion dataclass

Bases: _SerdeShape

The version of an object.

Attributes

checksum_algorithm class-attribute instance-attribute
checksum_algorithm: list[str] | None = ...

The algorithm that was used to create a checksum of the object.

checksum_type class-attribute instance-attribute
checksum_type: str | None = ...

The checksum type that is used to calculate the object's checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

e_tag class-attribute instance-attribute
e_tag: str | None = ...

The entity tag is an MD5 hash of that version of the object.

is_latest class-attribute instance-attribute
is_latest: bool | None = ...

Specifies whether the object is (true) or is not (false) the latest version of an object.

key class-attribute instance-attribute
key: str | None = ...

The object key.

last_modified class-attribute instance-attribute
last_modified: datetime | None = ...

Date and time when the object was last modified.

owner class-attribute instance-attribute
owner: Owner | None = ...

Specifies the owner of the object.

restore_status class-attribute instance-attribute
restore_status: RestoreStatus | None = ...

Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.

size class-attribute instance-attribute
size: int | None = ...

Size in bytes of the object.

storage_class class-attribute instance-attribute
storage_class: str | None = ...

The class of storage used to store the object.

version_id class-attribute instance-attribute
version_id: str | None = ...

Version ID of an object.