Class: AWSCDK::ECS::CfnCapacityProvider::AcceleratorTotalMemoryMiBRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnCapacityProvider::AcceleratorTotalMemoryMiBRequestProperty
- Defined in:
- ecs/cfn_capacity_provider.rb
Overview
The minimum and maximum total accelerator memory in mebibytes (MiB) for instance type selection.
This is important for GPU workloads that require specific amounts of video memory.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum total accelerator memory in MiB.
-
#min ⇒ Numeric?
readonly
The minimum total accelerator memory in MiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ AcceleratorTotalMemoryMiBRequestProperty
constructor
A new instance of AcceleratorTotalMemoryMiBRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ AcceleratorTotalMemoryMiBRequestProperty
Returns a new instance of AcceleratorTotalMemoryMiBRequestProperty.
630 631 632 633 634 635 |
# File 'ecs/cfn_capacity_provider.rb', line 630 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 total accelerator memory in MiB.
Instance types with more accelerator memory are excluded from selection.
643 644 645 |
# File 'ecs/cfn_capacity_provider.rb', line 643 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum total accelerator memory in MiB.
Instance types with less accelerator memory are excluded from selection.
650 651 652 |
# File 'ecs/cfn_capacity_provider.rb', line 650 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
652 653 654 655 656 657 |
# File 'ecs/cfn_capacity_provider.rb', line 652 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
659 660 661 662 663 664 665 666 |
# File 'ecs/cfn_capacity_provider.rb', line 659 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |