Class: AWSCDK::ECS::CfnCapacityProvider::MemoryGiBPerVCpuRequestProperty

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

Overview

The minimum and maximum amount of memory per vCPU in gibibytes (GiB).

This helps ensure that instance types have the appropriate memory-to-CPU ratio for your workloads.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MemoryGiBPerVCpuRequestProperty.

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.



1647
1648
1649
1650
1651
1652
# File 'ecs/cfn_capacity_provider.rb', line 1647

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.

Instance types with a higher memory-to-vCPU ratio are excluded from selection.



1660
1661
1662
# File 'ecs/cfn_capacity_provider.rb', line 1660

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of memory per vCPU in GiB.

Instance types with a lower memory-to-vCPU ratio are excluded from selection.



1667
1668
1669
# File 'ecs/cfn_capacity_provider.rb', line 1667

def min
  @min
end

Class Method Details

.jsii_propertiesObject



1669
1670
1671
1672
1673
1674
# File 'ecs/cfn_capacity_provider.rb', line 1669

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

Instance Method Details

#to_jsiiObject



1676
1677
1678
1679
1680
1681
1682
1683
# File 'ecs/cfn_capacity_provider.rb', line 1676

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