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

com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplateJobHadoopJobArgs.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.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobHadoopJobArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
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 archiveUris HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
 * @property args The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
 * @property fileUris HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
 * @property jarFileUris Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
 * @property loggingConfig The runtime log config for job execution.
 * @property mainClass The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
 * @property mainJarFileUri The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
 * @property properties A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
 * */
 */
public data class WorkflowTemplateJobHadoopJobArgs(
    public val archiveUris: Output>? = null,
    public val args: Output>? = null,
    public val fileUris: Output>? = null,
    public val jarFileUris: Output>? = null,
    public val loggingConfig: Output? = null,
    public val mainClass: Output? = null,
    public val mainJarFileUri: Output? = null,
    public val properties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobHadoopJobArgs =
        com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobHadoopJobArgs.builder()
            .archiveUris(archiveUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .fileUris(fileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .jarFileUris(jarFileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .loggingConfig(loggingConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mainClass(mainClass?.applyValue({ args0 -> args0 }))
            .mainJarFileUri(mainJarFileUri?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var args: Output>? = null

    private var fileUris: Output>? = null

    private var jarFileUris: Output>? = null

    private var loggingConfig: Output? = null

    private var mainClass: Output? = null

    private var mainJarFileUri: Output? = null

    private var properties: Output>? = null

    /**
     * @param value HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
     */
    @JvmName("xvvrlcgxonouknrj")
    public suspend fun archiveUris(`value`: Output>) {
        this.archiveUris = value
    }

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

    /**
     * @param values HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
     */
    @JvmName("nnycwkimmbijabcg")
    public suspend fun archiveUris(values: List>) {
        this.archiveUris = Output.all(values)
    }

    /**
     * @param value The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
     */
    @JvmName("etyhaqjwsxiursjs")
    public suspend fun args(`value`: Output>) {
        this.args = value
    }

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

    /**
     * @param values The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
     */
    @JvmName("nbqiaqowudarvqxn")
    public suspend fun args(values: List>) {
        this.args = Output.all(values)
    }

    /**
     * @param value HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
     */
    @JvmName("wvnnciwvfdofnngv")
    public suspend fun fileUris(`value`: Output>) {
        this.fileUris = value
    }

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

    /**
     * @param values HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
     */
    @JvmName("wiiicetfjskyotcl")
    public suspend fun fileUris(values: List>) {
        this.fileUris = Output.all(values)
    }

    /**
     * @param value Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
     */
    @JvmName("yfqfnmqirernmqpy")
    public suspend fun jarFileUris(`value`: Output>) {
        this.jarFileUris = value
    }

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

    /**
     * @param values Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
     */
    @JvmName("vxbrgqbcskbploms")
    public suspend fun jarFileUris(values: List>) {
        this.jarFileUris = Output.all(values)
    }

    /**
     * @param value The runtime log config for job execution.
     */
    @JvmName("ytpkumxtkcnkdhxv")
    public suspend fun loggingConfig(`value`: Output) {
        this.loggingConfig = value
    }

    /**
     * @param value The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
     */
    @JvmName("dtkurgseflsbyjpt")
    public suspend fun mainClass(`value`: Output) {
        this.mainClass = value
    }

    /**
     * @param value The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
     */
    @JvmName("iffdjycjtuwexmwb")
    public suspend fun mainJarFileUri(`value`: Output) {
        this.mainJarFileUri = value
    }

    /**
     * @param value A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
     * */
     */
    @JvmName("vpmnuburxywvreer")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
     */
    @JvmName("icycanmdqxaewkow")
    public suspend fun archiveUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param values HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
     */
    @JvmName("htvmhrrviqqeyerv")
    public suspend fun archiveUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param value The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
     */
    @JvmName("esspvqcedpxkrqss")
    public suspend fun args(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param values The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
     */
    @JvmName("aqwdwltupevieyci")
    public suspend fun args(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param value HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
     */
    @JvmName("xpmhvnemelhmwnct")
    public suspend fun fileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param values HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
     */
    @JvmName("oqgwmsamcvkrrffl")
    public suspend fun fileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param value Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
     */
    @JvmName("rocevwdharsgqvfg")
    public suspend fun jarFileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jarFileUris = mapped
    }

    /**
     * @param values Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
     */
    @JvmName("kxugypyojjqsbwnf")
    public suspend fun jarFileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jarFileUris = mapped
    }

    /**
     * @param value The runtime log config for job execution.
     */
    @JvmName("aqylwglwocgypyru")
    public suspend fun loggingConfig(`value`: WorkflowTemplateJobHadoopJobLoggingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingConfig = mapped
    }

    /**
     * @param argument The runtime log config for job execution.
     */
    @JvmName("xjhhyqnshvxipxvk")
    public suspend fun loggingConfig(argument: suspend WorkflowTemplateJobHadoopJobLoggingConfigArgsBuilder.() -> Unit) {
        val toBeMapped = WorkflowTemplateJobHadoopJobLoggingConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.loggingConfig = mapped
    }

    /**
     * @param value The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
     */
    @JvmName("utlhnndosrrahdwp")
    public suspend fun mainClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainClass = mapped
    }

    /**
     * @param value The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
     */
    @JvmName("pdburuirgvnlulcf")
    public suspend fun mainJarFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainJarFileUri = mapped
    }

    /**
     * @param value A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
     * */
     */
    @JvmName("omuspvrahtlcrupb")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
     * */
     */
    @JvmName("wufgppdwcxrsxgag")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    internal fun build(): WorkflowTemplateJobHadoopJobArgs = WorkflowTemplateJobHadoopJobArgs(
        archiveUris = archiveUris,
        args = args,
        fileUris = fileUris,
        jarFileUris = jarFileUris,
        loggingConfig = loggingConfig,
        mainClass = mainClass,
        mainJarFileUri = mainJarFileUri,
        properties = properties,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy