Class: AWSCDK::Deadline::CfnFleet::MemoryMiBRangeProperty

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

Overview

The range of memory in MiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MemoryMiBRangeProperty.

Parameters:

  • min (Numeric)

    The minimum amount of memory (in MiB).

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

    The maximum amount of memory (in MiB).



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

#maxNumeric? (readonly)

The maximum amount of memory (in MiB).



1416
1417
1418
# File 'deadline/cfn_fleet.rb', line 1416

def max
  @max
end

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



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_jsiiObject



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