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

com.pulumi.azure.eventhub.kotlin.outputs.EventHubNamespaceNetworkRulesets.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.eventhub.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property defaultAction The default action to take when a rule is not matched. Possible values are `Allow` and `Deny`.
 * @property ipRules One or more `ip_rule` blocks as defined below.
 * @property publicNetworkAccessEnabled Is public network access enabled for the EventHub Namespace? Defaults to `true`.
 * > **Note:** The public network access setting at the network rule sets level should be the same as it's at the namespace level.
 * @property trustedServiceAccessEnabled Whether Trusted Microsoft Services are allowed to bypass firewall.
 * @property virtualNetworkRules One or more `virtual_network_rule` blocks as defined below.
 */
public data class EventHubNamespaceNetworkRulesets(
    public val defaultAction: String,
    public val ipRules: List? = null,
    public val publicNetworkAccessEnabled: Boolean? = null,
    public val trustedServiceAccessEnabled: Boolean? = null,
    public val virtualNetworkRules: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.eventhub.outputs.EventHubNamespaceNetworkRulesets): EventHubNamespaceNetworkRulesets = EventHubNamespaceNetworkRulesets(
            defaultAction = javaType.defaultAction(),
            ipRules = javaType.ipRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.eventhub.kotlin.outputs.EventHubNamespaceNetworkRulesetsIpRule.Companion.toKotlin(args0)
                })
            }),
            publicNetworkAccessEnabled = javaType.publicNetworkAccessEnabled().map({ args0 ->
                args0
            }).orElse(null),
            trustedServiceAccessEnabled = javaType.trustedServiceAccessEnabled().map({ args0 ->
                args0
            }).orElse(null),
            virtualNetworkRules = javaType.virtualNetworkRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.eventhub.kotlin.outputs.EventHubNamespaceNetworkRulesetsVirtualNetworkRule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy