Class: AWSCDK::EC2::CfnLaunchTemplate::LaunchTemplateElasticInferenceAcceleratorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::LaunchTemplateElasticInferenceAcceleratorProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
Instance Attribute Summary collapse
- #count ⇒ Numeric? readonly
- #type ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(count: nil, type: nil) ⇒ LaunchTemplateElasticInferenceAcceleratorProperty
constructor
A new instance of LaunchTemplateElasticInferenceAcceleratorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(count: nil, type: nil) ⇒ LaunchTemplateElasticInferenceAcceleratorProperty
Returns a new instance of LaunchTemplateElasticInferenceAcceleratorProperty.
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
#count ⇒ Numeric? (readonly)
2556 2557 2558 |
# File 'ec2/cfn_launch_template.rb', line 2556 def count @count end |
#type ⇒ String? (readonly)
2559 2560 2561 |
# File 'ec2/cfn_launch_template.rb', line 2559 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |