All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.dataproc.kotlin.inputs.JobPigConfigArgs.kt Maven / Gradle / Ivy
@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.JobPigConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
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 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. Defaults to false.
* @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.
* * `logging_config.driver_log_levels`- (Required) The per-package log levels for the driver. This may include 'root' package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
* @property loggingConfig The runtime logging config of the job
* @property properties A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud 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 HCFS URI of file containing Hive script to execute as the job.
* Conflicts with `query_list`
* @property queryLists The list of Hive queries or statements to execute as part of the job.
* Conflicts with `query_file_uri`
* @property scriptVariables Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`).
* */
*/
public data class JobPigConfigArgs(
public val continueOnFailure: Output? = null,
public val jarFileUris: Output>? = null,
public val loggingConfig: Output? = null,
public val properties: Output>? = null,
public val queryFileUri: Output? = null,
public val queryLists: Output>? = null,
public val scriptVariables: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.JobPigConfigArgs =
com.pulumi.gcp.dataproc.inputs.JobPigConfigArgs.builder()
.continueOnFailure(continueOnFailure?.applyValue({ args0 -> args0 }))
.jarFileUris(jarFileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.loggingConfig(loggingConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.properties(
properties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.queryFileUri(queryFileUri?.applyValue({ args0 -> args0 }))
.queryLists(queryLists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.scriptVariables(
scriptVariables?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [JobPigConfigArgs].
*/
@PulumiTagMarker
public class JobPigConfigArgsBuilder internal constructor() {
private var continueOnFailure: Output? = null
private var jarFileUris: Output>? = null
private var loggingConfig: Output? = null
private var properties: Output>? = null
private var queryFileUri: Output? = null
private var queryLists: Output>? = null
private var scriptVariables: Output>? = null
/**
* @param value 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. Defaults to false.
*/
@JvmName("vgscuouibxvpcxmu")
public suspend fun continueOnFailure(`value`: Output) {
this.continueOnFailure = value
}
/**
* @param value HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
* * `logging_config.driver_log_levels`- (Required) The per-package log levels for the driver. This may include 'root' package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
*/
@JvmName("iknymbegpfyvdemc")
public suspend fun jarFileUris(`value`: Output>) {
this.jarFileUris = value
}
@JvmName("mvaooxhjswkniusk")
public suspend fun jarFileUris(vararg values: Output) {
this.jarFileUris = Output.all(values.asList())
}
/**
* @param values HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
* * `logging_config.driver_log_levels`- (Required) The per-package log levels for the driver. This may include 'root' package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
*/
@JvmName("wugvoffgrymdamhw")
public suspend fun jarFileUris(values: List>) {
this.jarFileUris = Output.all(values)
}
/**
* @param value The runtime logging config of the job
*/
@JvmName("ibgwgubdekpsqiqc")
public suspend fun loggingConfig(`value`: Output) {
this.loggingConfig = value
}
/**
* @param value A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud 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.
* */
*/
@JvmName("aagipeyedqhctdxh")
public suspend fun properties(`value`: Output>) {
this.properties = value
}
/**
* @param value HCFS URI of file containing Hive script to execute as the job.
* Conflicts with `query_list`
*/
@JvmName("syamrnoqlilmtrsp")
public suspend fun queryFileUri(`value`: Output) {
this.queryFileUri = value
}
/**
* @param value The list of Hive queries or statements to execute as part of the job.
* Conflicts with `query_file_uri`
*/
@JvmName("vdtaynasbhxhotyj")
public suspend fun queryLists(`value`: Output>) {
this.queryLists = value
}
@JvmName("pyvbpvikkrwwocrd")
public suspend fun queryLists(vararg values: Output) {
this.queryLists = Output.all(values.asList())
}
/**
* @param values The list of Hive queries or statements to execute as part of the job.
* Conflicts with `query_file_uri`
*/
@JvmName("beubsusrkhovcwca")
public suspend fun queryLists(values: List>) {
this.queryLists = Output.all(values)
}
/**
* @param value Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`).
*/
@JvmName("byvyvgahnditfytd")
public suspend fun scriptVariables(`value`: Output>) {
this.scriptVariables = value
}
/**
* @param value 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. Defaults to false.
*/
@JvmName("hbrsdpqueomcbiub")
public suspend fun continueOnFailure(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.continueOnFailure = mapped
}
/**
* @param value HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
* * `logging_config.driver_log_levels`- (Required) The per-package log levels for the driver. This may include 'root' package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
*/
@JvmName("eaolbjayqffjslrg")
public suspend fun jarFileUris(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.jarFileUris = mapped
}
/**
* @param values HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
* * `logging_config.driver_log_levels`- (Required) The per-package log levels for the driver. This may include 'root' package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
*/
@JvmName("ncbyhxeotuhueixk")
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 logging config of the job
*/
@JvmName("atucgilcrrgdxdjd")
public suspend fun loggingConfig(`value`: JobPigConfigLoggingConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.loggingConfig = mapped
}
/**
* @param argument The runtime logging config of the job
*/
@JvmName("yuvxkswushibywjq")
public suspend fun loggingConfig(argument: suspend JobPigConfigLoggingConfigArgsBuilder.() -> Unit) {
val toBeMapped = JobPigConfigLoggingConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.loggingConfig = mapped
}
/**
* @param value A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud 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.
* */
*/
@JvmName("smjbspvgqdhttgbs")
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 Pig. Properties that conflict with values set by the Cloud 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.
* */
*/
@JvmName("aqvgdbicyhyaxmwx")
public fun properties(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param value HCFS URI of file containing Hive script to execute as the job.
* Conflicts with `query_list`
*/
@JvmName("sglbaljegokynalj")
public suspend fun queryFileUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.queryFileUri = mapped
}
/**
* @param value The list of Hive queries or statements to execute as part of the job.
* Conflicts with `query_file_uri`
*/
@JvmName("kpcpglmvycpodsgb")
public suspend fun queryLists(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.queryLists = mapped
}
/**
* @param values The list of Hive queries or statements to execute as part of the job.
* Conflicts with `query_file_uri`
*/
@JvmName("stiqmblkwdoxvlwr")
public suspend fun queryLists(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.queryLists = mapped
}
/**
* @param value Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`).
*/
@JvmName("yegdxmhwbfsrdndx")
public suspend fun scriptVariables(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scriptVariables = mapped
}
/**
* @param values Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`).
*/
@JvmName("jrqidsiyflrndudg")
public fun scriptVariables(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scriptVariables = mapped
}
internal fun build(): JobPigConfigArgs = JobPigConfigArgs(
continueOnFailure = continueOnFailure,
jarFileUris = jarFileUris,
loggingConfig = loggingConfig,
properties = properties,
queryFileUri = queryFileUri,
queryLists = queryLists,
scriptVariables = scriptVariables,
)
}