Class: AWSCDK::EC2::CfnEC2Fleet::BaselinePerformanceFactorsRequestProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cpu: nil) ⇒ BaselinePerformanceFactorsRequestProperty

Returns a new instance of BaselinePerformanceFactorsRequestProperty.

Parameters:



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

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



844
845
846
847
848
# File 'ec2/cfn_ec2_fleet.rb', line 844

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

Instance Method Details

#to_jsiiObject



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