

# QueryOutputVector
<a name="API_S3VectorBuckets_QueryOutputVector"></a>

The attributes of a vector in the approximate nearest neighbor search.

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

 ** key **   <a name="AmazonS3-Type-S3VectorBuckets_QueryOutputVector-key"></a>
The key of the vector in the approximate nearest neighbor search.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Required: Yes

 ** distance **   <a name="AmazonS3-Type-S3VectorBuckets_QueryOutputVector-distance"></a>
The measure of similarity between the vector in the response and the query vector.  
Type: Float  
Required: No

 ** metadata **   <a name="AmazonS3-Type-S3VectorBuckets_QueryOutputVector-metadata"></a>
The metadata associated with the vector, if requested.  
Type: JSON value  
Required: No

## See Also
<a name="API_S3VectorBuckets_QueryOutputVector_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/s3vectors-2025-07-15/QueryOutputVector) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/s3vectors-2025-07-15/QueryOutputVector) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/s3vectors-2025-07-15/QueryOutputVector) 