Class: AWSCDK::Deadline::CfnFleet::AcceleratorTotalMemoryMiBRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Deadline::CfnFleet::AcceleratorTotalMemoryMiBRangeProperty
- Defined in:
- deadline/cfn_fleet.rb
Overview
Defines the maximum and minimum amount of memory, in MiB, to use for the accelerator.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of memory to use for the accelerator, measured in MiB.
-
#min ⇒ Numeric
readonly
The minimum amount of memory to use for the accelerator, measured in MiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min:, max: nil) ⇒ AcceleratorTotalMemoryMiBRangeProperty
constructor
A new instance of AcceleratorTotalMemoryMiBRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(min:, max: nil) ⇒ AcceleratorTotalMemoryMiBRangeProperty
Returns a new instance of AcceleratorTotalMemoryMiBRangeProperty.
832 833 834 835 836 837 |
# File 'deadline/cfn_fleet.rb', line 832 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 to use for the accelerator, measured in MiB.
848 849 850 |
# File 'deadline/cfn_fleet.rb', line 848 def max @max end |
#min ⇒ Numeric (readonly)
The minimum amount of memory to use for the accelerator, measured in MiB.
843 844 845 |
# File 'deadline/cfn_fleet.rb', line 843 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
850 851 852 853 854 855 |
# File 'deadline/cfn_fleet.rb', line 850 def self.jsii_properties { :min => "min", :max => "max", } end |
Instance Method Details
#to_jsii ⇒ Object
857 858 859 860 861 862 863 864 |
# File 'deadline/cfn_fleet.rb', line 857 def to_jsii result = {} result.merge!({ "min" => @min, "max" => @max, }) result.compact end |