com.pulumi.azure.iot.kotlin.outputs.IoTHubNetworkRuleSetIpRule.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.iot.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property action The desired action for requests captured by this rule. Possible values are `Allow`. Defaults to `Allow`.
* @property ipMask The IP address range in CIDR notation for the ip rule.
* @property name The name of the ip rule.
*/
public data class IoTHubNetworkRuleSetIpRule(
public val action: String? = null,
public val ipMask: String,
public val name: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.iot.outputs.IoTHubNetworkRuleSetIpRule): IoTHubNetworkRuleSetIpRule = IoTHubNetworkRuleSetIpRule(
action = javaType.action().map({ args0 -> args0 }).orElse(null),
ipMask = javaType.ipMask(),
name = javaType.name(),
)
}
}