Class: AWSCDK::OpenSearchService::CfnDomain::NodeOptionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchService::CfnDomain::NodeOptionProperty
- Defined in:
- open_search_service/cfn_domain.rb
Overview
Configuration settings for defining the node type within a cluster.
Instance Attribute Summary collapse
-
#node_config ⇒ AWSCDK::IResolvable, ...
readonly
Configuration options for defining the setup of any node type.
-
#node_type ⇒ String?
readonly
Defines the type of node, such as coordinating nodes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(node_config: nil, node_type: nil) ⇒ NodeOptionProperty
constructor
A new instance of NodeOptionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(node_config: nil, node_type: nil) ⇒ NodeOptionProperty
Returns a new instance of NodeOptionProperty.
2069 2070 2071 2072 2073 2074 |
# File 'open_search_service/cfn_domain.rb', line 2069 def initialize(node_config: nil, node_type: nil) @node_config = node_config.is_a?(Hash) ? ::AWSCDK::OpenSearchService::CfnDomain::NodeConfigProperty.new(**node_config.transform_keys(&:to_sym)) : node_config Jsii::Type.check_type(@node_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vcGVuc2VhcmNoc2VydmljZS5DZm5Eb21haW4uTm9kZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "nodeConfig") unless @node_config.nil? @node_type = node_type Jsii::Type.check_type(@node_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nodeType") unless @node_type.nil? end |
Instance Attribute Details
#node_config ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration options for defining the setup of any node type.
2080 2081 2082 |
# File 'open_search_service/cfn_domain.rb', line 2080 def node_config @node_config end |
#node_type ⇒ String? (readonly)
Defines the type of node, such as coordinating nodes.
2085 2086 2087 |
# File 'open_search_service/cfn_domain.rb', line 2085 def node_type @node_type end |
Class Method Details
.jsii_properties ⇒ Object
2087 2088 2089 2090 2091 2092 |
# File 'open_search_service/cfn_domain.rb', line 2087 def self.jsii_properties { :node_config => "nodeConfig", :node_type => "nodeType", } end |
Instance Method Details
#to_jsii ⇒ Object
2094 2095 2096 2097 2098 2099 2100 2101 |
# File 'open_search_service/cfn_domain.rb', line 2094 def to_jsii result = {} result.merge!({ "nodeConfig" => @node_config, "nodeType" => @node_type, }) result.compact end |