com.pulumi.kubernetes.batch.v1.kotlin.inputs.PodFailurePolicyPatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.batch.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* PodFailurePolicy describes how failed pods influence the backoffLimit.
* @property rules A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
*/
public data class PodFailurePolicyPatchArgs(
public val rules: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyPatchArgs =
com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyPatchArgs.builder()
.rules(
rules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [PodFailurePolicyPatchArgs].
*/
@PulumiTagMarker
public class PodFailurePolicyPatchArgsBuilder internal constructor() {
private var rules: Output>? = null
/**
* @param value A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
*/
@JvmName("otxadhamaeruxakd")
public suspend fun rules(`value`: Output>) {
this.rules = value
}
@JvmName("upctomuwcflonnek")
public suspend fun rules(vararg values: Output) {
this.rules = Output.all(values.asList())
}
/**
* @param values A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
*/
@JvmName("hbcptmlpfjlbsjuu")
public suspend fun rules(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy