Transition

class aws_cdk.aws_s3.Transition(*, storage_class, transition_after=None, transition_date=None)

Bases: object

Describes when an object transitions to a specified storage class.

Parameters:
  • storage_class (StorageClass) – The storage class to which you want the object to transition.

  • transition_after (Optional[Duration]) – Indicates the number of days after creation when objects are transitioned to the specified storage class. Default: - No transition count.

  • transition_date (Optional[datetime]) – 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. Default: - No transition date.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_s3 as s3

# storage_class: s3.StorageClass

transition = s3.Transition(
    storage_class=storage_class,

    # the properties below are optional
    transition_after=cdk.Duration.minutes(30),
    transition_date=Date()
)

Attributes

storage_class

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

transition_after

Indicates the number of days after creation when objects are transitioned to the specified storage class.

Default:
  • No transition count.

transition_date

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.

Default:
  • No transition date.