public static interface CfnBucket.ReplicationRuleFilterProperty
A Filter
must specify exactly one Prefix
, TagFilter
, or an And
child element.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3.*; ReplicationRuleFilterProperty replicationRuleFilterProperty = ReplicationRuleFilterProperty.builder() .and(ReplicationRuleAndOperatorProperty.builder() .prefix("prefix") .tagFilters(List.of(TagFilterProperty.builder() .key("key") .value("value") .build())) .build()) .prefix("prefix") .tagFilter(TagFilterProperty.builder() .key("key") .value("value") .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnBucket.ReplicationRuleFilterProperty.Builder
A builder for
CfnBucket.ReplicationRuleFilterProperty |
static class |
CfnBucket.ReplicationRuleFilterProperty.Jsii$Proxy
An implementation for
CfnBucket.ReplicationRuleFilterProperty |
Modifier and Type | Method and Description |
---|---|
static CfnBucket.ReplicationRuleFilterProperty.Builder |
builder() |
default java.lang.Object |
getAnd()
A container for specifying rule filters.
|
default java.lang.String |
getPrefix()
An object key name prefix that identifies the subset of objects to which the rule applies.
|
default java.lang.Object |
getTagFilter()
A container for specifying a tag key and value.
|
default java.lang.Object getAnd()
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:
Prefix
and a TagFilter
, wrap these filters in an And
tag.TagFilter
elements in an And
tag.default java.lang.String getPrefix()
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints .
default java.lang.Object getTagFilter()
The rule applies only to objects that have the tag in their tag set.
static CfnBucket.ReplicationRuleFilterProperty.Builder builder()