Interface ZoneAwarenessConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ZoneAwarenessConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:31.253Z") @Stability(Deprecated) @Deprecated public interface ZoneAwarenessConfig extends software.amazon.jsii.JsiiSerializable
Deprecated.
use opensearchservice module instead
(deprecated) Specifies zone awareness configuration options.

Example:

 Domain prodDomain = Domain.Builder.create(this, "Domain")
         .version(ElasticsearchVersion.V7_1)
         .capacity(CapacityConfig.builder()
                 .masterNodes(5)
                 .dataNodes(20)
                 .build())
         .ebs(EbsOptions.builder()
                 .volumeSize(20)
                 .build())
         .zoneAwareness(ZoneAwarenessConfig.builder()
                 .availabilityZoneCount(3)
                 .build())
         .logging(LoggingOptions.builder()
                 .slowSearchLogEnabled(true)
                 .appLogEnabled(true)
                 .slowIndexLogEnabled(true)
                 .build())
         .build();
 

  • Method Details

    • getAvailabilityZoneCount

      @Stability(Deprecated) @Deprecated @Nullable default Number getAvailabilityZoneCount()
      Deprecated.
      use opensearchservice module instead
      (deprecated) If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.

      Valid values are 2 and 3.

      Default: - 2 if zone awareness is enabled.

    • getEnabled

      @Stability(Deprecated) @Deprecated @Nullable default Boolean getEnabled()
      Deprecated.
      use opensearchservice module instead
      (deprecated) 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.

      Default: - false

    • builder

      @Stability(Deprecated) @Deprecated static ZoneAwarenessConfig.Builder builder()
      Deprecated.
      Returns:
      a ZoneAwarenessConfig.Builder of ZoneAwarenessConfig