com.pulumi.azure.containerapp.kotlin.outputs.JobEventTriggerConfig.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 parallelism Number of parallel replicas of a job that can run at a given time.
* @property replicaCompletionCount Minimum number of successful replica completions before overall job completion.
* @property scales A `scale` block as defined below.
*/
public data class JobEventTriggerConfig(
public val parallelism: Int? = null,
public val replicaCompletionCount: Int? = null,
public val scales: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.JobEventTriggerConfig): JobEventTriggerConfig = JobEventTriggerConfig(
parallelism = javaType.parallelism().map({ args0 -> args0 }).orElse(null),
replicaCompletionCount = javaType.replicaCompletionCount().map({ args0 -> args0 }).orElse(null),
scales = javaType.scales().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.JobEventTriggerConfigScale.Companion.toKotlin(args0)
})
}),
)
}
}