

# Filter
<a name="API_Filter"></a>

Information about a filter used to limit results of a query.

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

 ** key **   <a name="codecatalyst-Type-Filter-key"></a>
A key that can be used to sort results.  
Type: String  
Required: Yes

 ** values **   <a name="codecatalyst-Type-Filter-values"></a>
The values of the key.  
Type: Array of strings  
Required: Yes

 ** comparisonOperator **   <a name="codecatalyst-Type-Filter-comparisonOperator"></a>
The operator used to compare the fields.  
Type: String  
Required: No

## See Also
<a name="API_Filter_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/codecatalyst-2022-09-28/Filter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codecatalyst-2022-09-28/Filter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codecatalyst-2022-09-28/Filter) 