Skip to content

S3  >  Errors  >  InvalidObjectState

InvalidObjectState

Error Class

InvalidObjectState dataclass

Bases: ServiceError, _SerdeShape

Object is archived and inaccessible until restored.

If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this operation returns an InvalidObjectState error. For information about restoring archived objects, see Restoring Archived Objects in the Amazon S3 User Guide.

Attributes

access_tier class-attribute instance-attribute
access_tier: str | None = ...
response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

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