Class: AWSCDK::EC2::CfnLaunchTemplate::NetworkBandwidthGbpsProperty

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

Overview

The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).

Setting the minimum bandwidth does not guarantee that your instance will achieve the minimum bandwidth. Amazon EC2 will identify instance types that support the specified minimum bandwidth, but the actual bandwidth of your instance might go below the specified minimum at times. For more information, see Available instance bandwidth 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) ⇒ NetworkBandwidthGbpsProperty

Returns a new instance of NetworkBandwidthGbpsProperty.

Parameters:

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

    The maximum amount of network bandwidth, in Gbps.

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

    The minimum amount of network bandwidth, in Gbps.



2936
2937
2938
2939
2940
2941
# File 'ec2/cfn_launch_template.rb', line 2936

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 amount of network bandwidth, in Gbps.

To specify no maximum limit, omit this parameter.



2949
2950
2951
# File 'ec2/cfn_launch_template.rb', line 2949

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of network bandwidth, in Gbps.

If this parameter is not specified, there is no minimum limit.



2956
2957
2958
# File 'ec2/cfn_launch_template.rb', line 2956

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2958
2959
2960
2961
2962
2963
# File 'ec2/cfn_launch_template.rb', line 2958

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

Instance Method Details

#to_jsiiObject



2965
2966
2967
2968
2969
2970
2971
2972
# File 'ec2/cfn_launch_template.rb', line 2965

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