
com.pulumi.awsnative.ec2.kotlin.inputs.SpotFleetFleetLaunchTemplateSpecificationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin.inputs
import com.pulumi.awsnative.ec2.inputs.SpotFleetFleetLaunchTemplateSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property launchTemplateId The ID of the launch template.
* You must specify the `LaunchTemplateId` or the `LaunchTemplateName` , but not both.
* @property launchTemplateName The name of the launch template.
* You must specify the `LaunchTemplateName` or the `LaunchTemplateId` , but not both.
* @property version The version number of the launch template.
* Specifying `$Latest` or `$Default` for the template version number is not supported. However, you can specify `LatestVersionNumber` or `DefaultVersionNumber` using the `Fn::GetAtt` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#aws-resource-ec2-launchtemplate-return-values-fn--getatt) .
*/
public data class SpotFleetFleetLaunchTemplateSpecificationArgs(
public val launchTemplateId: Output? = null,
public val launchTemplateName: Output? = null,
public val version: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.inputs.SpotFleetFleetLaunchTemplateSpecificationArgs =
com.pulumi.awsnative.ec2.inputs.SpotFleetFleetLaunchTemplateSpecificationArgs.builder()
.launchTemplateId(launchTemplateId?.applyValue({ args0 -> args0 }))
.launchTemplateName(launchTemplateName?.applyValue({ args0 -> args0 }))
.version(version.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SpotFleetFleetLaunchTemplateSpecificationArgs].
*/
@PulumiTagMarker
public class SpotFleetFleetLaunchTemplateSpecificationArgsBuilder 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.
* You must specify the `LaunchTemplateId` or the `LaunchTemplateName` , but not both.
*/
@JvmName("cyfvtkjlmootkaia")
public suspend fun launchTemplateId(`value`: Output) {
this.launchTemplateId = value
}
/**
* @param value The name of the launch template.
* You must specify the `LaunchTemplateName` or the `LaunchTemplateId` , but not both.
*/
@JvmName("jrtjawtmjmtydeos")
public suspend fun launchTemplateName(`value`: Output) {
this.launchTemplateName = value
}
/**
* @param value The version number of the launch template.
* Specifying `$Latest` or `$Default` for the template version number is not supported. However, you can specify `LatestVersionNumber` or `DefaultVersionNumber` using the `Fn::GetAtt` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#aws-resource-ec2-launchtemplate-return-values-fn--getatt) .
*/
@JvmName("nlydgsnurileivlv")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value The ID of the launch template.
* You must specify the `LaunchTemplateId` or the `LaunchTemplateName` , but not both.
*/
@JvmName("awbpgyeekajykhvc")
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.
* You must specify the `LaunchTemplateName` or the `LaunchTemplateId` , but not both.
*/
@JvmName("ntpggyjnxfejhqad")
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.
* Specifying `$Latest` or `$Default` for the template version number is not supported. However, you can specify `LatestVersionNumber` or `DefaultVersionNumber` using the `Fn::GetAtt` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#aws-resource-ec2-launchtemplate-return-values-fn--getatt) .
*/
@JvmName("stwvyxnvpdooywic")
public suspend fun version(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): SpotFleetFleetLaunchTemplateSpecificationArgs =
SpotFleetFleetLaunchTemplateSpecificationArgs(
launchTemplateId = launchTemplateId,
launchTemplateName = launchTemplateName,
version = version ?: throw PulumiNullFieldException("version"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy