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

com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobPigJob.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.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property continueOnFailure Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
 * @property jarFileUris HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
 * @property loggingConfig The runtime log config for job execution.
 * @property properties A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
 * @property queryFileUri The HCFS URI of the script that contains the Pig queries.
 * @property queryList A list of queries.
 * @property scriptVariables Mapping of query variable names to values (equivalent to the Pig command: `name=`).
 * */
 */
public data class WorkflowTemplateJobPigJob(
    public val continueOnFailure: Boolean? = null,
    public val jarFileUris: List? = null,
    public val loggingConfig: WorkflowTemplateJobPigJobLoggingConfig? = null,
    public val properties: Map? = null,
    public val queryFileUri: String? = null,
    public val queryList: WorkflowTemplateJobPigJobQueryList? = null,
    public val scriptVariables: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.WorkflowTemplateJobPigJob): WorkflowTemplateJobPigJob = WorkflowTemplateJobPigJob(
            continueOnFailure = javaType.continueOnFailure().map({ args0 -> args0 }).orElse(null),
            jarFileUris = javaType.jarFileUris().map({ args0 -> args0 }),
            loggingConfig = javaType.loggingConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobPigJobLoggingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            properties = javaType.properties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            queryFileUri = javaType.queryFileUri().map({ args0 -> args0 }).orElse(null),
            queryList = javaType.queryList().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobPigJobQueryList.Companion.toKotlin(args0)
                })
            }).orElse(null),
            scriptVariables = javaType.scriptVariables().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy