Class: AWSCDK::EC2::CfnEC2Fleet::NetworkBandwidthGbpsRequestProperty

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

Overview

The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).

Setting the minimum bandwidth does not guarantee that your instance will achieve the minimum bandwidth. Amazon EC2 will identify instance types that support the specified minimum bandwidth, but the actual bandwidth of your instance might go below the specified minimum at times. For more information, see Available instance bandwidth in the Amazon EC2 User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NetworkBandwidthGbpsRequestProperty.

Parameters:

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

    The maximum amount of network bandwidth, in Gbps.

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

    The minimum amount of network bandwidth, in Gbps.



2229
2230
2231
2232
2233
2234
# File 'ec2/cfn_ec2_fleet.rb', line 2229

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 network bandwidth, in Gbps.

To specify no maximum limit, omit this parameter.



2242
2243
2244
# File 'ec2/cfn_ec2_fleet.rb', line 2242

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of network bandwidth, in Gbps.

To specify no minimum limit, omit this parameter.



2249
2250
2251
# File 'ec2/cfn_ec2_fleet.rb', line 2249

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2251
2252
2253
2254
2255
2256
# File 'ec2/cfn_ec2_fleet.rb', line 2251

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

Instance Method Details

#to_jsiiObject



2258
2259
2260
2261
2262
2263
2264
2265
# File 'ec2/cfn_ec2_fleet.rb', line 2258

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