

# FilterAttribute

An attribute key and the value to compare it with.

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

 ** key **   <a name="context-Type-FilterAttribute-key"></a>
The name of the attribute to compare. 1 to 128 characters, with no whitespace or backtick characters.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `[^\s`]+`   
Required: Yes

 ** value **   <a name="context-Type-FilterAttribute-value"></a>
The value to compare the attribute with. Use `stringListValue` for an `in` condition, and `stringValue`, `numberValue`, or `booleanValue` for any other condition.  
Type: [FilterValue](API_FilterValue.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

## See Also
<a name="API_FilterAttribute_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/FilterAttribute) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/FilterAttribute) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/FilterAttribute) 