Skip to content

S3  >  Structures  >  DeletedObject

DeletedObject

Structure Class

DeletedObject dataclass

Bases: _SerdeShape

Information about the deleted object.

Attributes

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

Indicates whether the specified object version that was permanently deleted was (true) or was not (false) a delete marker before deletion. In a simple DELETE, this header indicates whether (true) or not (false) the current version of the object is a delete marker. To learn more about delete markers, see Working with delete markers.

Note

This functionality is not supported for directory buckets.

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

The version ID of the delete marker created as a result of the DELETE operation. If you delete a specific object version, the value returned by this header is the version ID of the object version deleted.

Note

This functionality is not supported for directory buckets.

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

The name of the deleted object.

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

The version ID of the deleted object.

Note

This functionality is not supported for directory buckets.