

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

A filter used to narrow down results based on specific criteria.

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

 ** name **   <a name="computeoptimizer-Type-automation_Filter-name"></a>
The name of the filter field to apply.  
Type: String  
Valid Values: `Name | RecommendedActionType | Status | RuleType | OrganizationConfigurationRuleApplyOrder | AccountId`   
Required: Yes

 ** values **   <a name="computeoptimizer-Type-automation_Filter-values"></a>
The list of values to filter by for the specified filter field.  
Type: Array of strings  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[a-zA-Z0-9\-_\.\*\?\s]+`   
Required: Yes

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/compute-optimizer-automation-2025-09-22/Filter) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/compute-optimizer-automation-2025-09-22/Filter) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/compute-optimizer-automation-2025-09-22/Filter) 