Class: AWSCDK::ECS::CfnCapacityProvider::TotalLocalStorageGBRequestProperty

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

Overview

The minimum and maximum total local storage in gigabytes (GB) for instance types with local storage.

This is useful for workloads that require local storage for temporary data or caching.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TotalLocalStorageGBRequestProperty.

Parameters:

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

    The maximum total local storage in GB.

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

    The minimum total local storage in GB.



1843
1844
1845
1846
1847
1848
# File 'ecs/cfn_capacity_provider.rb', line 1843

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 local storage in GB.

Instance types with more local storage are excluded from selection.



1856
1857
1858
# File 'ecs/cfn_capacity_provider.rb', line 1856

def max
  @max
end

#minNumeric? (readonly)

The minimum total local storage in GB.

Instance types with less local storage are excluded from selection.



1863
1864
1865
# File 'ecs/cfn_capacity_provider.rb', line 1863

def min
  @min
end

Class Method Details

.jsii_propertiesObject



1865
1866
1867
1868
1869
1870
# File 'ecs/cfn_capacity_provider.rb', line 1865

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

Instance Method Details

#to_jsiiObject



1872
1873
1874
1875
1876
1877
1878
1879
# File 'ecs/cfn_capacity_provider.rb', line 1872

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