This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::S3::StorageLensGroup Filter
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.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "And" :And, "MatchAnyPrefix" :[ String, ... ], "MatchAnySuffix" :[ String, ... ], "MatchAnyTag" :[ Tag, ... ], "MatchObjectAge" :MatchObjectAge, "MatchObjectSize" :MatchObjectSize, "Or" :Or}
YAML
And:AndMatchAnyPrefix:- StringMatchAnySuffix:- StringMatchAnyTag:- TagMatchObjectAge:MatchObjectAgeMatchObjectSize:MatchObjectSizeOr:Or
Properties
And-
This property contains the
Andlogical 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 theAndlogical operator. Only one of each filter condition is allowed.Required: No
Type: And
Update requires: No interruption
MatchAnyPrefix-
This property contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.
Required: No
Type: Array of String
Maximum:
1024Update requires: No interruption
MatchAnySuffix-
This property contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.
Required: No
Type: Array of String
Maximum:
1024Update requires: No interruption
MatchAnyTag-
This property contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.
Required: No
Type: Array of Tag
Update requires: No interruption
MatchObjectAge-
This property contains
DaysGreaterThanandDaysLessThanto define the object age range (minimum and maximum number of days).Required: No
Type: MatchObjectAge
Update requires: No interruption
MatchObjectSize-
This property contains
BytesGreaterThanandBytesLessThanto define the object size range (minimum and maximum number of Bytes).Required: No
Type: MatchObjectSize
Update requires: No interruption
Or-
This property contains the
Orlogical operator, which allows multiple filter conditions to be joined. Objects can match any of the listed filter conditions, which are joined by theOrlogical operator. Only one of each filter condition is allowed.Required: No
Type: Or
Update requires: No interruption