Class: AWSCDK::EC2::CfnLaunchTemplate::ElasticGpuSpecificationProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil) ⇒ ElasticGpuSpecificationProperty

Returns a new instance of ElasticGpuSpecificationProperty.

Parameters:

  • type (String, nil) (defaults to: nil)


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

#typeString? (readonly)



1303
1304
1305
# File 'ec2/cfn_launch_template.rb', line 1303

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1305
1306
1307
1308
1309
# File 'ec2/cfn_launch_template.rb', line 1305

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

Instance Method Details

#to_jsiiObject



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