Class: AWSCDK::EC2::CfnSpotFleet::NetworkBandwidthGbpsRequestProperty

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

Overview

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

For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide .

Default: No minimum or maximum limits

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.



2106
2107
2108
2109
2110
2111
# File 'ec2/cfn_spot_fleet.rb', line 2106

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.



2119
2120
2121
# File 'ec2/cfn_spot_fleet.rb', line 2119

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of network bandwidth, in Gbps.

To specify no minimum limit, omit this parameter.



2126
2127
2128
# File 'ec2/cfn_spot_fleet.rb', line 2126

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2128
2129
2130
2131
2132
2133
# File 'ec2/cfn_spot_fleet.rb', line 2128

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

Instance Method Details

#to_jsiiObject



2135
2136
2137
2138
2139
2140
2141
2142
# File 'ec2/cfn_spot_fleet.rb', line 2135

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