interface ReplicationRuleAndOperatorProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.CfnBucket.ReplicationRuleAndOperatorProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_ReplicationRuleAndOperatorProperty |
Java | software.amazon.awscdk.services.s3.CfnBucket.ReplicationRuleAndOperatorProperty |
Python | aws_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
Prefixand aTagFilter, wrap these filters in anAndtag. - If you specify a filter based on multiple tags, wrap the
TagFilterelements in anAndtag
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
| Name | Type | Description |
|---|---|---|
| prefix? | string | An object key name prefix that identifies the subset of objects to which the rule applies. |
| tag | IResolvable | (IResolvable | Tag)[] | 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 | Tag)[]
(optional)
An array of tags containing key and value pairs.

.NET
Go
Java
Python
TypeScript