Class: AWSCDK::Deadline::CfnFleet::AcceleratorTotalMemoryMiBRangeProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AcceleratorTotalMemoryMiBRangeProperty.

Parameters:

  • min (Numeric)

    The minimum amount of memory to use for the accelerator, measured in MiB.

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

    The maximum amount of memory to use for the accelerator, measured in MiB.



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

#maxNumeric? (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

#minNumeric (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_propertiesObject



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_jsiiObject



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