# NodeOptions

Configuration for node options in OpenSearch domain.

- Source: [`aws-opensearchservice/lib/domain.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts#L499)
- Type last changed: v2.182.0 · 5 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_opensearchservice as opensearchservice } from 'aws-cdk-lib';
const nodeOptions: opensearchservice.NodeOptions = {
  nodeConfig: {
    count: 123,
    enabled: false,
    type: 'type',
  },
  nodeType: opensearchservice.NodeType.COORDINATOR,
};
```

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_opensearchservice as opensearchservice

node_options = opensearchservice.NodeOptions(
    node_config=opensearchservice.NodeConfig(
        count=123,
        enabled=False,
        type="type"
    ),
    node_type=opensearchservice.NodeType.COORDINATOR
)
```

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.opensearchservice.*;

NodeOptions nodeOptions = NodeOptions.builder()
        .nodeConfig(NodeConfig.builder()
                .count(123)
                .enabled(false)
                .type("type")
                .build())
        .nodeType(NodeType.COORDINATOR)
        .build();
```

C# / .NET:

```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.OpenSearchService;

var nodeOptions = new NodeOptions {
    NodeConfig = new NodeConfig {
        Count = 123,
        Enabled = false,
        Type = "type"
    },
    NodeType = NodeType.COORDINATOR
};
```

Golang:

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

nodeOptions := &NodeOptions{
	NodeConfig: &NodeConfig{
		Count: jsii.Number(123),
		Enabled: jsii.Boolean(false),
		Type: jsii.String("type"),
	},
	NodeType: awscdk.Aws_opensearchservice.NodeType_COORDINATOR,
}
```

## Properties

- `nodeConfig`: [NodeConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchservice.NodeConfig.html) (required) — Configuration for the node type.

- `nodeType`: [NodeType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchservice.NodeType.html) (required) — The type of node.

  Currently only 'coordinator' is supported.
