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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs.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.10.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.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 gkeClusterTarget A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster
 * (the GKE cluster can be zonal or regional)
 * @property nodePoolTargets GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
 * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
 * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
 */
public data class ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs(
    public val gkeClusterTarget: Output? = null,
    public val nodePoolTargets: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs.builder()
            .gkeClusterTarget(gkeClusterTarget?.applyValue({ args0 -> args0 }))
            .nodePoolTargets(
                nodePoolTargets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs].
 */
@PulumiTagMarker
public class ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgsBuilder internal constructor() {
    private var gkeClusterTarget: Output? = null

    private var nodePoolTargets:
        Output>? =
        null

    /**
     * @param value A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster
     * (the GKE cluster can be zonal or regional)
     */
    @JvmName("itukwqqmamhfsfhg")
    public suspend fun gkeClusterTarget(`value`: Output) {
        this.gkeClusterTarget = value
    }

    /**
     * @param value GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
     * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
     * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
     */
    @JvmName("xnyuvvvqfxactlot")
    public suspend fun nodePoolTargets(`value`: Output>) {
        this.nodePoolTargets = value
    }

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

    /**
     * @param values GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
     * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
     * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
     */
    @JvmName("scyffxccdottbwup")
    public suspend fun nodePoolTargets(values: List>) {
        this.nodePoolTargets = Output.all(values)
    }

    /**
     * @param value A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster
     * (the GKE cluster can be zonal or regional)
     */
    @JvmName("ufkcvqkxbolibsqi")
    public suspend fun gkeClusterTarget(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gkeClusterTarget = mapped
    }

    /**
     * @param value GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
     * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
     * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
     */
    @JvmName("barsiawesgpjalos")
    public suspend fun nodePoolTargets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodePoolTargets = mapped
    }

    /**
     * @param argument GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
     * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
     * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
     */
    @JvmName("hviyrduorgvsfnbj")
    public suspend fun nodePoolTargets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nodePoolTargets = mapped
    }

    /**
     * @param argument GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
     * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
     * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
     */
    @JvmName("uvfjqrjjxrjopxcs")
    public suspend fun nodePoolTargets(vararg argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nodePoolTargets = mapped
    }

    /**
     * @param argument GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
     * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
     * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
     */
    @JvmName("abxnwxjcxgvdkync")
    public suspend fun nodePoolTargets(argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.nodePoolTargets = mapped
    }

    /**
     * @param values GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT`
     * GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a `DEFAULT` GkeNodePoolTarget.
     * Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.
     */
    @JvmName("ynqxcpbghlskgmye")
    public suspend fun nodePoolTargets(vararg values: ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodePoolTargets = mapped
    }

    internal fun build(): ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs =
        ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs(
            gkeClusterTarget = gkeClusterTarget,
            nodePoolTargets = nodePoolTargets,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy