com.pulumi.aws.imagebuilder.kotlin.inputs.DistributionConfigurationDistributionFastLaunchConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.imagebuilder.kotlin.inputs
import com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionFastLaunchConfigurationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property accountId The owner account ID for the fast-launch enabled Windows AMI.
* @property enabled A Boolean that represents the current state of faster launching for the Windows AMI. Set to `true` to start using Windows faster launching, or `false` to stop using it.
* @property launchTemplate Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below.
* @property maxParallelLaunches The maximum number of parallel instances that are launched for creating resources.
* @property snapshotConfiguration Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below.
*/
public data class DistributionConfigurationDistributionFastLaunchConfigurationArgs(
public val accountId: Output,
public val enabled: Output,
public val launchTemplate: Output? =
null,
public val maxParallelLaunches: Output? = null,
public val snapshotConfiguration: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionFastLaunchConfigurationArgs =
com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionFastLaunchConfigurationArgs.builder()
.accountId(accountId.applyValue({ args0 -> args0 }))
.enabled(enabled.applyValue({ args0 -> args0 }))
.launchTemplate(launchTemplate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxParallelLaunches(maxParallelLaunches?.applyValue({ args0 -> args0 }))
.snapshotConfiguration(
snapshotConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [DistributionConfigurationDistributionFastLaunchConfigurationArgs].
*/
@PulumiTagMarker
public class DistributionConfigurationDistributionFastLaunchConfigurationArgsBuilder internal constructor() {
private var accountId: Output? = null
private var enabled: Output? = null
private var launchTemplate:
Output? = null
private var maxParallelLaunches: Output? = null
private var snapshotConfiguration:
Output? =
null
/**
* @param value The owner account ID for the fast-launch enabled Windows AMI.
*/
@JvmName("ajvlhdqssfuayqee")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value A Boolean that represents the current state of faster launching for the Windows AMI. Set to `true` to start using Windows faster launching, or `false` to stop using it.
*/
@JvmName("grhxsphugihmhgma")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below.
*/
@JvmName("yqhhmuwfiofrfyhl")
public suspend fun launchTemplate(`value`: Output) {
this.launchTemplate = value
}
/**
* @param value The maximum number of parallel instances that are launched for creating resources.
*/
@JvmName("qvvnhrtmlwlshgll")
public suspend fun maxParallelLaunches(`value`: Output) {
this.maxParallelLaunches = value
}
/**
* @param value Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below.
*/
@JvmName("voktaxpknieeushi")
public suspend fun snapshotConfiguration(`value`: Output) {
this.snapshotConfiguration = value
}
/**
* @param value The owner account ID for the fast-launch enabled Windows AMI.
*/
@JvmName("newfwwyfhqcxsytq")
public suspend fun accountId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.accountId = mapped
}
/**
* @param value A Boolean that represents the current state of faster launching for the Windows AMI. Set to `true` to start using Windows faster launching, or `false` to stop using it.
*/
@JvmName("gsmvtiefyimmpsux")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below.
*/
@JvmName("rwchhgqvfcublywl")
public suspend fun launchTemplate(`value`: DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplateArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.launchTemplate = mapped
}
/**
* @param argument Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below.
*/
@JvmName("tdshwrlrgjwpqdxl")
public suspend fun launchTemplate(argument: suspend DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplateArgsBuilder.() -> Unit) {
val toBeMapped =
DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplateArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.launchTemplate = mapped
}
/**
* @param value The maximum number of parallel instances that are launched for creating resources.
*/
@JvmName("glvrfmjqgndqgxsg")
public suspend fun maxParallelLaunches(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxParallelLaunches = mapped
}
/**
* @param value Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below.
*/
@JvmName("pdrowkrelhuyxhhb")
public suspend fun snapshotConfiguration(`value`: DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.snapshotConfiguration = mapped
}
/**
* @param argument Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below.
*/
@JvmName("prmoupxodrqmqdfm")
public suspend fun snapshotConfiguration(argument: suspend DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfigurationArgsBuilder.() -> Unit) {
val toBeMapped =
DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.snapshotConfiguration = mapped
}
internal fun build(): DistributionConfigurationDistributionFastLaunchConfigurationArgs =
DistributionConfigurationDistributionFastLaunchConfigurationArgs(
accountId = accountId ?: throw PulumiNullFieldException("accountId"),
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
launchTemplate = launchTemplate,
maxParallelLaunches = maxParallelLaunches,
snapshotConfiguration = snapshotConfiguration,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy