Class: AWSCDK::EC2::CfnEC2Fleet::MemoryGiBPerVCpuRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::MemoryGiBPerVCpuRequestProperty
- Defined in:
- ec2/cfn_ec2_fleet.rb
Overview
The minimum and maximum amount of memory per vCPU, in GiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of memory per vCPU, in GiB.
-
#min ⇒ Numeric?
readonly
The minimum amount of memory per vCPU, in GiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ MemoryGiBPerVCpuRequestProperty
constructor
A new instance of MemoryGiBPerVCpuRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ MemoryGiBPerVCpuRequestProperty
Returns a new instance of MemoryGiBPerVCpuRequestProperty.
2133 2134 2135 2136 2137 2138 |
# File 'ec2/cfn_ec2_fleet.rb', line 2133 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 memory per vCPU, in GiB.
To specify no maximum limit, omit this parameter.
2146 2147 2148 |
# File 'ec2/cfn_ec2_fleet.rb', line 2146 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum amount of memory per vCPU, in GiB.
To specify no minimum limit, omit this parameter.
2153 2154 2155 |
# File 'ec2/cfn_ec2_fleet.rb', line 2153 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2155 2156 2157 2158 2159 2160 |
# File 'ec2/cfn_ec2_fleet.rb', line 2155 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2162 2163 2164 2165 2166 2167 2168 2169 |
# File 'ec2/cfn_ec2_fleet.rb', line 2162 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |