com.pulumi.gcp.dataproc.kotlin.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigArgs.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.ClusterVirtualClusterConfigKubernetesClusterConfigArgs.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.jvm.JvmName
/**
*
* @property gkeClusterConfig The configuration for running the Dataproc cluster on GKE.
* @property kubernetesNamespace A namespace within the Kubernetes cluster to deploy into.
* If this namespace does not exist, it is created.
* If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it.
* If not specified, the name of the Dataproc Cluster is used.
* @property kubernetesSoftwareConfig The software configuration for this Dataproc cluster running on Kubernetes.
*/
public data class ClusterVirtualClusterConfigKubernetesClusterConfigArgs(
public val gkeClusterConfig: Output,
public val kubernetesNamespace: Output? = null,
public val kubernetesSoftwareConfig: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigArgs =
com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigArgs.builder()
.gkeClusterConfig(gkeClusterConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.kubernetesNamespace(kubernetesNamespace?.applyValue({ args0 -> args0 }))
.kubernetesSoftwareConfig(
kubernetesSoftwareConfig.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ClusterVirtualClusterConfigKubernetesClusterConfigArgs].
*/
@PulumiTagMarker
public class ClusterVirtualClusterConfigKubernetesClusterConfigArgsBuilder internal constructor() {
private var gkeClusterConfig:
Output? = null
private var kubernetesNamespace: Output? = null
private var kubernetesSoftwareConfig:
Output? = null
/**
* @param value The configuration for running the Dataproc cluster on GKE.
*/
@JvmName("ipdnysnebdauoiys")
public suspend fun gkeClusterConfig(`value`: Output) {
this.gkeClusterConfig = value
}
/**
* @param value A namespace within the Kubernetes cluster to deploy into.
* If this namespace does not exist, it is created.
* If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it.
* If not specified, the name of the Dataproc Cluster is used.
*/
@JvmName("lewnnwynthcnwpnw")
public suspend fun kubernetesNamespace(`value`: Output) {
this.kubernetesNamespace = value
}
/**
* @param value The software configuration for this Dataproc cluster running on Kubernetes.
*/
@JvmName("lviuvyxywyqvtdef")
public suspend fun kubernetesSoftwareConfig(`value`: Output) {
this.kubernetesSoftwareConfig = value
}
/**
* @param value The configuration for running the Dataproc cluster on GKE.
*/
@JvmName("yxwrdidrfwpbcehg")
public suspend fun gkeClusterConfig(`value`: ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.gkeClusterConfig = mapped
}
/**
* @param argument The configuration for running the Dataproc cluster on GKE.
*/
@JvmName("gherxhwlckjwpmtn")
public suspend fun gkeClusterConfig(argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgsBuilder.() -> Unit) {
val toBeMapped =
ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.gkeClusterConfig = mapped
}
/**
* @param value A namespace within the Kubernetes cluster to deploy into.
* If this namespace does not exist, it is created.
* If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it.
* If not specified, the name of the Dataproc Cluster is used.
*/
@JvmName("vmxkvwibxmmrjbjj")
public suspend fun kubernetesNamespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kubernetesNamespace = mapped
}
/**
* @param value The software configuration for this Dataproc cluster running on Kubernetes.
*/
@JvmName("csmajdpdmmfcvqpq")
public suspend fun kubernetesSoftwareConfig(`value`: ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kubernetesSoftwareConfig = mapped
}
/**
* @param argument The software configuration for this Dataproc cluster running on Kubernetes.
*/
@JvmName("pafnmgkqunwshsgw")
public suspend fun kubernetesSoftwareConfig(argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgsBuilder.() -> Unit) {
val toBeMapped =
ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.kubernetesSoftwareConfig = mapped
}
internal fun build(): ClusterVirtualClusterConfigKubernetesClusterConfigArgs =
ClusterVirtualClusterConfigKubernetesClusterConfigArgs(
gkeClusterConfig = gkeClusterConfig ?: throw PulumiNullFieldException("gkeClusterConfig"),
kubernetesNamespace = kubernetesNamespace,
kubernetesSoftwareConfig = kubernetesSoftwareConfig ?: throw
PulumiNullFieldException("kubernetesSoftwareConfig"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy