Class: AWSCDK::ECS::CfnCapacityProvider::MemoryMiBRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/cfn_capacity_provider.rb

Overview

The minimum and maximum amount of memory in mebibytes (MiB) for instance type selection.

This ensures that selected instance types have adequate memory for your workloads.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MemoryMiBRequestProperty.

Parameters:

  • min (Numeric)

    The minimum amount of memory in MiB.

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

    The maximum amount of memory in MiB.



1696
1697
1698
1699
1700
1701
# File 'ecs/cfn_capacity_provider.rb', line 1696

def initialize(min:, max: nil)
  @min = min
  Jsii::Type.check_type(@min, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "min")
  @max = max
  Jsii::Type.check_type(@max, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "max") unless @max.nil?
end

Instance Attribute Details

#maxNumeric? (readonly)

The maximum amount of memory in MiB.

Instance types with more memory than this value are excluded from selection.



1716
1717
1718
# File 'ecs/cfn_capacity_provider.rb', line 1716

def max
  @max
end

#minNumeric (readonly)

The minimum amount of memory in MiB.

Instance types with less memory than this value are excluded from selection.



1709
1710
1711
# File 'ecs/cfn_capacity_provider.rb', line 1709

def min
  @min
end

Class Method Details

.jsii_propertiesObject



1718
1719
1720
1721
1722
1723
# File 'ecs/cfn_capacity_provider.rb', line 1718

def self.jsii_properties
  {
    :min => "min",
    :max => "max",
  }
end

Instance Method Details

#to_jsiiObject



1725
1726
1727
1728
1729
1730
1731
1732
# File 'ecs/cfn_capacity_provider.rb', line 1725

def to_jsii
  result = {}
  result.merge!({
    "min" => @min,
    "max" => @max,
  })
  result.compact
end