NodeOptions Struct
Configuration for node options in OpenSearch domain.
| Source | aws-opensearchservice/lib/domain.ts |
|---|---|
| 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_opensearchservice as opensearchservice } from 'aws-cdk-lib';
const nodeOptions: opensearchservice.NodeOptions = {
nodeConfig: {
count: 123,
enabled: false,
type: 'type',
},
nodeType: opensearchservice.NodeType.COORDINATOR,
};
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
// 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();
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
};
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
nodeConfigNodeConfignode_configNodeConfignodeConfigNodeConfigNodeConfigNodeConfigNodeConfigNodeConfig required #Configuration for the node type.