com.pulumi.gcp.dataproc.kotlin.outputs.ClusterClusterConfigPreemptibleWorkerConfigDiskConfig.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 ClusterClusterConfigPreemptibleWorkerConfigDiskConfig(
public val bootDiskSizeGb: Int? = null,
public val bootDiskType: String? = null,
public val localSsdInterface: String? = null,
public val numLocalSsds: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.ClusterClusterConfigPreemptibleWorkerConfigDiskConfig): ClusterClusterConfigPreemptibleWorkerConfigDiskConfig =
ClusterClusterConfigPreemptibleWorkerConfigDiskConfig(
bootDiskSizeGb = javaType.bootDiskSizeGb().map({ args0 -> args0 }).orElse(null),
bootDiskType = javaType.bootDiskType().map({ args0 -> args0 }).orElse(null),
localSsdInterface = javaType.localSsdInterface().map({ args0 -> args0 }).orElse(null),
numLocalSsds = javaType.numLocalSsds().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy