Class ZoneAwarenessConfig.Builder

java.lang.Object
software.amazon.awscdk.services.opensearchservice.ZoneAwarenessConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ZoneAwarenessConfig>
Enclosing interface:
ZoneAwarenessConfig

@Stability(Stable) public static final class ZoneAwarenessConfig.Builder extends Object implements software.amazon.jsii.Builder<ZoneAwarenessConfig>
A builder for ZoneAwarenessConfig
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • availabilityZoneCount

      @Stability(Stable) public ZoneAwarenessConfig.Builder availabilityZoneCount(Number availabilityZoneCount)
      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

      @Stability(Stable) public ZoneAwarenessConfig.Builder enabled(Boolean enabled)
      Parameters:
      enabled - Indicates whether to enable zone awareness for the Amazon OpenSearch Service domain. When you enable zone awareness, Amazon 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 the Amazon OpenSearch Service Developer Guide.
      Returns:
      this
    • build

      @Stability(Stable) public ZoneAwarenessConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ZoneAwarenessConfig>
      Returns:
      a new instance of ZoneAwarenessConfig
      Throws:
      NullPointerException - if any required attribute was not provided