Class: AWSCDK::OpenSearchService::CfnDomain::NodeOptionProperty

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

Overview

Configuration settings for defining the node type within a cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node_config: nil, node_type: nil) ⇒ NodeOptionProperty

Returns a new instance of NodeOptionProperty.

Parameters:



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_configAWSCDK::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_typeString? (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_propertiesObject



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_jsiiObject



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