

# ReplicationRuleAndOperator
<a name="API_control_ReplicationRuleAndOperator"></a>

A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. 

For example:
+ If you specify both a `Prefix` and a `Tag` filter, wrap these filters in an `And` element. 
+ If you specify a filter based on multiple tags, wrap the `Tag` elements in an `And` element.

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

 ** Prefix **   <a name="AmazonS3-Type-control_ReplicationRuleAndOperator-Prefix"></a>
An object key name prefix that identifies the subset of objects that the rule applies to.  
Type: String  
Required: No

 ** Tags **   <a name="AmazonS3-Type-control_ReplicationRuleAndOperator-Tags"></a>
An array of tags that contain key and value pairs.  
Type: Array of [S3Tag](API_control_S3Tag.md) data types  
Required: No

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/s3control-2018-08-20/ReplicationRuleAndOperator) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/s3control-2018-08-20/ReplicationRuleAndOperator) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/s3control-2018-08-20/ReplicationRuleAndOperator) 