![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iot.kotlin.inputs.TopicRulePayloadArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iot.kotlin.inputs
import com.pulumi.awsnative.iot.inputs.TopicRulePayloadArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property actions The actions associated with the rule.
* @property awsIotSqlVersion The version of the SQL rules engine to use when evaluating the rule.
* The default value is 2015-10-08.
* @property description The description of the rule.
* @property errorAction The action to take when an error occurs.
* @property ruleDisabled Specifies whether the rule is disabled.
* @property sql The SQL statement used to query the topic. For more information, see [AWS IoT SQL Reference](https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-reference.html) in the *AWS IoT Developer Guide* .
*/
public data class TopicRulePayloadArgs(
public val actions: Output>,
public val awsIotSqlVersion: Output? = null,
public val description: Output? = null,
public val errorAction: Output? = null,
public val ruleDisabled: Output? = null,
public val sql: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRulePayloadArgs =
com.pulumi.awsnative.iot.inputs.TopicRulePayloadArgs.builder()
.actions(
actions.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.awsIotSqlVersion(awsIotSqlVersion?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.errorAction(errorAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.ruleDisabled(ruleDisabled?.applyValue({ args0 -> args0 }))
.sql(sql.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRulePayloadArgs].
*/
@PulumiTagMarker
public class TopicRulePayloadArgsBuilder internal constructor() {
private var actions: Output>? = null
private var awsIotSqlVersion: Output? = null
private var description: Output? = null
private var errorAction: Output? = null
private var ruleDisabled: Output? = null
private var sql: Output? = null
/**
* @param value The actions associated with the rule.
*/
@JvmName("yiaasmtesuqefqxt")
public suspend fun actions(`value`: Output>) {
this.actions = value
}
@JvmName("dcegakivwvcaeckx")
public suspend fun actions(vararg values: Output) {
this.actions = Output.all(values.asList())
}
/**
* @param values The actions associated with the rule.
*/
@JvmName("wsqhiyvpxosfpshg")
public suspend fun actions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy