Class: AWSCDK::ECS::CfnCapacityProvider::AcceleratorTotalMemoryMiBRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AcceleratorTotalMemoryMiBRequestProperty.

Parameters:

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

    The maximum total accelerator memory in MiB.

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

    The minimum total accelerator memory in MiB.



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

#maxNumeric? (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

#minNumeric? (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_propertiesObject



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_jsiiObject



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