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

com.pulumi.awsnative.iot.kotlin.outputs.TopicRulePayload.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 TopicRulePayload(
    public val actions: List,
    public val awsIotSqlVersion: String? = null,
    public val description: String? = null,
    public val errorAction: TopicRuleAction? = null,
    public val ruleDisabled: Boolean? = null,
    public val sql: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.TopicRulePayload): TopicRulePayload = TopicRulePayload(
            actions = javaType.actions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleAction.Companion.toKotlin(args0)
                })
            }),
            awsIotSqlVersion = javaType.awsIotSqlVersion().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            errorAction = javaType.errorAction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleAction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            ruleDisabled = javaType.ruleDisabled().map({ args0 -> args0 }).orElse(null),
            sql = javaType.sql(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy