Interface S3VectorsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Amazon S3 vector buckets are a bucket type to store and search vectors with sub-second search times. They are designed to provide dedicated API operations for you to interact with vectors to do similarity search. Within a vector bucket, you use a vector index to organize and logically group your vector data. When you make a write or read request, you direct it to a single vector index. You store your vector data as vectors. A vector contains a key (a name that you assign), a multi-dimensional vector, and, optionally, metadata that describes a vector. The key uniquely identifies the vector in a vector index.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic S3VectorsClientBuilderbuilder()Create a builder that can be used to configure and create aS3VectorsClient.static S3VectorsClientcreate()Create aS3VectorsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateIndexResponsecreateIndex(Consumer<CreateIndexRequest.Builder> createIndexRequest) default CreateIndexResponsecreateIndex(CreateIndexRequest createIndexRequest) default CreateVectorBucketResponsecreateVectorBucket(Consumer<CreateVectorBucketRequest.Builder> createVectorBucketRequest) default CreateVectorBucketResponsecreateVectorBucket(CreateVectorBucketRequest createVectorBucketRequest) default DeleteIndexResponsedeleteIndex(Consumer<DeleteIndexRequest.Builder> deleteIndexRequest) default DeleteIndexResponsedeleteIndex(DeleteIndexRequest deleteIndexRequest) default DeleteVectorBucketResponsedeleteVectorBucket(Consumer<DeleteVectorBucketRequest.Builder> deleteVectorBucketRequest) default DeleteVectorBucketResponsedeleteVectorBucket(DeleteVectorBucketRequest deleteVectorBucketRequest) default DeleteVectorBucketPolicyResponsedeleteVectorBucketPolicy(Consumer<DeleteVectorBucketPolicyRequest.Builder> deleteVectorBucketPolicyRequest) default DeleteVectorBucketPolicyResponsedeleteVectorBucketPolicy(DeleteVectorBucketPolicyRequest deleteVectorBucketPolicyRequest) default DeleteVectorsResponsedeleteVectors(Consumer<DeleteVectorsRequest.Builder> deleteVectorsRequest) default DeleteVectorsResponsedeleteVectors(DeleteVectorsRequest deleteVectorsRequest) default GetIndexResponsegetIndex(Consumer<GetIndexRequest.Builder> getIndexRequest) default GetIndexResponsegetIndex(GetIndexRequest getIndexRequest) default GetVectorBucketResponsegetVectorBucket(Consumer<GetVectorBucketRequest.Builder> getVectorBucketRequest) default GetVectorBucketResponsegetVectorBucket(GetVectorBucketRequest getVectorBucketRequest) default GetVectorBucketPolicyResponsegetVectorBucketPolicy(Consumer<GetVectorBucketPolicyRequest.Builder> getVectorBucketPolicyRequest) default GetVectorBucketPolicyResponsegetVectorBucketPolicy(GetVectorBucketPolicyRequest getVectorBucketPolicyRequest) default GetVectorsResponsegetVectors(Consumer<GetVectorsRequest.Builder> getVectorsRequest) default GetVectorsResponsegetVectors(GetVectorsRequest getVectorsRequest) default ListIndexesResponselistIndexes(Consumer<ListIndexesRequest.Builder> listIndexesRequest) default ListIndexesResponselistIndexes(ListIndexesRequest listIndexesRequest) default ListIndexesIterablelistIndexesPaginator(Consumer<ListIndexesRequest.Builder> listIndexesRequest) This is a variant oflistIndexes(software.amazon.awssdk.services.s3vectors.model.ListIndexesRequest)operation.default ListIndexesIterablelistIndexesPaginator(ListIndexesRequest listIndexesRequest) This is a variant oflistIndexes(software.amazon.awssdk.services.s3vectors.model.ListIndexesRequest)operation.default ListVectorBucketsResponselistVectorBuckets(Consumer<ListVectorBucketsRequest.Builder> listVectorBucketsRequest) default ListVectorBucketsResponselistVectorBuckets(ListVectorBucketsRequest listVectorBucketsRequest) default ListVectorBucketsIterablelistVectorBucketsPaginator(Consumer<ListVectorBucketsRequest.Builder> listVectorBucketsRequest) This is a variant oflistVectorBuckets(software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsRequest)operation.default ListVectorBucketsIterablelistVectorBucketsPaginator(ListVectorBucketsRequest listVectorBucketsRequest) This is a variant oflistVectorBuckets(software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsRequest)operation.default ListVectorsResponselistVectors(Consumer<ListVectorsRequest.Builder> listVectorsRequest) default ListVectorsResponselistVectors(ListVectorsRequest listVectorsRequest) default ListVectorsIterablelistVectorsPaginator(Consumer<ListVectorsRequest.Builder> listVectorsRequest) This is a variant oflistVectors(software.amazon.awssdk.services.s3vectors.model.ListVectorsRequest)operation.default ListVectorsIterablelistVectorsPaginator(ListVectorsRequest listVectorsRequest) This is a variant oflistVectors(software.amazon.awssdk.services.s3vectors.model.ListVectorsRequest)operation.default PutVectorBucketPolicyResponseputVectorBucketPolicy(Consumer<PutVectorBucketPolicyRequest.Builder> putVectorBucketPolicyRequest) default PutVectorBucketPolicyResponseputVectorBucketPolicy(PutVectorBucketPolicyRequest putVectorBucketPolicyRequest) default PutVectorsResponseputVectors(Consumer<PutVectorsRequest.Builder> putVectorsRequest) default PutVectorsResponseputVectors(PutVectorsRequest putVectorsRequest) default QueryVectorsResponsequeryVectors(Consumer<QueryVectorsRequest.Builder> queryVectorsRequest) default QueryVectorsResponsequeryVectors(QueryVectorsRequest queryVectorsRequest) The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadataMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createIndex
default CreateIndexResponse createIndex(CreateIndexRequest createIndexRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ConflictException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Creates a vector index within a vector bucket. To specify the vector bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:CreateIndexpermission to use this operation.
- Parameters:
createIndexRequest-- Returns:
- Result of the CreateIndex operation returned by the service.
- See Also:
-
createIndex
default CreateIndexResponse createIndex(Consumer<CreateIndexRequest.Builder> createIndexRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ConflictException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Creates a vector index within a vector bucket. To specify the vector bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:CreateIndexpermission to use this operation.
This is a convenience which creates an instance of the
CreateIndexRequest.Builderavoiding the need to create one manually viaCreateIndexRequest.builder()- Parameters:
createIndexRequest- AConsumerthat will call methods onCreateIndexRequest.Builderto create a request.- Returns:
- Result of the CreateIndex operation returned by the service.
- See Also:
-
createVectorBucket
default CreateVectorBucketResponse createVectorBucket(CreateVectorBucketRequest createVectorBucketRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Creates a vector bucket in the Amazon Web Services Region that you want your bucket to be in.
- Permissions
-
You must have the
s3vectors:CreateVectorBucketpermission to use this operation.
- Parameters:
createVectorBucketRequest-- Returns:
- Result of the CreateVectorBucket operation returned by the service.
- See Also:
-
createVectorBucket
default CreateVectorBucketResponse createVectorBucket(Consumer<CreateVectorBucketRequest.Builder> createVectorBucketRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Creates a vector bucket in the Amazon Web Services Region that you want your bucket to be in.
- Permissions
-
You must have the
s3vectors:CreateVectorBucketpermission to use this operation.
This is a convenience which creates an instance of the
CreateVectorBucketRequest.Builderavoiding the need to create one manually viaCreateVectorBucketRequest.builder()- Parameters:
createVectorBucketRequest- AConsumerthat will call methods onCreateVectorBucketRequest.Builderto create a request.- Returns:
- Result of the CreateVectorBucket operation returned by the service.
- See Also:
-
deleteIndex
default DeleteIndexResponse deleteIndex(DeleteIndexRequest deleteIndexRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes a vector index. To specify the vector index, you can either use both the vector bucket name and vector index name, or use the vector index Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteIndexpermission to use this operation.
- Parameters:
deleteIndexRequest-- Returns:
- Result of the DeleteIndex operation returned by the service.
- See Also:
-
deleteIndex
default DeleteIndexResponse deleteIndex(Consumer<DeleteIndexRequest.Builder> deleteIndexRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes a vector index. To specify the vector index, you can either use both the vector bucket name and vector index name, or use the vector index Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteIndexpermission to use this operation.
This is a convenience which creates an instance of the
DeleteIndexRequest.Builderavoiding the need to create one manually viaDeleteIndexRequest.builder()- Parameters:
deleteIndexRequest- AConsumerthat will call methods onDeleteIndexRequest.Builderto create a request.- Returns:
- Result of the DeleteIndex operation returned by the service.
- See Also:
-
deleteVectorBucket
default DeleteVectorBucketResponse deleteVectorBucket(DeleteVectorBucketRequest deleteVectorBucketRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes a vector bucket. All vector indexes in the vector bucket must be deleted before the vector bucket can be deleted. To perform this operation, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteVectorBucketpermission to use this operation.
- Parameters:
deleteVectorBucketRequest-- Returns:
- Result of the DeleteVectorBucket operation returned by the service.
- See Also:
-
deleteVectorBucket
default DeleteVectorBucketResponse deleteVectorBucket(Consumer<DeleteVectorBucketRequest.Builder> deleteVectorBucketRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes a vector bucket. All vector indexes in the vector bucket must be deleted before the vector bucket can be deleted. To perform this operation, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteVectorBucketpermission to use this operation.
This is a convenience which creates an instance of the
DeleteVectorBucketRequest.Builderavoiding the need to create one manually viaDeleteVectorBucketRequest.builder()- Parameters:
deleteVectorBucketRequest- AConsumerthat will call methods onDeleteVectorBucketRequest.Builderto create a request.- Returns:
- Result of the DeleteVectorBucket operation returned by the service.
- See Also:
-
deleteVectorBucketPolicy
default DeleteVectorBucketPolicyResponse deleteVectorBucketPolicy(DeleteVectorBucketPolicyRequest deleteVectorBucketPolicyRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes a vector bucket policy. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteVectorBucketPolicypermission to use this operation.
- Parameters:
deleteVectorBucketPolicyRequest-- Returns:
- Result of the DeleteVectorBucketPolicy operation returned by the service.
- See Also:
-
deleteVectorBucketPolicy
default DeleteVectorBucketPolicyResponse deleteVectorBucketPolicy(Consumer<DeleteVectorBucketPolicyRequest.Builder> deleteVectorBucketPolicyRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes a vector bucket policy. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteVectorBucketPolicypermission to use this operation.
This is a convenience which creates an instance of the
DeleteVectorBucketPolicyRequest.Builderavoiding the need to create one manually viaDeleteVectorBucketPolicyRequest.builder()- Parameters:
deleteVectorBucketPolicyRequest- AConsumerthat will call methods onDeleteVectorBucketPolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteVectorBucketPolicy operation returned by the service.
- See Also:
-
deleteVectors
default DeleteVectorsResponse deleteVectors(DeleteVectorsRequest deleteVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes one or more vectors in a vector index. To specify the vector index, you can either use both the vector bucket name and vector index name, or use the vector index Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteVectorspermission to use this operation.
- Parameters:
deleteVectorsRequest-- Returns:
- Result of the DeleteVectors operation returned by the service.
- See Also:
-
deleteVectors
default DeleteVectorsResponse deleteVectors(Consumer<DeleteVectorsRequest.Builder> deleteVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Deletes one or more vectors in a vector index. To specify the vector index, you can either use both the vector bucket name and vector index name, or use the vector index Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:DeleteVectorspermission to use this operation.
This is a convenience which creates an instance of the
DeleteVectorsRequest.Builderavoiding the need to create one manually viaDeleteVectorsRequest.builder()- Parameters:
deleteVectorsRequest- AConsumerthat will call methods onDeleteVectorsRequest.Builderto create a request.- Returns:
- Result of the DeleteVectors operation returned by the service.
- See Also:
-
getIndex
default GetIndexResponse getIndex(GetIndexRequest getIndexRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns vector index 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:GetIndexpermission to use this operation.
- Parameters:
getIndexRequest-- Returns:
- Result of the GetIndex operation returned by the service.
- See Also:
-
getIndex
default GetIndexResponse getIndex(Consumer<GetIndexRequest.Builder> getIndexRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns vector index 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:GetIndexpermission to use this operation.
This is a convenience which creates an instance of the
GetIndexRequest.Builderavoiding the need to create one manually viaGetIndexRequest.builder()- Parameters:
getIndexRequest- AConsumerthat will call methods onGetIndexRequest.Builderto create a request.- Returns:
- Result of the GetIndex operation returned by the service.
- See Also:
-
getVectorBucket
default GetVectorBucketResponse getVectorBucket(GetVectorBucketRequest getVectorBucketRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns vector bucket attributes. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:GetVectorBucketpermission to use this operation.
- Parameters:
getVectorBucketRequest-- Returns:
- Result of the GetVectorBucket operation returned by the service.
- See Also:
-
getVectorBucket
default GetVectorBucketResponse getVectorBucket(Consumer<GetVectorBucketRequest.Builder> getVectorBucketRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns vector bucket attributes. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:GetVectorBucketpermission to use this operation.
This is a convenience which creates an instance of the
GetVectorBucketRequest.Builderavoiding the need to create one manually viaGetVectorBucketRequest.builder()- Parameters:
getVectorBucketRequest- AConsumerthat will call methods onGetVectorBucketRequest.Builderto create a request.- Returns:
- Result of the GetVectorBucket operation returned by the service.
- See Also:
-
getVectorBucketPolicy
default GetVectorBucketPolicyResponse getVectorBucketPolicy(GetVectorBucketPolicyRequest getVectorBucketPolicyRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Gets details about a vector bucket policy. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:GetVectorBucketPolicypermission to use this operation.
- Parameters:
getVectorBucketPolicyRequest-- Returns:
- Result of the GetVectorBucketPolicy operation returned by the service.
- See Also:
-
getVectorBucketPolicy
default GetVectorBucketPolicyResponse getVectorBucketPolicy(Consumer<GetVectorBucketPolicyRequest.Builder> getVectorBucketPolicyRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Gets details about a vector bucket policy. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:GetVectorBucketPolicypermission to use this operation.
This is a convenience which creates an instance of the
GetVectorBucketPolicyRequest.Builderavoiding the need to create one manually viaGetVectorBucketPolicyRequest.builder()- Parameters:
getVectorBucketPolicyRequest- AConsumerthat will call methods onGetVectorBucketPolicyRequest.Builderto create a request.- Returns:
- Result of the GetVectorBucketPolicy operation returned by the service.
- See Also:
-
getVectors
default GetVectorsResponse getVectors(GetVectorsRequest getVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
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:
getVectorsRequest-- Returns:
- Result of the GetVectors operation returned by the service.
- See Also:
-
getVectors
default GetVectorsResponse getVectors(Consumer<GetVectorsRequest.Builder> getVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
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.
This is a convenience which creates an instance of the
GetVectorsRequest.Builderavoiding the need to create one manually viaGetVectorsRequest.builder()- Parameters:
getVectorsRequest- AConsumerthat will call methods onGetVectorsRequest.Builderto create a request.- Returns:
- Result of the GetVectors operation returned by the service.
- See Also:
-
listIndexes
default ListIndexesResponse listIndexes(ListIndexesRequest listIndexesRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns a list of all the vector indexes within the specified vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:ListIndexespermission to use this operation.
- Parameters:
listIndexesRequest-- Returns:
- Result of the ListIndexes operation returned by the service.
- See Also:
-
listIndexes
default ListIndexesResponse listIndexes(Consumer<ListIndexesRequest.Builder> listIndexesRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns a list of all the vector indexes within the specified vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:ListIndexespermission to use this operation.
This is a convenience which creates an instance of the
ListIndexesRequest.Builderavoiding the need to create one manually viaListIndexesRequest.builder()- Parameters:
listIndexesRequest- AConsumerthat will call methods onListIndexesRequest.Builderto create a request.- Returns:
- Result of the ListIndexes operation returned by the service.
- See Also:
-
listIndexesPaginator
default ListIndexesIterable listIndexesPaginator(ListIndexesRequest listIndexesRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException This is a variant of
listIndexes(software.amazon.awssdk.services.s3vectors.model.ListIndexesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.s3vectors.paginators.ListIndexesIterable responses = client.listIndexesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.s3vectors.paginators.ListIndexesIterable responses = client.listIndexesPaginator(request); for (software.amazon.awssdk.services.s3vectors.model.ListIndexesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.s3vectors.paginators.ListIndexesIterable responses = client.listIndexesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIndexes(software.amazon.awssdk.services.s3vectors.model.ListIndexesRequest)operation.- Parameters:
listIndexesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listIndexesPaginator
default ListIndexesIterable listIndexesPaginator(Consumer<ListIndexesRequest.Builder> listIndexesRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException This is a variant of
listIndexes(software.amazon.awssdk.services.s3vectors.model.ListIndexesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.s3vectors.paginators.ListIndexesIterable responses = client.listIndexesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.s3vectors.paginators.ListIndexesIterable responses = client.listIndexesPaginator(request); for (software.amazon.awssdk.services.s3vectors.model.ListIndexesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.s3vectors.paginators.ListIndexesIterable responses = client.listIndexesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIndexes(software.amazon.awssdk.services.s3vectors.model.ListIndexesRequest)operation.
This is a convenience which creates an instance of the
ListIndexesRequest.Builderavoiding the need to create one manually viaListIndexesRequest.builder()- Parameters:
listIndexesRequest- AConsumerthat will call methods onListIndexesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listVectorBuckets
default ListVectorBucketsResponse listVectorBuckets(ListVectorBucketsRequest listVectorBucketsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns a list of all the vector buckets that are owned by the authenticated sender of the request.
- Permissions
-
You must have the
s3vectors:ListVectorBucketspermission to use this operation.
- Parameters:
listVectorBucketsRequest-- Returns:
- Result of the ListVectorBuckets operation returned by the service.
- See Also:
-
listVectorBuckets
default ListVectorBucketsResponse listVectorBuckets(Consumer<ListVectorBucketsRequest.Builder> listVectorBucketsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns a list of all the vector buckets that are owned by the authenticated sender of the request.
- Permissions
-
You must have the
s3vectors:ListVectorBucketspermission to use this operation.
This is a convenience which creates an instance of the
ListVectorBucketsRequest.Builderavoiding the need to create one manually viaListVectorBucketsRequest.builder()- Parameters:
listVectorBucketsRequest- AConsumerthat will call methods onListVectorBucketsRequest.Builderto create a request.- Returns:
- Result of the ListVectorBuckets operation returned by the service.
- See Also:
-
listVectorBucketsPaginator
default ListVectorBucketsIterable listVectorBucketsPaginator(ListVectorBucketsRequest listVectorBucketsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException This is a variant of
listVectorBuckets(software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorBucketsIterable responses = client.listVectorBucketsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.s3vectors.paginators.ListVectorBucketsIterable responses = client .listVectorBucketsPaginator(request); for (software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorBucketsIterable responses = client.listVectorBucketsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVectorBuckets(software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsRequest)operation.- Parameters:
listVectorBucketsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listVectorBucketsPaginator
default ListVectorBucketsIterable listVectorBucketsPaginator(Consumer<ListVectorBucketsRequest.Builder> listVectorBucketsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException This is a variant of
listVectorBuckets(software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorBucketsIterable responses = client.listVectorBucketsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.s3vectors.paginators.ListVectorBucketsIterable responses = client .listVectorBucketsPaginator(request); for (software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorBucketsIterable responses = client.listVectorBucketsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVectorBuckets(software.amazon.awssdk.services.s3vectors.model.ListVectorBucketsRequest)operation.
This is a convenience which creates an instance of the
ListVectorBucketsRequest.Builderavoiding the need to create one manually viaListVectorBucketsRequest.builder()- Parameters:
listVectorBucketsRequest- AConsumerthat will call methods onListVectorBucketsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listVectors
default ListVectorsResponse listVectors(ListVectorsRequest listVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
List vectors in the specified vector index. 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).
ListVectorsoperations proceed sequentially; however, for faster performance on a large number of vectors in a vector index, applications can request a parallelListVectorsoperation by providing thesegmentCountandsegmentIndexparameters.- Permissions
-
You must have the
s3vectors:ListVectorspermission to use this operation. Additional permissions are required based on the request parameters you specify:-
With only
s3vectors:ListVectorspermission, you can list vector keys whenreturnDataandreturnMetadataare both set to false or not specified.. -
If you set
returnDataorreturnMetadatato true, you must have boths3vectors:ListVectorsands3vectors:GetVectorspermissions. The request fails with a403 Forbiddenerror if you request vector data or metadata without thes3vectors:GetVectorspermission.
-
- Parameters:
listVectorsRequest-- Returns:
- Result of the ListVectors operation returned by the service.
- See Also:
-
listVectors
default ListVectorsResponse listVectors(Consumer<ListVectorsRequest.Builder> listVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
List vectors in the specified vector index. 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).
ListVectorsoperations proceed sequentially; however, for faster performance on a large number of vectors in a vector index, applications can request a parallelListVectorsoperation by providing thesegmentCountandsegmentIndexparameters.- Permissions
-
You must have the
s3vectors:ListVectorspermission to use this operation. Additional permissions are required based on the request parameters you specify:-
With only
s3vectors:ListVectorspermission, you can list vector keys whenreturnDataandreturnMetadataare both set to false or not specified.. -
If you set
returnDataorreturnMetadatato true, you must have boths3vectors:ListVectorsands3vectors:GetVectorspermissions. The request fails with a403 Forbiddenerror if you request vector data or metadata without thes3vectors:GetVectorspermission.
-
This is a convenience which creates an instance of the
ListVectorsRequest.Builderavoiding the need to create one manually viaListVectorsRequest.builder()- Parameters:
listVectorsRequest- AConsumerthat will call methods onListVectorsRequest.Builderto create a request.- Returns:
- Result of the ListVectors operation returned by the service.
- See Also:
-
listVectorsPaginator
default ListVectorsIterable listVectorsPaginator(ListVectorsRequest listVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException This is a variant of
listVectors(software.amazon.awssdk.services.s3vectors.model.ListVectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorsIterable responses = client.listVectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.s3vectors.paginators.ListVectorsIterable responses = client.listVectorsPaginator(request); for (software.amazon.awssdk.services.s3vectors.model.ListVectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorsIterable responses = client.listVectorsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVectors(software.amazon.awssdk.services.s3vectors.model.ListVectorsRequest)operation.- Parameters:
listVectorsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listVectorsPaginator
default ListVectorsIterable listVectorsPaginator(Consumer<ListVectorsRequest.Builder> listVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException This is a variant of
listVectors(software.amazon.awssdk.services.s3vectors.model.ListVectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorsIterable responses = client.listVectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.s3vectors.paginators.ListVectorsIterable responses = client.listVectorsPaginator(request); for (software.amazon.awssdk.services.s3vectors.model.ListVectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.s3vectors.paginators.ListVectorsIterable responses = client.listVectorsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVectors(software.amazon.awssdk.services.s3vectors.model.ListVectorsRequest)operation.
This is a convenience which creates an instance of the
ListVectorsRequest.Builderavoiding the need to create one manually viaListVectorsRequest.builder()- Parameters:
listVectorsRequest- AConsumerthat will call methods onListVectorsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
putVectorBucketPolicy
default PutVectorBucketPolicyResponse putVectorBucketPolicy(PutVectorBucketPolicyRequest putVectorBucketPolicyRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Creates a bucket policy for a vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:PutVectorBucketPolicypermission to use this operation.
- Parameters:
putVectorBucketPolicyRequest-- Returns:
- Result of the PutVectorBucketPolicy operation returned by the service.
- See Also:
-
putVectorBucketPolicy
default PutVectorBucketPolicyResponse putVectorBucketPolicy(Consumer<PutVectorBucketPolicyRequest.Builder> putVectorBucketPolicyRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, InternalServerException, AccessDeniedException, NotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Creates a bucket policy for a vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:PutVectorBucketPolicypermission to use this operation.
This is a convenience which creates an instance of the
PutVectorBucketPolicyRequest.Builderavoiding the need to create one manually viaPutVectorBucketPolicyRequest.builder()- Parameters:
putVectorBucketPolicyRequest- AConsumerthat will call methods onPutVectorBucketPolicyRequest.Builderto create a request.- Returns:
- Result of the PutVectorBucketPolicy operation returned by the service.
- See Also:
-
putVectors
default PutVectorsResponse putVectors(PutVectorsRequest putVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Adds one or more vectors to a vector index. 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).
For more information about limits, see Limitations and restrictions in the Amazon S3 User Guide.
When inserting vector data into your vector index, you must provide the vector data as
float32(32-bit floating point) values. If you pass higher-precision values to an Amazon Web Services SDK, S3 Vectors converts the values to 32-bit floating point before storing them, andGetVectors,ListVectors, andQueryVectorsoperations return the float32 values. Different Amazon Web Services SDKs may have different default numeric types, so ensure your vectors are properly formatted asfloat32values regardless of which SDK you're using. For example, in Python, usenumpy.float32or explicitly cast your values.- Permissions
-
You must have the
s3vectors:PutVectorspermission to use this operation.
- Parameters:
putVectorsRequest-- Returns:
- Result of the PutVectors operation returned by the service.
- See Also:
-
putVectors
default PutVectorsResponse putVectors(Consumer<PutVectorsRequest.Builder> putVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Adds one or more vectors to a vector index. 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).
For more information about limits, see Limitations and restrictions in the Amazon S3 User Guide.
When inserting vector data into your vector index, you must provide the vector data as
float32(32-bit floating point) values. If you pass higher-precision values to an Amazon Web Services SDK, S3 Vectors converts the values to 32-bit floating point before storing them, andGetVectors,ListVectors, andQueryVectorsoperations return the float32 values. Different Amazon Web Services SDKs may have different default numeric types, so ensure your vectors are properly formatted asfloat32values regardless of which SDK you're using. For example, in Python, usenumpy.float32or explicitly cast your values.- Permissions
-
You must have the
s3vectors:PutVectorspermission to use this operation.
This is a convenience which creates an instance of the
PutVectorsRequest.Builderavoiding the need to create one manually viaPutVectorsRequest.builder()- Parameters:
putVectorsRequest- AConsumerthat will call methods onPutVectorsRequest.Builderto create a request.- Returns:
- Result of the PutVectors operation returned by the service.
- See Also:
-
queryVectors
default QueryVectorsResponse queryVectors(QueryVectorsRequest queryVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException 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:QueryVectorspermission 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 thereturnMetadataparameter set tofalseor not specified). -
If you specify a metadata filter or set
returnMetadatato true, you must have boths3vectors:QueryVectorsands3vectors:GetVectorspermissions. The request fails with a403 Forbidden errorif you request metadata filtering, vector data, or metadata without thes3vectors:GetVectorspermission.
-
- Parameters:
queryVectorsRequest-- Returns:
- Result of the QueryVectors operation returned by the service.
- See Also:
-
queryVectors
default QueryVectorsResponse queryVectors(Consumer<QueryVectorsRequest.Builder> queryVectorsRequest) throws ValidationException, ServiceUnavailableException, TooManyRequestsException, KmsInvalidKeyUsageException, InternalServerException, KmsInvalidStateException, AccessDeniedException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, KmsDisabledException, AwsServiceException, SdkClientException, S3VectorsException 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:QueryVectorspermission 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 thereturnMetadataparameter set tofalseor not specified). -
If you specify a metadata filter or set
returnMetadatato true, you must have boths3vectors:QueryVectorsands3vectors:GetVectorspermissions. The request fails with a403 Forbidden errorif you request metadata filtering, vector data, or metadata without thes3vectors:GetVectorspermission.
-
This is a convenience which creates an instance of the
QueryVectorsRequest.Builderavoiding the need to create one manually viaQueryVectorsRequest.builder()- Parameters:
queryVectorsRequest- AConsumerthat will call methods onQueryVectorsRequest.Builderto create a request.- Returns:
- Result of the QueryVectors operation returned by the service.
- See Also:
-
create
Create aS3VectorsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aS3VectorsClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-