interface VectorIndexProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DynamoDB.CfnTable.VectorIndexProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#CfnTable_VectorIndexProperty |
Java | software.amazon.awscdk.services.dynamodb.CfnTable.VectorIndexProperty |
Python | aws_cdk.aws_dynamodb.CfnTable.VectorIndexProperty |
TypeScript | aws-cdk-lib » aws_dynamodb » CfnTable » VectorIndexProperty |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const vectorIndexProperty: dynamodb.CfnTable.VectorIndexProperty = {
dimensions: 123,
distanceFunction: 'distanceFunction',
indexName: 'indexName',
projection: {
nonKeyAttributes: ['nonKeyAttributes'],
projectionType: 'projectionType',
},
vectorAttribute: {
attributeName: 'attributeName',
},
// the properties below are optional
searchSchema: [{
attributeName: 'attributeName',
searchSchemaElementType: 'searchSchemaElementType',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| dimensions | number | |
| distance | string | |
| index | string | |
| projection | IResolvable | Projection | Represents attributes that are copied (projected) from the table into an index. |
| vector | IResolvable | Vector | |
| search | IResolvable | (IResolvable | Search)[] |
dimensions
Type:
number
distanceFunction
Type:
string
indexName
Type:
string
projection
Type:
IResolvable | Projection
Represents attributes that are copied (projected) from the table into an index.
These are in addition to the primary key attributes and index key attributes, which are automatically projected.
vectorAttribute
Type:
IResolvable | Vector
searchSchema?
Type:
IResolvable | (IResolvable | Search)[]
(optional)

.NET
Go
Java
Python
TypeScript