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

com.pulumi.azure.eventhub.kotlin.outputs.NamespaceNetworkRuleSet.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 Specifies the default action for the Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Allow`.
 * @property ipRules One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
 * @property networkRules One or more `network_rules` blocks as defined below.
 * @property publicNetworkAccessEnabled Whether to allow traffic over public network. Possible values are `true` and `false`. Defaults to `true`.
 * @property trustedServicesAllowed Are Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration? See [Trusted Microsoft Services](https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/service-bus-messaging/includes/service-bus-trusted-services.md)
 */
public data class NamespaceNetworkRuleSet(
    public val defaultAction: String? = null,
    public val ipRules: List? = null,
    public val networkRules: List? = null,
    public val publicNetworkAccessEnabled: Boolean? = null,
    public val trustedServicesAllowed: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.eventhub.outputs.NamespaceNetworkRuleSet):
            NamespaceNetworkRuleSet = NamespaceNetworkRuleSet(
            defaultAction = javaType.defaultAction().map({ args0 -> args0 }).orElse(null),
            ipRules = javaType.ipRules().map({ args0 -> args0 }),
            networkRules = javaType.networkRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.eventhub.kotlin.outputs.NamespaceNetworkRuleSetNetworkRule.Companion.toKotlin(args0)
                })
            }),
            publicNetworkAccessEnabled = javaType.publicNetworkAccessEnabled().map({ args0 ->
                args0
            }).orElse(null),
            trustedServicesAllowed = javaType.trustedServicesAllowed().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy