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

com.pulumi.awsnative.iotevents.kotlin.outputs.DetectorModelIotTopicPublish.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.String
import kotlin.Suppress

/**
 * Information required to publish the MQTT message through the AWS IoT message broker.
 * @property mqttTopic The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string.
 * @property payload You can configure the action payload when you publish a message to an AWS IoT Core topic.
 */
public data class DetectorModelIotTopicPublish(
    public val mqttTopic: String,
    public val payload: DetectorModelPayload? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotevents.outputs.DetectorModelIotTopicPublish): DetectorModelIotTopicPublish = DetectorModelIotTopicPublish(
            mqttTopic = javaType.mqttTopic(),
            payload = javaType.payload().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotevents.kotlin.outputs.DetectorModelPayload.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy