Class: AWSCDK::EC2::CfnSpotFleet::VCpuCountRangeRequestProperty

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

Overview

The minimum and maximum number of vCPUs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of VCpuCountRangeRequestProperty.

Parameters:

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

    The maximum number of vCPUs.

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

    The minimum number of vCPUs.



3206
3207
3208
3209
3210
3211
# File 'ec2/cfn_spot_fleet.rb', line 3206

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 number of vCPUs.

To specify no maximum limit, omit this parameter.



3219
3220
3221
# File 'ec2/cfn_spot_fleet.rb', line 3219

def max
  @max
end

#minNumeric? (readonly)

The minimum number of vCPUs.

To specify no minimum limit, specify 0 .



3226
3227
3228
# File 'ec2/cfn_spot_fleet.rb', line 3226

def min
  @min
end

Class Method Details

.jsii_propertiesObject



3228
3229
3230
3231
3232
3233
# File 'ec2/cfn_spot_fleet.rb', line 3228

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

Instance Method Details

#to_jsiiObject



3235
3236
3237
3238
3239
3240
3241
3242
# File 'ec2/cfn_spot_fleet.rb', line 3235

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