# NodeConfig

Configuration for a specific node type in OpenSearch domain.

- Source: [`aws-opensearchservice/lib/domain.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts#L462)
- Type last changed: v2.182.0 · 5 Mar 2025

## Example

```ts
import * as opensearch from 'aws-cdk-lib/aws-opensearchservice';

const domain = new Domain(this, 'Domain', {
  version: EngineVersion.OPENSEARCH_1_3,
  capacity: {
    nodeOptions: [
      {
        nodeType: opensearch.NodeType.COORDINATOR,
        nodeConfig: {
          enabled: true,
          count: 2,
          type: 'm5.large.search',
        },
      },
    ],
  },
})
```

## Properties

- `count`: number = 1 — The number of nodes of this type.

- `enabled`: boolean = false — Whether this node type is enabled.

- `type`: string = m5.large.search — The instance type for the nodes.
