public static final class CfnDomain.ClusterConfigProperty.Builder
extends java.lang.Object
CfnDomain.ClusterConfigProperty
Constructor and Description |
---|
Builder() |
public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterCount(java.lang.Number dedicatedMasterCount)
CfnDomain.ClusterConfigProperty.getDedicatedMasterCount()
dedicatedMasterCount
- The number of instances to use for the master node.
If you specify this property, you must specify true
for the DedicatedMasterEnabled
property.this
public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterEnabled(java.lang.Boolean dedicatedMasterEnabled)
CfnDomain.ClusterConfigProperty.getDedicatedMasterEnabled()
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 .this
public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterEnabled(IResolvable dedicatedMasterEnabled)
CfnDomain.ClusterConfigProperty.getDedicatedMasterEnabled()
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 .this
public CfnDomain.ClusterConfigProperty.Builder dedicatedMasterType(java.lang.String dedicatedMasterType)
CfnDomain.ClusterConfigProperty.getDedicatedMasterType()
dedicatedMasterType
- The hardware configuration of the computer that hosts the dedicated master node, such as `m3.medium.search` . If you specify this property, you must specify `true` for the `DedicatedMasterEnabled` property. For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) .this
public CfnDomain.ClusterConfigProperty.Builder instanceCount(java.lang.Number instanceCount)
CfnDomain.ClusterConfigProperty.getInstanceCount()
instanceCount
- The number of data nodes (instances) to use in the OpenSearch Service domain.this
public CfnDomain.ClusterConfigProperty.Builder instanceType(java.lang.String instanceType)
CfnDomain.ClusterConfigProperty.getInstanceType()
instanceType
- The instance type for your data nodes, such as `m3.medium.search` . For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) .this
public CfnDomain.ClusterConfigProperty.Builder warmCount(java.lang.Number warmCount)
CfnDomain.ClusterConfigProperty.getWarmCount()
warmCount
- The number of warm nodes in the cluster.this
public CfnDomain.ClusterConfigProperty.Builder warmEnabled(java.lang.Boolean warmEnabled)
CfnDomain.ClusterConfigProperty.getWarmEnabled()
warmEnabled
- Whether to enable UltraWarm storage for the cluster.
See UltraWarm storage for Amazon OpenSearch Service .this
public CfnDomain.ClusterConfigProperty.Builder warmEnabled(IResolvable warmEnabled)
CfnDomain.ClusterConfigProperty.getWarmEnabled()
warmEnabled
- Whether to enable UltraWarm storage for the cluster.
See UltraWarm storage for Amazon OpenSearch Service .this
public CfnDomain.ClusterConfigProperty.Builder warmType(java.lang.String warmType)
CfnDomain.ClusterConfigProperty.getWarmType()
warmType
- The instance type for the cluster's warm nodes.this
public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessConfig(IResolvable zoneAwarenessConfig)
CfnDomain.ClusterConfigProperty.getZoneAwarenessConfig()
zoneAwarenessConfig
- Specifies zone awareness configuration options.
Only use if ZoneAwarenessEnabled
is true
.this
public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessConfig(CfnDomain.ZoneAwarenessConfigProperty zoneAwarenessConfig)
CfnDomain.ClusterConfigProperty.getZoneAwarenessConfig()
zoneAwarenessConfig
- Specifies zone awareness configuration options.
Only use if ZoneAwarenessEnabled
is true
.this
public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessEnabled(java.lang.Boolean zoneAwarenessEnabled)
CfnDomain.ClusterConfigProperty.getZoneAwarenessEnabled()
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 .this
public CfnDomain.ClusterConfigProperty.Builder zoneAwarenessEnabled(IResolvable zoneAwarenessEnabled)
CfnDomain.ClusterConfigProperty.getZoneAwarenessEnabled()
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 .this
public CfnDomain.ClusterConfigProperty build()
CfnDomain.ClusterConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided