com.pulumi.azure.network.kotlin.inputs.FirewallNatRuleCollectionRuleArgs.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.network.kotlin.inputs
import com.pulumi.azure.network.inputs.FirewallNatRuleCollectionRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 description Specifies a description for the rule.
* @property destinationAddresses A list of destination IP addresses and/or IP ranges.
* @property destinationPorts A list of destination ports.
* @property name Specifies the name of the rule.
* @property protocols A list of protocols. Possible values are `Any`, `ICMP`, `TCP` and `UDP`. If `action` is `Dnat`, protocols can only be `TCP` and `UDP`.
* @property sourceAddresses A list of source IP addresses and/or IP ranges.
* @property sourceIpGroups A list of source IP Group IDs for the rule.
* > **NOTE** At least one of `source_addresses` and `source_ip_groups` must be specified for a rule.
* @property translatedAddress The address of the service behind the Firewall.
* @property translatedPort The port of the service behind the Firewall.
*/
public data class FirewallNatRuleCollectionRuleArgs(
public val description: Output? = null,
public val destinationAddresses: Output>,
public val destinationPorts: Output>,
public val name: Output,
public val protocols: Output>,
public val sourceAddresses: Output>? = null,
public val sourceIpGroups: Output>? = null,
public val translatedAddress: Output,
public val translatedPort: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.inputs.FirewallNatRuleCollectionRuleArgs =
com.pulumi.azure.network.inputs.FirewallNatRuleCollectionRuleArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.destinationAddresses(destinationAddresses.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.destinationPorts(destinationPorts.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name.applyValue({ args0 -> args0 }))
.protocols(protocols.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.sourceAddresses(sourceAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.sourceIpGroups(sourceIpGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.translatedAddress(translatedAddress.applyValue({ args0 -> args0 }))
.translatedPort(translatedPort.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FirewallNatRuleCollectionRuleArgs].
*/
@PulumiTagMarker
public class FirewallNatRuleCollectionRuleArgsBuilder internal constructor() {
private var description: Output? = null
private var destinationAddresses: Output>? = null
private var destinationPorts: Output>? = null
private var name: Output? = null
private var protocols: Output>? = null
private var sourceAddresses: Output>? = null
private var sourceIpGroups: Output>? = null
private var translatedAddress: Output? = null
private var translatedPort: Output? = null
/**
* @param value Specifies a description for the rule.
*/
@JvmName("rdnhespedeelyhjn")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value A list of destination IP addresses and/or IP ranges.
*/
@JvmName("xmfegrjmktyfiecy")
public suspend fun destinationAddresses(`value`: Output>) {
this.destinationAddresses = value
}
@JvmName("bitqrkwqlwdoqmyu")
public suspend fun destinationAddresses(vararg values: Output) {
this.destinationAddresses = Output.all(values.asList())
}
/**
* @param values A list of destination IP addresses and/or IP ranges.
*/
@JvmName("qplphuduthnagmxn")
public suspend fun destinationAddresses(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy