Class: AWSCDK::EC2::CfnLaunchTemplate::MemoryGiBPerVCpuProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_launch_template.rb

Overview

The minimum and maximum amount of memory per vCPU, in GiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max: nil, min: nil) ⇒ MemoryGiBPerVCpuProperty

Returns a new instance of MemoryGiBPerVCpuProperty.

Parameters:

  • max (Numeric, nil) (defaults to: nil)

    The maximum amount of memory per vCPU, in GiB.

  • min (Numeric, nil) (defaults to: nil)

    The minimum amount of memory per vCPU, in GiB.



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

#maxNumeric? (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

#minNumeric? (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_propertiesObject



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_jsiiObject



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