com.pulumi.awsnative.iot.kotlin.outputs.JobTemplateAbortCriteria.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.iot.kotlin.outputs
import com.pulumi.awsnative.iot.kotlin.enums.JobTemplateAction
import com.pulumi.awsnative.iot.kotlin.enums.JobTemplateFailureType
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
/**
* The criteria that determine when and how a job abort takes place.
* @property action The type of job action to take to initiate the job abort.
* @property failureType The type of job execution failures that can initiate a job abort.
* @property minNumberOfExecutedThings The minimum number of things which must receive job execution notifications before the job can be aborted.
* @property thresholdPercentage The minimum percentage of job execution failures that must occur to initiate the job abort.
*/
public data class JobTemplateAbortCriteria(
public val action: JobTemplateAction,
public val failureType: JobTemplateFailureType,
public val minNumberOfExecutedThings: Int,
public val thresholdPercentage: Double,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.JobTemplateAbortCriteria): JobTemplateAbortCriteria = JobTemplateAbortCriteria(
action = javaType.action().let({ args0 ->
com.pulumi.awsnative.iot.kotlin.enums.JobTemplateAction.Companion.toKotlin(args0)
}),
failureType = javaType.failureType().let({ args0 ->
com.pulumi.awsnative.iot.kotlin.enums.JobTemplateFailureType.Companion.toKotlin(args0)
}),
minNumberOfExecutedThings = javaType.minNumberOfExecutedThings(),
thresholdPercentage = javaType.thresholdPercentage(),
)
}
}