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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigSoftwareConfigArgs.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.ClusterClusterConfigSoftwareConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property imageVersion The Cloud Dataproc image version to use
 * for the cluster - this controls the sets of software versions
 * installed onto the nodes when you create clusters. If not specified, defaults to the
 * latest version. For a list of valid versions see
 * [Cloud Dataproc versions](https://cloud.google.com/dataproc/docs/concepts/dataproc-versions)
 * @property optionalComponents The set of optional components to activate on the cluster. See [Available Optional Components](https://cloud.google.com/dataproc/docs/concepts/components/overview#available_optional_components).
 * - - -
 * @property overrideProperties A list of override and additional properties (key/value pairs)
 * used to modify various aspects of the common configuration files used when creating
 * a cluster. For a list of valid properties please see
 * [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties)
 * @property properties A list of the properties used to set the daemon config files.
 * This will include any values supplied by the user via `cluster_config.software_config.override_properties`
 */
public data class ClusterClusterConfigSoftwareConfigArgs(
    public val imageVersion: Output? = null,
    public val optionalComponents: Output>? = null,
    public val overrideProperties: Output>? = null,
    public val properties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigSoftwareConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigSoftwareConfigArgs.builder()
            .imageVersion(imageVersion?.applyValue({ args0 -> args0 }))
            .optionalComponents(optionalComponents?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .overrideProperties(
                overrideProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ClusterClusterConfigSoftwareConfigArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigSoftwareConfigArgsBuilder internal constructor() {
    private var imageVersion: Output? = null

    private var optionalComponents: Output>? = null

    private var overrideProperties: Output>? = null

    private var properties: Output>? = null

    /**
     * @param value The Cloud Dataproc image version to use
     * for the cluster - this controls the sets of software versions
     * installed onto the nodes when you create clusters. If not specified, defaults to the
     * latest version. For a list of valid versions see
     * [Cloud Dataproc versions](https://cloud.google.com/dataproc/docs/concepts/dataproc-versions)
     */
    @JvmName("dwemqrwawcqgyxaf")
    public suspend fun imageVersion(`value`: Output) {
        this.imageVersion = value
    }

    /**
     * @param value The set of optional components to activate on the cluster. See [Available Optional Components](https://cloud.google.com/dataproc/docs/concepts/components/overview#available_optional_components).
     * - - -
     */
    @JvmName("qskwoacakfambiat")
    public suspend fun optionalComponents(`value`: Output>) {
        this.optionalComponents = value
    }

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

    /**
     * @param values The set of optional components to activate on the cluster. See [Available Optional Components](https://cloud.google.com/dataproc/docs/concepts/components/overview#available_optional_components).
     * - - -
     */
    @JvmName("nafckepskrtgmxsj")
    public suspend fun optionalComponents(values: List>) {
        this.optionalComponents = Output.all(values)
    }

    /**
     * @param value A list of override and additional properties (key/value pairs)
     * used to modify various aspects of the common configuration files used when creating
     * a cluster. For a list of valid properties please see
     * [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties)
     */
    @JvmName("okxrhlrvjgyyypha")
    public suspend fun overrideProperties(`value`: Output>) {
        this.overrideProperties = value
    }

    /**
     * @param value A list of the properties used to set the daemon config files.
     * This will include any values supplied by the user via `cluster_config.software_config.override_properties`
     */
    @JvmName("jvromelphjpvspmw")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value The Cloud Dataproc image version to use
     * for the cluster - this controls the sets of software versions
     * installed onto the nodes when you create clusters. If not specified, defaults to the
     * latest version. For a list of valid versions see
     * [Cloud Dataproc versions](https://cloud.google.com/dataproc/docs/concepts/dataproc-versions)
     */
    @JvmName("lpwgxtymcbsymeiu")
    public suspend fun imageVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageVersion = mapped
    }

    /**
     * @param value The set of optional components to activate on the cluster. See [Available Optional Components](https://cloud.google.com/dataproc/docs/concepts/components/overview#available_optional_components).
     * - - -
     */
    @JvmName("qxdwwgiplpwjqvrx")
    public suspend fun optionalComponents(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.optionalComponents = mapped
    }

    /**
     * @param values The set of optional components to activate on the cluster. See [Available Optional Components](https://cloud.google.com/dataproc/docs/concepts/components/overview#available_optional_components).
     * - - -
     */
    @JvmName("xpwtjrdwjvgythjb")
    public suspend fun optionalComponents(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.optionalComponents = mapped
    }

    /**
     * @param value A list of override and additional properties (key/value pairs)
     * used to modify various aspects of the common configuration files used when creating
     * a cluster. For a list of valid properties please see
     * [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties)
     */
    @JvmName("wbrxrkdwbrnmbshn")
    public suspend fun overrideProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrideProperties = mapped
    }

    /**
     * @param values A list of override and additional properties (key/value pairs)
     * used to modify various aspects of the common configuration files used when creating
     * a cluster. For a list of valid properties please see
     * [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties)
     */
    @JvmName("meijrwdbmdubjdng")
    public fun overrideProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrideProperties = mapped
    }

    /**
     * @param value A list of the properties used to set the daemon config files.
     * This will include any values supplied by the user via `cluster_config.software_config.override_properties`
     */
    @JvmName("odbopnddywcypsro")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values A list of the properties used to set the daemon config files.
     * This will include any values supplied by the user via `cluster_config.software_config.override_properties`
     */
    @JvmName("ocjkffrlmklfpoqb")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    internal fun build(): ClusterClusterConfigSoftwareConfigArgs =
        ClusterClusterConfigSoftwareConfigArgs(
            imageVersion = imageVersion,
            optionalComponents = optionalComponents,
            overrideProperties = overrideProperties,
            properties = properties,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy