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

com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigWorkloadsConfigArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.composer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigWorkloadsConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property dagProcessor Configuration for resources used by DAG processor.
 * @property scheduler Configuration for resources used by Airflow schedulers.
 * @property triggerer Configuration for resources used by Airflow triggerers.
 * @property webServer Configuration for resources used by Airflow web server.
 * @property worker Configuration for resources used by Airflow workers.
 */
public data class EnvironmentConfigWorkloadsConfigArgs(
    public val dagProcessor: Output? = null,
    public val scheduler: Output? = null,
    public val triggerer: Output? = null,
    public val webServer: Output? = null,
    public val worker: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigWorkloadsConfigArgs =
        com.pulumi.gcp.composer.inputs.EnvironmentConfigWorkloadsConfigArgs.builder()
            .dagProcessor(dagProcessor?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scheduler(scheduler?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .triggerer(triggerer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .webServer(webServer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .worker(worker?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EnvironmentConfigWorkloadsConfigArgs].
 */
@PulumiTagMarker
public class EnvironmentConfigWorkloadsConfigArgsBuilder internal constructor() {
    private var dagProcessor: Output? = null

    private var scheduler: Output? = null

    private var triggerer: Output? = null

    private var webServer: Output? = null

    private var worker: Output? = null

    /**
     * @param value Configuration for resources used by DAG processor.
     */
    @JvmName("ggdwpqxosioayqrl")
    public suspend fun dagProcessor(`value`: Output) {
        this.dagProcessor = value
    }

    /**
     * @param value Configuration for resources used by Airflow schedulers.
     */
    @JvmName("slodqdhqvkkwhnbi")
    public suspend fun scheduler(`value`: Output) {
        this.scheduler = value
    }

    /**
     * @param value Configuration for resources used by Airflow triggerers.
     */
    @JvmName("pxwavwpkfqbjptoj")
    public suspend fun triggerer(`value`: Output) {
        this.triggerer = value
    }

    /**
     * @param value Configuration for resources used by Airflow web server.
     */
    @JvmName("mycreoxpiihcpygd")
    public suspend fun webServer(`value`: Output) {
        this.webServer = value
    }

    /**
     * @param value Configuration for resources used by Airflow workers.
     */
    @JvmName("fruklviwfannevbv")
    public suspend fun worker(`value`: Output) {
        this.worker = value
    }

    /**
     * @param value Configuration for resources used by DAG processor.
     */
    @JvmName("robrbeecrheshmca")
    public suspend fun dagProcessor(`value`: EnvironmentConfigWorkloadsConfigDagProcessorArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dagProcessor = mapped
    }

    /**
     * @param argument Configuration for resources used by DAG processor.
     */
    @JvmName("daryrjcaykyxtjps")
    public suspend fun dagProcessor(argument: suspend EnvironmentConfigWorkloadsConfigDagProcessorArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentConfigWorkloadsConfigDagProcessorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dagProcessor = mapped
    }

    /**
     * @param value Configuration for resources used by Airflow schedulers.
     */
    @JvmName("tgngnwmuwprrdhdb")
    public suspend fun scheduler(`value`: EnvironmentConfigWorkloadsConfigSchedulerArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scheduler = mapped
    }

    /**
     * @param argument Configuration for resources used by Airflow schedulers.
     */
    @JvmName("ytsiwvmjgcmmptrr")
    public suspend fun scheduler(argument: suspend EnvironmentConfigWorkloadsConfigSchedulerArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentConfigWorkloadsConfigSchedulerArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.scheduler = mapped
    }

    /**
     * @param value Configuration for resources used by Airflow triggerers.
     */
    @JvmName("ikxdkjptmoqaejnt")
    public suspend fun triggerer(`value`: EnvironmentConfigWorkloadsConfigTriggererArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.triggerer = mapped
    }

    /**
     * @param argument Configuration for resources used by Airflow triggerers.
     */
    @JvmName("ilptsvlhxqgdriiq")
    public suspend fun triggerer(argument: suspend EnvironmentConfigWorkloadsConfigTriggererArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentConfigWorkloadsConfigTriggererArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.triggerer = mapped
    }

    /**
     * @param value Configuration for resources used by Airflow web server.
     */
    @JvmName("slxaywbdiwtxhtcg")
    public suspend fun webServer(`value`: EnvironmentConfigWorkloadsConfigWebServerArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webServer = mapped
    }

    /**
     * @param argument Configuration for resources used by Airflow web server.
     */
    @JvmName("yiqtqmwxdpejqame")
    public suspend fun webServer(argument: suspend EnvironmentConfigWorkloadsConfigWebServerArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentConfigWorkloadsConfigWebServerArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.webServer = mapped
    }

    /**
     * @param value Configuration for resources used by Airflow workers.
     */
    @JvmName("woplpigaweyxuycf")
    public suspend fun worker(`value`: EnvironmentConfigWorkloadsConfigWorkerArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.worker = mapped
    }

    /**
     * @param argument Configuration for resources used by Airflow workers.
     */
    @JvmName("fyslonnavbjtycnt")
    public suspend fun worker(argument: suspend EnvironmentConfigWorkloadsConfigWorkerArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentConfigWorkloadsConfigWorkerArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.worker = mapped
    }

    internal fun build(): EnvironmentConfigWorkloadsConfigArgs = EnvironmentConfigWorkloadsConfigArgs(
        dagProcessor = dagProcessor,
        scheduler = scheduler,
        triggerer = triggerer,
        webServer = webServer,
        worker = worker,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy