Class: AWSCDK::EC2::CfnEC2Fleet::BaselineEbsBandwidthMbpsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::BaselineEbsBandwidthMbpsRequestProperty
- Defined in:
- ec2/cfn_ec2_fleet.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
-
#max ⇒ Numeric?
readonly
The maximum baseline bandwidth, in Mbps.
-
#min ⇒ Numeric?
readonly
The minimum baseline bandwidth, in Mbps.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ BaselineEbsBandwidthMbpsRequestProperty
constructor
A new instance of BaselineEbsBandwidthMbpsRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ BaselineEbsBandwidthMbpsRequestProperty
Returns a new instance of BaselineEbsBandwidthMbpsRequestProperty.
783 784 785 786 787 788 |
# File 'ec2/cfn_ec2_fleet.rb', line 783 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 baseline bandwidth, in Mbps.
To specify no maximum limit, omit this parameter.
796 797 798 |
# File 'ec2/cfn_ec2_fleet.rb', line 796 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum baseline bandwidth, in Mbps.
To specify no minimum limit, omit this parameter.
803 804 805 |
# File 'ec2/cfn_ec2_fleet.rb', line 803 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
805 806 807 808 809 810 |
# File 'ec2/cfn_ec2_fleet.rb', line 805 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
812 813 814 815 816 817 818 819 |
# File 'ec2/cfn_ec2_fleet.rb', line 812 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |