All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.iot.kotlin.outputs.JobTemplateAbortCriteria.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@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(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy