Class: AWSCDK::EC2::CfnSpotFleet::CpuPerformanceFactorRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_spot_fleet.rb

Overview

The CPU performance to consider, using an instance family as the baseline reference.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(references: nil) ⇒ CpuPerformanceFactorRequestProperty

Returns a new instance of CpuPerformanceFactorRequestProperty.

Parameters:



852
853
854
855
# File 'ec2/cfn_spot_fleet.rb', line 852

def initialize(references: nil)
  @references = references
  Jsii::Type.check_type(@references, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmblNwb3RGbGVldC5QZXJmb3JtYW5jZUZhY3RvclJlZmVyZW5jZVJlcXVlc3RQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "references") unless @references.nil?
end

Instance Attribute Details

#referencesAWSCDK::IResolvable, ... (readonly)

Specify an instance family to use as the baseline reference for CPU performance.

All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.

Currently, only one instance family can be specified in the list.



865
866
867
# File 'ec2/cfn_spot_fleet.rb', line 865

def references
  @references
end

Class Method Details

.jsii_propertiesObject



867
868
869
870
871
# File 'ec2/cfn_spot_fleet.rb', line 867

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

Instance Method Details

#to_jsiiObject



873
874
875
876
877
878
879
# File 'ec2/cfn_spot_fleet.rb', line 873

def to_jsii
  result = {}
  result.merge!({
    "references" => @references,
  })
  result.compact
end