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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLaunchTemplateConfigurationstatic final classAn implementation forLaunchTemplateConfiguration -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default String(experimental) The AWS account ID that owns the launch template.(experimental) The launch template to apply the distributed AMI to.default Boolean(experimental) Whether to set the new launch template version that is created as the default launch template version.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
(experimental) The AWS account ID that owns the launch template.Default: The current account is used
-
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
-