

# ReplicationRuleAndOperator
<a name="API_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` tag. 
+ If you specify a filter based on multiple tags, wrap the `Tag` elements in an `And` tag.

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

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

 ** Tags **   <a name="AmazonS3-Type-ReplicationRuleAndOperator-Tags"></a>
An array of tags containing key and value pairs.  
Type: Array of [Tag](API_Tag.md) data types  
Required: No

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

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

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon Simple Storage Service (S3). To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query AmazonS3` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
