com.pulumi.gcp.dataproc.kotlin.outputs.JobSparksqlConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.dataproc.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property jarFileUris HCFS URIs of jar files to be added to the Spark CLASSPATH.
* * `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 Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten.
* @property queryFileUri The HCFS URI of the script that contains SQL queries.
* Conflicts with `query_list`
* @property queryLists The list of SQL 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 Spark SQL command: `SET name="value";`).
*/
public data class JobSparksqlConfig(
public val jarFileUris: List? = null,
public val loggingConfig: JobSparksqlConfigLoggingConfig? = null,
public val properties: Map? = null,
public val queryFileUri: String? = null,
public val queryLists: List? = null,
public val scriptVariables: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.JobSparksqlConfig): JobSparksqlConfig = JobSparksqlConfig(
jarFileUris = javaType.jarFileUris().map({ args0 -> args0 }),
loggingConfig = javaType.loggingConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataproc.kotlin.outputs.JobSparksqlConfigLoggingConfig.Companion.toKotlin(args0)
})
}).orElse(null),
properties = javaType.properties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
queryFileUri = javaType.queryFileUri().map({ args0 -> args0 }).orElse(null),
queryLists = javaType.queryLists().map({ args0 -> args0 }),
scriptVariables = javaType.scriptVariables().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy