Skip to content

GetBucketLifecycleConfigurationOutput

Source code in docs_src/capo_s3/types/get_bucket_lifecycle_configuration_output.py
class GetBucketLifecycleConfigurationOutput(TypedDict, closed=True):
    rules: NotRequired["capo_s3.types.lifecycle_rules.LifecycleRules"]
    """<p>Container for a lifecycle rule.</p>"""
    transition_default_minimum_object_size: NotRequired[
        "capo_s3.types.transition_default_minimum_object_size.TransitionDefaultMinimumObjectSize"
    ]
    """<p>Indicates which default minimum object size behavior is applied to the lifecycle configuration.</p> <note> <p>This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.</p> </note> <ul> <li> <p> <code>all_storage_classes_128K</code> - Objects smaller than 128 KB will not transition to any storage class by default.</p> </li> <li> <p> <code>varies_by_storage_class</code> - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB. </p> </li> </ul> <p>To customize the minimum object size for any transition you can add a filter that specifies a custom <code>ObjectSizeGreaterThan</code> or <code>ObjectSizeLessThan</code> in the body of your transition rule. Custom filters always take precedence over the default transition behavior.</p>"""

rules instance-attribute

rules: NotRequired[LifecycleRules]

Container for a lifecycle rule.

transition_default_minimum_object_size instance-attribute

transition_default_minimum_object_size: NotRequired[TransitionDefaultMinimumObjectSize]

Indicates which default minimum object size behavior is applied to the lifecycle configuration.

This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

  • all_storage_classes_128K - Objects smaller than 128 KB will not transition to any storage class by default.

  • varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.

To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.