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

com.pulumi.azure.containerapp.kotlin.outputs.JobEventTriggerConfigScale.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerapp.kotlin.outputs

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

/**
 *
 * @property maxExecutions Maximum number of job executions that are created for a trigger.
 * @property minExecutions Minimum number of job executions that are created for a trigger.
 * @property pollingIntervalInSeconds Interval to check each event source in seconds.
 * @property rules A `rules` block as defined below.
 */
public data class JobEventTriggerConfigScale(
    public val maxExecutions: Int? = null,
    public val minExecutions: Int? = null,
    public val pollingIntervalInSeconds: Int? = null,
    public val rules: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.JobEventTriggerConfigScale): JobEventTriggerConfigScale = JobEventTriggerConfigScale(
            maxExecutions = javaType.maxExecutions().map({ args0 -> args0 }).orElse(null),
            minExecutions = javaType.minExecutions().map({ args0 -> args0 }).orElse(null),
            pollingIntervalInSeconds = javaType.pollingIntervalInSeconds().map({ args0 -> args0 }).orElse(null),
            rules = javaType.rules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.JobEventTriggerConfigScaleRule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy