Class: AWSCDK::EC2::CfnLaunchTemplate::MemoryMiBProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::MemoryMiBProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
The minimum and maximum amount of memory, in MiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of memory, in MiB.
-
#min ⇒ Numeric?
readonly
The minimum amount of memory, in MiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ MemoryMiBProperty
constructor
A new instance of MemoryMiBProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ MemoryMiBProperty
Returns a new instance of MemoryMiBProperty.
2750 2751 2752 2753 2754 2755 |
# File 'ec2/cfn_launch_template.rb', line 2750 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, in MiB.
To specify no maximum limit, omit this parameter.
2763 2764 2765 |
# File 'ec2/cfn_launch_template.rb', line 2763 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum amount of memory, in MiB.
To specify no minimum limit, specify 0 .
2770 2771 2772 |
# File 'ec2/cfn_launch_template.rb', line 2770 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2772 2773 2774 2775 2776 2777 |
# File 'ec2/cfn_launch_template.rb', line 2772 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2779 2780 2781 2782 2783 2784 2785 2786 |
# File 'ec2/cfn_launch_template.rb', line 2779 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |