com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplateJobSchedulingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.dataproc.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobSchedulingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxFailuresPerHour Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window. Maximum value is 10.
* @property maxFailuresTotal Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240
*/
public data class WorkflowTemplateJobSchedulingArgs(
public val maxFailuresPerHour: Output? = null,
public val maxFailuresTotal: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobSchedulingArgs =
com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobSchedulingArgs.builder()
.maxFailuresPerHour(maxFailuresPerHour?.applyValue({ args0 -> args0 }))
.maxFailuresTotal(maxFailuresTotal?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkflowTemplateJobSchedulingArgs].
*/
@PulumiTagMarker
public class WorkflowTemplateJobSchedulingArgsBuilder internal constructor() {
private var maxFailuresPerHour: Output? = null
private var maxFailuresTotal: Output? = null
/**
* @param value Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window. Maximum value is 10.
*/
@JvmName("resjjbomhxublvgh")
public suspend fun maxFailuresPerHour(`value`: Output) {
this.maxFailuresPerHour = value
}
/**
* @param value Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240
*/
@JvmName("yopkrliaxkhlnpsr")
public suspend fun maxFailuresTotal(`value`: Output) {
this.maxFailuresTotal = value
}
/**
* @param value Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window. Maximum value is 10.
*/
@JvmName("tpnehgrkyxtvnkjo")
public suspend fun maxFailuresPerHour(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxFailuresPerHour = mapped
}
/**
* @param value Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240
*/
@JvmName("iyxifgndqbmiajmi")
public suspend fun maxFailuresTotal(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxFailuresTotal = mapped
}
internal fun build(): WorkflowTemplateJobSchedulingArgs = WorkflowTemplateJobSchedulingArgs(
maxFailuresPerHour = maxFailuresPerHour,
maxFailuresTotal = maxFailuresTotal,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy