Class: AWSCDK::EC2::CfnLaunchTemplate::ElasticGpuSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::ElasticGpuSpecificationProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
Instance Attribute Summary collapse
- #type ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil) ⇒ ElasticGpuSpecificationProperty
constructor
A new instance of ElasticGpuSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type: nil) ⇒ ElasticGpuSpecificationProperty
Returns a new instance of ElasticGpuSpecificationProperty.
1296 1297 1298 1299 |
# File 'ec2/cfn_launch_template.rb', line 1296 def initialize(type: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#type ⇒ String? (readonly)
1303 1304 1305 |
# File 'ec2/cfn_launch_template.rb', line 1303 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1305 1306 1307 1308 1309 |
# File 'ec2/cfn_launch_template.rb', line 1305 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1311 1312 1313 1314 1315 1316 1317 |
# File 'ec2/cfn_launch_template.rb', line 1311 def to_jsii result = {} result.merge!({ "type" => @type, }) result.compact end |