

# StorageLensGroupFilter
<a name="API_control_StorageLensGroupFilter"></a>

The filter element sets the criteria for the Storage Lens group data that is displayed. For multiple filter conditions, the `AND` or `OR` logical operator is used.

## Contents
<a name="API_control_StorageLensGroupFilter_Contents"></a>

 ** And **   <a name="AmazonS3-Type-control_StorageLensGroupFilter-And"></a>
A logical operator that 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.  
Type: [StorageLensGroupAndOperator](API_control_StorageLensGroupAndOperator.md) data type  
Required: No

 ** MatchAnyPrefix **   <a name="AmazonS3-Type-control_StorageLensGroupFilter-MatchAnyPrefix"></a>
 Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.   
Type: Array of strings  
Required: No

 ** MatchAnySuffix **   <a name="AmazonS3-Type-control_StorageLensGroupFilter-MatchAnySuffix"></a>
 Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.   
Type: Array of strings  
Required: No

 ** MatchAnyTag **   <a name="AmazonS3-Type-control_StorageLensGroupFilter-MatchAnyTag"></a>
 Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.   
Type: Array of [S3Tag](API_control_S3Tag.md) data types  
Required: No

 ** MatchObjectAge **   <a name="AmazonS3-Type-control_StorageLensGroupFilter-MatchObjectAge"></a>
 Contains `DaysGreaterThan` and `DaysLessThan` to define the object age range (minimum and maximum number of days).   
Type: [MatchObjectAge](API_control_MatchObjectAge.md) data type  
Required: No

 ** MatchObjectSize **   <a name="AmazonS3-Type-control_StorageLensGroupFilter-MatchObjectSize"></a>
 Contains `BytesGreaterThan` and `BytesLessThan` to define the object size range (minimum and maximum number of Bytes).   
Type: [MatchObjectSize](API_control_MatchObjectSize.md) data type  
Required: No

 ** Or **   <a name="AmazonS3-Type-control_StorageLensGroupFilter-Or"></a>
A single logical operator that 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.   
Type: [StorageLensGroupOrOperator](API_control_StorageLensGroupOrOperator.md) data type  
Required: No

## See Also
<a name="API_control_StorageLensGroupFilter_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/s3control-2018-08-20/StorageLensGroupFilter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/s3control-2018-08-20/StorageLensGroupFilter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/s3control-2018-08-20/StorageLensGroupFilter) 