Class: AWSCDK::EC2::CfnEC2Fleet::MemoryMiBRequestProperty

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

Overview

The minimum and maximum amount of memory, in MiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MemoryMiBRequestProperty.

Parameters:

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

    The maximum amount of memory, in MiB.

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

    The minimum amount of memory, in MiB.



2180
2181
2182
2183
2184
2185
# File 'ec2/cfn_ec2_fleet.rb', line 2180

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, in MiB.

To specify no maximum limit, omit this parameter.



2193
2194
2195
# File 'ec2/cfn_ec2_fleet.rb', line 2193

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of memory, in MiB.

To specify no minimum limit, specify 0 .



2200
2201
2202
# File 'ec2/cfn_ec2_fleet.rb', line 2200

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2202
2203
2204
2205
2206
2207
# File 'ec2/cfn_ec2_fleet.rb', line 2202

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

Instance Method Details

#to_jsiiObject



2209
2210
2211
2212
2213
2214
2215
2216
# File 'ec2/cfn_ec2_fleet.rb', line 2209

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