com.pulumi.azurenative.search.kotlin.inputs.NetworkRuleSetArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.search.kotlin.inputs
import com.pulumi.azurenative.search.inputs.NetworkRuleSetArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Network specific rules that determine how the Azure Cognitive Search service may be reached.
* @property ipRules A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.
*/
public data class NetworkRuleSetArgs(
public val ipRules: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.search.inputs.NetworkRuleSetArgs =
com.pulumi.azurenative.search.inputs.NetworkRuleSetArgs.builder()
.ipRules(
ipRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [NetworkRuleSetArgs].
*/
@PulumiTagMarker
public class NetworkRuleSetArgsBuilder internal constructor() {
private var ipRules: Output>? = null
/**
* @param value A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.
*/
@JvmName("swharaucqihqckkj")
public suspend fun ipRules(`value`: Output>) {
this.ipRules = value
}
@JvmName("leekttiyhxfpubwg")
public suspend fun ipRules(vararg values: Output) {
this.ipRules = Output.all(values.asList())
}
/**
* @param values A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.
*/
@JvmName("tdpirnruuoopnwkn")
public suspend fun ipRules(values: List