Skip to content

S3  >  Structures  >  LifecycleRuleAndOperator

LifecycleRuleAndOperator

Structure Class

LifecycleRuleAndOperator dataclass

Bases: _SerdeShape

This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator.

Attributes

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

Minimum object size to which the rule applies.

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

Maximum object size to which the rule applies.

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

Prefix identifying one or more objects to which the rule applies.

tags class-attribute instance-attribute
tags: list[Tag] | None = ...

All of these tags must exist in the object's tag set in order for the rule to apply.