Class: AWSCDK::EC2::CfnLaunchTemplate::MemoryMiBProperty

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

Overview

The minimum and maximum amount of memory, in MiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MemoryMiBProperty.

Parameters:

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

    The maximum amount of memory, in MiB.

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

    The minimum amount of memory, in MiB.



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

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

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



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_jsiiObject



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