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

com.pulumi.azure.network.kotlin.inputs.FirewallIpConfigurationArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.FirewallIpConfigurationArgs.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.jvm.JvmName

/**
 *
 * @property name Specifies the name of the IP Configuration.
 * @property privateIpAddress The private IP address associated with the Firewall.
 * @property publicIpAddressId The ID of the Public IP Address associated with the firewall.
 * > **NOTE** A public ip address is required unless a `management_ip_configuration` block is specified.
 * > **NOTE** When multiple `ip_configuration` blocks with `public_ip_address_id` are configured, `pulumi up` will raise an error when one or some of these `ip_configuration` blocks are removed. because the `public_ip_address_id` is still used by the `firewall` resource until the `firewall` resource is updated. and the destruction of `azure.network.PublicIp` happens before the update of firewall by default. to destroy of `azure.network.PublicIp` will cause the error. The workaround is to set `create_before_destroy=true` to the `azure.network.PublicIp` resource `lifecycle` block. See more detail: destroying.md#create-before-destroy
 * > **NOTE** The Public IP must have a `Static` allocation and `Standard` SKU.
 * @property subnetId Reference to the subnet associated with the IP Configuration. Changing this forces a new resource to be created.
 * > **NOTE** The Subnet used for the Firewall must have the name `AzureFirewallSubnet` and the subnet mask must be at least a `/26`.
 * > **NOTE** At least one and only one `ip_configuration` block may contain a `subnet_id`.
 */
public data class FirewallIpConfigurationArgs(
    public val name: Output,
    public val privateIpAddress: Output? = null,
    public val publicIpAddressId: Output? = null,
    public val subnetId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.FirewallIpConfigurationArgs =
        com.pulumi.azure.network.inputs.FirewallIpConfigurationArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .privateIpAddress(privateIpAddress?.applyValue({ args0 -> args0 }))
            .publicIpAddressId(publicIpAddressId?.applyValue({ args0 -> args0 }))
            .subnetId(subnetId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FirewallIpConfigurationArgs].
 */
@PulumiTagMarker
public class FirewallIpConfigurationArgsBuilder internal constructor() {
    private var name: Output? = null

    private var privateIpAddress: Output? = null

    private var publicIpAddressId: Output? = null

    private var subnetId: Output? = null

    /**
     * @param value Specifies the name of the IP Configuration.
     */
    @JvmName("fcysmyvcgwukgxmr")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The private IP address associated with the Firewall.
     */
    @JvmName("mscrssqhbcxusvag")
    public suspend fun privateIpAddress(`value`: Output) {
        this.privateIpAddress = value
    }

    /**
     * @param value The ID of the Public IP Address associated with the firewall.
     * > **NOTE** A public ip address is required unless a `management_ip_configuration` block is specified.
     * > **NOTE** When multiple `ip_configuration` blocks with `public_ip_address_id` are configured, `pulumi up` will raise an error when one or some of these `ip_configuration` blocks are removed. because the `public_ip_address_id` is still used by the `firewall` resource until the `firewall` resource is updated. and the destruction of `azure.network.PublicIp` happens before the update of firewall by default. to destroy of `azure.network.PublicIp` will cause the error. The workaround is to set `create_before_destroy=true` to the `azure.network.PublicIp` resource `lifecycle` block. See more detail: destroying.md#create-before-destroy
     * > **NOTE** The Public IP must have a `Static` allocation and `Standard` SKU.
     */
    @JvmName("jyenbfioonllccut")
    public suspend fun publicIpAddressId(`value`: Output) {
        this.publicIpAddressId = value
    }

    /**
     * @param value Reference to the subnet associated with the IP Configuration. Changing this forces a new resource to be created.
     * > **NOTE** The Subnet used for the Firewall must have the name `AzureFirewallSubnet` and the subnet mask must be at least a `/26`.
     * > **NOTE** At least one and only one `ip_configuration` block may contain a `subnet_id`.
     */
    @JvmName("ggwnxjhhoqwypjyd")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value Specifies the name of the IP Configuration.
     */
    @JvmName("ijfqtjejmdtykfuw")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The private IP address associated with the Firewall.
     */
    @JvmName("pdtokndtwligrkll")
    public suspend fun privateIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIpAddress = mapped
    }

    /**
     * @param value The ID of the Public IP Address associated with the firewall.
     * > **NOTE** A public ip address is required unless a `management_ip_configuration` block is specified.
     * > **NOTE** When multiple `ip_configuration` blocks with `public_ip_address_id` are configured, `pulumi up` will raise an error when one or some of these `ip_configuration` blocks are removed. because the `public_ip_address_id` is still used by the `firewall` resource until the `firewall` resource is updated. and the destruction of `azure.network.PublicIp` happens before the update of firewall by default. to destroy of `azure.network.PublicIp` will cause the error. The workaround is to set `create_before_destroy=true` to the `azure.network.PublicIp` resource `lifecycle` block. See more detail: destroying.md#create-before-destroy
     * > **NOTE** The Public IP must have a `Static` allocation and `Standard` SKU.
     */
    @JvmName("nvepphachrbmffbv")
    public suspend fun publicIpAddressId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpAddressId = mapped
    }

    /**
     * @param value Reference to the subnet associated with the IP Configuration. Changing this forces a new resource to be created.
     * > **NOTE** The Subnet used for the Firewall must have the name `AzureFirewallSubnet` and the subnet mask must be at least a `/26`.
     * > **NOTE** At least one and only one `ip_configuration` block may contain a `subnet_id`.
     */
    @JvmName("eendqcbrsptgfttn")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    internal fun build(): FirewallIpConfigurationArgs = FirewallIpConfigurationArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        privateIpAddress = privateIpAddress,
        publicIpAddressId = publicIpAddressId,
        subnetId = subnetId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy