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