Class: AWSCDK::EC2::CfnEC2Fleet::NetworkInterfaceCountRequestProperty

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

Overview

The minimum and maximum number of network interfaces.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NetworkInterfaceCountRequestProperty.

Parameters:

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

    The maximum number of network interfaces.

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

    The minimum number of network interfaces.



2276
2277
2278
2279
2280
2281
# File 'ec2/cfn_ec2_fleet.rb', line 2276

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 network interfaces.

To specify no maximum limit, omit this parameter.



2289
2290
2291
# File 'ec2/cfn_ec2_fleet.rb', line 2289

def max
  @max
end

#minNumeric? (readonly)

The minimum number of network interfaces.

To specify no minimum limit, omit this parameter.



2296
2297
2298
# File 'ec2/cfn_ec2_fleet.rb', line 2296

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2298
2299
2300
2301
2302
2303
# File 'ec2/cfn_ec2_fleet.rb', line 2298

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

Instance Method Details

#to_jsiiObject



2305
2306
2307
2308
2309
2310
2311
2312
# File 'ec2/cfn_ec2_fleet.rb', line 2305

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