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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigGceClusterConfigArgs.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.13.1.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.ClusterClusterConfigGceClusterConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property confidentialInstanceConfig Confidential Instance Config for clusters using [Confidential VMs](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/confidential-compute)
 * @property internalIpOnly By default, clusters are not restricted to internal IP addresses,
 * and will have ephemeral external IP addresses assigned to each instance. If set to true, all
 * instances in the cluster will only have internal IP addresses. Note: Private Google Access
 * (also known as `privateIpGoogleAccess`) must be enabled on the subnetwork that the cluster
 * will be launched in.
 * @property metadata A map of the Compute Engine metadata entries to add to all instances
 * (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
 * @property network The name or self_link of the Google Compute Engine
 * network to the cluster will be part of. Conflicts with `subnetwork`.
 * If neither is specified, this defaults to the "default" network.
 * @property nodeGroupAffinity Node Group Affinity for sole-tenant clusters.
 * @property reservationAffinity Reservation Affinity for consuming zonal reservation.
 * @property serviceAccount The service account to be used by the Node VMs.
 * If not specified, the "default" service account is used.
 * @property serviceAccountScopes The set of Google API scopes
 * to be made available on all of the node VMs under the `service_account`
 * specified. Both OAuth2 URLs and gcloud
 * short names are supported. To allow full access to all Cloud APIs, use the
 * `cloud-platform` scope. See a complete list of scopes [here](https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/set-scopes#--scopes).
 * @property shieldedInstanceConfig Shielded Instance Config for clusters using [Compute Engine Shielded VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
 * - - -
 * @property subnetwork The name or self_link of the Google Compute Engine
 * subnetwork the cluster will be part of. Conflicts with `network`.
 * @property tags The list of instance tags applied to instances in the cluster.
 * Tags are used to identify valid sources or targets for network firewalls.
 * @property zone The GCP zone where your data is stored and used (i.e. where
 * the master and the worker nodes will be created in). If `region` is set to 'global' (default)
 * then `zone` is mandatory, otherwise GCP is able to make use of [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/auto-zone)
 * to determine this automatically for you.
 * Note: This setting additionally determines and restricts
 * which computing resources are available for use with other configs such as
 * `cluster_config.master_config.machine_type` and `cluster_config.worker_config.machine_type`.
 */
public data class ClusterClusterConfigGceClusterConfigArgs(
    public val confidentialInstanceConfig: Output? = null,
    public val internalIpOnly: Output? = null,
    public val metadata: Output>? = null,
    public val network: Output? = null,
    public val nodeGroupAffinity: Output? =
        null,
    public val reservationAffinity: Output? = null,
    public val serviceAccount: Output? = null,
    public val serviceAccountScopes: Output>? = null,
    public val shieldedInstanceConfig: Output? = null,
    public val subnetwork: Output? = null,
    public val tags: Output>? = null,
    public val zone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigGceClusterConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigGceClusterConfigArgs.builder()
            .confidentialInstanceConfig(
                confidentialInstanceConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .internalIpOnly(internalIpOnly?.applyValue({ args0 -> args0 }))
            .metadata(
                metadata?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .network(network?.applyValue({ args0 -> args0 }))
            .nodeGroupAffinity(nodeGroupAffinity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .reservationAffinity(
                reservationAffinity?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .serviceAccount(serviceAccount?.applyValue({ args0 -> args0 }))
            .serviceAccountScopes(serviceAccountScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .shieldedInstanceConfig(
                shieldedInstanceConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .subnetwork(subnetwork?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .zone(zone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterClusterConfigGceClusterConfigArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigGceClusterConfigArgsBuilder internal constructor() {
    private var confidentialInstanceConfig:
        Output? = null

    private var internalIpOnly: Output? = null

    private var metadata: Output>? = null

    private var network: Output? = null

    private var nodeGroupAffinity: Output? =
        null

    private var reservationAffinity:
        Output? = null

    private var serviceAccount: Output? = null

    private var serviceAccountScopes: Output>? = null

    private var shieldedInstanceConfig:
        Output? = null

    private var subnetwork: Output? = null

    private var tags: Output>? = null

    private var zone: Output? = null

    /**
     * @param value Confidential Instance Config for clusters using [Confidential VMs](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/confidential-compute)
     */
    @JvmName("vhpdjghapfupkyds")
    public suspend fun confidentialInstanceConfig(`value`: Output) {
        this.confidentialInstanceConfig = value
    }

    /**
     * @param value By default, clusters are not restricted to internal IP addresses,
     * and will have ephemeral external IP addresses assigned to each instance. If set to true, all
     * instances in the cluster will only have internal IP addresses. Note: Private Google Access
     * (also known as `privateIpGoogleAccess`) must be enabled on the subnetwork that the cluster
     * will be launched in.
     */
    @JvmName("dnwqrreeiyrcdama")
    public suspend fun internalIpOnly(`value`: Output) {
        this.internalIpOnly = value
    }

    /**
     * @param value A map of the Compute Engine metadata entries to add to all instances
     * (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     */
    @JvmName("oyoofrdncjnjpept")
    public suspend fun metadata(`value`: Output>) {
        this.metadata = value
    }

    /**
     * @param value The name or self_link of the Google Compute Engine
     * network to the cluster will be part of. Conflicts with `subnetwork`.
     * If neither is specified, this defaults to the "default" network.
     */
    @JvmName("fjehwbpianiiupcu")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value Node Group Affinity for sole-tenant clusters.
     */
    @JvmName("mlnbsrmiqvdepvna")
    public suspend fun nodeGroupAffinity(`value`: Output) {
        this.nodeGroupAffinity = value
    }

    /**
     * @param value Reservation Affinity for consuming zonal reservation.
     */
    @JvmName("qovjcidppwexlnni")
    public suspend fun reservationAffinity(`value`: Output) {
        this.reservationAffinity = value
    }

    /**
     * @param value The service account to be used by the Node VMs.
     * If not specified, the "default" service account is used.
     */
    @JvmName("dbvxwpbrtihauawt")
    public suspend fun serviceAccount(`value`: Output) {
        this.serviceAccount = value
    }

    /**
     * @param value The set of Google API scopes
     * to be made available on all of the node VMs under the `service_account`
     * specified. Both OAuth2 URLs and gcloud
     * short names are supported. To allow full access to all Cloud APIs, use the
     * `cloud-platform` scope. See a complete list of scopes [here](https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/set-scopes#--scopes).
     */
    @JvmName("xovloaqsrvnihgis")
    public suspend fun serviceAccountScopes(`value`: Output>) {
        this.serviceAccountScopes = value
    }

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

    /**
     * @param values The set of Google API scopes
     * to be made available on all of the node VMs under the `service_account`
     * specified. Both OAuth2 URLs and gcloud
     * short names are supported. To allow full access to all Cloud APIs, use the
     * `cloud-platform` scope. See a complete list of scopes [here](https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/set-scopes#--scopes).
     */
    @JvmName("cvblsvipemcjqkqc")
    public suspend fun serviceAccountScopes(values: List>) {
        this.serviceAccountScopes = Output.all(values)
    }

    /**
     * @param value Shielded Instance Config for clusters using [Compute Engine Shielded VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
     * - - -
     */
    @JvmName("ljipoknbhdccoslj")
    public suspend fun shieldedInstanceConfig(`value`: Output) {
        this.shieldedInstanceConfig = value
    }

    /**
     * @param value The name or self_link of the Google Compute Engine
     * subnetwork the cluster will be part of. Conflicts with `network`.
     */
    @JvmName("negflohltyuhwnvf")
    public suspend fun subnetwork(`value`: Output) {
        this.subnetwork = value
    }

    /**
     * @param value The list of instance tags applied to instances in the cluster.
     * Tags are used to identify valid sources or targets for network firewalls.
     */
    @JvmName("rplyykckhiobbrhw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The list of instance tags applied to instances in the cluster.
     * Tags are used to identify valid sources or targets for network firewalls.
     */
    @JvmName("jtxlcrbwuruocrgp")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The GCP zone where your data is stored and used (i.e. where
     * the master and the worker nodes will be created in). If `region` is set to 'global' (default)
     * then `zone` is mandatory, otherwise GCP is able to make use of [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/auto-zone)
     * to determine this automatically for you.
     * Note: This setting additionally determines and restricts
     * which computing resources are available for use with other configs such as
     * `cluster_config.master_config.machine_type` and `cluster_config.worker_config.machine_type`.
     */
    @JvmName("gkqgujeucijwttdq")
    public suspend fun zone(`value`: Output) {
        this.zone = value
    }

    /**
     * @param value Confidential Instance Config for clusters using [Confidential VMs](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/confidential-compute)
     */
    @JvmName("aadktduidirldidp")
    public suspend fun confidentialInstanceConfig(`value`: ClusterClusterConfigGceClusterConfigConfidentialInstanceConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.confidentialInstanceConfig = mapped
    }

    /**
     * @param argument Confidential Instance Config for clusters using [Confidential VMs](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/confidential-compute)
     */
    @JvmName("vxbekjjpvppsqtyb")
    public suspend fun confidentialInstanceConfig(argument: suspend ClusterClusterConfigGceClusterConfigConfidentialInstanceConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterClusterConfigGceClusterConfigConfidentialInstanceConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.confidentialInstanceConfig = mapped
    }

    /**
     * @param value By default, clusters are not restricted to internal IP addresses,
     * and will have ephemeral external IP addresses assigned to each instance. If set to true, all
     * instances in the cluster will only have internal IP addresses. Note: Private Google Access
     * (also known as `privateIpGoogleAccess`) must be enabled on the subnetwork that the cluster
     * will be launched in.
     */
    @JvmName("yuoqyphcfjdgnlio")
    public suspend fun internalIpOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.internalIpOnly = mapped
    }

    /**
     * @param value A map of the Compute Engine metadata entries to add to all instances
     * (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     */
    @JvmName("etvhrekbdirydouw")
    public suspend fun metadata(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param values A map of the Compute Engine metadata entries to add to all instances
     * (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
     */
    @JvmName("knvkevdxtndvhdry")
    public fun metadata(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param value The name or self_link of the Google Compute Engine
     * network to the cluster will be part of. Conflicts with `subnetwork`.
     * If neither is specified, this defaults to the "default" network.
     */
    @JvmName("vtnpdpuyeeshheph")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value Node Group Affinity for sole-tenant clusters.
     */
    @JvmName("nxwgalhjxotggrdp")
    public suspend fun nodeGroupAffinity(`value`: ClusterClusterConfigGceClusterConfigNodeGroupAffinityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeGroupAffinity = mapped
    }

    /**
     * @param argument Node Group Affinity for sole-tenant clusters.
     */
    @JvmName("jllvflcwfxhawove")
    public suspend fun nodeGroupAffinity(argument: suspend ClusterClusterConfigGceClusterConfigNodeGroupAffinityArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterClusterConfigGceClusterConfigNodeGroupAffinityArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.nodeGroupAffinity = mapped
    }

    /**
     * @param value Reservation Affinity for consuming zonal reservation.
     */
    @JvmName("duajdnswofgqadby")
    public suspend fun reservationAffinity(`value`: ClusterClusterConfigGceClusterConfigReservationAffinityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reservationAffinity = mapped
    }

    /**
     * @param argument Reservation Affinity for consuming zonal reservation.
     */
    @JvmName("eidwqwhygwduborl")
    public suspend fun reservationAffinity(argument: suspend ClusterClusterConfigGceClusterConfigReservationAffinityArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterClusterConfigGceClusterConfigReservationAffinityArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.reservationAffinity = mapped
    }

    /**
     * @param value The service account to be used by the Node VMs.
     * If not specified, the "default" service account is used.
     */
    @JvmName("vtvhwiiuqxkeiodx")
    public suspend fun serviceAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccount = mapped
    }

    /**
     * @param value The set of Google API scopes
     * to be made available on all of the node VMs under the `service_account`
     * specified. Both OAuth2 URLs and gcloud
     * short names are supported. To allow full access to all Cloud APIs, use the
     * `cloud-platform` scope. See a complete list of scopes [here](https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/set-scopes#--scopes).
     */
    @JvmName("kikgmmsvfrvaiyjn")
    public suspend fun serviceAccountScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccountScopes = mapped
    }

    /**
     * @param values The set of Google API scopes
     * to be made available on all of the node VMs under the `service_account`
     * specified. Both OAuth2 URLs and gcloud
     * short names are supported. To allow full access to all Cloud APIs, use the
     * `cloud-platform` scope. See a complete list of scopes [here](https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/set-scopes#--scopes).
     */
    @JvmName("cfvrqhmsivmgwmtj")
    public suspend fun serviceAccountScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAccountScopes = mapped
    }

    /**
     * @param value Shielded Instance Config for clusters using [Compute Engine Shielded VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
     * - - -
     */
    @JvmName("xnwrinqqylhtikpa")
    public suspend fun shieldedInstanceConfig(`value`: ClusterClusterConfigGceClusterConfigShieldedInstanceConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shieldedInstanceConfig = mapped
    }

    /**
     * @param argument Shielded Instance Config for clusters using [Compute Engine Shielded VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
     * - - -
     */
    @JvmName("miykkkgvbemgccyh")
    public suspend fun shieldedInstanceConfig(argument: suspend ClusterClusterConfigGceClusterConfigShieldedInstanceConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterClusterConfigGceClusterConfigShieldedInstanceConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.shieldedInstanceConfig = mapped
    }

    /**
     * @param value The name or self_link of the Google Compute Engine
     * subnetwork the cluster will be part of. Conflicts with `network`.
     */
    @JvmName("hjiaowsmjafqixhb")
    public suspend fun subnetwork(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetwork = mapped
    }

    /**
     * @param value The list of instance tags applied to instances in the cluster.
     * Tags are used to identify valid sources or targets for network firewalls.
     */
    @JvmName("cgsbbaqejbpohqwa")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The list of instance tags applied to instances in the cluster.
     * Tags are used to identify valid sources or targets for network firewalls.
     */
    @JvmName("ppckynbanqqyjskg")
    public suspend fun tags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The GCP zone where your data is stored and used (i.e. where
     * the master and the worker nodes will be created in). If `region` is set to 'global' (default)
     * then `zone` is mandatory, otherwise GCP is able to make use of [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/auto-zone)
     * to determine this automatically for you.
     * Note: This setting additionally determines and restricts
     * which computing resources are available for use with other configs such as
     * `cluster_config.master_config.machine_type` and `cluster_config.worker_config.machine_type`.
     */
    @JvmName("nxeodflrhrdbdfwk")
    public suspend fun zone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zone = mapped
    }

    internal fun build(): ClusterClusterConfigGceClusterConfigArgs =
        ClusterClusterConfigGceClusterConfigArgs(
            confidentialInstanceConfig = confidentialInstanceConfig,
            internalIpOnly = internalIpOnly,
            metadata = metadata,
            network = network,
            nodeGroupAffinity = nodeGroupAffinity,
            reservationAffinity = reservationAffinity,
            serviceAccount = serviceAccount,
            serviceAccountScopes = serviceAccountScopes,
            shieldedInstanceConfig = shieldedInstanceConfig,
            subnetwork = subnetwork,
            tags = tags,
            zone = zone,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy