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

com.pulumi.gcp.dataproc.kotlin.inputs.JobSparksqlConfigLoggingConfigArgs.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.JobSparksqlConfigLoggingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property driverLogLevels Optional. 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'.
 */
public data class JobSparksqlConfigLoggingConfigArgs(
    public val driverLogLevels: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.JobSparksqlConfigLoggingConfigArgs =
        com.pulumi.gcp.dataproc.inputs.JobSparksqlConfigLoggingConfigArgs.builder()
            .driverLogLevels(
                driverLogLevels.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value Optional. 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("pwlabtvjfqhmibeo")
    public suspend fun driverLogLevels(`value`: Output>) {
        this.driverLogLevels = value
    }

    /**
     * @param value Optional. 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("adfshihxlxcgsoxc")
    public suspend fun driverLogLevels(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.driverLogLevels = mapped
    }

    /**
     * @param values Optional. 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("nxfcqwcpxhgalwnt")
    public fun driverLogLevels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.driverLogLevels = mapped
    }

    internal fun build(): JobSparksqlConfigLoggingConfigArgs = JobSparksqlConfigLoggingConfigArgs(
        driverLogLevels = driverLogLevels ?: throw PulumiNullFieldException("driverLogLevels"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy