Class: AWSCDK::EC2::CfnSpotFleet::NetworkInterfaceCountRequestProperty

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



2153
2154
2155
2156
2157
2158
# File 'ec2/cfn_spot_fleet.rb', line 2153

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.



2166
2167
2168
# File 'ec2/cfn_spot_fleet.rb', line 2166

def max
  @max
end

#minNumeric? (readonly)

The minimum number of network interfaces.

To specify no minimum limit, omit this parameter.



2173
2174
2175
# File 'ec2/cfn_spot_fleet.rb', line 2173

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2175
2176
2177
2178
2179
2180
# File 'ec2/cfn_spot_fleet.rb', line 2175

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

Instance Method Details

#to_jsiiObject



2182
2183
2184
2185
2186
2187
2188
2189
# File 'ec2/cfn_spot_fleet.rb', line 2182

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