com.pulumi.azure.iot.kotlin.outputs.IoTHubRoute.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.iot.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property condition The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: .
* @property enabled Used to specify whether a route is enabled.
* @property endpointNames The list of endpoints to which messages that satisfy the condition are routed.
* @property name The name of the route.
* @property source The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`.
*/
public data class IoTHubRoute(
public val condition: String? = null,
public val enabled: Boolean,
public val endpointNames: List,
public val name: String,
public val source: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.iot.outputs.IoTHubRoute): IoTHubRoute =
IoTHubRoute(
condition = javaType.condition().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled(),
endpointNames = javaType.endpointNames().map({ args0 -> args0 }),
name = javaType.name(),
source = javaType.source(),
)
}
}