Class: AWSCDK::Deadline::CfnFleet::VCpuCountRangeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
deadline/cfn_fleet.rb

Overview

The allowable range of vCPU processing power for the fleet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min:, max: nil) ⇒ VCpuCountRangeProperty

Returns a new instance of VCpuCountRangeProperty.

Parameters:

  • min (Numeric)

    The minimum amount of vCPU.

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

    The maximum amount of vCPU.



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

#maxNumeric? (readonly)

The maximum amount of vCPU.



1804
1805
1806
# File 'deadline/cfn_fleet.rb', line 1804

def max
  @max
end

#minNumeric (readonly)

The minimum amount of vCPU.



1799
1800
1801
# File 'deadline/cfn_fleet.rb', line 1799

def min
  @min
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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