Class: AWSCDK::ECS::CfnCapacityProvider::BaselineEbsBandwidthMbpsRequestProperty

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

Overview

The minimum and maximum baseline Amazon EBS bandwidth in megabits per second (Mbps) for instance type selection.

This is important for workloads with high storage I/O requirements.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BaselineEbsBandwidthMbpsRequestProperty.

Parameters:

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

    The maximum baseline Amazon EBS bandwidth in Mbps.

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

    The minimum baseline Amazon EBS bandwidth in Mbps.



781
782
783
784
785
786
# File 'ecs/cfn_capacity_provider.rb', line 781

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 baseline Amazon EBS bandwidth in Mbps.

Instance types with higher Amazon EBS bandwidth are excluded from selection.



794
795
796
# File 'ecs/cfn_capacity_provider.rb', line 794

def max
  @max
end

#minNumeric? (readonly)

The minimum baseline Amazon EBS bandwidth in Mbps.

Instance types with lower Amazon EBS bandwidth are excluded from selection.



801
802
803
# File 'ecs/cfn_capacity_provider.rb', line 801

def min
  @min
end

Class Method Details

.jsii_propertiesObject



803
804
805
806
807
808
# File 'ecs/cfn_capacity_provider.rb', line 803

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

Instance Method Details

#to_jsiiObject



810
811
812
813
814
815
816
817
# File 'ecs/cfn_capacity_provider.rb', line 810

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