IndexProperty Struct
An OpenSearch Serverless index resource.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const indexProperty: opensearchserverless.CfnIndex.IndexProperty = {
knn: false,
knnAlgoParamEfSearch: 123,
refreshInterval: 'refreshInterval',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless
index_property = opensearchserverless.CfnIndex.IndexProperty(
knn=False,
knn_algo_param_ef_search=123,
refresh_interval="refreshInterval"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;
IndexProperty indexProperty = IndexProperty.builder()
.knn(false)
.knnAlgoParamEfSearch(123)
.refreshInterval("refreshInterval")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;
var indexProperty = new IndexProperty {
Knn = false,
KnnAlgoParamEfSearch = 123,
RefreshInterval = "refreshInterval"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
indexProperty := &IndexProperty{
Knn: jsii.Boolean(false),
KnnAlgoParamEfSearch: jsii.Number(123),
RefreshInterval: jsii.String("refreshInterval"),
}
Properties
knnoptionalboolean | IResolvableknnoptionaltyping.Union[bool, IResolvable]knnoptionalBooleanKnnoptionalboolKnnoptionalinterface{} #Enable or disable k-nearest neighbor search capability.
knnAlgoParamEfSearchoptionalnumberknn_algo_param_ef_searchoptionalint | floatknnAlgoParamEfSearchoptionalNumberKnnAlgoParamEfSearchoptionaldoubleKnnAlgoParamEfSearchoptional*float64 #The size of the dynamic list for the nearest neighbors.
refreshIntervaloptionalstringrefresh_intervaloptionalstrrefreshIntervaloptionalStringRefreshIntervaloptionalstringRefreshIntervaloptional*string #How often to perform a refresh operation.
For example, 1s or 5s.