Class: AWSCDK::EC2::CfnSpotFleet::AcceleratorTotalMemoryMiBRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_spot_fleet.rb

Overview

The minimum and maximum amount of total accelerator memory, in MiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AcceleratorTotalMemoryMiBRequestProperty.

Parameters:

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

    The maximum amount of accelerator memory, in MiB.

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

    The minimum amount of accelerator memory, in MiB.



577
578
579
580
581
582
# File 'ec2/cfn_spot_fleet.rb', line 577

def initialize(max: nil, min: nil)
  @max = max
  Jsii::Type.check_type(@max, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "max") unless @max.nil?
  @min = min
  Jsii::Type.check_type(@min, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "min") unless @min.nil?
end

Instance Attribute Details

#maxNumeric? (readonly)

The maximum amount of accelerator memory, in MiB.

To specify no maximum limit, omit this parameter.



590
591
592
# File 'ec2/cfn_spot_fleet.rb', line 590

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of accelerator memory, in MiB.

To specify no minimum limit, omit this parameter.



597
598
599
# File 'ec2/cfn_spot_fleet.rb', line 597

def min
  @min
end

Class Method Details

.jsii_propertiesObject



599
600
601
602
603
604
# File 'ec2/cfn_spot_fleet.rb', line 599

def self.jsii_properties
  {
    :max => "max",
    :min => "min",
  }
end

Instance Method Details

#to_jsiiObject



606
607
608
609
610
611
612
613
# File 'ec2/cfn_spot_fleet.rb', line 606

def to_jsii
  result = {}
  result.merge!({
    "max" => @max,
    "min" => @min,
  })
  result.compact
end