

# FilterAttribute
<a name="API_FilterAttribute"></a>

Specifies the name of the metadata attribute/field to apply filters. You must match the name of the attribute/field in your data source/document metadata.

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

 ** key **   <a name="bedrock-Type-FilterAttribute-key"></a>
The name of metadata attribute/field, which must match the name in your data source/document metadata.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 100.  
Required: Yes

 ** value **   <a name="bedrock-Type-FilterAttribute-value"></a>
The value of the metadata attribute/field.  
Type: JSON value  
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\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-2023-04-20/FilterAttribute) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-2023-04-20/FilterAttribute) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-2023-04-20/FilterAttribute) 