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

com.pulumi.gcp.dataproc.kotlin.outputs.JobPrestoConfig.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.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property clientTags Presto client tags to attach to this query.
 * @property continueOnFailure Whether to continue executing queries if a query fails. Setting to true can be useful when executing independent parallel queries. Defaults to false.
 * @property loggingConfig The runtime logging config of the job
 * @property outputFormat The format in which query output will be displayed. See the Presto documentation for supported output formats.
 * * `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 properties A mapping of property names to values. Used to set Presto session properties Equivalent to using the --session flag in the Presto CLI.
 * @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`
 */
public data class JobPrestoConfig(
    public val clientTags: List? = null,
    public val continueOnFailure: Boolean? = null,
    public val loggingConfig: JobPrestoConfigLoggingConfig? = null,
    public val outputFormat: String? = null,
    public val properties: Map? = null,
    public val queryFileUri: String? = null,
    public val queryLists: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.JobPrestoConfig): JobPrestoConfig = JobPrestoConfig(
            clientTags = javaType.clientTags().map({ args0 -> args0 }),
            continueOnFailure = javaType.continueOnFailure().map({ args0 -> args0 }).orElse(null),
            loggingConfig = javaType.loggingConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataproc.kotlin.outputs.JobPrestoConfigLoggingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            outputFormat = javaType.outputFormat().map({ args0 -> 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 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy