Class: AWSCDK::EC2::CfnLaunchTemplate::BaselinePerformanceFactorsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cpu: nil) ⇒ BaselinePerformanceFactorsProperty

Returns a new instance of BaselinePerformanceFactorsProperty.

Parameters:



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

#cpuAWSCDK::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_propertiesObject



745
746
747
748
749
# File 'ec2/cfn_launch_template.rb', line 745

def self.jsii_properties
  {
    :cpu => "cpu",
  }
end

Instance Method Details

#to_jsiiObject



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