Class: AWSCDK::Deadline::CfnFleet::MemoryMiBRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Deadline::CfnFleet::MemoryMiBRangeProperty
- Defined in:
- deadline/cfn_fleet.rb
Overview
The range of memory in MiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of memory (in MiB).
-
#min ⇒ Numeric
readonly
The minimum amount of memory (in MiB).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min:, max: nil) ⇒ MemoryMiBRangeProperty
constructor
A new instance of MemoryMiBRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(min:, max: nil) ⇒ MemoryMiBRangeProperty
Returns a new instance of MemoryMiBRangeProperty.
1400 1401 1402 1403 1404 1405 |
# File 'deadline/cfn_fleet.rb', line 1400 def initialize(min:, max: nil) @min = min Jsii::Type.check_type(@min, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "min") @max = max Jsii::Type.check_type(@max, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "max") unless @max.nil? end |
Instance Attribute Details
#max ⇒ Numeric? (readonly)
The maximum amount of memory (in MiB).
1416 1417 1418 |
# File 'deadline/cfn_fleet.rb', line 1416 def max @max end |
#min ⇒ Numeric (readonly)
The minimum amount of memory (in MiB).
1411 1412 1413 |
# File 'deadline/cfn_fleet.rb', line 1411 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
1418 1419 1420 1421 1422 1423 |
# File 'deadline/cfn_fleet.rb', line 1418 def self.jsii_properties { :min => "min", :max => "max", } end |
Instance Method Details
#to_jsii ⇒ Object
1425 1426 1427 1428 1429 1430 1431 1432 |
# File 'deadline/cfn_fleet.rb', line 1425 def to_jsii result = {} result.merge!({ "min" => @min, "max" => @max, }) result.compact end |