NoncurrentVersionTransition

class aws_cdk.aws_s3.NoncurrentVersionTransition(*, storage_class, transition_after, noncurrent_versions_to_retain=None)

Bases: object

Describes when noncurrent versions transition to a specified storage class.

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

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

  • noncurrent_versions_to_retain (Union[int, float, None]) – Indicates the number of noncurrent version objects to be retained. Can be up to 100 noncurrent versions retained. Default: - No noncurrent version retained.

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.aws_s3 as s3
import aws_cdk.core as cdk

# storage_class: s3.StorageClass

noncurrent_version_transition = s3.NoncurrentVersionTransition(
    storage_class=storage_class,
    transition_after=cdk.Duration.minutes(30),

    # the properties below are optional
    noncurrent_versions_to_retain=123
)

Attributes

noncurrent_versions_to_retain

Indicates the number of noncurrent version objects to be retained.

Can be up to 100 noncurrent versions retained.

Default
  • No noncurrent version retained.

Return type

Union[int, float, None]

storage_class

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

Return type

StorageClass

transition_after

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

Default
  • No transition count.

Return type

Duration