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

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

package com.pulumi.gcp.gkehub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FleetDefaultClusterConfigBinaryAuthorizationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property evaluationMode Mode of operation for binauthz policy evaluation.
 * Possible values are: `DISABLED`, `POLICY_BINDINGS`.
 * @property policyBindings Binauthz policies that apply to this cluster.
 * Structure is documented below.
 */
public data class FleetDefaultClusterConfigBinaryAuthorizationConfigArgs(
    public val evaluationMode: Output? = null,
    public val policyBindings: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FleetDefaultClusterConfigBinaryAuthorizationConfigArgs =
        com.pulumi.gcp.gkehub.inputs.FleetDefaultClusterConfigBinaryAuthorizationConfigArgs.builder()
            .evaluationMode(evaluationMode?.applyValue({ args0 -> args0 }))
            .policyBindings(
                policyBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FleetDefaultClusterConfigBinaryAuthorizationConfigArgs].
 */
@PulumiTagMarker
public class FleetDefaultClusterConfigBinaryAuthorizationConfigArgsBuilder internal constructor() {
    private var evaluationMode: Output? = null

    private var policyBindings:
        Output>? = null

    /**
     * @param value Mode of operation for binauthz policy evaluation.
     * Possible values are: `DISABLED`, `POLICY_BINDINGS`.
     */
    @JvmName("ngwoveiesaouexos")
    public suspend fun evaluationMode(`value`: Output) {
        this.evaluationMode = value
    }

    /**
     * @param value Binauthz policies that apply to this cluster.
     * Structure is documented below.
     */
    @JvmName("urtexyijdnxcehnv")
    public suspend fun policyBindings(`value`: Output>) {
        this.policyBindings = value
    }

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

    /**
     * @param values Binauthz policies that apply to this cluster.
     * Structure is documented below.
     */
    @JvmName("wwlaihjtlvhjdvcl")
    public suspend fun policyBindings(values: List>) {
        this.policyBindings = Output.all(values)
    }

    /**
     * @param value Mode of operation for binauthz policy evaluation.
     * Possible values are: `DISABLED`, `POLICY_BINDINGS`.
     */
    @JvmName("rpfmsjoeecnxnror")
    public suspend fun evaluationMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.evaluationMode = mapped
    }

    /**
     * @param value Binauthz policies that apply to this cluster.
     * Structure is documented below.
     */
    @JvmName("xjtdbyuvcxkurvqg")
    public suspend fun policyBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyBindings = mapped
    }

    /**
     * @param argument Binauthz policies that apply to this cluster.
     * Structure is documented below.
     */
    @JvmName("ceyhlmdoqsqnkbfh")
    public suspend fun policyBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.policyBindings = mapped
    }

    /**
     * @param argument Binauthz policies that apply to this cluster.
     * Structure is documented below.
     */
    @JvmName("wxrfauctnqasfaeu")
    public suspend fun policyBindings(vararg argument: suspend FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.policyBindings = mapped
    }

    /**
     * @param argument Binauthz policies that apply to this cluster.
     * Structure is documented below.
     */
    @JvmName("bwbimnfovdbegwjk")
    public suspend fun policyBindings(argument: suspend FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.policyBindings = mapped
    }

    /**
     * @param values Binauthz policies that apply to this cluster.
     * Structure is documented below.
     */
    @JvmName("osgdufwyquikjodl")
    public suspend fun policyBindings(vararg values: FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyBindings = mapped
    }

    internal fun build(): FleetDefaultClusterConfigBinaryAuthorizationConfigArgs =
        FleetDefaultClusterConfigBinaryAuthorizationConfigArgs(
            evaluationMode = evaluationMode,
            policyBindings = policyBindings,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy