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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterVirtualClusterConfigArgs.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.ClusterVirtualClusterConfigArgs.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.jvm.JvmName

/**
 *
 * @property auxiliaryServicesConfig Configuration of auxiliary services used by this cluster.
 * Structure defined below.
 * @property kubernetesClusterConfig The configuration for running the Dataproc cluster on Kubernetes.
 * Structure defined below.
 * - - -
 * @property stagingBucket The Cloud Storage staging bucket used to stage files,
 * such as Hadoop jars, between client machines and the cluster.
 * Note: If you don't explicitly specify a `staging_bucket`
 * then GCP will auto create / assign one for you. However, you are not guaranteed
 * an auto generated bucket which is solely dedicated to your cluster; it may be shared
 * with other clusters in the same region/zone also choosing to use the auto generation
 * option.
 */
public data class ClusterVirtualClusterConfigArgs(
    public val auxiliaryServicesConfig: Output? = null,
    public val kubernetesClusterConfig: Output? = null,
    public val stagingBucket: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigArgs.builder()
            .auxiliaryServicesConfig(
                auxiliaryServicesConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .kubernetesClusterConfig(
                kubernetesClusterConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .stagingBucket(stagingBucket?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterVirtualClusterConfigArgs].
 */
@PulumiTagMarker
public class ClusterVirtualClusterConfigArgsBuilder internal constructor() {
    private var auxiliaryServicesConfig:
        Output? = null

    private var kubernetesClusterConfig:
        Output? = null

    private var stagingBucket: Output? = null

    /**
     * @param value Configuration of auxiliary services used by this cluster.
     * Structure defined below.
     */
    @JvmName("dllbbfsstlaxiuij")
    public suspend fun auxiliaryServicesConfig(`value`: Output) {
        this.auxiliaryServicesConfig = value
    }

    /**
     * @param value The configuration for running the Dataproc cluster on Kubernetes.
     * Structure defined below.
     * - - -
     */
    @JvmName("dygavodhomiqhqmn")
    public suspend fun kubernetesClusterConfig(`value`: Output) {
        this.kubernetesClusterConfig = value
    }

    /**
     * @param value The Cloud Storage staging bucket used to stage files,
     * such as Hadoop jars, between client machines and the cluster.
     * Note: If you don't explicitly specify a `staging_bucket`
     * then GCP will auto create / assign one for you. However, you are not guaranteed
     * an auto generated bucket which is solely dedicated to your cluster; it may be shared
     * with other clusters in the same region/zone also choosing to use the auto generation
     * option.
     */
    @JvmName("xswqsijqfrylrsdw")
    public suspend fun stagingBucket(`value`: Output) {
        this.stagingBucket = value
    }

    /**
     * @param value Configuration of auxiliary services used by this cluster.
     * Structure defined below.
     */
    @JvmName("gpnkdvreqecluqvq")
    public suspend fun auxiliaryServicesConfig(`value`: ClusterVirtualClusterConfigAuxiliaryServicesConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auxiliaryServicesConfig = mapped
    }

    /**
     * @param argument Configuration of auxiliary services used by this cluster.
     * Structure defined below.
     */
    @JvmName("dvcqysvghdliahbu")
    public suspend fun auxiliaryServicesConfig(argument: suspend ClusterVirtualClusterConfigAuxiliaryServicesConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterVirtualClusterConfigAuxiliaryServicesConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.auxiliaryServicesConfig = mapped
    }

    /**
     * @param value The configuration for running the Dataproc cluster on Kubernetes.
     * Structure defined below.
     * - - -
     */
    @JvmName("ujnaujidvjkhdajv")
    public suspend fun kubernetesClusterConfig(`value`: ClusterVirtualClusterConfigKubernetesClusterConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kubernetesClusterConfig = mapped
    }

    /**
     * @param argument The configuration for running the Dataproc cluster on Kubernetes.
     * Structure defined below.
     * - - -
     */
    @JvmName("btjslpjqpcupokmn")
    public suspend fun kubernetesClusterConfig(argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterVirtualClusterConfigKubernetesClusterConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.kubernetesClusterConfig = mapped
    }

    /**
     * @param value The Cloud Storage staging bucket used to stage files,
     * such as Hadoop jars, between client machines and the cluster.
     * Note: If you don't explicitly specify a `staging_bucket`
     * then GCP will auto create / assign one for you. However, you are not guaranteed
     * an auto generated bucket which is solely dedicated to your cluster; it may be shared
     * with other clusters in the same region/zone also choosing to use the auto generation
     * option.
     */
    @JvmName("veatwxrdalrpjqgi")
    public suspend fun stagingBucket(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stagingBucket = mapped
    }

    internal fun build(): ClusterVirtualClusterConfigArgs = ClusterVirtualClusterConfigArgs(
        auxiliaryServicesConfig = auxiliaryServicesConfig,
        kubernetesClusterConfig = kubernetesClusterConfig,
        stagingBucket = stagingBucket,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy