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

com.pulumi.awsnative.greengrassv2.kotlin.outputs.DeploymentIoTJobAbortCriteria.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.greengrassv2.kotlin.outputs

import com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentIoTJobAbortCriteriaAction
import com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentIoTJobAbortCriteriaFailureType
import kotlin.Double
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @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 DeploymentIoTJobAbortCriteria(
    public val action: DeploymentIoTJobAbortCriteriaAction,
    public val failureType: DeploymentIoTJobAbortCriteriaFailureType,
    public val minNumberOfExecutedThings: Int,
    public val thresholdPercentage: Double,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.greengrassv2.outputs.DeploymentIoTJobAbortCriteria): DeploymentIoTJobAbortCriteria = DeploymentIoTJobAbortCriteria(
            action = javaType.action().let({ args0 ->
                com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentIoTJobAbortCriteriaAction.Companion.toKotlin(args0)
            }),
            failureType = javaType.failureType().let({ args0 ->
                com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentIoTJobAbortCriteriaFailureType.Companion.toKotlin(args0)
            }),
            minNumberOfExecutedThings = javaType.minNumberOfExecutedThings(),
            thresholdPercentage = javaType.thresholdPercentage(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy