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

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

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

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

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

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

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

    internal fun build(): WorkflowTemplateJobPysparkJobLoggingConfigArgs =
        WorkflowTemplateJobPysparkJobLoggingConfigArgs(
            driverLogLevels = driverLogLevels,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy