![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.network.kotlin.inputs.AzureFirewallNatRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.AzureFirewallNatRuleArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.AzureFirewallNetworkRuleProtocol
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Properties of a NAT rule.
* @property description Description of the rule.
* @property destinationAddresses List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.
* @property destinationPorts List of destination ports.
* @property name Name of the NAT rule.
* @property protocols Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.
* @property sourceAddresses List of source IP addresses for this rule.
* @property sourceIpGroups List of source IpGroups for this rule.
* @property translatedAddress The translated address for this NAT rule.
* @property translatedFqdn The translated FQDN for this NAT rule.
* @property translatedPort The translated port for this NAT rule.
*/
public data class AzureFirewallNatRuleArgs(
public val description: Output? = null,
public val destinationAddresses: Output>? = null,
public val destinationPorts: Output>? = null,
public val name: Output? = null,
public val protocols: Output>>? = null,
public val sourceAddresses: Output>? = null,
public val sourceIpGroups: Output>? = null,
public val translatedAddress: Output? = null,
public val translatedFqdn: Output? = null,
public val translatedPort: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.AzureFirewallNatRuleArgs =
com.pulumi.azurenative.network.inputs.AzureFirewallNatRuleArgs.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.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
})
}),
)
.sourceAddresses(sourceAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.sourceIpGroups(sourceIpGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.translatedAddress(translatedAddress?.applyValue({ args0 -> args0 }))
.translatedFqdn(translatedFqdn?.applyValue({ args0 -> args0 }))
.translatedPort(translatedPort?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AzureFirewallNatRuleArgs].
*/
@PulumiTagMarker
public class AzureFirewallNatRuleArgsBuilder 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 translatedFqdn: Output? = null
private var translatedPort: Output? = null
/**
* @param value Description of the rule.
*/
@JvmName("rofioprahderrmyv")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.
*/
@JvmName("fbgibqideysidwmd")
public suspend fun destinationAddresses(`value`: Output>) {
this.destinationAddresses = value
}
@JvmName("kjqyklachsmqklrv")
public suspend fun destinationAddresses(vararg values: Output) {
this.destinationAddresses = Output.all(values.asList())
}
/**
* @param values List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.
*/
@JvmName("oumijctpbiocunac")
public suspend fun destinationAddresses(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy