Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::BaselinePerformanceFactorsRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Autoscaling::CfnAutoScalingGroup::BaselinePerformanceFactorsRequestProperty
- Defined in:
- autoscaling/cfn_auto_scaling_group.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. Auto Scaling 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 uses 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.
1227 1228 1229 1230 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1227 def initialize(cpu: nil) @cpu = cpu.is_a?(Hash) ? ::AWSCDK::Autoscaling::CfnAutoScalingGroup::CpuPerformanceFactorRequestProperty.new(**cpu.transform_keys(&:to_sym)) : cpu Jsii::Type.check_type(@cpu, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hdXRvc2NhbGluZy5DZm5BdXRvU2NhbGluZ0dyb3VwLkNwdVBlcmZvcm1hbmNlRmFjdG9yUmVxdWVzdFByb3BlcnR5In1dfX0=")), "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.
1236 1237 1238 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1236 def cpu @cpu end |
Class Method Details
.jsii_properties ⇒ Object
1238 1239 1240 1241 1242 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1238 def self.jsii_properties { :cpu => "cpu", } end |
Instance Method Details
#to_jsii ⇒ Object
1244 1245 1246 1247 1248 1249 1250 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1244 def to_jsii result = {} result.merge!({ "cpu" => @cpu, }) result.compact end |