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

com.pulumi.azure.keyvault.kotlin.inputs.KeyVaultNetworkAclsArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin.inputs

import com.pulumi.azure.keyvault.inputs.KeyVaultNetworkAclsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property bypass Specifies which traffic can bypass the network rules. Possible values are `AzureServices` and `None`.
 * @property defaultAction The Default Action to use when no rules match from `ip_rules` / `virtual_network_subnet_ids`. Possible values are `Allow` and `Deny`.
 * @property ipRules One or more IP Addresses, or CIDR Blocks which should be able to access the Key Vault.
 * @property virtualNetworkSubnetIds One or more Subnet IDs which should be able to access this Key Vault.
 */
public data class KeyVaultNetworkAclsArgs(
    public val bypass: Output,
    public val defaultAction: Output,
    public val ipRules: Output>? = null,
    public val virtualNetworkSubnetIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.KeyVaultNetworkAclsArgs =
        com.pulumi.azure.keyvault.inputs.KeyVaultNetworkAclsArgs.builder()
            .bypass(bypass.applyValue({ args0 -> args0 }))
            .defaultAction(defaultAction.applyValue({ args0 -> args0 }))
            .ipRules(ipRules?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .virtualNetworkSubnetIds(
                virtualNetworkSubnetIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [KeyVaultNetworkAclsArgs].
 */
@PulumiTagMarker
public class KeyVaultNetworkAclsArgsBuilder internal constructor() {
    private var bypass: Output? = null

    private var defaultAction: Output? = null

    private var ipRules: Output>? = null

    private var virtualNetworkSubnetIds: Output>? = null

    /**
     * @param value Specifies which traffic can bypass the network rules. Possible values are `AzureServices` and `None`.
     */
    @JvmName("whypanycvkueksxr")
    public suspend fun bypass(`value`: Output) {
        this.bypass = value
    }

    /**
     * @param value The Default Action to use when no rules match from `ip_rules` / `virtual_network_subnet_ids`. Possible values are `Allow` and `Deny`.
     */
    @JvmName("ukeqmsbnoetsvkwa")
    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 Key Vault.
     */
    @JvmName("nuwbbshncvrbydbp")
    public suspend fun ipRules(`value`: Output>) {
        this.ipRules = value
    }

    @JvmName("ijanhqyxcgynwnlg")
    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 Key Vault.
     */
    @JvmName("gqrmfihxchykftxm")
    public suspend fun ipRules(values: List>) {
        this.ipRules = Output.all(values)
    }

    /**
     * @param value One or more Subnet IDs which should be able to access this Key Vault.
     */
    @JvmName("iwobjmxarjlkuhxr")
    public suspend fun virtualNetworkSubnetIds(`value`: Output>) {
        this.virtualNetworkSubnetIds = value
    }

    @JvmName("rpcvoupvelapcktx")
    public suspend fun virtualNetworkSubnetIds(vararg values: Output) {
        this.virtualNetworkSubnetIds = Output.all(values.asList())
    }

    /**
     * @param values One or more Subnet IDs which should be able to access this Key Vault.
     */
    @JvmName("jcpjtfcnssrtabeq")
    public suspend fun virtualNetworkSubnetIds(values: List>) {
        this.virtualNetworkSubnetIds = Output.all(values)
    }

    /**
     * @param value Specifies which traffic can bypass the network rules. Possible values are `AzureServices` and `None`.
     */
    @JvmName("nihlnefsngpbermx")
    public suspend fun bypass(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bypass = mapped
    }

    /**
     * @param value The Default Action to use when no rules match from `ip_rules` / `virtual_network_subnet_ids`. Possible values are `Allow` and `Deny`.
     */
    @JvmName("wxoymwdvsfjxdxxk")
    public suspend fun defaultAction(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultAction = mapped
    }

    /**
     * @param value One or more IP Addresses, or CIDR Blocks which should be able to access the Key Vault.
     */
    @JvmName("xhfpntkyreyadjfj")
    public suspend fun ipRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipRules = mapped
    }

    /**
     * @param values One or more IP Addresses, or CIDR Blocks which should be able to access the Key Vault.
     */
    @JvmName("dcusuygtakdtowis")
    public suspend fun ipRules(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipRules = mapped
    }

    /**
     * @param value One or more Subnet IDs which should be able to access this Key Vault.
     */
    @JvmName("hhvqdpnjmukugvot")
    public suspend fun virtualNetworkSubnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualNetworkSubnetIds = mapped
    }

    /**
     * @param values One or more Subnet IDs which should be able to access this Key Vault.
     */
    @JvmName("ykmkfgikrrlysyyw")
    public suspend fun virtualNetworkSubnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualNetworkSubnetIds = mapped
    }

    internal fun build(): KeyVaultNetworkAclsArgs = KeyVaultNetworkAclsArgs(
        bypass = bypass ?: throw PulumiNullFieldException("bypass"),
        defaultAction = defaultAction ?: throw PulumiNullFieldException("defaultAction"),
        ipRules = ipRules,
        virtualNetworkSubnetIds = virtualNetworkSubnetIds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy