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

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

package com.pulumi.gcp.networksecurity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.AuthzPolicyTargetArgs.builder
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 loadBalancingScheme All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme.
 * For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
 * Possible values are: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`, `INTERNAL_SELF_MANAGED`.
 * @property resources A list of references to the Forwarding Rules on which this policy will be applied.
 * - - -
 */
public data class AuthzPolicyTargetArgs(
    public val loadBalancingScheme: Output,
    public val resources: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.AuthzPolicyTargetArgs =
        com.pulumi.gcp.networksecurity.inputs.AuthzPolicyTargetArgs.builder()
            .loadBalancingScheme(loadBalancingScheme.applyValue({ args0 -> args0 }))
            .resources(resources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AuthzPolicyTargetArgs].
 */
@PulumiTagMarker
public class AuthzPolicyTargetArgsBuilder internal constructor() {
    private var loadBalancingScheme: Output? = null

    private var resources: Output>? = null

    /**
     * @param value All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme.
     * For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
     * Possible values are: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`, `INTERNAL_SELF_MANAGED`.
     */
    @JvmName("qjbdoxnasscldytm")
    public suspend fun loadBalancingScheme(`value`: Output) {
        this.loadBalancingScheme = value
    }

    /**
     * @param value A list of references to the Forwarding Rules on which this policy will be applied.
     * - - -
     */
    @JvmName("ecrwdvuvahrtkphl")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

    @JvmName("ewvbdisedsccflmo")
    public suspend fun resources(vararg values: Output) {
        this.resources = Output.all(values.asList())
    }

    /**
     * @param values A list of references to the Forwarding Rules on which this policy will be applied.
     * - - -
     */
    @JvmName("hpvvmgsgwcjtiohk")
    public suspend fun resources(values: List>) {
        this.resources = Output.all(values)
    }

    /**
     * @param value All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme.
     * For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
     * Possible values are: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`, `INTERNAL_SELF_MANAGED`.
     */
    @JvmName("folrfobtysoxjaje")
    public suspend fun loadBalancingScheme(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loadBalancingScheme = mapped
    }

    /**
     * @param value A list of references to the Forwarding Rules on which this policy will be applied.
     * - - -
     */
    @JvmName("biaxuegkheaprotd")
    public suspend fun resources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param values A list of references to the Forwarding Rules on which this policy will be applied.
     * - - -
     */
    @JvmName("pnncrnlkspswcckf")
    public suspend fun resources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    internal fun build(): AuthzPolicyTargetArgs = AuthzPolicyTargetArgs(
        loadBalancingScheme = loadBalancingScheme ?: throw PulumiNullFieldException("loadBalancingScheme"),
        resources = resources,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy