Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::NetworkBandwidthGbpsRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
autoscaling/cfn_auto_scaling_group.rb

Overview

NetworkBandwidthGbpsRequest is a property of the InstanceRequirements property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property type that describes the minimum and maximum network bandwidth for an instance type, in 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 for Linux Instances .

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 amount of network bandwidth, in gigabits per second (Gbps).

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

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



2568
2569
2570
2571
2572
2573
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2568

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 gigabits per second (Gbps).



2579
2580
2581
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2579

def max
  @max
end

#minNumeric? (readonly)

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



2584
2585
2586
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2584

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2586
2587
2588
2589
2590
2591
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2586

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

Instance Method Details

#to_jsiiObject



2593
2594
2595
2596
2597
2598
2599
2600
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2593

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