com.pulumi.digitalocean.kotlin.outputs.LoadBalancerFirewall.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-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.digitalocean.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property allows A list of strings describing allow rules. Must be colon delimited strings of the form `{type}:{source}`
* * Ex. `deny = ["cidr:1.2.0.0/16", "ip:2.3.4.5"]` or `allow = ["ip:1.2.3.4", "cidr:2.3.4.0/24"]`
* @property denies A list of strings describing deny rules. Must be colon delimited strings of the form `{type}:{source}`
*/
public data class LoadBalancerFirewall(
public val allows: List? = null,
public val denies: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.LoadBalancerFirewall): LoadBalancerFirewall = LoadBalancerFirewall(
allows = javaType.allows().map({ args0 -> args0 }),
denies = javaType.denies().map({ args0 -> args0 }),
)
}
}