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

com.pulumi.digitalocean.kotlin.outputs.LoadBalancerFirewall.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: 4.35.0.0
Show newest version
@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 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy