Class: AWSCDK::ECS::CfnCapacityProvider::NetworkInterfaceCountRequestProperty

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

Overview

The minimum and maximum number of network interfaces for instance type selection.

This is useful for workloads that require multiple network interfaces.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NetworkInterfaceCountRequestProperty.

Parameters:

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

    The maximum number of network interfaces.

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

    The minimum number of network interfaces.



1794
1795
1796
1797
1798
1799
# File 'ecs/cfn_capacity_provider.rb', line 1794

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 number of network interfaces.

Instance types that support more network interfaces are excluded from selection.



1807
1808
1809
# File 'ecs/cfn_capacity_provider.rb', line 1807

def max
  @max
end

#minNumeric? (readonly)

The minimum number of network interfaces.

Instance types that support fewer network interfaces are excluded from selection.



1814
1815
1816
# File 'ecs/cfn_capacity_provider.rb', line 1814

def min
  @min
end

Class Method Details

.jsii_propertiesObject



1816
1817
1818
1819
1820
1821
# File 'ecs/cfn_capacity_provider.rb', line 1816

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

Instance Method Details

#to_jsiiObject



1823
1824
1825
1826
1827
1828
1829
1830
# File 'ecs/cfn_capacity_provider.rb', line 1823

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