Class: AWSCDK::EC2::CfnLaunchTemplate::CpuProperty

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

Overview

Specifies the CPU performance to consider when 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) ⇒ CpuProperty

Returns a new instance of CpuProperty.

Parameters:



1062
1063
1064
1065
# File 'ec2/cfn_launch_template.rb', line 1062

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

Instance Attribute Details

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

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

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



1073
1074
1075
# File 'ec2/cfn_launch_template.rb', line 1073

def references
  @references
end

Class Method Details

.jsii_propertiesObject



1075
1076
1077
1078
1079
# File 'ec2/cfn_launch_template.rb', line 1075

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

Instance Method Details

#to_jsiiObject



1081
1082
1083
1084
1085
1086
1087
# File 'ec2/cfn_launch_template.rb', line 1081

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