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

com.pulumi.azurenative.app.kotlin.outputs.JobScaleResponse.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.app.kotlin.outputs

import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 * Scaling configurations for event driven jobs.
 * @property maxExecutions Maximum number of job executions that are created for a trigger, default 100.
 * @property minExecutions Minimum number of job executions that are created for a trigger, default 0
 * @property pollingInterval Interval to check each event source in seconds. Defaults to 30s
 * @property rules Scaling rules.
 */
public data class JobScaleResponse(
    public val maxExecutions: Int? = null,
    public val minExecutions: Int? = null,
    public val pollingInterval: Int? = null,
    public val rules: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.app.outputs.JobScaleResponse): JobScaleResponse = JobScaleResponse(
            maxExecutions = javaType.maxExecutions().map({ args0 -> args0 }).orElse(null),
            minExecutions = javaType.minExecutions().map({ args0 -> args0 }).orElse(null),
            pollingInterval = javaType.pollingInterval().map({ args0 -> args0 }).orElse(null),
            rules = javaType.rules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.app.kotlin.outputs.JobScaleRuleResponse.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy