com.pulumi.azure.servicebus.kotlin.inputs.NamespaceNetworkRuleSetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.servicebus.kotlin.inputs
import com.pulumi.azure.servicebus.inputs.NamespaceNetworkRuleSetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 NamespaceNetworkRuleSetArgs(
public val defaultAction: Output? = null,
public val ipRules: Output>? = null,
public val networkRules: Output>? = null,
public val publicNetworkAccessEnabled: Output? = null,
public val trustedServicesAllowed: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.servicebus.inputs.NamespaceNetworkRuleSetArgs =
com.pulumi.azure.servicebus.inputs.NamespaceNetworkRuleSetArgs.builder()
.defaultAction(defaultAction?.applyValue({ args0 -> args0 }))
.ipRules(ipRules?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.networkRules(
networkRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
.trustedServicesAllowed(trustedServicesAllowed?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NamespaceNetworkRuleSetArgs].
*/
@PulumiTagMarker
public class NamespaceNetworkRuleSetArgsBuilder internal constructor() {
private var defaultAction: Output? = null
private var ipRules: Output>? = null
private var networkRules: Output>? = null
private var publicNetworkAccessEnabled: Output? = null
private var trustedServicesAllowed: Output? = null
/**
* @param value Specifies the default action for the Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Allow`.
*/
@JvmName("algnrtwfjjxxautc")
public suspend fun defaultAction(`value`: Output) {
this.defaultAction = value
}
/**
* @param value One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
*/
@JvmName("kmxfjdcpxlekastc")
public suspend fun ipRules(`value`: Output>) {
this.ipRules = value
}
@JvmName("cbbfryefeqgtbkwj")
public suspend fun ipRules(vararg values: Output) {
this.ipRules = Output.all(values.asList())
}
/**
* @param values One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
*/
@JvmName("nvrboxneeauejxld")
public suspend fun ipRules(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy