
com.pulumi.awsnative.batch.kotlin.inputs.ComputeEnvironmentLaunchTemplateSpecificationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.batch.kotlin.inputs
import com.pulumi.awsnative.batch.inputs.ComputeEnvironmentLaunchTemplateSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 ComputeEnvironmentLaunchTemplateSpecificationArgs(
public val launchTemplateId: Output? = null,
public val launchTemplateName: Output? = null,
public val version: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.batch.inputs.ComputeEnvironmentLaunchTemplateSpecificationArgs =
com.pulumi.awsnative.batch.inputs.ComputeEnvironmentLaunchTemplateSpecificationArgs.builder()
.launchTemplateId(launchTemplateId?.applyValue({ args0 -> args0 }))
.launchTemplateName(launchTemplateName?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ComputeEnvironmentLaunchTemplateSpecificationArgs].
*/
@PulumiTagMarker
public class ComputeEnvironmentLaunchTemplateSpecificationArgsBuilder internal constructor() {
private var launchTemplateId: Output? = null
private var launchTemplateName: Output? = null
private var version: Output? = null
/**
* @param value The ID of the launch template.
*/
@JvmName("xwdunxetmrviahyl")
public suspend fun launchTemplateId(`value`: Output) {
this.launchTemplateId = value
}
/**
* @param value The name of the launch template.
*/
@JvmName("chdaveoepdjhdwkg")
public suspend fun launchTemplateName(`value`: Output) {
this.launchTemplateName = value
}
/**
* @param value 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` .
*/
@JvmName("uuajmtsfhxfdrscb")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value The ID of the launch template.
*/
@JvmName("wstaqdfjmlcrfeyk")
public suspend fun launchTemplateId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.launchTemplateId = mapped
}
/**
* @param value The name of the launch template.
*/
@JvmName("ihfjsfxkjwuidplt")
public suspend fun launchTemplateName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.launchTemplateName = mapped
}
/**
* @param value 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` .
*/
@JvmName("yluvptamcdhylrjd")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): ComputeEnvironmentLaunchTemplateSpecificationArgs =
ComputeEnvironmentLaunchTemplateSpecificationArgs(
launchTemplateId = launchTemplateId,
launchTemplateName = launchTemplateName,
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy