Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::AcceleratorTotalMemoryMiBRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Autoscaling::CfnAutoScalingGroup::AcceleratorTotalMemoryMiBRequestProperty
- Defined in:
- autoscaling/cfn_auto_scaling_group.rb
Overview
AcceleratorTotalMemoryMiBRequest is a property of the InstanceRequirements property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property type that describes the minimum and maximum total memory size for the accelerators for an instance type, in MiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The memory maximum in MiB.
-
#min ⇒ Numeric?
readonly
The memory minimum in MiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ AcceleratorTotalMemoryMiBRequestProperty
constructor
A new instance of AcceleratorTotalMemoryMiBRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ AcceleratorTotalMemoryMiBRequestProperty
Returns a new instance of AcceleratorTotalMemoryMiBRequestProperty.
1057 1058 1059 1060 1061 1062 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1057 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 MiB.
1068 1069 1070 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1068 def max @max end |
#min ⇒ Numeric? (readonly)
The memory minimum in MiB.
1073 1074 1075 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1073 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
1075 1076 1077 1078 1079 1080 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1075 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
1082 1083 1084 1085 1086 1087 1088 1089 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1082 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |