LifecycleRuleFilter
The Filter
is used to identify objects that a Lifecycle Rule applies to. A Filter
must have exactly one of Prefix
, Tag
, or And
specified.
Inheritors
Types
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.
Minimum object size to which the rule applies.
Maximum object size to which the rule applies.
Prefix identifying one or more objects to which the rule applies.
This tag must exist in the object's tag set in order for the rule to apply.
Functions
Casts this LifecycleRuleFilter as a And and retrieves its aws.sdk.kotlin.services.s3.model.LifecycleRuleAndOperator value. Throws an exception if the LifecycleRuleFilter is not a And.
Casts this LifecycleRuleFilter as a And and retrieves its aws.sdk.kotlin.services.s3.model.LifecycleRuleAndOperator value. Returns null if the LifecycleRuleFilter is not a And.
Casts this LifecycleRuleFilter as a ObjectSizeGreaterThan and retrieves its kotlin.Long value. Throws an exception if the LifecycleRuleFilter is not a ObjectSizeGreaterThan.
Casts this LifecycleRuleFilter as a ObjectSizeGreaterThan and retrieves its kotlin.Long value. Returns null if the LifecycleRuleFilter is not a ObjectSizeGreaterThan.
Casts this LifecycleRuleFilter as a ObjectSizeLessThan and retrieves its kotlin.Long value. Throws an exception if the LifecycleRuleFilter is not a ObjectSizeLessThan.
Casts this LifecycleRuleFilter as a ObjectSizeLessThan and retrieves its kotlin.Long value. Returns null if the LifecycleRuleFilter is not a ObjectSizeLessThan.
Casts this LifecycleRuleFilter as a Prefix and retrieves its kotlin.String value. Throws an exception if the LifecycleRuleFilter is not a Prefix.
Casts this LifecycleRuleFilter as a Prefix and retrieves its kotlin.String value. Returns null if the LifecycleRuleFilter is not a Prefix.
Casts this LifecycleRuleFilter as a Tag and retrieves its aws.sdk.kotlin.services.s3.model.Tag value. Throws an exception if the LifecycleRuleFilter is not a Tag.
Casts this LifecycleRuleFilter as a Tag and retrieves its aws.sdk.kotlin.services.s3.model.Tag value. Returns null if the LifecycleRuleFilter is not a Tag.