Class: AWSCDK::ECS::CfnCapacityProvider::VCpuCountRangeRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnCapacityProvider::VCpuCountRangeRequestProperty
- Defined in:
- ecs/cfn_capacity_provider.rb
Overview
The minimum and maximum number of vCPUs for instance type selection.
This allows you to specify a range of vCPU counts that meet your workload requirements.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum number of vCPUs.
-
#min ⇒ Numeric
readonly
The minimum number of vCPUs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min:, max: nil) ⇒ VCpuCountRangeRequestProperty
constructor
A new instance of VCpuCountRangeRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(min:, max: nil) ⇒ VCpuCountRangeRequestProperty
Returns a new instance of VCpuCountRangeRequestProperty.
1892 1893 1894 1895 1896 1897 |
# File 'ecs/cfn_capacity_provider.rb', line 1892 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 number of vCPUs.
Instance types with more vCPUs than this value are excluded from selection.
1912 1913 1914 |
# File 'ecs/cfn_capacity_provider.rb', line 1912 def max @max end |
#min ⇒ Numeric (readonly)
The minimum number of vCPUs.
Instance types with fewer vCPUs than this value are excluded from selection.
1905 1906 1907 |
# File 'ecs/cfn_capacity_provider.rb', line 1905 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
1914 1915 1916 1917 1918 1919 |
# File 'ecs/cfn_capacity_provider.rb', line 1914 def self.jsii_properties { :min => "min", :max => "max", } end |
Instance Method Details
#to_jsii ⇒ Object
1921 1922 1923 1924 1925 1926 1927 1928 |
# File 'ecs/cfn_capacity_provider.rb', line 1921 def to_jsii result = {} result.merge!({ "min" => @min, "max" => @max, }) result.compact end |