Interface CfnBucket.S3KeyFilterProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucket.S3KeyFilterProperty.Jsii$Proxy
- Enclosing class:
CfnBucket
@Stability(Stable)
public static interface CfnBucket.S3KeyFilterProperty
extends software.amazon.jsii.JsiiSerializable
A container for object key name prefix and suffix filtering rules.
For more information about object key name filtering, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .
The same type of filter rule cannot be used more than once. For example, you cannot specify two prefix rules.
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.*;
S3KeyFilterProperty s3KeyFilterProperty = S3KeyFilterProperty.builder()
.rules(List.of(FilterRuleProperty.builder()
.name("name")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBucket.S3KeyFilterPropertystatic final classAn implementation forCfnBucket.S3KeyFilterProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRules
A list of containers for the key-value pair that defines the criteria for the filter rule.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBucket.FilterRuleProperty>- See Also:
-
builder
-