# ParametersProperty

Struct · External

Additional parameters for the k-NN algorithm.

- Source: Generated at build time
- Type last changed: v2.183.0 · 12 Mar 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `efConstruction`: number — The size of the dynamic list used during k-NN graph creation.

- `m`: number — Number of neighbors to consider during k-NN search.
