Class: AWSCDK::EC2::CfnSpotFleet::MemoryMiBRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::MemoryMiBRequestProperty
- Defined in:
- ec2/cfn_spot_fleet.rb
Overview
The minimum and maximum amount of memory, in MiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of memory, in MiB.
-
#min ⇒ Numeric?
readonly
The minimum amount of memory, in MiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ MemoryMiBRequestProperty
constructor
A new instance of MemoryMiBRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ MemoryMiBRequestProperty
Returns a new instance of MemoryMiBRequestProperty.
2055 2056 2057 2058 2059 2060 |
# File 'ec2/cfn_spot_fleet.rb', line 2055 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 memory, in MiB.
To specify no maximum limit, omit this parameter.
2068 2069 2070 |
# File 'ec2/cfn_spot_fleet.rb', line 2068 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum amount of memory, in MiB.
To specify no minimum limit, specify 0 .
2075 2076 2077 |
# File 'ec2/cfn_spot_fleet.rb', line 2075 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2077 2078 2079 2080 2081 2082 |
# File 'ec2/cfn_spot_fleet.rb', line 2077 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2084 2085 2086 2087 2088 2089 2090 2091 |
# File 'ec2/cfn_spot_fleet.rb', line 2084 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |