Class: AWSCDK::EC2::CfnEC2Fleet::BaselinePerformanceFactorsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::BaselinePerformanceFactorsRequestProperty
- Defined in:
- ec2/cfn_ec2_fleet.rb
Overview
The baseline performance to consider, using an instance family as a baseline reference.
The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application.
Currently, this parameter only supports CPU performance as a baseline performance factor. For example, specifying c6i would use the CPU performance of the c6i family as the baseline reference.
Instance Attribute Summary collapse
-
#cpu ⇒ AWSCDK::IResolvable, ...
readonly
The CPU performance to consider, using an instance family as the baseline reference.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cpu: nil) ⇒ BaselinePerformanceFactorsRequestProperty
constructor
A new instance of BaselinePerformanceFactorsRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cpu: nil) ⇒ BaselinePerformanceFactorsRequestProperty
Returns a new instance of BaselinePerformanceFactorsRequestProperty.
833 834 835 836 |
# File 'ec2/cfn_ec2_fleet.rb', line 833 def initialize(cpu: nil) @cpu = cpu.is_a?(Hash) ? ::AWSCDK::EC2::CfnEC2Fleet::CpuPerformanceFactorRequestProperty.new(**cpu.transform_keys(&:to_sym)) : cpu Jsii::Type.check_type(@cpu, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuRUMyRmxlZXQuQ3B1UGVyZm9ybWFuY2VGYWN0b3JSZXF1ZXN0UHJvcGVydHkifV19fQ==")), "cpu") unless @cpu.nil? end |
Instance Attribute Details
#cpu ⇒ AWSCDK::IResolvable, ... (readonly)
The CPU performance to consider, using an instance family as the baseline reference.
842 843 844 |
# File 'ec2/cfn_ec2_fleet.rb', line 842 def cpu @cpu end |
Class Method Details
.jsii_properties ⇒ Object
844 845 846 847 848 |
# File 'ec2/cfn_ec2_fleet.rb', line 844 def self.jsii_properties { :cpu => "cpu", } end |
Instance Method Details
#to_jsii ⇒ Object
850 851 852 853 854 855 856 |
# File 'ec2/cfn_ec2_fleet.rb', line 850 def to_jsii result = {} result.merge!({ "cpu" => @cpu, }) result.compact end |