Class: AWSCDK::EC2::CfnLaunchTemplate::BaselineEbsBandwidthMbpsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_launch_template.rb

Overview

The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.

For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BaselineEbsBandwidthMbpsProperty.

Parameters:

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

    The maximum baseline bandwidth, in Mbps.

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

    The minimum baseline bandwidth, in Mbps.



684
685
686
687
688
689
# File 'ec2/cfn_launch_template.rb', line 684

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 bandwidth, in Mbps.

To specify no maximum limit, omit this parameter.



697
698
699
# File 'ec2/cfn_launch_template.rb', line 697

def max
  @max
end

#minNumeric? (readonly)

The minimum baseline bandwidth, in Mbps.

To specify no minimum limit, omit this parameter.



704
705
706
# File 'ec2/cfn_launch_template.rb', line 704

def min
  @min
end

Class Method Details

.jsii_propertiesObject



706
707
708
709
710
711
# File 'ec2/cfn_launch_template.rb', line 706

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

Instance Method Details

#to_jsiiObject



713
714
715
716
717
718
719
720
# File 'ec2/cfn_launch_template.rb', line 713

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