Class: AWSCDK::OpenSearchService::NodeConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchService::NodeConfig
- Defined in:
- open_search_service/node_config.rb
Overview
Configuration for a specific node type in OpenSearch domain.
Instance Attribute Summary collapse
-
#count ⇒ Numeric?
readonly
The number of nodes of this type.
-
#enabled ⇒ Boolean?
readonly
Whether this node type is enabled.
-
#type ⇒ String?
readonly
The instance type for the nodes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(count: nil, enabled: nil, type: nil) ⇒ NodeConfig
constructor
A new instance of NodeConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(count: nil, enabled: nil, type: nil) ⇒ NodeConfig
Returns a new instance of NodeConfig.
10 11 12 13 14 15 16 17 |
# File 'open_search_service/node_config.rb', line 10 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("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "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
#count ⇒ Numeric? (readonly)
Note:
Default: - 1
The number of nodes of this type.
23 24 25 |
# File 'open_search_service/node_config.rb', line 23 def count @count end |
#enabled ⇒ Boolean? (readonly)
Note:
Default: - false
Whether this node type is enabled.
28 29 30 |
# File 'open_search_service/node_config.rb', line 28 def enabled @enabled end |
#type ⇒ String? (readonly)
Note:
Default: - m5.large.search
The instance type for the nodes.
33 34 35 |
# File 'open_search_service/node_config.rb', line 33 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'open_search_service/node_config.rb', line 35 def self.jsii_properties { :count => "count", :enabled => "enabled", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'open_search_service/node_config.rb', line 43 def to_jsii result = {} result.merge!({ "count" => @count, "enabled" => @enabled, "type" => @type, }) result.compact end |