Class: AWSCDK::EC2::CfnLaunchTemplate::LaunchTemplateElasticInferenceAcceleratorProperty

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(count: nil, type: nil) ⇒ LaunchTemplateElasticInferenceAcceleratorProperty

Returns a new instance of LaunchTemplateElasticInferenceAcceleratorProperty.

Parameters:

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


2547
2548
2549
2550
2551
2552
# File 'ec2/cfn_launch_template.rb', line 2547

def initialize(count: nil, type: nil)
  @count = count
  Jsii::Type.check_type(@count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "count") unless @count.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#countNumeric? (readonly)



2556
2557
2558
# File 'ec2/cfn_launch_template.rb', line 2556

def count
  @count
end

#typeString? (readonly)



2559
2560
2561
# File 'ec2/cfn_launch_template.rb', line 2559

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2561
2562
2563
2564
2565
2566
# File 'ec2/cfn_launch_template.rb', line 2561

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

Instance Method Details

#to_jsiiObject



2568
2569
2570
2571
2572
2573
2574
2575
# File 'ec2/cfn_launch_template.rb', line 2568

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