All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@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.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property nodePool The target GKE node pool.
 * @property nodePoolConfig The configuration for the GKE node pool.
 * If specified, Dataproc attempts to create a node pool with the specified shape.
 * If one with the same name already exists, it is verified against all specified fields.
 * If a field differs, the virtual cluster creation will fail.
 * @property roles The roles associated with the GKE node pool.
 * One of `"DEFAULT"`, `"CONTROLLER"`, `"SPARK_DRIVER"` or `"SPARK_EXECUTOR"`.
 */
public data class
ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs(
    public val nodePool: Output,
    public val nodePoolConfig: Output? =
        null,
    public val roles: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs.builder()
            .nodePool(nodePool.applyValue({ args0 -> args0 }))
            .nodePoolConfig(nodePoolConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .roles(roles.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs].
 */
@PulumiTagMarker
public class
ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgsBuilder
internal constructor() {
    private var nodePool: Output? = null

    private var nodePoolConfig:
        Output? =
        null

    private var roles: Output>? = null

    /**
     * @param value The target GKE node pool.
     */
    @JvmName("lbvvsksgrtrlwals")
    public suspend fun nodePool(`value`: Output) {
        this.nodePool = value
    }

    /**
     * @param value The configuration for the GKE node pool.
     * If specified, Dataproc attempts to create a node pool with the specified shape.
     * If one with the same name already exists, it is verified against all specified fields.
     * If a field differs, the virtual cluster creation will fail.
     */
    @JvmName("lxwicupwrqhnvnkx")
    public suspend fun nodePoolConfig(`value`: Output) {
        this.nodePoolConfig = value
    }

    /**
     * @param value The roles associated with the GKE node pool.
     * One of `"DEFAULT"`, `"CONTROLLER"`, `"SPARK_DRIVER"` or `"SPARK_EXECUTOR"`.
     */
    @JvmName("jkwkboijiefaqrgb")
    public suspend fun roles(`value`: Output>) {
        this.roles = value
    }

    @JvmName("gdfpifcupifihpqw")
    public suspend fun roles(vararg values: Output) {
        this.roles = Output.all(values.asList())
    }

    /**
     * @param values The roles associated with the GKE node pool.
     * One of `"DEFAULT"`, `"CONTROLLER"`, `"SPARK_DRIVER"` or `"SPARK_EXECUTOR"`.
     */
    @JvmName("wfvpywxxpknrevao")
    public suspend fun roles(values: List>) {
        this.roles = Output.all(values)
    }

    /**
     * @param value The target GKE node pool.
     */
    @JvmName("sxqrrcbmbbkcswsf")
    public suspend fun nodePool(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodePool = mapped
    }

    /**
     * @param value The configuration for the GKE node pool.
     * If specified, Dataproc attempts to create a node pool with the specified shape.
     * If one with the same name already exists, it is verified against all specified fields.
     * If a field differs, the virtual cluster creation will fail.
     */
    @JvmName("yrollqmdtnjxfnxb")
    public suspend fun nodePoolConfig(`value`: ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodePoolConfig = mapped
    }

    /**
     * @param argument The configuration for the GKE node pool.
     * If specified, Dataproc attempts to create a node pool with the specified shape.
     * If one with the same name already exists, it is verified against all specified fields.
     * If a field differs, the virtual cluster creation will fail.
     */
    @JvmName("mbouefbvcbogwifp")
    public suspend fun nodePoolConfig(argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.nodePoolConfig = mapped
    }

    /**
     * @param value The roles associated with the GKE node pool.
     * One of `"DEFAULT"`, `"CONTROLLER"`, `"SPARK_DRIVER"` or `"SPARK_EXECUTOR"`.
     */
    @JvmName("sqovehsyeylohkpd")
    public suspend fun roles(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param values The roles associated with the GKE node pool.
     * One of `"DEFAULT"`, `"CONTROLLER"`, `"SPARK_DRIVER"` or `"SPARK_EXECUTOR"`.
     */
    @JvmName("gicxfhqrtjqstgnm")
    public suspend fun roles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    internal fun build(): ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs =
        ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs(
            nodePool = nodePool ?: throw PulumiNullFieldException("nodePool"),
            nodePoolConfig = nodePoolConfig,
            roles = roles ?: throw PulumiNullFieldException("roles"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy