Class: AWSCDK::RDS::ProcessorFeatures
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::ProcessorFeatures
- Defined in:
- rds/processor_features.rb
Overview
The processor features.
Instance Attribute Summary collapse
-
#core_count ⇒ Numeric?
readonly
The number of CPU core.
-
#threads_per_core ⇒ Numeric?
readonly
The number of threads per core.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(core_count: nil, threads_per_core: nil) ⇒ ProcessorFeatures
constructor
A new instance of ProcessorFeatures.
- #to_jsii ⇒ Object
Constructor Details
#initialize(core_count: nil, threads_per_core: nil) ⇒ ProcessorFeatures
Returns a new instance of ProcessorFeatures.
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_count ⇒ Numeric? (readonly)
Note:
Default: - the default number of CPU cores for the chosen instance class.
The number of CPU core.
20 21 22 |
# File 'rds/processor_features.rb', line 20 def core_count @core_count end |
#threads_per_core ⇒ Numeric? (readonly)
Note:
Default: - the default number of threads per core for the chosen instance class.
The number of threads per core.
25 26 27 |
# File 'rds/processor_features.rb', line 25 def threads_per_core @threads_per_core end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |