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

com.pulumi.gcp.dataplex.kotlin.inputs.TaskSparkInfrastructureSpecContainerImageArgs.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.dataplex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.TaskSparkInfrastructureSpecContainerImageArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property image Container image to use.
 * @property javaJars A list of Java JARS to add to the classpath. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
 * @property properties Override to common configuration of open source components installed on the Dataproc cluster. The properties to set on daemon config files. Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. For more information, see Cluster properties.
 * @property pythonPackages A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
 */
public data class TaskSparkInfrastructureSpecContainerImageArgs(
    public val image: Output? = null,
    public val javaJars: Output>? = null,
    public val properties: Output>? = null,
    public val pythonPackages: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataplex.inputs.TaskSparkInfrastructureSpecContainerImageArgs =
        com.pulumi.gcp.dataplex.inputs.TaskSparkInfrastructureSpecContainerImageArgs.builder()
            .image(image?.applyValue({ args0 -> args0 }))
            .javaJars(javaJars?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .pythonPackages(pythonPackages?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [TaskSparkInfrastructureSpecContainerImageArgs].
 */
@PulumiTagMarker
public class TaskSparkInfrastructureSpecContainerImageArgsBuilder internal constructor() {
    private var image: Output? = null

    private var javaJars: Output>? = null

    private var properties: Output>? = null

    private var pythonPackages: Output>? = null

    /**
     * @param value Container image to use.
     */
    @JvmName("lbxgnqyllplukhqr")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value A list of Java JARS to add to the classpath. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
     */
    @JvmName("njtsxfojytrgbavv")
    public suspend fun javaJars(`value`: Output>) {
        this.javaJars = value
    }

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

    /**
     * @param values A list of Java JARS to add to the classpath. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
     */
    @JvmName("rjockvhixtaxuljm")
    public suspend fun javaJars(values: List>) {
        this.javaJars = Output.all(values)
    }

    /**
     * @param value Override to common configuration of open source components installed on the Dataproc cluster. The properties to set on daemon config files. Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. For more information, see Cluster properties.
     */
    @JvmName("oxrjfstegepynoop")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
     */
    @JvmName("oykrnlmvqlntgrxa")
    public suspend fun pythonPackages(`value`: Output>) {
        this.pythonPackages = value
    }

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

    /**
     * @param values A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
     */
    @JvmName("mvttljeiyoakonuu")
    public suspend fun pythonPackages(values: List>) {
        this.pythonPackages = Output.all(values)
    }

    /**
     * @param value Container image to use.
     */
    @JvmName("plkwjtiwaflpnhea")
    public suspend fun image(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param value A list of Java JARS to add to the classpath. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
     */
    @JvmName("ukodaogxxaaeamyg")
    public suspend fun javaJars(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.javaJars = mapped
    }

    /**
     * @param values A list of Java JARS to add to the classpath. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
     */
    @JvmName("wgydfpmdxcbopepb")
    public suspend fun javaJars(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.javaJars = mapped
    }

    /**
     * @param value Override to common configuration of open source components installed on the Dataproc cluster. The properties to set on daemon config files. Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. For more information, see Cluster properties.
     */
    @JvmName("ydfinqktnoadjrim")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values Override to common configuration of open source components installed on the Dataproc cluster. The properties to set on daemon config files. Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. For more information, see Cluster properties.
     */
    @JvmName("mqhrdejullruebam")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
     */
    @JvmName("vuolehkiomuvyafj")
    public suspend fun pythonPackages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pythonPackages = mapped
    }

    /**
     * @param values A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
     */
    @JvmName("vpucqaeaevmthmnq")
    public suspend fun pythonPackages(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pythonPackages = mapped
    }

    internal fun build(): TaskSparkInfrastructureSpecContainerImageArgs =
        TaskSparkInfrastructureSpecContainerImageArgs(
            image = image,
            javaJars = javaJars,
            properties = properties,
            pythonPackages = pythonPackages,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy