Class: AWSCDK::EC2::CfnEC2Fleet::NetworkInterfaceCountRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::NetworkInterfaceCountRequestProperty
- Defined in:
- ec2/cfn_ec2_fleet.rb
Overview
The minimum and maximum number of network interfaces.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum number of network interfaces.
-
#min ⇒ Numeric?
readonly
The minimum number of network interfaces.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ NetworkInterfaceCountRequestProperty
constructor
A new instance of NetworkInterfaceCountRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ NetworkInterfaceCountRequestProperty
Returns a new instance of NetworkInterfaceCountRequestProperty.
2276 2277 2278 2279 2280 2281 |
# File 'ec2/cfn_ec2_fleet.rb', line 2276 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 number of network interfaces.
To specify no maximum limit, omit this parameter.
2289 2290 2291 |
# File 'ec2/cfn_ec2_fleet.rb', line 2289 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum number of network interfaces.
To specify no minimum limit, omit this parameter.
2296 2297 2298 |
# File 'ec2/cfn_ec2_fleet.rb', line 2296 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2298 2299 2300 2301 2302 2303 |
# File 'ec2/cfn_ec2_fleet.rb', line 2298 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2305 2306 2307 2308 2309 2310 2311 2312 |
# File 'ec2/cfn_ec2_fleet.rb', line 2305 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |