
com.pulumi.azurenative.keyvault.kotlin.inputs.NetworkRuleSetArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.keyvault.kotlin.inputs
import com.pulumi.azurenative.keyvault.inputs.NetworkRuleSetArgs.builder
import com.pulumi.azurenative.keyvault.kotlin.enums.NetworkRuleAction
import com.pulumi.azurenative.keyvault.kotlin.enums.NetworkRuleBypassOptions
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A set of rules governing the network accessibility of a vault.
* @property bypass Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'.
* @property defaultAction The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.
* @property ipRules The list of IP address rules.
* @property virtualNetworkRules The list of virtual network rules.
*/
public data class NetworkRuleSetArgs(
public val bypass: Output>? = null,
public val defaultAction: Output>? = null,
public val ipRules: Output>? = null,
public val virtualNetworkRules: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.keyvault.inputs.NetworkRuleSetArgs =
com.pulumi.azurenative.keyvault.inputs.NetworkRuleSetArgs.builder()
.bypass(
bypass?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.defaultAction(
defaultAction?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.ipRules(
ipRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.virtualNetworkRules(
virtualNetworkRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [NetworkRuleSetArgs].
*/
@PulumiTagMarker
public class NetworkRuleSetArgsBuilder internal constructor() {
private var bypass: Output>? = null
private var defaultAction: Output>? = null
private var ipRules: Output>? = null
private var virtualNetworkRules: Output>? = null
/**
* @param value Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'.
*/
@JvmName("vmtjouxiyqeqwkmp")
public suspend fun bypass(`value`: Output>) {
this.bypass = value
}
/**
* @param value The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.
*/
@JvmName("nftdcwdakbxhquvd")
public suspend fun defaultAction(`value`: Output>) {
this.defaultAction = value
}
/**
* @param value The list of IP address rules.
*/
@JvmName("ebiieauykoqlqchn")
public suspend fun ipRules(`value`: Output>) {
this.ipRules = value
}
@JvmName("bsjuygipxvicabay")
public suspend fun ipRules(vararg values: Output) {
this.ipRules = Output.all(values.asList())
}
/**
* @param values The list of IP address rules.
*/
@JvmName("omafeeftodfivicf")
public suspend fun ipRules(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy