Interface CfnStorageLensGroup.FilterProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnStorageLensGroup.FilterProperty.Jsii$Proxy
- Enclosing class:
CfnStorageLensGroup
@Stability(Stable)
public static interface CfnStorageLensGroup.FilterProperty
extends software.amazon.jsii.JsiiSerializable
This resource sets the criteria for the Storage Lens group data that is displayed.
For multiple filter conditions, the AND
or OR
logical operator is used.
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.*; FilterProperty filterProperty = FilterProperty.builder() .and(AndProperty.builder() .matchAnyPrefix(List.of("matchAnyPrefix")) .matchAnySuffix(List.of("matchAnySuffix")) .matchAnyTag(List.of(CfnTag.builder() .key("key") .value("value") .build())) .matchObjectAge(MatchObjectAgeProperty.builder() .daysGreaterThan(123) .daysLessThan(123) .build()) .matchObjectSize(MatchObjectSizeProperty.builder() .bytesGreaterThan(123) .bytesLessThan(123) .build()) .build()) .matchAnyPrefix(List.of("matchAnyPrefix")) .matchAnySuffix(List.of("matchAnySuffix")) .matchAnyTag(List.of(CfnTag.builder() .key("key") .value("value") .build())) .matchObjectAge(MatchObjectAgeProperty.builder() .daysGreaterThan(123) .daysLessThan(123) .build()) .matchObjectSize(MatchObjectSizeProperty.builder() .bytesGreaterThan(123) .bytesLessThan(123) .build()) .or(OrProperty.builder() .matchAnyPrefix(List.of("matchAnyPrefix")) .matchAnySuffix(List.of("matchAnySuffix")) .matchAnyTag(List.of(CfnTag.builder() .key("key") .value("value") .build())) .matchObjectAge(MatchObjectAgeProperty.builder() .daysGreaterThan(123) .daysLessThan(123) .build()) .matchObjectSize(MatchObjectSizeProperty.builder() .bytesGreaterThan(123) .bytesLessThan(123) .build()) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnStorageLensGroup.FilterProperty
static final class
An implementation forCfnStorageLensGroup.FilterProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
getAnd()
This property contains theAnd
logical operator, which allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data.This property contains a list of prefixes.This property contains a list of suffixes.default Object
This property contains the list of S3 object tags.default Object
This property containsDaysGreaterThan
andDaysLessThan
to define the object age range (minimum and maximum number of days).default Object
This property containsBytesGreaterThan
andBytesLessThan
to define the object size range (minimum and maximum number of Bytes).default Object
getOr()
This property contains theOr
logical operator, which allows multiple filter conditions to be joined.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAnd
This property contains theAnd
logical operator, which allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data.Objects must match all of the listed filter conditions that are joined by the
And
logical operator. Only one of each filter condition is allowed.- See Also:
-
getMatchAnyPrefix
This property contains a list of prefixes.At least one prefix must be specified. Up to 10 prefixes are allowed.
- See Also:
-
getMatchAnySuffix
This property contains a list of suffixes.At least one suffix must be specified. Up to 10 suffixes are allowed.
- See Also:
-
getMatchAnyTag
This property contains the list of S3 object tags.At least one object tag must be specified. Up to 10 object tags are allowed.
- See Also:
-
getMatchObjectAge
This property containsDaysGreaterThan
andDaysLessThan
to define the object age range (minimum and maximum number of days).- See Also:
-
getMatchObjectSize
This property containsBytesGreaterThan
andBytesLessThan
to define the object size range (minimum and maximum number of Bytes).- See Also:
-
getOr
This property contains theOr
logical operator, which allows multiple filter conditions to be joined.Objects can match any of the listed filter conditions, which are joined by the
Or
logical operator. Only one of each filter condition is allowed.- See Also:
-
builder
-