Class: AWSCDK::ImageBuilder::CfnDistributionConfiguration::FastLaunchLaunchTemplateSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
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_name or the launch_template_id , but not both.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(launch_template_id: nil, launch_template_name: nil, launch_template_version: nil) ⇒ FastLaunchLaunchTemplateSpecificationProperty

Returns a new instance of FastLaunchLaunchTemplateSpecificationProperty.

Parameters:

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

    The ID of the launch template to use for faster launching for a Windows AMI.

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

    The name of the launch template to use for faster launching for a Windows AMI.

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

    The version of the launch template to use for faster launching for a Windows AMI.



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_idString? (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_nameString? (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_versionString? (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_propertiesObject



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_jsiiObject



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