queryVectors 
  Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Performs an approximate nearest neighbor search query in a vector index using a query vector. By default, it returns the keys of approximate nearest neighbors. You can optionally include the computed distance (between the query vector and each vector in the response), the vector data, and metadata of each vector in the response.
To specify the vector index, you can either use both the vector bucket name and the vector index name, or use the vector index Amazon Resource Name (ARN).
Permissions
You must have the s3vectors:QueryVectors permission to use this operation. Additional permissions are required based on the request parameters you specify:
- With only - s3vectors:QueryVectorspermission, you can retrieve vector keys of approximate nearest neighbors and computed distances between these vectors. This permission is sufficient only when you don't set any metadata filters and don't request vector data or metadata (by keeping the- returnMetadataparameter set to- falseor not specified).
- If you specify a metadata filter or set - returnMetadatato true, you must have both- s3vectors:QueryVectorsand- s3vectors:GetVectorspermissions. The request fails with a- 403 Forbidden errorif you request metadata filtering, vector data, or metadata without the- s3vectors:GetVectorspermission.