Skip to content
v2.274.0

ReplicationRuleAndOperatorProperty Struct ​

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

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 ​

prefixstringprefixstrprefixStringPrefixstringPrefix*string#
An object key name prefix that identifies the subset of objects to which the rule applies.
tagFiltersIResolvable | IResolvable | CfnBucket.TagFilterProperty[]tag_filterstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TagFilterProperty]]]tagFiltersIResolvableTagFiltersIResolvableTagFiltersinterface{}#
An array of tags containing key and value pairs.