interface ReplicationRuleAndOperatorProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.CfnBucket.ReplicationRuleAndOperatorProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_ReplicationRuleAndOperatorProperty |
![]() | software.amazon.awscdk.services.s3.CfnBucket.ReplicationRuleAndOperatorProperty |
![]() | aws_cdk.aws_s3.CfnBucket.ReplicationRuleAndOperatorProperty |
![]() | 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 aTagFilter
, wrap these filters in anAnd
tag. - If you specify a filter based on multiple tags, wrap the
TagFilter
elements in anAnd
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
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.