
com.pulumi.awsnative.greengrassv2.kotlin.inputs.DeploymentIoTJobAbortCriteriaArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.greengrassv2.kotlin.inputs
import com.pulumi.awsnative.greengrassv2.inputs.DeploymentIoTJobAbortCriteriaArgs.builder
import com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentIoTJobAbortCriteriaAction
import com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentIoTJobAbortCriteriaFailureType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property action The action to perform when the criteria are met.
* @property failureType The type of job deployment failure that can cancel a job.
* @property minNumberOfExecutedThings The minimum number of things that receive the configuration before the job can cancel.
* @property thresholdPercentage The minimum percentage of `failureType` failures that occur before the job can cancel.
* This parameter supports up to two digits after the decimal (for example, you can specify `10.9` or `10.99` , but not `10.999` ).
*/
public data class DeploymentIoTJobAbortCriteriaArgs(
public val action: Output,
public val failureType: Output,
public val minNumberOfExecutedThings: Output,
public val thresholdPercentage: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.greengrassv2.inputs.DeploymentIoTJobAbortCriteriaArgs = com.pulumi.awsnative.greengrassv2.inputs.DeploymentIoTJobAbortCriteriaArgs.builder()
.action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.failureType(failureType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.minNumberOfExecutedThings(minNumberOfExecutedThings.applyValue({ args0 -> args0 }))
.thresholdPercentage(thresholdPercentage.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeploymentIoTJobAbortCriteriaArgs].
*/
@PulumiTagMarker
public class DeploymentIoTJobAbortCriteriaArgsBuilder internal constructor() {
private var action: Output? = null
private var failureType: Output? = null
private var minNumberOfExecutedThings: Output? = null
private var thresholdPercentage: Output? = null
/**
* @param value The action to perform when the criteria are met.
*/
@JvmName("xnofijgflkaxedbu")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The type of job deployment failure that can cancel a job.
*/
@JvmName("htgkgyfmnoqwnpxc")
public suspend fun failureType(`value`: Output) {
this.failureType = value
}
/**
* @param value The minimum number of things that receive the configuration before the job can cancel.
*/
@JvmName("nnbrhymxwhcfwwxx")
public suspend fun minNumberOfExecutedThings(`value`: Output) {
this.minNumberOfExecutedThings = value
}
/**
* @param value The minimum percentage of `failureType` failures that occur before the job can cancel.
* This parameter supports up to two digits after the decimal (for example, you can specify `10.9` or `10.99` , but not `10.999` ).
*/
@JvmName("nhbgjgyqpsjreuio")
public suspend fun thresholdPercentage(`value`: Output) {
this.thresholdPercentage = value
}
/**
* @param value The action to perform when the criteria are met.
*/
@JvmName("ngrmjyatqlxmbknd")
public suspend fun action(`value`: DeploymentIoTJobAbortCriteriaAction) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value The type of job deployment failure that can cancel a job.
*/
@JvmName("ehvywiwcjhtqrebu")
public suspend fun failureType(`value`: DeploymentIoTJobAbortCriteriaFailureType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.failureType = mapped
}
/**
* @param value The minimum number of things that receive the configuration before the job can cancel.
*/
@JvmName("ikisnbsreldrujlx")
public suspend fun minNumberOfExecutedThings(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minNumberOfExecutedThings = mapped
}
/**
* @param value The minimum percentage of `failureType` failures that occur before the job can cancel.
* This parameter supports up to two digits after the decimal (for example, you can specify `10.9` or `10.99` , but not `10.999` ).
*/
@JvmName("swqhbstqjbactysv")
public suspend fun thresholdPercentage(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.thresholdPercentage = mapped
}
internal fun build(): DeploymentIoTJobAbortCriteriaArgs = DeploymentIoTJobAbortCriteriaArgs(
action = action ?: throw PulumiNullFieldException("action"),
failureType = failureType ?: throw PulumiNullFieldException("failureType"),
minNumberOfExecutedThings = minNumberOfExecutedThings ?: throw
PulumiNullFieldException("minNumberOfExecutedThings"),
thresholdPercentage = thresholdPercentage ?: throw PulumiNullFieldException("thresholdPercentage"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy