Class: AWSCDK::EC2::CfnEC2Fleet::MemoryGiBPerVCpuRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_ec2_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.



2133
2134
2135
2136
2137
2138
# File 'ec2/cfn_ec2_fleet.rb', line 2133

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.



2146
2147
2148
# File 'ec2/cfn_ec2_fleet.rb', line 2146

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of memory per vCPU, in GiB.

To specify no minimum limit, omit this parameter.



2153
2154
2155
# File 'ec2/cfn_ec2_fleet.rb', line 2153

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2155
2156
2157
2158
2159
2160
# File 'ec2/cfn_ec2_fleet.rb', line 2155

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

Instance Method Details

#to_jsiiObject



2162
2163
2164
2165
2166
2167
2168
2169
# File 'ec2/cfn_ec2_fleet.rb', line 2162

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