Class: AWSCDK::Elasticsearch::ZoneAwarenessConfig Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticsearch::ZoneAwarenessConfig
- Defined in:
- elasticsearch/zone_awareness_config.rb
Overview
use opensearchservice module instead
Specifies zone awareness configuration options.
Instance Attribute Summary collapse
-
#availability_zone_count ⇒ Numeric?
readonly
deprecated
Deprecated.
use opensearchservice module instead
-
#enabled ⇒ Boolean?
readonly
deprecated
Deprecated.
use opensearchservice module instead
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(availability_zone_count: nil, enabled: nil) ⇒ ZoneAwarenessConfig
constructor
A new instance of ZoneAwarenessConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(availability_zone_count: nil, enabled: nil) ⇒ ZoneAwarenessConfig
Returns a new instance of ZoneAwarenessConfig.
11 12 13 14 15 16 |
# File 'elasticsearch/zone_awareness_config.rb', line 11 def initialize(availability_zone_count: nil, enabled: nil) @availability_zone_count = availability_zone_count Jsii::Type.check_type(@availability_zone_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "availabilityZoneCount") unless @availability_zone_count.nil? @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enabled") unless @enabled.nil? end |
Instance Attribute Details
#availability_zone_count ⇒ Numeric? (readonly)
use opensearchservice module instead
Default: - 2 if zone awareness is enabled.
If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.
Valid values are 2 and 3.
25 26 27 |
# File 'elasticsearch/zone_awareness_config.rb', line 25 def availability_zone_count @availability_zone_count end |
#enabled ⇒ Boolean? (readonly)
use opensearchservice module instead
Default: - false
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 in the Amazon Elasticsearch Service Developer Guide.
40 41 42 |
# File 'elasticsearch/zone_awareness_config.rb', line 40 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
42 43 44 45 46 47 |
# File 'elasticsearch/zone_awareness_config.rb', line 42 def self.jsii_properties { :availability_zone_count => "availabilityZoneCount", :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'elasticsearch/zone_awareness_config.rb', line 49 def to_jsii result = {} result.merge!({ "availabilityZoneCount" => @availability_zone_count, "enabled" => @enabled, }) result.compact end |