com.pulumi.gcp.compute.kotlin.inputs.FirewallDenyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.FirewallDenyArgs.builder
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 ports An optional list of ports to which this rule applies. This field
* is only applicable for UDP or TCP protocol. Each entry must be
* either an integer or a range. If not specified, this rule
* applies to connections through any port.
* Example inputs include: ["22"], ["80","443"], and
* ["12345-12349"].
* @property protocol The IP protocol to which this rule applies. The protocol type is
* required when creating a firewall rule. This value can either be
* one of the following well known protocol strings (tcp, udp,
* icmp, esp, ah, sctp, ipip, all), or the IP protocol number.
*/
public data class FirewallDenyArgs(
public val ports: Output>? = null,
public val protocol: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.FirewallDenyArgs =
com.pulumi.gcp.compute.inputs.FirewallDenyArgs.builder()
.ports(ports?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.protocol(protocol.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FirewallDenyArgs].
*/
@PulumiTagMarker
public class FirewallDenyArgsBuilder internal constructor() {
private var ports: Output>? = null
private var protocol: Output? = null
/**
* @param value An optional list of ports to which this rule applies. This field
* is only applicable for UDP or TCP protocol. Each entry must be
* either an integer or a range. If not specified, this rule
* applies to connections through any port.
* Example inputs include: ["22"], ["80","443"], and
* ["12345-12349"].
*/
@JvmName("fijkrbnivxdsbhlw")
public suspend fun ports(`value`: Output>) {
this.ports = value
}
@JvmName("fvthkbpliayholob")
public suspend fun ports(vararg values: Output) {
this.ports = Output.all(values.asList())
}
/**
* @param values An optional list of ports to which this rule applies. This field
* is only applicable for UDP or TCP protocol. Each entry must be
* either an integer or a range. If not specified, this rule
* applies to connections through any port.
* Example inputs include: ["22"], ["80","443"], and
* ["12345-12349"].
*/
@JvmName("oexlllkerfmuljlk")
public suspend fun ports(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy