Class: AWSCDK::EC2::CfnSpotFleet::NetworkBandwidthGbpsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::NetworkBandwidthGbpsRequestProperty
- 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
-
#max ⇒ Numeric?
readonly
The maximum amount of network bandwidth, in Gbps.
-
#min ⇒ Numeric?
readonly
The minimum amount of network bandwidth, in Gbps.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ NetworkBandwidthGbpsRequestProperty
constructor
A new instance of NetworkBandwidthGbpsRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ NetworkBandwidthGbpsRequestProperty
Returns a new instance of NetworkBandwidthGbpsRequestProperty.
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
#max ⇒ Numeric? (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 |
#min ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |