Class: AWSCDK::EC2::CfnEC2Fleet::VCpuCountRangeRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::VCpuCountRangeRequestProperty
- Defined in:
- ec2/cfn_ec2_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.
3108 3109 3110 3111 3112 3113 |
# File 'ec2/cfn_ec2_fleet.rb', line 3108 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.
3121 3122 3123 |
# File 'ec2/cfn_ec2_fleet.rb', line 3121 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum number of vCPUs.
To specify no minimum limit, specify 0 .
3128 3129 3130 |
# File 'ec2/cfn_ec2_fleet.rb', line 3128 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
3130 3131 3132 3133 3134 3135 |
# File 'ec2/cfn_ec2_fleet.rb', line 3130 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
3137 3138 3139 3140 3141 3142 3143 3144 |
# File 'ec2/cfn_ec2_fleet.rb', line 3137 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |