

# SearchFilter

Filter on entity attributes: a single comparison, or `andAll` of comparisons that must all match.

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

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** andAll **   <a name="context-Type-SearchFilter-andAll"></a>
Matches entities that match every condition in the list. Specify 2 to 5 conditions. A condition in the list can't itself be an `andAll`.  
Type: Array of [SearchFilter](API_SearchFilter.md) objects  
Array Members: Minimum number of 2 items. Maximum number of 5 items.  
Required: No

 ** equalTo **   <a name="context-Type-SearchFilter-equalTo"></a>
Matches entities whose attribute equals the value. The value must be a `stringValue`, `numberValue`, or `booleanValue`.  
Type: [FilterAttribute](API_FilterAttribute.md) object  
Required: No

 ** greaterThan **   <a name="context-Type-SearchFilter-greaterThan"></a>
Matches entities whose attribute is greater than the value. The value must be a `stringValue`, `numberValue`, or `booleanValue`.  
Type: [FilterAttribute](API_FilterAttribute.md) object  
Required: No

 ** greaterThanOrEqualTo **   <a name="context-Type-SearchFilter-greaterThanOrEqualTo"></a>
Matches entities whose attribute is greater than or equal to the value. The value must be a `stringValue`, `numberValue`, or `booleanValue`.  
Type: [FilterAttribute](API_FilterAttribute.md) object  
Required: No

 ** in **   <a name="context-Type-SearchFilter-in"></a>
Matches entities whose attribute equals any of the values. The value must be a `stringListValue`.  
Type: [FilterAttribute](API_FilterAttribute.md) object  
Required: No

 ** lessThan **   <a name="context-Type-SearchFilter-lessThan"></a>
Matches entities whose attribute is less than the value. The value must be a `stringValue`, `numberValue`, or `booleanValue`.  
Type: [FilterAttribute](API_FilterAttribute.md) object  
Required: No

 ** lessThanOrEqualTo **   <a name="context-Type-SearchFilter-lessThanOrEqualTo"></a>
Matches entities whose attribute is less than or equal to the value. The value must be a `stringValue`, `numberValue`, or `booleanValue`.  
Type: [FilterAttribute](API_FilterAttribute.md) object  
Required: No

 ** notEqualTo **   <a name="context-Type-SearchFilter-notEqualTo"></a>
Matches entities whose attribute does not equal the value. The value must be a `stringValue`, `numberValue`, or `booleanValue`.  
Type: [FilterAttribute](API_FilterAttribute.md) object  
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/SearchFilter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/SearchFilter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/SearchFilter) 