
com.pulumi.awsnative.iotevents.kotlin.outputs.DetectorModelSetTimer.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotevents.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* Information needed to set the timer.
* @property durationExpression The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number.
* @property seconds The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds.
* @property timerName The name of the timer.
*/
public data class DetectorModelSetTimer(
public val durationExpression: String? = null,
public val seconds: Int? = null,
public val timerName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotevents.outputs.DetectorModelSetTimer): DetectorModelSetTimer = DetectorModelSetTimer(
durationExpression = javaType.durationExpression().map({ args0 -> args0 }).orElse(null),
seconds = javaType.seconds().map({ args0 -> args0 }).orElse(null),
timerName = javaType.timerName(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy