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

com.pulumi.gcp.networksecurity.kotlin.FirewallEndpointAssociationArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networksecurity.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.FirewallEndpointAssociationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Firewall endpoint association links a firewall endpoint to a VPC network in
 * the same zone. After you define this association, Cloud Firewall forwards the
 * zonal workload traffic in your VPC network that requires layer 7 inspection to
 * the attached firewall endpoint.
 * To get more information about FirewallEndpointAssociation, see:
 * * [API documentation](https://cloud.google.com/firewall/docs/reference/network-security/rest/v1/projects.locations.firewallEndpointAssociations#FirewallEndpointAssociation)
 * * How-to Guides
 *     * [Create and associate firewall endpoints](https://cloud.google.com/firewall/docs/configure-firewall-endpoints)
 *     * [Firewall endpoint overview](https://cloud.google.com/firewall/docs/about-firewall-endpoints)
 * > **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
 * you must specify a `billing_project_id` and set `user_project_override` to true
 * in the provider configuration. Otherwise the ACM API will return a 403 error.
 * Your account must have the `serviceusage.services.use` permission on the
 * `billing_project_id` you defined.
 * ## Example Usage
 * ## Import
 * FirewallEndpointAssociation can be imported using any of these accepted formats:
 * * `{{parent}}/locations/{{location}}/firewallEndpointAssociations/{{name}}`
 * When using the `pulumi import` command, FirewallEndpointAssociation can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:networksecurity/firewallEndpointAssociation:FirewallEndpointAssociation default {{parent}}/locations/{{location}}/firewallEndpointAssociations/{{name}}
 * ```
 * @property disabled Whether the association is disabled. True indicates that traffic will not be intercepted.
 * > **Note:** The API will reject the request if this value is set to true when creating the resource,
 * otherwise on an update the association can be disabled.
 * @property firewallEndpoint The URL of the firewall endpoint that is being associated.
 * @property labels A map of key/value label pairs to assign to the resource.
 * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
 * Please refer to the field `effective_labels` for all of the labels present on the resource.
 * @property location The location (zone) of the firewall endpoint association.
 * - - -
 * @property name The name of the firewall endpoint association resource.
 * @property network The URL of the network that is being associated.
 * @property parent The name of the parent this firewall endpoint association belongs to.
 * Format: projects/{project_id}.
 * @property tlsInspectionPolicy The URL of the TlsInspectionPolicy that is being associated.
 */
public data class FirewallEndpointAssociationArgs(
    public val disabled: Output? = null,
    public val firewallEndpoint: Output? = null,
    public val labels: Output>? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val network: Output? = null,
    public val parent: Output? = null,
    public val tlsInspectionPolicy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.FirewallEndpointAssociationArgs =
        com.pulumi.gcp.networksecurity.FirewallEndpointAssociationArgs.builder()
            .disabled(disabled?.applyValue({ args0 -> args0 }))
            .firewallEndpoint(firewallEndpoint?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 }))
            .parent(parent?.applyValue({ args0 -> args0 }))
            .tlsInspectionPolicy(tlsInspectionPolicy?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FirewallEndpointAssociationArgs].
 */
@PulumiTagMarker
public class FirewallEndpointAssociationArgsBuilder internal constructor() {
    private var disabled: Output? = null

    private var firewallEndpoint: Output? = null

    private var labels: Output>? = null

    private var location: Output? = null

    private var name: Output? = null

    private var network: Output? = null

    private var parent: Output? = null

    private var tlsInspectionPolicy: Output? = null

    /**
     * @param value Whether the association is disabled. True indicates that traffic will not be intercepted.
     * > **Note:** The API will reject the request if this value is set to true when creating the resource,
     * otherwise on an update the association can be disabled.
     */
    @JvmName("lmkfeyxypvjrwjix")
    public suspend fun disabled(`value`: Output) {
        this.disabled = value
    }

    /**
     * @param value The URL of the firewall endpoint that is being associated.
     */
    @JvmName("chrgcqaqymvmeimm")
    public suspend fun firewallEndpoint(`value`: Output) {
        this.firewallEndpoint = value
    }

    /**
     * @param value A map of key/value label pairs to assign to the resource.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("mkwbfhuwqkixxenf")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The location (zone) of the firewall endpoint association.
     * - - -
     */
    @JvmName("oyavjqicjujjwlum")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the firewall endpoint association resource.
     */
    @JvmName("pqwxilkxyvriumug")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The URL of the network that is being associated.
     */
    @JvmName("roonernpyrbwlnxi")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The name of the parent this firewall endpoint association belongs to.
     * Format: projects/{project_id}.
     */
    @JvmName("kdbrnvuksyxknrqh")
    public suspend fun parent(`value`: Output) {
        this.parent = value
    }

    /**
     * @param value The URL of the TlsInspectionPolicy that is being associated.
     */
    @JvmName("mwopwcaismsulgyr")
    public suspend fun tlsInspectionPolicy(`value`: Output) {
        this.tlsInspectionPolicy = value
    }

    /**
     * @param value Whether the association is disabled. True indicates that traffic will not be intercepted.
     * > **Note:** The API will reject the request if this value is set to true when creating the resource,
     * otherwise on an update the association can be disabled.
     */
    @JvmName("ctyshledesstxkwu")
    public suspend fun disabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabled = mapped
    }

    /**
     * @param value The URL of the firewall endpoint that is being associated.
     */
    @JvmName("thhvgnfnqvwftcvo")
    public suspend fun firewallEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallEndpoint = mapped
    }

    /**
     * @param value A map of key/value label pairs to assign to the resource.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("rfjvwxdxkhmawjkh")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values A map of key/value label pairs to assign to the resource.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("lhvfjibhakgrqnib")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The location (zone) of the firewall endpoint association.
     * - - -
     */
    @JvmName("mfgbdgpuepyyflrw")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the firewall endpoint association resource.
     */
    @JvmName("kgrcrttgabvskpsh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The URL of the network that is being associated.
     */
    @JvmName("avyedavcudlhmfuy")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value The name of the parent this firewall endpoint association belongs to.
     * Format: projects/{project_id}.
     */
    @JvmName("xfytdnsdgcgrwyvs")
    public suspend fun parent(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parent = mapped
    }

    /**
     * @param value The URL of the TlsInspectionPolicy that is being associated.
     */
    @JvmName("pedxucgqvudvboop")
    public suspend fun tlsInspectionPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tlsInspectionPolicy = mapped
    }

    internal fun build(): FirewallEndpointAssociationArgs = FirewallEndpointAssociationArgs(
        disabled = disabled,
        firewallEndpoint = firewallEndpoint,
        labels = labels,
        location = location,
        name = name,
        network = network,
        parent = parent,
        tlsInspectionPolicy = tlsInspectionPolicy,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy