Class: AWSCDK::ECS::CfnCapacityProvider::VCpuCountRangeRequestProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of VCpuCountRangeRequestProperty.

Parameters:

  • min (Numeric)

    The minimum number of vCPUs.

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

    The maximum number of vCPUs.



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

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

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



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_jsiiObject



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