VectorIndexProperty Struct
Example
ts
// 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
distanceFunctionstringdistance_functionstrdistanceFunctionStringDistanceFunctionstringDistanceFunction*stringrequired#projectionIResolvable | CfnGlobalTable.ProjectionPropertyprojectiontyping.Union[IResolvable, ProjectionProperty]projectionIResolvableProjectionIResolvableProjectioninterface{}required#searchSchemaoptionalIResolvable | IResolvable | CfnGlobalTable.SearchSchemaElementProperty[]search_schemaoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SearchSchemaElementProperty]]]searchSchemaoptionalIResolvableSearchSchemaoptionalIResolvableSearchSchemaoptionalinterface{}#vectorAttributeIResolvable | CfnGlobalTable.VectorAttributePropertyvector_attributetyping.Union[IResolvable, VectorAttributeProperty]vectorAttributeIResolvableVectorAttributeIResolvableVectorAttributeinterface{}required#