Class: AWSCDK::Elasticsearch::CfnDomain::ZoneAwarenessConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticsearch::CfnDomain::ZoneAwarenessConfigProperty
- Defined in:
- elasticsearch/cfn_domain.rb
Overview
Specifies zone awareness configuration options. Only use if ZoneAwarenessEnabled is true .
The
AWS::Elasticsearch::Domainresource 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
-
#availability_zone_count ⇒ Numeric?
readonly
If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(availability_zone_count: nil) ⇒ ZoneAwarenessConfigProperty
constructor
A new instance of ZoneAwarenessConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(availability_zone_count: nil) ⇒ ZoneAwarenessConfigProperty
Returns a new instance of ZoneAwarenessConfigProperty.
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_count ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |