Class: AWSCDK::Elasticsearch::CfnDomain::ZoneAwarenessConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticsearch/cfn_domain.rb

Overview

Specifies zone awareness configuration options. Only use if ZoneAwarenessEnabled is true .

The AWS::Elasticsearch::Domain resource is being replaced by the AWS::OpenSearchService::Domain resource. While the legacy Elasticsearch resource and options are still supported, we recommend modifying your existing Cloudformation templates to use the new OpenSearch Service resource, which supports both OpenSearch and Elasticsearch. For more information about the service rename, see New resource types in the Amazon OpenSearch Service Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(availability_zone_count: nil) ⇒ ZoneAwarenessConfigProperty

Returns a new instance of ZoneAwarenessConfigProperty.

Parameters:

  • availability_zone_count (Numeric, nil) (defaults to: nil)

    If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.



1532
1533
1534
1535
# File 'elasticsearch/cfn_domain.rb', line 1532

def initialize(availability_zone_count: 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?
end

Instance Attribute Details

#availability_zone_countNumeric? (readonly)

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 is 2.



1543
1544
1545
# File 'elasticsearch/cfn_domain.rb', line 1543

def availability_zone_count
  @availability_zone_count
end

Class Method Details

.jsii_propertiesObject



1545
1546
1547
1548
1549
# File 'elasticsearch/cfn_domain.rb', line 1545

def self.jsii_properties
  {
    :availability_zone_count => "availabilityZoneCount",
  }
end

Instance Method Details

#to_jsiiObject



1551
1552
1553
1554
1555
1556
1557
# File 'elasticsearch/cfn_domain.rb', line 1551

def to_jsii
  result = {}
  result.merge!({
    "availabilityZoneCount" => @availability_zone_count,
  })
  result.compact
end