Class ZoneAwarenessConfig.Builder
java.lang.Object
software.amazon.awscdk.services.elasticsearch.ZoneAwarenessConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ZoneAwarenessConfig>
- Enclosing interface:
- ZoneAwarenessConfig
@Stability(Deprecated)
@Deprecated
public static final class ZoneAwarenessConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ZoneAwarenessConfig>
Deprecated.
A builder for
ZoneAwarenessConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZoneCount
(Number availabilityZoneCount) Deprecated.use opensearchservice module insteadbuild()
Deprecated.Deprecated.use opensearchservice module instead
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
availabilityZoneCount
@Stability(Deprecated) @Deprecated public ZoneAwarenessConfig.Builder availabilityZoneCount(Number availabilityZoneCount) Deprecated.use opensearchservice module insteadSets the value ofZoneAwarenessConfig.getAvailabilityZoneCount()
- Parameters:
availabilityZoneCount
- If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use. Valid values are 2 and 3.- Returns:
this
-
enabled
Deprecated.use opensearchservice module insteadSets the value ofZoneAwarenessConfig.getEnabled()
- Parameters:
enabled
- Indicates whether to enable zone awareness for the Amazon ES domain. When you enable zone awareness, Amazon ES 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] (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-managedomains-multiaz) in the Amazon Elasticsearch Service Developer Guide.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ZoneAwarenessConfig>
- Returns:
- a new instance of
ZoneAwarenessConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-