Class: AWSCDK::ECS::CfnCapacityProvider::NetworkBandwidthGbpsRequestProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NetworkBandwidthGbpsRequestProperty.

Parameters:

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

    The maximum network bandwidth in Gbps.

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

    The minimum network bandwidth in Gbps.



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

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

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



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_jsiiObject



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