Class: AWSCDK::EC2::CfnSpotFleet::MemoryGiBPerVCpuRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::MemoryGiBPerVCpuRequestProperty
- Defined in:
- ec2/cfn_spot_fleet.rb
Overview
The minimum and maximum amount of memory per vCPU, in GiB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of memory per vCPU, in GiB.
-
#min ⇒ Numeric?
readonly
The minimum amount of memory per vCPU, in GiB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ MemoryGiBPerVCpuRequestProperty
constructor
A new instance of MemoryGiBPerVCpuRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ MemoryGiBPerVCpuRequestProperty
Returns a new instance of MemoryGiBPerVCpuRequestProperty.
2008 2009 2010 2011 2012 2013 |
# File 'ec2/cfn_spot_fleet.rb', line 2008 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 per vCPU, in GiB.
To specify no maximum limit, omit this parameter.
2021 2022 2023 |
# File 'ec2/cfn_spot_fleet.rb', line 2021 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum amount of memory per vCPU, in GiB.
To specify no minimum limit, omit this parameter.
2028 2029 2030 |
# File 'ec2/cfn_spot_fleet.rb', line 2028 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
2030 2031 2032 2033 2034 2035 |
# File 'ec2/cfn_spot_fleet.rb', line 2030 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
2037 2038 2039 2040 2041 2042 2043 2044 |
# File 'ec2/cfn_spot_fleet.rb', line 2037 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |