Class: AWSCDK::EC2::CfnLaunchTemplate::CpuProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::CpuProperty
- 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
-
#references ⇒ AWSCDK::IResolvable, ...
readonly
The instance family to use as the baseline reference for CPU performance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(references: nil) ⇒ CpuProperty
constructor
A new instance of CpuProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(references: nil) ⇒ CpuProperty
Returns a new instance of CpuProperty.
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
#references ⇒ AWSCDK::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_properties ⇒ Object
1075 1076 1077 1078 1079 |
# File 'ec2/cfn_launch_template.rb', line 1075 def self.jsii_properties { :references => "references", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |