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

com.pulumi.gcp.dataplex.kotlin.inputs.TaskSparkArgs.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.TaskSparkArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property archiveUris Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
 * @property fileUris Cloud Storage URIs of files to be placed in the working directory of each executor.
 * @property infrastructureSpec Infrastructure specification for the execution.
 * Structure is documented below.
 * @property mainClass The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. The execution args are passed in as a sequence of named process arguments (--key=value).
 * @property mainJarFileUri The Cloud Storage URI of the jar file that contains the main class. The execution args are passed in as a sequence of named process arguments (--key=value).
 * @property pythonScriptFile The Gcloud Storage URI of the main Python file to use as the driver. Must be a .py file. The execution args are passed in as a sequence of named process arguments (--key=value).
 * @property sqlScript The query text. The execution args are used to declare a set of script variables (set key='value';).
 * @property sqlScriptFile A reference to a query file. This can be the Cloud Storage URI of the query file or it can the path to a SqlScript Content. The execution args are used to declare a set of script variables (set key='value';).
 */
public data class TaskSparkArgs(
    public val archiveUris: Output>? = null,
    public val fileUris: Output>? = null,
    public val infrastructureSpec: Output? = null,
    public val mainClass: Output? = null,
    public val mainJarFileUri: Output? = null,
    public val pythonScriptFile: Output? = null,
    public val sqlScript: Output? = null,
    public val sqlScriptFile: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataplex.inputs.TaskSparkArgs =
        com.pulumi.gcp.dataplex.inputs.TaskSparkArgs.builder()
            .archiveUris(archiveUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .fileUris(fileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .infrastructureSpec(
                infrastructureSpec?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .mainClass(mainClass?.applyValue({ args0 -> args0 }))
            .mainJarFileUri(mainJarFileUri?.applyValue({ args0 -> args0 }))
            .pythonScriptFile(pythonScriptFile?.applyValue({ args0 -> args0 }))
            .sqlScript(sqlScript?.applyValue({ args0 -> args0 }))
            .sqlScriptFile(sqlScriptFile?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TaskSparkArgs].
 */
@PulumiTagMarker
public class TaskSparkArgsBuilder internal constructor() {
    private var archiveUris: Output>? = null

    private var fileUris: Output>? = null

    private var infrastructureSpec: Output? = null

    private var mainClass: Output? = null

    private var mainJarFileUri: Output? = null

    private var pythonScriptFile: Output? = null

    private var sqlScript: Output? = null

    private var sqlScriptFile: Output? = null

    /**
     * @param value Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("rnuiklrtxisnduow")
    public suspend fun archiveUris(`value`: Output>) {
        this.archiveUris = value
    }

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

    /**
     * @param values Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("qwbdvsqduvxcbslu")
    public suspend fun archiveUris(values: List>) {
        this.archiveUris = Output.all(values)
    }

    /**
     * @param value Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("vlsuiiadoupiituv")
    public suspend fun fileUris(`value`: Output>) {
        this.fileUris = value
    }

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

    /**
     * @param values Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("bdkrchdnekysnvxp")
    public suspend fun fileUris(values: List>) {
        this.fileUris = Output.all(values)
    }

    /**
     * @param value Infrastructure specification for the execution.
     * Structure is documented below.
     */
    @JvmName("mmbyhmeqakhbrvth")
    public suspend fun infrastructureSpec(`value`: Output) {
        this.infrastructureSpec = value
    }

    /**
     * @param value The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. The execution args are passed in as a sequence of named process arguments (--key=value).
     */
    @JvmName("gjyedgsjpjbpbjkj")
    public suspend fun mainClass(`value`: Output) {
        this.mainClass = value
    }

    /**
     * @param value The Cloud Storage URI of the jar file that contains the main class. The execution args are passed in as a sequence of named process arguments (--key=value).
     */
    @JvmName("ndxkfcqntthyqbrl")
    public suspend fun mainJarFileUri(`value`: Output) {
        this.mainJarFileUri = value
    }

    /**
     * @param value The Gcloud Storage URI of the main Python file to use as the driver. Must be a .py file. The execution args are passed in as a sequence of named process arguments (--key=value).
     */
    @JvmName("fjvexylpeterrjfb")
    public suspend fun pythonScriptFile(`value`: Output) {
        this.pythonScriptFile = value
    }

    /**
     * @param value The query text. The execution args are used to declare a set of script variables (set key='value';).
     */
    @JvmName("ukkwhdwltvoavhth")
    public suspend fun sqlScript(`value`: Output) {
        this.sqlScript = value
    }

    /**
     * @param value A reference to a query file. This can be the Cloud Storage URI of the query file or it can the path to a SqlScript Content. The execution args are used to declare a set of script variables (set key='value';).
     */
    @JvmName("migydshvolbicfkw")
    public suspend fun sqlScriptFile(`value`: Output) {
        this.sqlScriptFile = value
    }

    /**
     * @param value Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("vqkecfryynxgiocl")
    public suspend fun archiveUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param values Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("qnutmjmjpvtbxvtx")
    public suspend fun archiveUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param value Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("sxqtgolfkpwqdlwv")
    public suspend fun fileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param values Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("fhxdhavgmdxtcamq")
    public suspend fun fileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param value Infrastructure specification for the execution.
     * Structure is documented below.
     */
    @JvmName("ntrmrhhforrcwawc")
    public suspend fun infrastructureSpec(`value`: TaskSparkInfrastructureSpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.infrastructureSpec = mapped
    }

    /**
     * @param argument Infrastructure specification for the execution.
     * Structure is documented below.
     */
    @JvmName("lkjndawrptxafwiw")
    public suspend fun infrastructureSpec(argument: suspend TaskSparkInfrastructureSpecArgsBuilder.() -> Unit) {
        val toBeMapped = TaskSparkInfrastructureSpecArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.infrastructureSpec = mapped
    }

    /**
     * @param value The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. The execution args are passed in as a sequence of named process arguments (--key=value).
     */
    @JvmName("mclqpilpdxuhfous")
    public suspend fun mainClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainClass = mapped
    }

    /**
     * @param value The Cloud Storage URI of the jar file that contains the main class. The execution args are passed in as a sequence of named process arguments (--key=value).
     */
    @JvmName("nyoahbolljyvxxny")
    public suspend fun mainJarFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainJarFileUri = mapped
    }

    /**
     * @param value The Gcloud Storage URI of the main Python file to use as the driver. Must be a .py file. The execution args are passed in as a sequence of named process arguments (--key=value).
     */
    @JvmName("egedvjgflenxlieu")
    public suspend fun pythonScriptFile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pythonScriptFile = mapped
    }

    /**
     * @param value The query text. The execution args are used to declare a set of script variables (set key='value';).
     */
    @JvmName("lgsfctwilayjtpcc")
    public suspend fun sqlScript(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlScript = mapped
    }

    /**
     * @param value A reference to a query file. This can be the Cloud Storage URI of the query file or it can the path to a SqlScript Content. The execution args are used to declare a set of script variables (set key='value';).
     */
    @JvmName("wtqnbkcxjdkosllm")
    public suspend fun sqlScriptFile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlScriptFile = mapped
    }

    internal fun build(): TaskSparkArgs = TaskSparkArgs(
        archiveUris = archiveUris,
        fileUris = fileUris,
        infrastructureSpec = infrastructureSpec,
        mainClass = mainClass,
        mainJarFileUri = mainJarFileUri,
        pythonScriptFile = pythonScriptFile,
        sqlScript = sqlScript,
        sqlScriptFile = sqlScriptFile,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy