com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs.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.ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property bootDiskSizeGb Size of the primary disk attached to each preemptible worker node, specified
* in GB. The smallest allowed disk size is 10GB. GCP will default to a predetermined
* computed value if not set (currently 500GB). Note: If SSDs are not
* attached, it also contains the HDFS data blocks and Hadoop working directories.
* @property bootDiskType The disk type of the primary disk attached to each preemptible worker node.
* One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.
* @property localSsdInterface Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express).
* @property numLocalSsds The amount of local SSD disks that will be
* attached to each preemptible worker node. Defaults to 0.
*/
public data class ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs(
public val bootDiskSizeGb: Output? = null,
public val bootDiskType: Output? = null,
public val localSsdInterface: Output? = null,
public val numLocalSsds: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs =
com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs.builder()
.bootDiskSizeGb(bootDiskSizeGb?.applyValue({ args0 -> args0 }))
.bootDiskType(bootDiskType?.applyValue({ args0 -> args0 }))
.localSsdInterface(localSsdInterface?.applyValue({ args0 -> args0 }))
.numLocalSsds(numLocalSsds?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs].
*/
@PulumiTagMarker
public class ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgsBuilder internal constructor() {
private var bootDiskSizeGb: Output? = null
private var bootDiskType: Output? = null
private var localSsdInterface: Output? = null
private var numLocalSsds: Output? = null
/**
* @param value Size of the primary disk attached to each preemptible worker node, specified
* in GB. The smallest allowed disk size is 10GB. GCP will default to a predetermined
* computed value if not set (currently 500GB). Note: If SSDs are not
* attached, it also contains the HDFS data blocks and Hadoop working directories.
*/
@JvmName("uqyqchakdibayahp")
public suspend fun bootDiskSizeGb(`value`: Output) {
this.bootDiskSizeGb = value
}
/**
* @param value The disk type of the primary disk attached to each preemptible worker node.
* One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.
*/
@JvmName("kcydjyaksrooauww")
public suspend fun bootDiskType(`value`: Output) {
this.bootDiskType = value
}
/**
* @param value Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express).
*/
@JvmName("thulgecvphixlmai")
public suspend fun localSsdInterface(`value`: Output) {
this.localSsdInterface = value
}
/**
* @param value The amount of local SSD disks that will be
* attached to each preemptible worker node. Defaults to 0.
*/
@JvmName("efoljciuceqpgenx")
public suspend fun numLocalSsds(`value`: Output) {
this.numLocalSsds = value
}
/**
* @param value Size of the primary disk attached to each preemptible worker node, specified
* in GB. The smallest allowed disk size is 10GB. GCP will default to a predetermined
* computed value if not set (currently 500GB). Note: If SSDs are not
* attached, it also contains the HDFS data blocks and Hadoop working directories.
*/
@JvmName("kqynpukdgbkbbcfc")
public suspend fun bootDiskSizeGb(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bootDiskSizeGb = mapped
}
/**
* @param value The disk type of the primary disk attached to each preemptible worker node.
* One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.
*/
@JvmName("vuisrvosldshsjfu")
public suspend fun bootDiskType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bootDiskType = mapped
}
/**
* @param value Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express).
*/
@JvmName("sccmahhffrobcvwb")
public suspend fun localSsdInterface(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.localSsdInterface = mapped
}
/**
* @param value The amount of local SSD disks that will be
* attached to each preemptible worker node. Defaults to 0.
*/
@JvmName("ofiouddgelnesymu")
public suspend fun numLocalSsds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.numLocalSsds = mapped
}
internal fun build(): ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs =
ClusterClusterConfigPreemptibleWorkerConfigDiskConfigArgs(
bootDiskSizeGb = bootDiskSizeGb,
bootDiskType = bootDiskType,
localSsdInterface = localSsdInterface,
numLocalSsds = numLocalSsds,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy