Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.FirewallOutboundRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property destinationAddresses An array of strings containing the IPv4
* addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the
* outbound traffic will be allowed.
* @property destinationDropletIds An array containing the IDs of
* the Droplets to which the outbound traffic will be allowed.
* @property destinationKubernetesIds An array containing the IDs of
* the Kubernetes clusters to which the outbound traffic will be allowed.
* @property destinationLoadBalancerUids An array containing the IDs
* of the Load Balancers to which the outbound traffic will be allowed.
* @property destinationTags An array containing the names of Tags
* corresponding to groups of Droplets to which the outbound traffic will
* be allowed.
* @property portRange The ports on which traffic will be allowed
* specified as a string containing a single port, a range (e.g. "8000-9000"),
* or "1-65535" to open all ports for a protocol. Required for when protocol is
* `tcp` or `udp`.
* @property protocol The type of traffic to be allowed.
* This may be one of "tcp", "udp", or "icmp".
*/
public data class FirewallOutboundRuleArgs(
public val destinationAddresses: Output>? = null,
public val destinationDropletIds: Output>? = null,
public val destinationKubernetesIds: Output>? = null,
public val destinationLoadBalancerUids: Output>? = null,
public val destinationTags: Output>? = null,
public val portRange: Output? = null,
public val protocol: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.FirewallOutboundRuleArgs =
com.pulumi.digitalocean.inputs.FirewallOutboundRuleArgs.builder()
.destinationAddresses(destinationAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.destinationDropletIds(destinationDropletIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.destinationKubernetesIds(
destinationKubernetesIds?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.destinationLoadBalancerUids(
destinationLoadBalancerUids?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.destinationTags(destinationTags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.portRange(portRange?.applyValue({ args0 -> args0 }))
.protocol(protocol.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FirewallOutboundRuleArgs].
*/
@PulumiTagMarker
public class FirewallOutboundRuleArgsBuilder internal constructor() {
private var destinationAddresses: Output>? = null
private var destinationDropletIds: Output>? = null
private var destinationKubernetesIds: Output>? = null
private var destinationLoadBalancerUids: Output>? = null
private var destinationTags: Output>? = null
private var portRange: Output? = null
private var protocol: Output? = null
/**
* @param value An array of strings containing the IPv4
* addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the
* outbound traffic will be allowed.
*/
@JvmName("txascsjiqpwdrrde")
public suspend fun destinationAddresses(`value`: Output>) {
this.destinationAddresses = value
}
@JvmName("kuwpkeatevbvfflx")
public suspend fun destinationAddresses(vararg values: Output) {
this.destinationAddresses = Output.all(values.asList())
}
/**
* @param values An array of strings containing the IPv4
* addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the
* outbound traffic will be allowed.
*/
@JvmName("rmulwdetwdjvsgne")
public suspend fun destinationAddresses(values: List