Class: AWSCDK::EC2::CfnLaunchTemplate::MemoryGiBPerVCpuProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::MemoryGiBPerVCpuProperty
- Defined in:
- ec2/cfn_launch_template.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) ⇒ MemoryGiBPerVCpuProperty
constructor
A new instance of MemoryGiBPerVCpuProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ MemoryGiBPerVCpuProperty
Returns a new instance of MemoryGiBPerVCpuProperty.
2703 2704 2705 2706 2707 2708 |
# File 'ec2/cfn_launch_template.rb', line 2703 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.
2716 2717 2718 |
# File 'ec2/cfn_launch_template.rb', line 2716 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum amount of memory per vCPU, in GiB.
To specify no minimum limit, omit this parameter.
2723 2724 2725 |
# File 'ec2/cfn_launch_template.rb', line 2723 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2725 2726 2727 2728 2729 2730 |
# File 'ec2/cfn_launch_template.rb', line 2725 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2732 2733 2734 2735 2736 2737 2738 2739 |
# File 'ec2/cfn_launch_template.rb', line 2732 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |