Class: AWSCDK::EC2::CfnSpotFleet::NetworkInterfaceCountRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::NetworkInterfaceCountRequestProperty
- Defined in:
- ec2/cfn_spot_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.
2153 2154 2155 2156 2157 2158 |
# File 'ec2/cfn_spot_fleet.rb', line 2153 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.
2166 2167 2168 |
# File 'ec2/cfn_spot_fleet.rb', line 2166 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum number of network interfaces.
To specify no minimum limit, omit this parameter.
2173 2174 2175 |
# File 'ec2/cfn_spot_fleet.rb', line 2173 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2175 2176 2177 2178 2179 2180 |
# File 'ec2/cfn_spot_fleet.rb', line 2175 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2182 2183 2184 2185 2186 2187 2188 2189 |
# File 'ec2/cfn_spot_fleet.rb', line 2182 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |