interface VectorIndexProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DynamoDB.CfnGlobalTable.VectorIndexProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#CfnGlobalTable_VectorIndexProperty |
Java | software.amazon.awscdk.services.dynamodb.CfnGlobalTable.VectorIndexProperty |
Python | aws_cdk.aws_dynamodb.CfnGlobalTable.VectorIndexProperty |
TypeScript | aws-cdk-lib » aws_dynamodb » CfnGlobalTable » 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.CfnGlobalTable.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 | |
| vector | IResolvable | Vector | |
| search | IResolvable | (IResolvable | Search)[] |
dimensions
Type:
number
distanceFunction
Type:
string
indexName
Type:
string
projection
Type:
IResolvable | Projection
vectorAttribute
Type:
IResolvable | Vector
searchSchema?
Type:
IResolvable | (IResolvable | Search)[]
(optional)

.NET
Go
Java
Python
TypeScript