Interface LaunchTemplateConfiguration

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
LaunchTemplateConfiguration.Jsii$Proxy

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:34.466Z") @Stability(Experimental) public interface LaunchTemplateConfiguration extends software.amazon.jsii.JsiiSerializable
(experimental) The launch template to apply the distributed AMI to.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.imagebuilder.alpha.*;
 import software.amazon.awscdk.services.ec2.*;
 LaunchTemplate launchTemplate;
 LaunchTemplateConfiguration launchTemplateConfiguration = LaunchTemplateConfiguration.builder()
         .launchTemplate(launchTemplate)
         // the properties below are optional
         .accountId("accountId")
         .setDefaultVersion(false)
         .build();
 
  • Method Details

    • getLaunchTemplate

      @Stability(Experimental) @NotNull ILaunchTemplate getLaunchTemplate()
      (experimental) The launch template to apply the distributed AMI to.

      A new launch template version will be created for the provided launch template with the distributed AMI applied.

      Note: The launch template should expose a launchTemplateId. Templates imported by name only are not supported.

    • getAccountId

      @Stability(Experimental) @Nullable default String getAccountId()
      (experimental) The AWS account ID that owns the launch template.

      Default: The current account is used

    • getSetDefaultVersion

      @Stability(Experimental) @Nullable default Boolean getSetDefaultVersion()
      (experimental) Whether to set the new launch template version that is created as the default launch template version.

      After creation of the launch template version containing the distributed AMI, it will be automatically set as the default version for the launch template.

      Default: false

    • builder

      @Stability(Experimental) static LaunchTemplateConfiguration.Builder builder()
      Returns:
      a LaunchTemplateConfiguration.Builder of LaunchTemplateConfiguration