# ReplicationRuleAndOperatorProperty

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 `TagFilter` , wrap these filters in an `And` tag.
- If you specify a filter based on multiple tags, wrap the `TagFilter` elements in an `And` tag

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const replicationRuleAndOperatorProperty: s3.CfnBucket.ReplicationRuleAndOperatorProperty = {
  prefix: 'prefix',
  tagFilters: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `prefix`: string — An object key name prefix that identifies the subset of objects to which the rule applies.

- `tagFilters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBucket.TagFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnBucket.TagFilterProperty.html)[] — An array of tags containing key and value pairs.
