![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.containerservice.kotlin.outputs.RegistryNetworkRuleSet.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.containerservice.kotlin.outputs
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property defaultAction The behaviour for requests matching no rules. Either `Allow` or `Deny`. Defaults to `Allow`
* @property ipRules One or more `ip_rule` blocks as defined below.
* > **NOTE:** `network_rule_set` is only supported with the `Premium` SKU at this time.
* > **NOTE:** Azure automatically configures Network Rules - to remove these you'll need to specify an `network_rule_set` block with `default_action` set to `Deny`.
* @property virtualNetworks
*/
public data class RegistryNetworkRuleSet(
public val defaultAction: String? = null,
public val ipRules: List? = null,
@Deprecated(
message = """
The property `virtual_network` is deprecated since this is used exclusively for service endpoints
which are being deprecated. Users are expected to use Private Endpoints instead. This property
will be removed in v4.0 of the AzureRM Provider.
""",
)
public val virtualNetworks: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerservice.outputs.RegistryNetworkRuleSet): RegistryNetworkRuleSet = RegistryNetworkRuleSet(
defaultAction = javaType.defaultAction().map({ args0 -> args0 }).orElse(null),
ipRules = javaType.ipRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerservice.kotlin.outputs.RegistryNetworkRuleSetIpRule.Companion.toKotlin(args0)
})
}),
virtualNetworks = javaType.virtualNetworks().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerservice.kotlin.outputs.RegistryNetworkRuleSetVirtualNetwork.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy