com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigPreemptibleWorkerConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.dataproc.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigPreemptibleWorkerConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property diskConfig Disk Config
* @property instanceFlexibilityPolicy Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
* @property instanceNames List of preemptible instance names which have been assigned
* to the cluster.
* @property numInstances Specifies the number of preemptible nodes to create.
* Defaults to 0.
* @property preemptibility Specifies the preemptibility of the secondary workers. The default value is `PREEMPTIBLE`
* Accepted values are:
* * PREEMPTIBILITY_UNSPECIFIED
* * NON_PREEMPTIBLE
* * PREEMPTIBLE
*/
public data class ClusterClusterConfigPreemptibleWorkerConfigArgs(
public val diskConfig: Output? = null,
public val instanceFlexibilityPolicy: Output? = null,
public val instanceNames: Output>? = null,
public val numInstances: Output? = null,
public val preemptibility: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigPreemptibleWorkerConfigArgs =
com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigPreemptibleWorkerConfigArgs.builder()
.diskConfig(diskConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.instanceFlexibilityPolicy(
instanceFlexibilityPolicy?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.instanceNames(instanceNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.numInstances(numInstances?.applyValue({ args0 -> args0 }))
.preemptibility(preemptibility?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterClusterConfigPreemptibleWorkerConfigArgs].
*/
@PulumiTagMarker
public class ClusterClusterConfigPreemptibleWorkerConfigArgsBuilder internal constructor() {
private var diskConfig: Output? = null
private var instanceFlexibilityPolicy:
Output? = null
private var instanceNames: Output>? = null
private var numInstances: Output? = null
private var preemptibility: Output? = null
/**
* @param value Disk Config
*/
@JvmName("kvpwjqntdgavftdb")
public suspend fun diskConfig(`value`: Output) {
this.diskConfig = value
}
/**
* @param value Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
*/
@JvmName("skftsxtialuifnat")
public suspend fun instanceFlexibilityPolicy(`value`: Output) {
this.instanceFlexibilityPolicy = value
}
/**
* @param value List of preemptible instance names which have been assigned
* to the cluster.
*/
@JvmName("iqexhcixqfapojox")
public suspend fun instanceNames(`value`: Output>) {
this.instanceNames = value
}
@JvmName("iyvohphtaeoiayvw")
public suspend fun instanceNames(vararg values: Output) {
this.instanceNames = Output.all(values.asList())
}
/**
* @param values List of preemptible instance names which have been assigned
* to the cluster.
*/
@JvmName("vxtwlrdxcvvvwyap")
public suspend fun instanceNames(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy