Class: AWSCDK::EC2::CfnSpotFleet::BaselinePerformanceFactorsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::BaselinePerformanceFactorsRequestProperty
- Defined in:
- ec2/cfn_spot_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.
676 677 678 679 |
# File 'ec2/cfn_spot_fleet.rb', line 676 def initialize(cpu: nil) @cpu = cpu.is_a?(Hash) ? ::AWSCDK::EC2::CfnSpotFleet::CpuPerformanceFactorRequestProperty.new(**cpu.transform_keys(&:to_sym)) : cpu Jsii::Type.check_type(@cpu, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuU3BvdEZsZWV0LkNwdVBlcmZvcm1hbmNlRmFjdG9yUmVxdWVzdFByb3BlcnR5In1dfX0=")), "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.
685 686 687 |
# File 'ec2/cfn_spot_fleet.rb', line 685 def cpu @cpu end |
Class Method Details
.jsii_properties ⇒ Object
687 688 689 690 691 |
# File 'ec2/cfn_spot_fleet.rb', line 687 def self.jsii_properties { :cpu => "cpu", } end |
Instance Method Details
#to_jsii ⇒ Object
693 694 695 696 697 698 699 |
# File 'ec2/cfn_spot_fleet.rb', line 693 def to_jsii result = {} result.merge!({ "cpu" => @cpu, }) result.compact end |