Class: AWSCDK::ECS::CfnCapacityProvider::MemoryGiBPerVCpuRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnCapacityProvider::MemoryGiBPerVCpuRequestProperty
- 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
-
#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) ⇒ MemoryGiBPerVCpuRequestProperty
constructor
A new instance of MemoryGiBPerVCpuRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ MemoryGiBPerVCpuRequestProperty
Returns a new instance of MemoryGiBPerVCpuRequestProperty.
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
#max ⇒ Numeric? (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 |
#min ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |