Class: AWSCDK::EC2::LaunchTemplateAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::LaunchTemplateAttributes
- Defined in:
- ec2/launch_template_attributes.rb
Overview
Attributes for an imported LaunchTemplate.
Instance Attribute Summary collapse
-
#launch_template_id ⇒ String?
readonly
The identifier of the Launch Template.
-
#launch_template_name ⇒ String?
readonly
The name of the Launch Template.
-
#version_number ⇒ String?
readonly
The version number of this launch template to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(launch_template_id: nil, launch_template_name: nil, version_number: nil) ⇒ LaunchTemplateAttributes
constructor
A new instance of LaunchTemplateAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(launch_template_id: nil, launch_template_name: nil, version_number: nil) ⇒ LaunchTemplateAttributes
Returns a new instance of LaunchTemplateAttributes.
10 11 12 13 14 15 16 17 |
# File 'ec2/launch_template_attributes.rb', line 10 def initialize(launch_template_id: nil, launch_template_name: nil, version_number: nil) @launch_template_id = launch_template_id Jsii::Type.check_type(@launch_template_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "launchTemplateId") unless @launch_template_id.nil? @launch_template_name = launch_template_name Jsii::Type.check_type(@launch_template_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "launchTemplateName") unless @launch_template_name.nil? @version_number = version_number Jsii::Type.check_type(@version_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionNumber") unless @version_number.nil? end |
Instance Attribute Details
#launch_template_id ⇒ String? (readonly)
Note:
Default: None
The identifier of the Launch Template.
Exactly one of launch_template_id and launch_template_name may be set.
25 26 27 |
# File 'ec2/launch_template_attributes.rb', line 25 def launch_template_id @launch_template_id end |
#launch_template_name ⇒ String? (readonly)
Note:
Default: None
The name of the Launch Template.
Exactly one of launch_template_id and launch_template_name may be set.
32 33 34 |
# File 'ec2/launch_template_attributes.rb', line 32 def launch_template_name @launch_template_name end |
#version_number ⇒ String? (readonly)
Note:
Default: Version: "$Default"
The version number of this launch template to use.
37 38 39 |
# File 'ec2/launch_template_attributes.rb', line 37 def version_number @version_number end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'ec2/launch_template_attributes.rb', line 39 def self.jsii_properties { :launch_template_id => "launchTemplateId", :launch_template_name => "launchTemplateName", :version_number => "versionNumber", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'ec2/launch_template_attributes.rb', line 47 def to_jsii result = {} result.merge!({ "launchTemplateId" => @launch_template_id, "launchTemplateName" => @launch_template_name, "versionNumber" => @version_number, }) result.compact end |