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

com.pulumi.gcp.dataproc.kotlin.inputs.JobPigConfigLoggingConfigArgs.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.JobPigConfigLoggingConfigArgs.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 JobPigConfigLoggingConfigArgs(
    public val driverLogLevels: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.JobPigConfigLoggingConfigArgs =
        com.pulumi.gcp.dataproc.inputs.JobPigConfigLoggingConfigArgs.builder()
            .driverLogLevels(
                driverLogLevels.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [JobPigConfigLoggingConfigArgs].
 */
@PulumiTagMarker
public class JobPigConfigLoggingConfigArgsBuilder 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("hrnbevwvcybpkeyf")
    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("itbjvwxbnatucqfv")
    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("dnhlasajmkenjfxn")
    public fun driverLogLevels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.driverLogLevels = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy