Class: AWSCDK::RDS::ProcessorFeatures

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rds/processor_features.rb

Overview

The processor features.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(core_count: nil, threads_per_core: nil) ⇒ ProcessorFeatures

Returns a new instance of ProcessorFeatures.

Parameters:

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

    The number of CPU core.

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

    The number of threads per core.



9
10
11
12
13
14
# File 'rds/processor_features.rb', line 9

def initialize(core_count: nil, threads_per_core: nil)
  @core_count = core_count
  Jsii::Type.check_type(@core_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "coreCount") unless @core_count.nil?
  @threads_per_core = threads_per_core
  Jsii::Type.check_type(@threads_per_core, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "threadsPerCore") unless @threads_per_core.nil?
end

Instance Attribute Details

#core_countNumeric? (readonly)

Note:

Default: - the default number of CPU cores for the chosen instance class.

The number of CPU core.

Returns:

  • (Numeric, nil)


20
21
22
# File 'rds/processor_features.rb', line 20

def core_count
  @core_count
end

#threads_per_coreNumeric? (readonly)

Note:

Default: - the default number of threads per core for the chosen instance class.

The number of threads per core.

Returns:

  • (Numeric, nil)


25
26
27
# File 'rds/processor_features.rb', line 25

def threads_per_core
  @threads_per_core
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'rds/processor_features.rb', line 27

def self.jsii_properties
  {
    :core_count => "coreCount",
    :threads_per_core => "threadsPerCore",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'rds/processor_features.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "coreCount" => @core_count,
    "threadsPerCore" => @threads_per_core,
  })
  result.compact
end