@Stability(value=Stable)
public static interface CfnBucket.ReplicationRuleFilterProperty
extends software.amazon.jsii.JsiiSerializable
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 Object |
getAnd()
A container for specifying rule filters.
|
default String |
getPrefix()
An object key name prefix that identifies the subset of objects to which the rule applies.
|
default Object |
getTagFilter()
A container for specifying a tag key and value.
|
@Stability(value=Stable) @Nullable default 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.@Stability(value=Stable) @Nullable default 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 .
@Stability(value=Stable) @Nullable default Object getTagFilter()
The rule applies only to objects that have the tag in their tag set.
@Stability(value=Stable) static CfnBucket.ReplicationRuleFilterProperty.Builder builder()
Copyright © 2022. All rights reserved.