Class: AWSCDK::ImageBuilder::CfnDistributionConfiguration::FastLaunchLaunchTemplateSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ImageBuilder::CfnDistributionConfiguration::FastLaunchLaunchTemplateSpecificationProperty
- Defined in:
- image_builder/cfn_distribution_configuration.rb
Overview
Identifies the launch template that the associated Windows AMI uses for launching an instance when faster launching is enabled.
You can specify either the
launch_template_nameor thelaunch_template_id, but not both.
Instance Attribute Summary collapse
-
#launch_template_id ⇒ String?
readonly
The ID of the launch template to use for faster launching for a Windows AMI.
-
#launch_template_name ⇒ String?
readonly
The name of the launch template to use for faster launching for a Windows AMI.
-
#launch_template_version ⇒ String?
readonly
The version of the launch template to use for faster launching for a Windows AMI.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(launch_template_id: nil, launch_template_name: nil, launch_template_version: nil) ⇒ FastLaunchLaunchTemplateSpecificationProperty
constructor
A new instance of FastLaunchLaunchTemplateSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(launch_template_id: nil, launch_template_name: nil, launch_template_version: nil) ⇒ FastLaunchLaunchTemplateSpecificationProperty
Returns a new instance of FastLaunchLaunchTemplateSpecificationProperty.
892 893 894 895 896 897 898 899 |
# File 'image_builder/cfn_distribution_configuration.rb', line 892 def initialize(launch_template_id: nil, launch_template_name: nil, launch_template_version: 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? @launch_template_version = launch_template_version Jsii::Type.check_type(@launch_template_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "launchTemplateVersion") unless @launch_template_version.nil? end |
Instance Attribute Details
#launch_template_id ⇒ String? (readonly)
The ID of the launch template to use for faster launching for a Windows AMI.
905 906 907 |
# File 'image_builder/cfn_distribution_configuration.rb', line 905 def launch_template_id @launch_template_id end |
#launch_template_name ⇒ String? (readonly)
The name of the launch template to use for faster launching for a Windows AMI.
910 911 912 |
# File 'image_builder/cfn_distribution_configuration.rb', line 910 def launch_template_name @launch_template_name end |
#launch_template_version ⇒ String? (readonly)
The version of the launch template to use for faster launching for a Windows AMI.
915 916 917 |
# File 'image_builder/cfn_distribution_configuration.rb', line 915 def launch_template_version @launch_template_version end |
Class Method Details
.jsii_properties ⇒ Object
917 918 919 920 921 922 923 |
# File 'image_builder/cfn_distribution_configuration.rb', line 917 def self.jsii_properties { :launch_template_id => "launchTemplateId", :launch_template_name => "launchTemplateName", :launch_template_version => "launchTemplateVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
925 926 927 928 929 930 931 932 933 |
# File 'image_builder/cfn_distribution_configuration.rb', line 925 def to_jsii result = {} result.merge!({ "launchTemplateId" => @launch_template_id, "launchTemplateName" => @launch_template_name, "launchTemplateVersion" => @launch_template_version, }) result.compact end |