{ "version":"2.0", "metadata":{ "apiVersion":"2025-07-15", "auth":["aws.auth#sigv4"], "endpointPrefix":"s3vectors", "protocol":"rest-json", "protocols":["rest-json"], "serviceFullName":"Amazon S3 Vectors", "serviceId":"S3Vectors", "signatureVersion":"v4", "signingName":"s3vectors", "uid":"s3vectors-2025-07-15" }, "operations":{ "CreateIndex":{ "name":"CreateIndex", "http":{ "method":"POST", "requestUri":"/CreateIndex", "responseCode":200 }, "input":{"shape":"CreateIndexInput"}, "output":{"shape":"CreateIndexOutput"}, "errors":[ {"shape":"ValidationException"}, {"shape":"ServiceUnavailableException"}, {"shape":"TooManyRequestsException"}, {"shape":"InternalServerException"}, {"shape":"AccessDeniedException"}, {"shape":"RequestTimeoutException"}, {"shape":"ConflictException"}, {"shape":"NotFoundException"}, {"shape":"ServiceQuotaExceededException"} ], "documentation":"
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).
You must have the s3vectors:CreateIndex permission to use this operation.
You must have the s3vectors:TagResource permission in addition to s3vectors:CreateIndex permission to create a vector index with tags.
Creates a vector bucket in the Amazon Web Services Region that you want your bucket to be in.
You must have the s3vectors:CreateVectorBucket permission to use this operation.
You must have the s3vectors:TagResource permission in addition to s3vectors:CreateVectorBucket permission to create a vector bucket with tags.
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).
You must have the s3vectors:DeleteIndex permission to use this operation.
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).
You must have the s3vectors:DeleteVectorBucket permission to use this operation.
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).
You must have the s3vectors:DeleteVectorBucketPolicy permission to use this operation.
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).
You must have the s3vectors:DeleteVectors permission to use this operation.
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).
You must have the s3vectors:GetIndex permission to use this operation.
Returns vector bucket attributes. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
You must have the s3vectors:GetVectorBucket permission to use this operation.
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).
You must have the s3vectors:GetVectorBucketPolicy permission to use this operation.
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).
You must have the s3vectors:GetVectors permission to use this operation.
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).
You must have the s3vectors:ListIndexes permission to use this operation.
Lists all of the tags applied to a specified Amazon S3 Vectors resource. Each tag is a label consisting of a key and value pair. Tags can help you organize, track costs for, and control access to resources.
For a list of S3 resources that support tagging, see Managing tags for Amazon S3 resources.
For vector buckets and vector indexes, you must have the s3vectors:ListTagsForResource permission to use this operation.
Returns a list of all the vector buckets that are owned by the authenticated sender of the request.
You must have the s3vectors:ListVectorBuckets permission to use this operation.
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).
ListVectors operations proceed sequentially; however, for faster performance on a large number of vectors in a vector index, applications can request a parallel ListVectors operation by providing the segmentCount and segmentIndex parameters.
You must have the s3vectors:ListVectors permission to use this operation. Additional permissions are required based on the request parameters you specify:
With only s3vectors:ListVectors permission, you can list vector keys when returnData and returnMetadata are both set to false or not specified..
If you set returnData or returnMetadata to true, you must have both s3vectors:ListVectors and s3vectors:GetVectors permissions. The request fails with a 403 Forbidden error if you request vector data or metadata without the s3vectors:GetVectors permission.
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).
You must have the s3vectors:PutVectorBucketPolicy permission to use this operation.
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, and GetVectors, ListVectors, and QueryVectors operations return the float32 values. Different Amazon Web Services SDKs may have different default numeric types, so ensure your vectors are properly formatted as float32 values regardless of which SDK you're using. For example, in Python, use numpy.float32 or explicitly cast your values.
You must have the s3vectors:PutVectors permission to use this operation.
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) 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).
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:QueryVectors permission, 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 metadata (by keeping the returnMetadata parameter set to false or not specified).
If you specify a metadata filter or set returnMetadata to true, you must have both s3vectors:QueryVectors and s3vectors:GetVectors permissions. The request fails with a 403 Forbidden error if you request metadata filtering or metadata without the s3vectors:GetVectors permission.
Applies one or more user-defined tags to an Amazon S3 Vectors resource or updates existing tags. Each tag is a label consisting of a key and value pair. Tags can help you organize, track costs for, and control access to your resources. You can add up to 50 tags for each resource.
For a list of S3 resources that support tagging, see Managing tags for Amazon S3 resources.
For vector buckets and vector indexes, you must have the s3vectors:TagResource permission to use this operation.
Removes the specified user-defined tags from an Amazon S3 Vectors resource. You can pass one or more tag keys.
For a list of S3 resources that support tagging, see Managing tags for Amazon S3 resources.
For vector buckets and vector indexes, you must have the s3vectors:UntagResource permission to use this operation.
Access denied.
", "error":{ "httpStatusCode":403, "senderFault":true }, "exception":true }, "Boolean":{ "type":"boolean", "box":true }, "ConflictException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The request failed because a vector bucket name or a vector index name already exists. Vector bucket names must be unique within your Amazon Web Services account for each Amazon Web Services Region. Vector index names must be unique within your vector bucket. Choose a different vector bucket name or vector index name, and try again.
", "error":{ "httpStatusCode":409, "senderFault":true }, "exception":true }, "CreateIndexInput":{ "type":"structure", "required":[ "indexName", "dataType", "dimension", "distanceMetric" ], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket to create the vector index in.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The Amazon Resource Name (ARN) of the vector bucket to create the vector index in.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index to create.
" }, "dataType":{ "shape":"DataType", "documentation":"The data type of the vectors to be inserted into the vector index.
" }, "dimension":{ "shape":"Dimension", "documentation":"The dimensions of the vectors to be inserted into the vector index.
" }, "distanceMetric":{ "shape":"DistanceMetric", "documentation":"The distance metric to be used for similarity search.
" }, "metadataConfiguration":{ "shape":"MetadataConfiguration", "documentation":"The metadata configuration for the vector index.
" }, "encryptionConfiguration":{ "shape":"EncryptionConfiguration", "documentation":"The encryption configuration for a vector index. By default, if you don't specify, all new vectors in the vector index will use the encryption configuration of the vector bucket.
" }, "tags":{ "shape":"TagsMap", "documentation":"An array of user-defined tags that you would like to apply to the vector index that you are creating. A tag is a key-value pair that you apply to your resources. Tags can help you organize, track costs, and control access to resources. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
You must have the s3vectors:TagResource permission in addition to s3vectors:CreateIndex permission to create a vector index with tags.
The Amazon Resource Name (ARN) of the newly created vector index.
" } } }, "CreateVectorBucketInput":{ "type":"structure", "required":["vectorBucketName"], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket to create.
" }, "encryptionConfiguration":{ "shape":"EncryptionConfiguration", "documentation":"The encryption configuration for the vector bucket. By default, if you don't specify, all new vectors in Amazon S3 vector buckets use server-side encryption with Amazon S3 managed keys (SSE-S3), specifically AES256.
An array of user-defined tags that you would like to apply to the vector bucket that you are creating. A tag is a key-value pair that you apply to your resources. Tags can help you organize and control access to resources. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
You must have the s3vectors:TagResource permission in addition to s3vectors:CreateVectorBucket permission to create a vector bucket with tags.
The Amazon Resource Name (ARN) of the newly created vector bucket.
" } } }, "DataType":{ "type":"string", "enum":["float32"] }, "DeleteIndexInput":{ "type":"structure", "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index to delete.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The ARN of the vector index to delete.
" } } }, "DeleteIndexOutput":{ "type":"structure", "members":{} }, "DeleteVectorBucketInput":{ "type":"structure", "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket to delete.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The ARN of the vector bucket to delete.
" } } }, "DeleteVectorBucketOutput":{ "type":"structure", "members":{} }, "DeleteVectorBucketPolicyInput":{ "type":"structure", "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket to delete the policy from.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The ARN of the vector bucket to delete the policy from.
" } } }, "DeleteVectorBucketPolicyOutput":{ "type":"structure", "members":{} }, "DeleteVectorsInput":{ "type":"structure", "required":["keys"], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index that contains a vector you want to delete.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The ARN of the vector index that contains a vector you want to delete.
" }, "keys":{ "shape":"DeleteVectorsInputList", "documentation":"The keys of the vectors to delete.
" } } }, "DeleteVectorsInputList":{ "type":"list", "member":{"shape":"VectorKey"}, "max":500, "min":1 }, "DeleteVectorsOutput":{ "type":"structure", "members":{} }, "Dimension":{ "type":"integer", "box":true, "max":4096, "min":1 }, "DistanceMetric":{ "type":"string", "enum":[ "euclidean", "cosine" ] }, "Document":{ "type":"structure", "members":{}, "document":true }, "EncryptionConfiguration":{ "type":"structure", "members":{ "sseType":{ "shape":"SseType", "documentation":"The server-side encryption type to use for the encryption configuration of the vector bucket. By default, if you don't specify, all new vectors in Amazon S3 vector buckets use server-side encryption with Amazon S3 managed keys (SSE-S3), specifically AES256.
Amazon Web Services Key Management Service (KMS) customer managed key ID to use for the encryption configuration. This parameter is allowed if and only if sseType is set to aws:kms.
To specify the KMS key, you must use the format of the KMS key Amazon Resource Name (ARN).
For example, specify Key ARN in the following format: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
The encryption configuration for a vector bucket or index. By default, if you don't specify, all new vectors in Amazon S3 vector buckets use server-side encryption with Amazon S3 managed keys (SSE-S3), specifically AES256. You can optionally override bucket level encryption settings, and set a specific encryption configuration for a vector index at the time of index creation.
The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The ARN of the vector index.
" } } }, "GetIndexOutput":{ "type":"structure", "required":["index"], "members":{ "index":{ "shape":"Index", "documentation":"The attributes of the vector index.
" } } }, "GetOutputVector":{ "type":"structure", "required":["key"], "members":{ "key":{ "shape":"VectorKey", "documentation":"The name of the vector.
" }, "data":{ "shape":"VectorData", "documentation":"The vector data of the vector.
" }, "metadata":{ "shape":"VectorMetadata", "documentation":"Metadata about the vector.
" } }, "documentation":"The attributes of a vector returned by the GetVectors operation.
The name of the vector bucket to retrieve information about.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The ARN of the vector bucket to retrieve information about.
" } } }, "GetVectorBucketOutput":{ "type":"structure", "required":["vectorBucket"], "members":{ "vectorBucket":{ "shape":"VectorBucket", "documentation":"The attributes of the vector bucket.
" } } }, "GetVectorBucketPolicyInput":{ "type":"structure", "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The ARN of the vector bucket.
" } } }, "GetVectorBucketPolicyOutput":{ "type":"structure", "members":{ "policy":{ "shape":"VectorBucketPolicy", "documentation":"The JSON that defines the policy.
The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The ARN of the vector index.
" }, "keys":{ "shape":"GetVectorsInputList", "documentation":"The names of the vectors you want to return attributes for.
" }, "returnData":{ "shape":"Boolean", "documentation":"Indicates whether to include the vector data in the response. The default value is false.
Indicates whether to include metadata in the response. The default value is false.
The attributes of the vectors.
" } } }, "GetVectorsOutputList":{ "type":"list", "member":{"shape":"GetOutputVector"} }, "Index":{ "type":"structure", "required":[ "vectorBucketName", "indexName", "indexArn", "creationTime", "dataType", "dimension", "distanceMetric" ], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The Amazon Resource Name (ARN) of the vector index.
" }, "creationTime":{ "shape":"Timestamp", "documentation":"Date and time when the vector index was created.
" }, "dataType":{ "shape":"DataType", "documentation":"The data type of the vectors inserted into the vector index.
" }, "dimension":{ "shape":"Dimension", "documentation":"The number of values in the vectors that are inserted into the vector index.
" }, "distanceMetric":{ "shape":"DistanceMetric", "documentation":"The distance metric to be used for similarity search.
" }, "metadataConfiguration":{ "shape":"MetadataConfiguration", "documentation":"The metadata configuration for the vector index.
" }, "encryptionConfiguration":{ "shape":"EncryptionConfiguration", "documentation":"The encryption configuration for a vector index. By default, if you don't specify, all new vectors in the vector index will use the encryption configuration of the vector bucket.
" } }, "documentation":"The attributes of a vector index.
" }, "IndexArn":{ "type":"string", "pattern":"arn:aws[-a-z0-9]*:s3vectors:[a-z0-9-]+:[0-9]{12}:bucket/[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]/index/[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]" }, "IndexName":{ "type":"string", "max":63, "min":3 }, "IndexSummary":{ "type":"structure", "required":[ "vectorBucketName", "indexName", "indexArn", "creationTime" ], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The Amazon Resource Name (ARN) of the vector index.
" }, "creationTime":{ "shape":"Timestamp", "documentation":"Date and time when the vector index was created.
" } }, "documentation":"Summary information about a vector index.
" }, "InternalServerException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The request failed due to an internal server error.
", "error":{"httpStatusCode":500}, "exception":true, "fault":true, "retryable":{"throttling":false} }, "KmsDisabledException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The specified Amazon Web Services KMS key isn't enabled.
", "error":{ "httpStatusCode":400, "senderFault":true }, "exception":true }, "KmsInvalidKeyUsageException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The request was rejected for one of the following reasons:
The KeyUsage value 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.
", "error":{ "httpStatusCode":400, "senderFault":true }, "exception":true }, "KmsInvalidStateException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"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.
", "error":{ "httpStatusCode":400, "senderFault":true }, "exception":true }, "KmsKeyArn":{ "type":"string", "max":2048, "min":1, "pattern":"(arn:aws[-a-z0-9]*:kms:[-a-z0-9]*:[0-9]{12}:key/.+)" }, "KmsNotFoundException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The KMS key can't be found.
", "error":{ "httpStatusCode":400, "senderFault":true }, "exception":true }, "ListIndexesInput":{ "type":"structure", "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket that contains the vector indexes.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The ARN of the vector bucket that contains the vector indexes.
" }, "maxResults":{ "shape":"ListIndexesMaxResults", "documentation":"The maximum number of items to be returned in the response.
" }, "nextToken":{ "shape":"ListIndexesNextToken", "documentation":"The previous pagination token.
" }, "prefix":{ "shape":"ListIndexesPrefix", "documentation":"Limits the response to vector indexes that begin with the specified prefix.
" } } }, "ListIndexesMaxResults":{ "type":"integer", "box":true, "max":500, "min":1 }, "ListIndexesNextToken":{ "type":"string", "max":512, "min":1 }, "ListIndexesOutput":{ "type":"structure", "required":["indexes"], "members":{ "nextToken":{ "shape":"ListIndexesNextToken", "documentation":"The next pagination token.
" }, "indexes":{ "shape":"ListIndexesOutputList", "documentation":"The attributes of the vector indexes
" } } }, "ListIndexesOutputList":{ "type":"list", "member":{"shape":"IndexSummary"} }, "ListIndexesPrefix":{ "type":"string", "max":63, "min":1 }, "ListOutputVector":{ "type":"structure", "required":["key"], "members":{ "key":{ "shape":"VectorKey", "documentation":"The name of the vector.
" }, "data":{ "shape":"VectorData", "documentation":"The vector data of the vector.
" }, "metadata":{ "shape":"VectorMetadata", "documentation":"Metadata about the vector.
" } }, "documentation":"The attributes of a vector returned by the ListVectors operation.
The Amazon Resource Name (ARN) of the Amazon S3 Vectors resource that you want to list tags for. The tagged resource can be a vector bucket or a vector index.
", "location":"uri", "locationName":"resourceArn" } } }, "ListTagsForResourceOutput":{ "type":"structure", "required":["tags"], "members":{ "tags":{ "shape":"TagsMap", "documentation":"The user-defined tags that are applied to the S3 Vectors resource. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
" } } }, "ListVectorBucketsInput":{ "type":"structure", "members":{ "maxResults":{ "shape":"ListVectorBucketsMaxResults", "documentation":"The maximum number of vector buckets to be returned in the response.
" }, "nextToken":{ "shape":"ListVectorBucketsNextToken", "documentation":"The previous pagination token.
" }, "prefix":{ "shape":"ListVectorBucketsPrefix", "documentation":"Limits the response to vector buckets that begin with the specified prefix.
" } } }, "ListVectorBucketsMaxResults":{ "type":"integer", "box":true, "max":500, "min":1 }, "ListVectorBucketsNextToken":{ "type":"string", "max":512, "min":1 }, "ListVectorBucketsOutput":{ "type":"structure", "required":["vectorBuckets"], "members":{ "nextToken":{ "shape":"ListVectorBucketsNextToken", "documentation":"The element is included in the response when there are more buckets to be listed with pagination.
" }, "vectorBuckets":{ "shape":"ListVectorBucketsOutputList", "documentation":"The list of vector buckets owned by the requester.
" } } }, "ListVectorBucketsOutputList":{ "type":"list", "member":{"shape":"VectorBucketSummary"} }, "ListVectorBucketsPrefix":{ "type":"string", "max":63, "min":1 }, "ListVectorsInput":{ "type":"structure", "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The Amazon resource Name (ARN) of the vector index.
" }, "maxResults":{ "shape":"ListVectorsMaxResults", "documentation":"The maximum number of vectors to return on a page.
If you don't specify maxResults, the ListVectors operation uses a default value of 500.
If the processed dataset size exceeds 1 MB before reaching the maxResults value, the operation stops and returns the vectors that are retrieved up to that point, along with a nextToken that you can use in a subsequent request to retrieve the next set of results.
Pagination token from a previous request. The value of this field is empty for an initial request.
" }, "segmentCount":{ "shape":"ListVectorsSegmentCount", "documentation":"For a parallel ListVectors request, segmentCount represents the total number of vector segments into which the ListVectors operation will be divided. The value of segmentCount corresponds to the number of application workers that will perform the parallel ListVectors operation. For example, if you want to use four application threads to list vectors in a vector index, specify a segmentCount value of 4.
If you specify a segmentCount value of 1, the ListVectors operation will be sequential rather than parallel.
If you specify segmentCount, you must also specify segmentIndex.
For a parallel ListVectors request, segmentIndex is the index of the segment from which to list vectors in the current request. It identifies an individual segment to be listed by an application worker.
Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to list vectors in a vector index, then the first thread specifies a segmentIndex value of 0, the second thread specifies 1, and so on.
The value of segmentIndex must be less than the value provided for segmentCount.
If you provide segmentIndex, you must also provide segmentCount.
If true, the vector data of each vector will be included in the response. The default value is false.
If true, the metadata associated with each vector will be included in the response. The default value is false.
Pagination token to be used in the subsequent request. The field is empty if no further pagination is required.
" }, "vectors":{ "shape":"ListVectorsOutputList", "documentation":"Vectors in the current segment.
" } } }, "ListVectorsOutputList":{ "type":"list", "member":{"shape":"ListOutputVector"} }, "ListVectorsSegmentCount":{ "type":"integer", "box":true, "max":16, "min":1 }, "ListVectorsSegmentIndex":{ "type":"integer", "box":true, "max":15, "min":0 }, "MetadataConfiguration":{ "type":"structure", "required":["nonFilterableMetadataKeys"], "members":{ "nonFilterableMetadataKeys":{ "shape":"NonFilterableMetadataKeys", "documentation":"Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys can’t be used as query filters. Non-filterable metadata keys can be retrieved but can’t be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors. For more information about non-filterable metadata keys, see Vectors and Limitations and restrictions in the Amazon S3 User Guide.
" } }, "documentation":"The metadata configuration for a vector index.
" }, "MetadataKey":{ "type":"string", "max":63, "min":1 }, "NonFilterableMetadataKeys":{ "type":"list", "member":{"shape":"MetadataKey"}, "max":10, "min":1 }, "NotFoundException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The request was rejected because the specified resource can't be found.
", "error":{ "httpStatusCode":404, "senderFault":true }, "exception":true }, "PutInputVector":{ "type":"structure", "required":[ "key", "data" ], "members":{ "key":{ "shape":"VectorKey", "documentation":"The name of the vector. The key uniquely identifies the vector in a vector index.
" }, "data":{ "shape":"VectorData", "documentation":"The vector data of the vector.
Vector dimensions must match the dimension count that's configured for the vector index.
For the cosine distance metric, zero vectors (vectors containing all zeros) aren't allowed.
For both cosine and euclidean distance metrics, vector data must contain only valid floating-point values. Invalid values such as NaN (Not a Number) or Infinity aren't allowed.
Metadata about the vector. All metadata entries undergo validation to ensure they meet the format requirements for size and data types.
" } }, "documentation":"The attributes of a vector to add to a vector index.
" }, "PutVectorBucketPolicyInput":{ "type":"structure", "required":["policy"], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The Amazon Resource Name (ARN) of the vector bucket.
" }, "policy":{ "shape":"VectorBucketPolicy", "documentation":"The JSON that defines the policy. For more information about bucket policies for S3 Vectors, see Managing vector bucket policies in the Amazon S3 User Guide.
The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index where you want to write vectors.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The ARN of the vector index where you want to write vectors.
" }, "vectors":{ "shape":"PutVectorsInputList", "documentation":"The vectors to add to a vector index. The number of vectors in a single request must not exceed the resource capacity, otherwise the request will be rejected with the error ServiceUnavailableException with the error message \"Currently unable to handle the request\".
The measure of similarity between the vector in the response and the query vector.
" }, "key":{ "shape":"VectorKey", "documentation":"The key of the vector in the approximate nearest neighbor search.
" }, "metadata":{ "shape":"VectorMetadata", "documentation":"The metadata associated with the vector, if requested.
" } }, "documentation":"The attributes of a vector in the approximate nearest neighbor search.
" }, "QueryVectorsInput":{ "type":"structure", "required":[ "topK", "queryVector" ], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket that contains the vector index.
" }, "indexName":{ "shape":"IndexName", "documentation":"The name of the vector index that you want to query.
" }, "indexArn":{ "shape":"IndexArn", "documentation":"The ARN of the vector index that you want to query.
" }, "topK":{ "shape":"TopK", "documentation":"The number of results to return for each query.
" }, "queryVector":{ "shape":"VectorData", "documentation":"The query vector. Ensure that the query vector has the same dimension as the dimension of the vector index that's being queried. For example, if your vector index contains vectors with 384 dimensions, your query vector must also have 384 dimensions.
" }, "filter":{ "shape":"Document", "documentation":"Metadata filter to apply during the query. For more information about metadata keys, see Metadata filtering in the Amazon S3 User Guide.
" }, "returnMetadata":{ "shape":"Boolean", "documentation":"Indicates whether to include metadata in the response. The default value is false.
Indicates whether to include the computed distance in the response. The default value is false.
Pagination token from a previous request. The value of this field is empty for an initial request.
" } } }, "QueryVectorsNextToken":{ "type":"string", "max":4096, "min":1 }, "QueryVectorsOutput":{ "type":"structure", "required":[ "vectors", "distanceMetric" ], "members":{ "vectors":{ "shape":"QueryVectorsOutputList", "documentation":"The vectors in the approximate nearest neighbor search.
" }, "distanceMetric":{ "shape":"DistanceMetric", "documentation":"The distance metric that was used for the similarity search calculation. This is the same distance metric that was configured for the vector index when it was created.
" }, "nextToken":{ "shape":"QueryVectorsNextToken", "documentation":"Pagination token to be used in the subsequent page request. The field is empty if no further pagination is required.
" } } }, "QueryVectorsOutputList":{ "type":"list", "member":{"shape":"QueryOutputVector"} }, "RequestTimeoutException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The request timed out. Retry your request.
", "error":{ "httpStatusCode":408, "senderFault":true }, "exception":true, "retryable":{"throttling":false} }, "ResourceARN":{ "type":"string", "max":1011, "min":0 }, "ServiceQuotaExceededException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"Your request exceeds a service quota.
", "error":{ "httpStatusCode":402, "senderFault":true }, "exception":true }, "ServiceUnavailableException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.
", "error":{"httpStatusCode":503}, "exception":true, "fault":true, "retryable":{"throttling":false} }, "SseType":{ "type":"string", "enum":[ "AES256", "aws:kms" ] }, "String":{"type":"string"}, "TagKey":{ "type":"string", "max":128, "min":1, "pattern":"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)" }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"} }, "TagResourceInput":{ "type":"structure", "required":[ "resourceArn", "tags" ], "members":{ "resourceArn":{ "shape":"ResourceARN", "documentation":"The Amazon Resource Name (ARN) of the Amazon S3 Vectors resource that you're applying tags to. The tagged resource can be a vector bucket or a vector index.
", "location":"uri", "locationName":"resourceArn" }, "tags":{ "shape":"TagsMap", "documentation":"The user-defined tag that you want to add to the specified S3 Vectors resource. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
" } } }, "TagResourceOutput":{ "type":"structure", "members":{} }, "TagValue":{ "type":"string", "max":256, "min":0, "pattern":"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)" }, "TagsMap":{ "type":"map", "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"} }, "Timestamp":{"type":"timestamp"}, "TooManyRequestsException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"ExceptionMessage"} }, "documentation":"The request was denied due to request throttling.
", "error":{ "httpStatusCode":429, "senderFault":true }, "exception":true, "retryable":{"throttling":true} }, "TopK":{ "type":"integer", "box":true, "min":1 }, "UntagResourceInput":{ "type":"structure", "required":[ "resourceArn", "tagKeys" ], "members":{ "resourceArn":{ "shape":"ResourceARN", "documentation":"The Amazon Resource Name (ARN) of the Amazon S3 Vectors resource that you're removing tags from. The tagged resource can be a vector bucket or a vector index.
", "location":"uri", "locationName":"resourceArn" }, "tagKeys":{ "shape":"TagKeyList", "documentation":"The array of tag keys that you're removing from the S3 Vectors resource. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
", "location":"querystring", "locationName":"tagKeys" } } }, "UntagResourceOutput":{ "type":"structure", "members":{} }, "ValidationException":{ "type":"structure", "required":["message"], "members":{ "message":{"shape":"String"}, "fieldList":{ "shape":"ValidationExceptionFieldList", "documentation":"A list of specific validation failures that are encountered during input processing. Each entry in the list contains a path to the field that failed validation and a detailed message that explains why the validation failed. To satisfy multiple constraints, a field can appear multiple times in this list if it failed. You can use the information to identify and fix the specific validation issues in your request.
" } }, "documentation":"The requested action isn't valid.
", "exception":true }, "ValidationExceptionField":{ "type":"structure", "required":[ "path", "message" ], "members":{ "path":{ "shape":"String", "documentation":"A path about the validation exception.
" }, "message":{ "shape":"String", "documentation":"A message about the validation exception.
" } }, "documentation":"Contains information about a validation exception.
" }, "ValidationExceptionFieldList":{ "type":"list", "member":{"shape":"ValidationExceptionField"} }, "VectorBucket":{ "type":"structure", "required":[ "vectorBucketName", "vectorBucketArn", "creationTime" ], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The Amazon Resource Name (ARN) of the vector bucket.
" }, "creationTime":{ "shape":"Timestamp", "documentation":"Date and time when the vector bucket was created.
" }, "encryptionConfiguration":{ "shape":"EncryptionConfiguration", "documentation":"The encryption configuration for the vector bucket.
" } }, "documentation":"The attributes of a vector bucket.
" }, "VectorBucketArn":{ "type":"string", "pattern":"arn:aws[-a-z0-9]*:s3vectors:[a-z0-9-]+:[0-9]{12}:bucket/[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]" }, "VectorBucketName":{ "type":"string", "max":63, "min":3 }, "VectorBucketPolicy":{"type":"string"}, "VectorBucketSummary":{ "type":"structure", "required":[ "vectorBucketName", "vectorBucketArn", "creationTime" ], "members":{ "vectorBucketName":{ "shape":"VectorBucketName", "documentation":"The name of the vector bucket.
" }, "vectorBucketArn":{ "shape":"VectorBucketArn", "documentation":"The Amazon Resource Name (ARN) of the vector bucket.
" }, "creationTime":{ "shape":"Timestamp", "documentation":"Date and time when the vector bucket was created.
" } }, "documentation":"Summary information about a vector bucket.
" }, "VectorData":{ "type":"structure", "members":{ "float32":{ "shape":"Float32VectorData", "documentation":"The vector data as 32-bit floating point numbers. The number of elements in this array must exactly match the dimension of the vector index where the operation is being performed.
" } }, "documentation":"The vector data in different formats.
", "union":true }, "VectorKey":{ "type":"string", "max":1024, "min":1 }, "VectorMetadata":{ "type":"structure", "members":{}, "document":true } }, "documentation":"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.
" }