com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs.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.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property acceleratorCount The number of the accelerator cards of this type exposed to this instance. Often restricted to one of `1`, `2`, `4`, or `8`.
* - - -
* @property acceleratorType The short name of the accelerator type to expose to this instance. For example, `nvidia-tesla-k80`.
*/
public data class ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs(
public val acceleratorCount: Output,
public val acceleratorType: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs =
com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs.builder()
.acceleratorCount(acceleratorCount.applyValue({ args0 -> args0 }))
.acceleratorType(acceleratorType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs].
*/
@PulumiTagMarker
public class ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgsBuilder
internal constructor() {
private var acceleratorCount: Output? = null
private var acceleratorType: Output? = null
/**
* @param value The number of the accelerator cards of this type exposed to this instance. Often restricted to one of `1`, `2`, `4`, or `8`.
* - - -
*/
@JvmName("qfapowbrcyhppyxm")
public suspend fun acceleratorCount(`value`: Output) {
this.acceleratorCount = value
}
/**
* @param value The short name of the accelerator type to expose to this instance. For example, `nvidia-tesla-k80`.
*/
@JvmName("bopmgxhdnnlttgbk")
public suspend fun acceleratorType(`value`: Output) {
this.acceleratorType = value
}
/**
* @param value The number of the accelerator cards of this type exposed to this instance. Often restricted to one of `1`, `2`, `4`, or `8`.
* - - -
*/
@JvmName("dsxwgkdysgloxqkb")
public suspend fun acceleratorCount(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.acceleratorCount = mapped
}
/**
* @param value The short name of the accelerator type to expose to this instance. For example, `nvidia-tesla-k80`.
*/
@JvmName("toksljbfdtkispym")
public suspend fun acceleratorType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.acceleratorType = mapped
}
internal fun build(): ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs =
ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigAcceleratorArgs(
acceleratorCount = acceleratorCount ?: throw PulumiNullFieldException("acceleratorCount"),
acceleratorType = acceleratorType ?: throw PulumiNullFieldException("acceleratorType"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy