Interface CapacityConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CapacityConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:42.826Z")
@Stability(Stable)
public interface CapacityConfig
extends software.amazon.jsii.JsiiSerializable
Configures the capacity of the cluster such as the instance type and the number of instances.
Example:
import software.amazon.awscdk.services.opensearchservice.*;
Domain domain = Domain.Builder.create(this, "Domain")
.version(EngineVersion.OPENSEARCH_1_3)
.capacity(CapacityConfig.builder()
.nodeOptions(List.of(NodeOptions.builder()
.nodeType(NodeType.COORDINATOR)
.nodeConfig(NodeConfig.builder()
.enabled(true)
.count(2)
.type("m5.large.search")
.build())
.build()))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCapacityConfigstatic final classAn implementation forCapacityConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic CapacityConfig.Builderbuilder()default StringThe instance type for your data nodes, such asm3.medium.search.default NumberThe number of data nodes (instances) to use in the Amazon OpenSearch Service domain.default StringThe hardware configuration of the computer that hosts the dedicated master node, such asm3.medium.search.default NumberThe number of instances to use for the master node.default BooleanIndicates whether Multi-AZ with Standby deployment option is enabled.default List<NodeOptions> Additional node options for the domain.default StringThe instance type for your UltraWarm node, such asultrawarm1.medium.search.default NumberThe number of UltraWarm nodes (instances) to use in the Amazon OpenSearch Service domain.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDataNodeInstanceType
The instance type for your data nodes, such asm3.medium.search. For valid values, see Supported Instance Types in the Amazon OpenSearch Service Developer Guide.Default: - r5.large.search
-
getDataNodes
The number of data nodes (instances) to use in the Amazon OpenSearch Service domain.Default: - 1
-
getMasterNodeInstanceType
The hardware configuration of the computer that hosts the dedicated master node, such asm3.medium.search. For valid values, see Supported Instance Types in the Amazon OpenSearch Service Developer Guide.Default: - r5.large.search
-
getMasterNodes
The number of instances to use for the master node.Default: - no dedicated master nodes
-
getMultiAzWithStandbyEnabled
Indicates whether Multi-AZ with Standby deployment option is enabled.For more information, see Multi-AZ with Standby
Default: - multi-az with standby if the feature flag `ENABLE_OPENSEARCH_MULTIAZ_WITH_STANDBY` is true, no multi-az with standby otherwise
-
getNodeOptions
Additional node options for the domain.Default: - no additional node options
-
getWarmInstanceType
The instance type for your UltraWarm node, such asultrawarm1.medium.search. For valid values, see UltraWarm Storage Limits in the Amazon OpenSearch Service Developer Guide.Default: - ultrawarm1.medium.search
-
getWarmNodes
The number of UltraWarm nodes (instances) to use in the Amazon OpenSearch Service domain.Default: - no UltraWarm nodes
-
builder
- Returns:
- a
CapacityConfig.BuilderofCapacityConfig
-