Skip to content

S3  >  Structures  >  ObjectIdentifier

ObjectIdentifier

Structure Class

ObjectIdentifier dataclass

Bases: _SerdeShape

Object Identifier is unique value to identify objects.

Attributes

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

An entity tag (ETag) is an identifier assigned by a web server to a specific version of a resource found at a URL. This header field makes the request method conditional on ETags.

Note

Entity tags (ETags) for S3 Express One Zone are random alphanumeric strings unique to the object.

key instance-attribute
key: str

Key name of the object.

Warning

Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

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

If present, the objects are deleted only if its modification times matches the provided Timestamp.

Note

This functionality is only supported for directory buckets.

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

If present, the objects are deleted only if its size matches the provided size in bytes.

Note

This functionality is only supported for directory buckets.

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

Version ID for the specific version of the object to delete.

Note

This functionality is not supported for directory buckets.