

# LifecycleRuleAndOperator
<a name="API_LifecycleRuleAndOperator"></a>

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.

## Contents
<a name="API_LifecycleRuleAndOperator_Contents"></a>

 ** ObjectSizeGreaterThan **   <a name="AmazonS3-Type-LifecycleRuleAndOperator-ObjectSizeGreaterThan"></a>
Minimum object size to which the rule applies.  
Type: Long  
Required: No

 ** ObjectSizeLessThan **   <a name="AmazonS3-Type-LifecycleRuleAndOperator-ObjectSizeLessThan"></a>
Maximum object size to which the rule applies.  
Type: Long  
Required: No

 ** Prefix **   <a name="AmazonS3-Type-LifecycleRuleAndOperator-Prefix"></a>
Prefix identifying one or more objects to which the rule applies.  
Type: String  
Required: No

 ** Tags **   <a name="AmazonS3-Type-LifecycleRuleAndOperator-Tags"></a>
All of these tags must exist in the object's tag set in order for the rule to apply.  
Type: Array of [Tag](API_Tag.md) data types  
Required: No

## See Also
<a name="API_LifecycleRuleAndOperator_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/s3-2006-03-01/LifecycleRuleAndOperator) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/s3-2006-03-01/LifecycleRuleAndOperator) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/s3-2006-03-01/LifecycleRuleAndOperator) 