Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::NetworkBandwidthGbpsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Autoscaling::CfnAutoScalingGroup::NetworkBandwidthGbpsRequestProperty
- 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
-
#max ⇒ Numeric?
readonly
The maximum amount of network bandwidth, in gigabits per second (Gbps).
-
#min ⇒ Numeric?
readonly
The minimum amount of network bandwidth, in gigabits per second (Gbps).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ NetworkBandwidthGbpsRequestProperty
constructor
A new instance of NetworkBandwidthGbpsRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ NetworkBandwidthGbpsRequestProperty
Returns a new instance of NetworkBandwidthGbpsRequestProperty.
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
#max ⇒ Numeric? (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 |
#min ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |