Class: AWSCDK::OpenSearchService::NodeConfig

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

Overview

Configuration for a specific node type in OpenSearch domain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NodeConfig.

Parameters:

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

    The number of nodes of this type.

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

    Whether this node type is enabled.

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

    The instance type for the nodes.



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

#countNumeric? (readonly)

Note:

Default: - 1

The number of nodes of this type.

Returns:

  • (Numeric, nil)


23
24
25
# File 'open_search_service/node_config.rb', line 23

def count
  @count
end

#enabledBoolean? (readonly)

Note:

Default: - false

Whether this node type is enabled.

Returns:

  • (Boolean, nil)


28
29
30
# File 'open_search_service/node_config.rb', line 28

def enabled
  @enabled
end

#typeString? (readonly)

Note:

Default: - m5.large.search

The instance type for the nodes.

Returns:

  • (String, nil)


33
34
35
# File 'open_search_service/node_config.rb', line 33

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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