Class: AWSCDK::Deadline::CfnFleet::VCpuCountRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Deadline::CfnFleet::VCpuCountRangeProperty
- Defined in:
- deadline/cfn_fleet.rb
Overview
The allowable range of vCPU processing power for the fleet.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of vCPU.
-
#min ⇒ Numeric
readonly
The minimum amount of vCPU.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min:, max: nil) ⇒ VCpuCountRangeProperty
constructor
A new instance of VCpuCountRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(min:, max: nil) ⇒ VCpuCountRangeProperty
Returns a new instance of VCpuCountRangeProperty.
1788 1789 1790 1791 1792 1793 |
# File 'deadline/cfn_fleet.rb', line 1788 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 vCPU.
1804 1805 1806 |
# File 'deadline/cfn_fleet.rb', line 1804 def max @max end |
#min ⇒ Numeric (readonly)
The minimum amount of vCPU.
1799 1800 1801 |
# File 'deadline/cfn_fleet.rb', line 1799 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
1806 1807 1808 1809 1810 1811 |
# File 'deadline/cfn_fleet.rb', line 1806 def self.jsii_properties { :min => "min", :max => "max", } end |
Instance Method Details
#to_jsii ⇒ Object
1813 1814 1815 1816 1817 1818 1819 1820 |
# File 'deadline/cfn_fleet.rb', line 1813 def to_jsii result = {} result.merge!({ "min" => @min, "max" => @max, }) result.compact end |