Class: AWSCDK::EC2::CfnEC2Fleet::NetworkBandwidthGbpsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::NetworkBandwidthGbpsRequestProperty
- 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
-
#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.
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
#max ⇒ Numeric? (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 |
#min ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |