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

com.pulumi.azure.cognitive.kotlin.outputs.AccountNetworkAcls.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.cognitive.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property defaultAction The Default Action to use when no rules match from `ip_rules` / `virtual_network_rules`. Possible values are `Allow` and `Deny`.
 * @property ipRules One or more IP Addresses, or CIDR Blocks which should be able to access the Cognitive Account.
 * @property virtualNetworkRules A `virtual_network_rules` block as defined below.
 */
public data class AccountNetworkAcls(
    public val defaultAction: String,
    public val ipRules: List? = null,
    public val virtualNetworkRules: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.cognitive.outputs.AccountNetworkAcls): AccountNetworkAcls = AccountNetworkAcls(
            defaultAction = javaType.defaultAction(),
            ipRules = javaType.ipRules().map({ args0 -> args0 }),
            virtualNetworkRules = javaType.virtualNetworkRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cognitive.kotlin.outputs.AccountNetworkAclsVirtualNetworkRule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy