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