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