Class: AWSCDK::EC2::CfnSpotFleet::VCpuCountRangeRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::VCpuCountRangeRequestProperty
- Defined in:
- ec2/cfn_spot_fleet.rb
Overview
The minimum and maximum number of vCPUs.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum number of vCPUs.
-
#min ⇒ Numeric?
readonly
The minimum number of vCPUs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ VCpuCountRangeRequestProperty
constructor
A new instance of VCpuCountRangeRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ VCpuCountRangeRequestProperty
Returns a new instance of VCpuCountRangeRequestProperty.
3206 3207 3208 3209 3210 3211 |
# File 'ec2/cfn_spot_fleet.rb', line 3206 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 vCPUs.
To specify no maximum limit, omit this parameter.
3219 3220 3221 |
# File 'ec2/cfn_spot_fleet.rb', line 3219 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum number of vCPUs.
To specify no minimum limit, specify 0 .
3226 3227 3228 |
# File 'ec2/cfn_spot_fleet.rb', line 3226 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
3228 3229 3230 3231 3232 3233 |
# File 'ec2/cfn_spot_fleet.rb', line 3228 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
3235 3236 3237 3238 3239 3240 3241 3242 |
# File 'ec2/cfn_spot_fleet.rb', line 3235 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |