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

com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.inputs.WebhookThrottleConfigArgs.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.auditregistration.v1alpha1.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.auditregistration.v1alpha1.inputs.WebhookThrottleConfigArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * WebhookThrottleConfig holds the configuration for throttling events
 * @property burst ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
 * @property qps ThrottleQPS maximum number of batches per second default 10 QPS
 */
public data class WebhookThrottleConfigArgs(
    public val burst: Output? = null,
    public val qps: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigArgs =
        com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigArgs.builder()
            .burst(burst?.applyValue({ args0 -> args0 }))
            .qps(qps?.applyValue({ args0 -> args0 })).build()
}

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

    private var qps: Output? = null

    /**
     * @param value ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
     */
    @JvmName("yjethloydanldxtm")
    public suspend fun burst(`value`: Output) {
        this.burst = value
    }

    /**
     * @param value ThrottleQPS maximum number of batches per second default 10 QPS
     */
    @JvmName("tlaftlwfsralneas")
    public suspend fun qps(`value`: Output) {
        this.qps = value
    }

    /**
     * @param value ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
     */
    @JvmName("jemxaboskrfyebax")
    public suspend fun burst(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.burst = mapped
    }

    /**
     * @param value ThrottleQPS maximum number of batches per second default 10 QPS
     */
    @JvmName("winvwqexnqyrrkxf")
    public suspend fun qps(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.qps = mapped
    }

    internal fun build(): WebhookThrottleConfigArgs = WebhookThrottleConfigArgs(
        burst = burst,
        qps = qps,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy