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

com.pulumi.awsnative.iotevents.kotlin.outputs.AlarmModelSimpleRule.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotevents.kotlin.outputs

import com.pulumi.awsnative.iotevents.kotlin.enums.AlarmModelSimpleRuleComparisonOperator
import kotlin.String
import kotlin.Suppress

/**
 * A rule that compares an input property value to a threshold value with a comparison operator.
 * @property comparisonOperator The comparison operator.
 * @property inputProperty The value on the left side of the comparison operator. You can specify an ITE input attribute as an input property.
 * @property threshold The value on the right side of the comparison operator. You can enter a number or specify an ITE input attribute.
 */
public data class AlarmModelSimpleRule(
    public val comparisonOperator: AlarmModelSimpleRuleComparisonOperator,
    public val inputProperty: String,
    public val threshold: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotevents.outputs.AlarmModelSimpleRule): AlarmModelSimpleRule = AlarmModelSimpleRule(
            comparisonOperator = javaType.comparisonOperator().let({ args0 ->
                com.pulumi.awsnative.iotevents.kotlin.enums.AlarmModelSimpleRuleComparisonOperator.Companion.toKotlin(args0)
            }),
            inputProperty = javaType.inputProperty(),
            threshold = javaType.threshold(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy