Class: AWSCDK::EC2::CfnSpotFleet::MemoryGiBPerVCpuRequestProperty

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

Overview

The minimum and maximum amount of memory per vCPU, in GiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MemoryGiBPerVCpuRequestProperty.

Parameters:

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

    The maximum amount of memory per vCPU, in GiB.

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

    The minimum amount of memory per vCPU, in GiB.



2008
2009
2010
2011
2012
2013
# File 'ec2/cfn_spot_fleet.rb', line 2008

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 memory per vCPU, in GiB.

To specify no maximum limit, omit this parameter.



2021
2022
2023
# File 'ec2/cfn_spot_fleet.rb', line 2021

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of memory per vCPU, in GiB.

To specify no minimum limit, omit this parameter.



2028
2029
2030
# File 'ec2/cfn_spot_fleet.rb', line 2028

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2030
2031
2032
2033
2034
2035
# File 'ec2/cfn_spot_fleet.rb', line 2030

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

Instance Method Details

#to_jsiiObject



2037
2038
2039
2040
2041
2042
2043
2044
# File 'ec2/cfn_spot_fleet.rb', line 2037

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