Class CfnDomain.ClusterConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CfnDomain.ClusterConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.ClusterConfigProperty>
- Enclosing interface:
- CfnDomain.ClusterConfigProperty
@Stability(Stable)
public static final class CfnDomain.ClusterConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.ClusterConfigProperty>
A builder for
CfnDomain.ClusterConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dedicatedMasterCount
(Number dedicatedMasterCount) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterCount()
dedicatedMasterEnabled
(Boolean dedicatedMasterEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterEnabled()
dedicatedMasterEnabled
(IResolvable dedicatedMasterEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterEnabled()
dedicatedMasterType
(String dedicatedMasterType) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterType()
instanceCount
(Number instanceCount) Sets the value ofCfnDomain.ClusterConfigProperty.getInstanceCount()
instanceType
(String instanceType) Sets the value ofCfnDomain.ClusterConfigProperty.getInstanceType()
multiAzWithStandbyEnabled
(Boolean multiAzWithStandbyEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getMultiAzWithStandbyEnabled()
multiAzWithStandbyEnabled
(IResolvable multiAzWithStandbyEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getMultiAzWithStandbyEnabled()
Sets the value ofCfnDomain.ClusterConfigProperty.getWarmCount()
warmEnabled
(Boolean warmEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getWarmEnabled()
warmEnabled
(IResolvable warmEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getWarmEnabled()
Sets the value ofCfnDomain.ClusterConfigProperty.getWarmType()
zoneAwarenessConfig
(IResolvable zoneAwarenessConfig) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessConfig()
zoneAwarenessConfig
(CfnDomain.ZoneAwarenessConfigProperty zoneAwarenessConfig) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessConfig()
zoneAwarenessEnabled
(Boolean zoneAwarenessEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessEnabled()
zoneAwarenessEnabled
(IResolvable zoneAwarenessEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dedicatedMasterCount
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterCount(Number dedicatedMasterCount) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterCount()
- Parameters:
dedicatedMasterCount
- The number of instances to use for the master node. If you specify this property, you must specifytrue
for theDedicatedMasterEnabled
property.- Returns:
this
-
dedicatedMasterEnabled
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterEnabled()
- Parameters:
dedicatedMasterEnabled
- Indicates whether to use a dedicated master node for the OpenSearch Service domain. A dedicated master node is a cluster node that performs cluster management tasks, but doesn't hold data or respond to data upload requests. Dedicated master nodes offload cluster management tasks to increase the stability of your search clusters. See Dedicated master nodes in Amazon OpenSearch Service .- Returns:
this
-
dedicatedMasterEnabled
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterEnabled(IResolvable dedicatedMasterEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterEnabled()
- Parameters:
dedicatedMasterEnabled
- Indicates whether to use a dedicated master node for the OpenSearch Service domain. A dedicated master node is a cluster node that performs cluster management tasks, but doesn't hold data or respond to data upload requests. Dedicated master nodes offload cluster management tasks to increase the stability of your search clusters. See Dedicated master nodes in Amazon OpenSearch Service .- Returns:
this
-
dedicatedMasterType
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterType(String dedicatedMasterType) Sets the value ofCfnDomain.ClusterConfigProperty.getDedicatedMasterType()
- Parameters:
dedicatedMasterType
- The hardware configuration of the computer that hosts the dedicated master node, such asm3.medium.search
. If you specify this property, you must specifytrue
for theDedicatedMasterEnabled
property. For valid values, see Supported instance types in Amazon OpenSearch Service .- Returns:
this
-
instanceCount
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder instanceCount(Number instanceCount) Sets the value ofCfnDomain.ClusterConfigProperty.getInstanceCount()
- Parameters:
instanceCount
- The number of data nodes (instances) to use in the OpenSearch Service domain.- Returns:
this
-
instanceType
Sets the value ofCfnDomain.ClusterConfigProperty.getInstanceType()
- Parameters:
instanceType
- The instance type for your data nodes, such asm3.medium.search
. For valid values, see Supported instance types in Amazon OpenSearch Service .- Returns:
this
-
multiAzWithStandbyEnabled
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder multiAzWithStandbyEnabled(Boolean multiAzWithStandbyEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getMultiAzWithStandbyEnabled()
- Parameters:
multiAzWithStandbyEnabled
- Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see Multi-AZ with Standby .- Returns:
this
-
multiAzWithStandbyEnabled
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder multiAzWithStandbyEnabled(IResolvable multiAzWithStandbyEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getMultiAzWithStandbyEnabled()
- Parameters:
multiAzWithStandbyEnabled
- Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see Multi-AZ with Standby .- Returns:
this
-
warmCount
Sets the value ofCfnDomain.ClusterConfigProperty.getWarmCount()
- Parameters:
warmCount
- The number of warm nodes in the cluster.- Returns:
this
-
warmEnabled
Sets the value ofCfnDomain.ClusterConfigProperty.getWarmEnabled()
- Parameters:
warmEnabled
- Whether to enable UltraWarm storage for the cluster. See UltraWarm storage for Amazon OpenSearch Service .- Returns:
this
-
warmEnabled
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder warmEnabled(IResolvable warmEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getWarmEnabled()
- Parameters:
warmEnabled
- Whether to enable UltraWarm storage for the cluster. See UltraWarm storage for Amazon OpenSearch Service .- Returns:
this
-
warmType
Sets the value ofCfnDomain.ClusterConfigProperty.getWarmType()
- Parameters:
warmType
- The instance type for the cluster's warm nodes.- Returns:
this
-
zoneAwarenessConfig
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessConfig(IResolvable zoneAwarenessConfig) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessConfig()
- Parameters:
zoneAwarenessConfig
- Specifies zone awareness configuration options. Only use ifZoneAwarenessEnabled
istrue
.- Returns:
this
-
zoneAwarenessConfig
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessConfig(CfnDomain.ZoneAwarenessConfigProperty zoneAwarenessConfig) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessConfig()
- Parameters:
zoneAwarenessConfig
- Specifies zone awareness configuration options. Only use ifZoneAwarenessEnabled
istrue
.- Returns:
this
-
zoneAwarenessEnabled
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessEnabled(Boolean zoneAwarenessEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessEnabled()
- Parameters:
zoneAwarenessEnabled
- Indicates whether to enable zone awareness for the OpenSearch Service domain. When you enable zone awareness, OpenSearch Service allocates the nodes and replica index shards that belong to a cluster across two Availability Zones (AZs) in the same region to prevent data loss and minimize downtime in the event of node or data center failure. Don't enable zone awareness if your cluster has no replica index shards or is a single-node cluster. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service .- Returns:
this
-
zoneAwarenessEnabled
@Stability(Stable) public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessEnabled(IResolvable zoneAwarenessEnabled) Sets the value ofCfnDomain.ClusterConfigProperty.getZoneAwarenessEnabled()
- Parameters:
zoneAwarenessEnabled
- Indicates whether to enable zone awareness for the OpenSearch Service domain. When you enable zone awareness, OpenSearch Service allocates the nodes and replica index shards that belong to a cluster across two Availability Zones (AZs) in the same region to prevent data loss and minimize downtime in the event of node or data center failure. Don't enable zone awareness if your cluster has no replica index shards or is a single-node cluster. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.ClusterConfigProperty>
- Returns:
- a new instance of
CfnDomain.ClusterConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-