Class: AWSCDK::EC2::CfnEC2Fleet::AcceleratorTotalMemoryMiBRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::AcceleratorTotalMemoryMiBRequestProperty
- Defined in:
- ec2/cfn_ec2_fleet.rb
Overview
The minimum and maximum amount of total accelerator memory, in MiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of accelerator memory, in MiB.
-
#min ⇒ Numeric?
readonly
The minimum amount of accelerator memory, in MiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ AcceleratorTotalMemoryMiBRequestProperty
constructor
A new instance of AcceleratorTotalMemoryMiBRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ AcceleratorTotalMemoryMiBRequestProperty
Returns a new instance of AcceleratorTotalMemoryMiBRequestProperty.
734 735 736 737 738 739 |
# File 'ec2/cfn_ec2_fleet.rb', line 734 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 accelerator memory, in MiB.
To specify no maximum limit, omit this parameter.
747 748 749 |
# File 'ec2/cfn_ec2_fleet.rb', line 747 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum amount of accelerator memory, in MiB.
To specify no minimum limit, omit this parameter.
754 755 756 |
# File 'ec2/cfn_ec2_fleet.rb', line 754 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
756 757 758 759 760 761 |
# File 'ec2/cfn_ec2_fleet.rb', line 756 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
763 764 765 766 767 768 769 770 |
# File 'ec2/cfn_ec2_fleet.rb', line 763 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |