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

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

/**
 * Builder for [WorkflowTemplateJobHadoopJobLoggingConfigArgs].
 */
@PulumiTagMarker
public class WorkflowTemplateJobHadoopJobLoggingConfigArgsBuilder 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("fsslihntadoktotn")
    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("bmujgyheuxklpkhq")
    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("almbvhrffwxfwjhp")
    public fun driverLogLevels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.driverLogLevels = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy