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

com.pulumi.kubernetes.kotlin.inputs.KubeClientSettingsArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.inputs.KubeClientSettingsArgs.builder
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Options for tuning the Kubernetes client used by a Provider.
 * @property burst Maximum burst for throttle. Default value is 120.
 * @property qps Maximum queries per second (QPS) to the API server from this client. Default value is 50.
 * @property timeout Maximum time in seconds to wait before cancelling a HTTP request to the Kubernetes server. Default value is 32.
 */
public data class KubeClientSettingsArgs(
    public val burst: Output? = null,
    public val qps: Output? = null,
    public val timeout: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.inputs.KubeClientSettingsArgs =
        com.pulumi.kubernetes.inputs.KubeClientSettingsArgs.builder()
            .burst(burst?.applyValue({ args0 -> args0 }))
            .qps(qps?.applyValue({ args0 -> args0 }))
            .timeout(timeout?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KubeClientSettingsArgs].
 */
@PulumiTagMarker
public class KubeClientSettingsArgsBuilder internal constructor() {
    private var burst: Output? = null

    private var qps: Output? = null

    private var timeout: Output? = null

    /**
     * @param value Maximum burst for throttle. Default value is 120.
     */
    @JvmName("gixnbyckqbsyhmwt")
    public suspend fun burst(`value`: Output) {
        this.burst = value
    }

    /**
     * @param value Maximum queries per second (QPS) to the API server from this client. Default value is 50.
     */
    @JvmName("wobsmpkxywncedan")
    public suspend fun qps(`value`: Output) {
        this.qps = value
    }

    /**
     * @param value Maximum time in seconds to wait before cancelling a HTTP request to the Kubernetes server. Default value is 32.
     */
    @JvmName("wnuuxhtykptcarie")
    public suspend fun timeout(`value`: Output) {
        this.timeout = value
    }

    /**
     * @param value Maximum burst for throttle. Default value is 120.
     */
    @JvmName("cbbpacykmekgygwk")
    public suspend fun burst(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.burst = mapped
    }

    /**
     * @param value Maximum queries per second (QPS) to the API server from this client. Default value is 50.
     */
    @JvmName("woqyrokaxhrqgwrb")
    public suspend fun qps(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.qps = mapped
    }

    /**
     * @param value Maximum time in seconds to wait before cancelling a HTTP request to the Kubernetes server. Default value is 32.
     */
    @JvmName("swwdoandeqyhuben")
    public suspend fun timeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeout = mapped
    }

    internal fun build(): KubeClientSettingsArgs = KubeClientSettingsArgs(
        burst = burst,
        qps = qps,
        timeout = timeout,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy