get_vectors
async
¶
get_vectors(
keys: GetVectorsInputList,
*,
config_overrides: Optional[AsyncS3VectorsClientConfig] = None,
vector_bucket_name: Optional[VectorBucketName] = None,
index_name: Optional[IndexName] = None,
index_arn: Optional[IndexArn] = None,
return_data: Optional[bool] = None,
return_metadata: Optional[bool] = None,
) -> GetVectorsOutput
Returns vector attributes. 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:GetVectorspermission to use this operation.
Parameters:
-
vector_bucket_name(Optional[VectorBucketName], default:None) –The name of the vector bucket that contains the vector index.
-
index_name(Optional[IndexName], default:None) –The name of the vector index.
-
index_arn(Optional[IndexArn], default:None) –The ARN of the vector index.
-
keys(GetVectorsInputList) –The names of the vectors you want to return attributes for.
-
return_data(Optional[bool], default:None) –Indicates whether to include the vector data in the response. The default value is
false. -
return_metadata(Optional[bool], default:None) –Indicates whether to include metadata in the response. The default value is
false.
Raises:
-
AccessDeniedException–Access denied.
-
InternalServerException–The request failed due to an internal server error.
-
RequestTimeoutException–The request timed out. Retry your request.
-
TooManyRequestsException–The request was denied due to request throttling.
-
ValidationException–The requested action isn't valid.
-
KmsDisabledException–The specified Amazon Web Services KMS key isn't enabled.
-
KmsInvalidKeyUsageException–The request was rejected for one of the following reasons:
-
The
KeyUsagevalue of the KMS key is incompatible with the API operation. -
The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the KMS key (
KeySpec).
For more information, see InvalidKeyUsageException in the Amazon Web Services Key Management Service API Reference.
-
-
KmsInvalidStateException–The key state of the KMS key isn't compatible with the operation.
For more information, see KMSInvalidStateException in the Amazon Web Services Key Management Service API Reference.
-
KmsNotFoundException–The KMS key can't be found.
-
NotFoundException–The request was rejected because the specified resource can't be found.
-
ServiceUnavailableException–The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_s3vectors/_services/async_s3_vectors.py
1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 | |