aws-cdk-lib.aws_s3.CfnBucket.ReplicationRuleAndOperatorProperty

interface ReplicationRuleAndOperatorProperty

LanguageType name
.NETAmazon.CDK.AWS.S3.CfnBucket.ReplicationRuleAndOperatorProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_ReplicationRuleAndOperatorProperty
Javasoftware.amazon.awscdk.services.s3.CfnBucket.ReplicationRuleAndOperatorProperty
Pythonaws_cdk.aws_s3.CfnBucket.ReplicationRuleAndOperatorProperty
TypeScript aws-cdk-lib » aws_s3 » CfnBucket » 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

Example

// 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

NameTypeDescription
prefix?stringAn object key name prefix that identifies the subset of objects to which the rule applies.
tagFilters?IResolvable | IResolvable | TagFilterProperty[]An array of tags containing key and value pairs.

prefix?

Type: string (optional)

An object key name prefix that identifies the subset of objects to which the rule applies.


tagFilters?

Type: IResolvable | IResolvable | TagFilterProperty[] (optional)

An array of tags containing key and value pairs.