Skip to content
v2.278.0

ParametersProperty Struct ​

Additional parameters for the k-NN algorithm.

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 parametersProperty: opensearchserverless.CfnIndex.ParametersProperty = {
  efConstruction: 123,
  m: 123,
};
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

parameters_property = opensearchserverless.CfnIndex.ParametersProperty(
    ef_construction=123,
    m=123
)
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.*;

ParametersProperty parametersProperty = ParametersProperty.builder()
        .efConstruction(123)
        .m(123)
        .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 parametersProperty = new ParametersProperty {
    EfConstruction = 123,
    M = 123
};
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"

parametersProperty := &ParametersProperty{
	EfConstruction: jsii.Number(123),
	M: jsii.Number(123),
}

Properties ​

efConstructionoptionalnumberef_constructionoptionalint | floatefConstructionoptionalNumberEfConstructionoptionaldoubleEfConstructionoptional*float64 #
The size of the dynamic list used during k-NN graph creation.
moptionalnumbermoptionalint | floatmoptionalNumberMoptionaldoubleMoptional*float64 #
Number of neighbors to consider during k-NN search.