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

com.pulumi.gcp.cloudtasks.kotlin.inputs.QueueRateLimitsArgs.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.cloudtasks.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudtasks.inputs.QueueRateLimitsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maxBurstSize (Output)
 * The max burst size.
 * Max burst size limits how fast tasks in queue are processed when many tasks are
 * in the queue and the rate is high. This field allows the queue to have a high
 * rate so processing starts shortly after a task is enqueued, but still limits
 * resource usage when many tasks are enqueued in a short period of time.
 * @property maxConcurrentDispatches The maximum number of concurrent tasks that Cloud Tasks allows to
 * be dispatched for this queue. After this threshold has been
 * reached, Cloud Tasks stops dispatching tasks until the number of
 * concurrent requests decreases.
 * @property maxDispatchesPerSecond The maximum rate at which tasks are dispatched from this queue.
 * If unspecified when the queue is created, Cloud Tasks will pick the default.
 */
public data class QueueRateLimitsArgs(
    public val maxBurstSize: Output? = null,
    public val maxConcurrentDispatches: Output? = null,
    public val maxDispatchesPerSecond: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudtasks.inputs.QueueRateLimitsArgs =
        com.pulumi.gcp.cloudtasks.inputs.QueueRateLimitsArgs.builder()
            .maxBurstSize(maxBurstSize?.applyValue({ args0 -> args0 }))
            .maxConcurrentDispatches(maxConcurrentDispatches?.applyValue({ args0 -> args0 }))
            .maxDispatchesPerSecond(maxDispatchesPerSecond?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [QueueRateLimitsArgs].
 */
@PulumiTagMarker
public class QueueRateLimitsArgsBuilder internal constructor() {
    private var maxBurstSize: Output? = null

    private var maxConcurrentDispatches: Output? = null

    private var maxDispatchesPerSecond: Output? = null

    /**
     * @param value (Output)
     * The max burst size.
     * Max burst size limits how fast tasks in queue are processed when many tasks are
     * in the queue and the rate is high. This field allows the queue to have a high
     * rate so processing starts shortly after a task is enqueued, but still limits
     * resource usage when many tasks are enqueued in a short period of time.
     */
    @JvmName("butuueuaxdqfosdv")
    public suspend fun maxBurstSize(`value`: Output) {
        this.maxBurstSize = value
    }

    /**
     * @param value The maximum number of concurrent tasks that Cloud Tasks allows to
     * be dispatched for this queue. After this threshold has been
     * reached, Cloud Tasks stops dispatching tasks until the number of
     * concurrent requests decreases.
     */
    @JvmName("hnovtnhxrldquyst")
    public suspend fun maxConcurrentDispatches(`value`: Output) {
        this.maxConcurrentDispatches = value
    }

    /**
     * @param value The maximum rate at which tasks are dispatched from this queue.
     * If unspecified when the queue is created, Cloud Tasks will pick the default.
     */
    @JvmName("lessprginlsucwik")
    public suspend fun maxDispatchesPerSecond(`value`: Output) {
        this.maxDispatchesPerSecond = value
    }

    /**
     * @param value (Output)
     * The max burst size.
     * Max burst size limits how fast tasks in queue are processed when many tasks are
     * in the queue and the rate is high. This field allows the queue to have a high
     * rate so processing starts shortly after a task is enqueued, but still limits
     * resource usage when many tasks are enqueued in a short period of time.
     */
    @JvmName("ecirjloaknrhiyve")
    public suspend fun maxBurstSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxBurstSize = mapped
    }

    /**
     * @param value The maximum number of concurrent tasks that Cloud Tasks allows to
     * be dispatched for this queue. After this threshold has been
     * reached, Cloud Tasks stops dispatching tasks until the number of
     * concurrent requests decreases.
     */
    @JvmName("xmyqjqpyojfrawrw")
    public suspend fun maxConcurrentDispatches(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxConcurrentDispatches = mapped
    }

    /**
     * @param value The maximum rate at which tasks are dispatched from this queue.
     * If unspecified when the queue is created, Cloud Tasks will pick the default.
     */
    @JvmName("dvbijbwiiqolcdtw")
    public suspend fun maxDispatchesPerSecond(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDispatchesPerSecond = mapped
    }

    internal fun build(): QueueRateLimitsArgs = QueueRateLimitsArgs(
        maxBurstSize = maxBurstSize,
        maxConcurrentDispatches = maxConcurrentDispatches,
        maxDispatchesPerSecond = maxDispatchesPerSecond,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy