Class: AWSCDK::OpenSearchService::CfnDomain::NodeConfigProperty

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

Overview

Configuration options for defining the setup of any node type within the cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count: nil, enabled: nil, type: nil) ⇒ NodeConfigProperty

Returns a new instance of NodeConfigProperty.

Parameters:

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

    The number of nodes of a specific type within the cluster.

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    A boolean value indicating whether a specific node type is active or inactive.

  • type (String, nil) (defaults to: nil)

    The instance type of a particular node within the cluster.



2017
2018
2019
2020
2021
2022
2023
2024
# File 'open_search_service/cfn_domain.rb', line 2017

def initialize(count: nil, enabled: nil, type: nil)
  @count = count
  Jsii::Type.check_type(@count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "count") unless @count.nil?
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#countNumeric? (readonly)

The number of nodes of a specific type within the cluster.



2030
2031
2032
# File 'open_search_service/cfn_domain.rb', line 2030

def count
  @count
end

#enabledBoolean, ... (readonly)

A boolean value indicating whether a specific node type is active or inactive.



2035
2036
2037
# File 'open_search_service/cfn_domain.rb', line 2035

def enabled
  @enabled
end

#typeString? (readonly)

The instance type of a particular node within the cluster.



2040
2041
2042
# File 'open_search_service/cfn_domain.rb', line 2040

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2042
2043
2044
2045
2046
2047
2048
# File 'open_search_service/cfn_domain.rb', line 2042

def self.jsii_properties
  {
    :count => "count",
    :enabled => "enabled",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



2050
2051
2052
2053
2054
2055
2056
2057
2058
# File 'open_search_service/cfn_domain.rb', line 2050

def to_jsii
  result = {}
  result.merge!({
    "count" => @count,
    "enabled" => @enabled,
    "type" => @type,
  })
  result.compact
end