
com.pulumi.awsnative.batch.kotlin.outputs.ComputeEnvironmentLaunchTemplateSpecification.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.batch.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property launchTemplateId The ID of the launch template.
* @property launchTemplateName The name of the launch template.
* @property version The version number of the launch template, `$Latest` , or `$Default` .
* If the value is `$Latest` , the latest version of the launch template is used. If the value is `$Default` , the default version of the launch template is used.
* > If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the `updateToLatestImageVersion` parameter for the compute environment is set to `true` . During an infrastructure update, if either `$Latest` or `$Default` is specified, AWS Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the *AWS Batch User Guide* .
* Default: `$Default` .
*/
public data class ComputeEnvironmentLaunchTemplateSpecification(
public val launchTemplateId: String? = null,
public val launchTemplateName: String? = null,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.batch.outputs.ComputeEnvironmentLaunchTemplateSpecification): ComputeEnvironmentLaunchTemplateSpecification =
ComputeEnvironmentLaunchTemplateSpecification(
launchTemplateId = javaType.launchTemplateId().map({ args0 -> args0 }).orElse(null),
launchTemplateName = javaType.launchTemplateName().map({ args0 -> args0 }).orElse(null),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy