Class: AWSCDK::ECS::CfnCapacityProvider::MemoryMiBRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnCapacityProvider::MemoryMiBRequestProperty
- 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
-
#max ⇒ Numeric?
readonly
The maximum amount of memory in MiB.
-
#min ⇒ Numeric
readonly
The minimum amount of memory in MiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min:, max: nil) ⇒ MemoryMiBRequestProperty
constructor
A new instance of MemoryMiBRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(min:, max: nil) ⇒ MemoryMiBRequestProperty
Returns a new instance of MemoryMiBRequestProperty.
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
#max ⇒ Numeric? (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 |
#min ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |