modifyLaunchTemplate
Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.
Samples
fun main() {
//sampleStart
// This example specifies version 2 as the default version of the specified launch template.
val resp = ec2Client.modifyLaunchTemplate {
launchTemplateId = "lt-0abcd290751193123"
defaultVersion = "2"
}
//sampleEnd
}