Skip to content

S3  >  Structures  >  Transition

Transition

Structure Class

Transition dataclass

Bases: _SerdeShape

Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle in the Amazon S3 User Guide.

Attributes

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

Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.

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

Indicates the number of days after creation when objects are transitioned to the specified storage class. The value can be 0 or any positive integer. Be aware that some storage classes have a minimum storage duration and that you're charged for transitioning objects before their minimum storage duration. For more information, see Constraints and considerations for transitions in the Amazon S3 User Guide.

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

The storage class to which you want the object to transition.