Class: AWSCDK::EC2::CfnLaunchTemplate::BaselinePerformanceFactorsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::BaselinePerformanceFactorsProperty
- Defined in:
- ec2/cfn_launch_template.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) ⇒ BaselinePerformanceFactorsProperty
constructor
A new instance of BaselinePerformanceFactorsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cpu: nil) ⇒ BaselinePerformanceFactorsProperty
Returns a new instance of BaselinePerformanceFactorsProperty.
734 735 736 737 |
# File 'ec2/cfn_launch_template.rb', line 734 def initialize(cpu: nil) @cpu = cpu.is_a?(Hash) ? ::AWSCDK::EC2::CfnLaunchTemplate::CpuProperty.new(**cpu.transform_keys(&:to_sym)) : cpu Jsii::Type.check_type(@cpu, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuTGF1bmNoVGVtcGxhdGUuQ3B1UHJvcGVydHkifV19fQ==")), "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.
743 744 745 |
# File 'ec2/cfn_launch_template.rb', line 743 def cpu @cpu end |
Class Method Details
.jsii_properties ⇒ Object
745 746 747 748 749 |
# File 'ec2/cfn_launch_template.rb', line 745 def self.jsii_properties { :cpu => "cpu", } end |
Instance Method Details
#to_jsii ⇒ Object
751 752 753 754 755 756 757 |
# File 'ec2/cfn_launch_template.rb', line 751 def to_jsii result = {} result.merge!({ "cpu" => @cpu, }) result.compact end |