Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::MemoryGiBPerVCpuRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Autoscaling::CfnAutoScalingGroup::MemoryGiBPerVCpuRequestProperty
- Defined in:
- autoscaling/cfn_auto_scaling_group.rb
Overview
MemoryGiBPerVCpuRequest is a property of the InstanceRequirements property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property type that describes the minimum and maximum amount of memory per vCPU for an instance type, in GiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The memory maximum in GiB.
-
#min ⇒ Numeric?
readonly
The memory minimum 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.
2350 2351 2352 2353 2354 2355 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2350 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 memory maximum in GiB.
2361 2362 2363 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2361 def max @max end |
#min ⇒ Numeric? (readonly)
The memory minimum in GiB.
2366 2367 2368 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2366 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2368 2369 2370 2371 2372 2373 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2368 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2375 2376 2377 2378 2379 2380 2381 2382 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2375 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |