Class: AWSCDK::ECS::CfnCapacityProvider::NetworkBandwidthGbpsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnCapacityProvider::NetworkBandwidthGbpsRequestProperty
- Defined in:
- ecs/cfn_capacity_provider.rb
Overview
The minimum and maximum network bandwidth in gigabits per second (Gbps) for instance type selection.
This is important for network-intensive workloads.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum network bandwidth in Gbps.
-
#min ⇒ Numeric?
readonly
The minimum network bandwidth in Gbps.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ NetworkBandwidthGbpsRequestProperty
constructor
A new instance of NetworkBandwidthGbpsRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ NetworkBandwidthGbpsRequestProperty
Returns a new instance of NetworkBandwidthGbpsRequestProperty.
1745 1746 1747 1748 1749 1750 |
# File 'ecs/cfn_capacity_provider.rb', line 1745 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 network bandwidth in Gbps.
Instance types with higher network bandwidth are excluded from selection.
1758 1759 1760 |
# File 'ecs/cfn_capacity_provider.rb', line 1758 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum network bandwidth in Gbps.
Instance types with lower network bandwidth are excluded from selection.
1765 1766 1767 |
# File 'ecs/cfn_capacity_provider.rb', line 1765 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
1767 1768 1769 1770 1771 1772 |
# File 'ecs/cfn_capacity_provider.rb', line 1767 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
1774 1775 1776 1777 1778 1779 1780 1781 |
# File 'ecs/cfn_capacity_provider.rb', line 1774 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |