Class: AWSCDK::EC2::CfnEC2Fleet::AcceleratorCountRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::AcceleratorCountRequestProperty
- Defined in:
- ec2/cfn_ec2_fleet.rb
Overview
The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set Max to 0 .
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum number of accelerators.
-
#min ⇒ Numeric?
readonly
The minimum number of accelerators.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ AcceleratorCountRequestProperty
constructor
A new instance of AcceleratorCountRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ AcceleratorCountRequestProperty
Returns a new instance of AcceleratorCountRequestProperty.
687 688 689 690 691 692 |
# File 'ec2/cfn_ec2_fleet.rb', line 687 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 number of accelerators.
To specify no maximum limit, omit this parameter. To exclude accelerator-enabled instance types, set Max to 0 .
700 701 702 |
# File 'ec2/cfn_ec2_fleet.rb', line 700 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum number of accelerators.
To specify no minimum limit, omit this parameter.
707 708 709 |
# File 'ec2/cfn_ec2_fleet.rb', line 707 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
709 710 711 712 713 714 |
# File 'ec2/cfn_ec2_fleet.rb', line 709 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
716 717 718 719 720 721 722 723 |
# File 'ec2/cfn_ec2_fleet.rb', line 716 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |