com.pulumi.gcp.dataproc.kotlin.outputs.ClusterClusterConfigPreemptibleWorkerConfig.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
import kotlin.collections.List
/**
*
* @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 ClusterClusterConfigPreemptibleWorkerConfig(
public val diskConfig: ClusterClusterConfigPreemptibleWorkerConfigDiskConfig? = null,
public val instanceFlexibilityPolicy: ClusterClusterConfigPreemptibleWorkerConfigInstanceFlexibilityPolicy? = null,
public val instanceNames: List? = null,
public val numInstances: Int? = null,
public val preemptibility: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.ClusterClusterConfigPreemptibleWorkerConfig): ClusterClusterConfigPreemptibleWorkerConfig = ClusterClusterConfigPreemptibleWorkerConfig(
diskConfig = javaType.diskConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataproc.kotlin.outputs.ClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Companion.toKotlin(args0)
})
}).orElse(null),
instanceFlexibilityPolicy = javaType.instanceFlexibilityPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataproc.kotlin.outputs.ClusterClusterConfigPreemptibleWorkerConfigInstanceFlexibilityPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
instanceNames = javaType.instanceNames().map({ args0 -> args0 }),
numInstances = javaType.numInstances().map({ args0 -> args0 }).orElse(null),
preemptibility = javaType.preemptibility().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy