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

com.pulumi.gcp.container.kotlin.inputs.ClusterBinaryAuthorizationArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterBinaryAuthorizationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Enable Binary Authorization for this cluster.
 * @property evaluationMode Mode of operation for Binary Authorization policy evaluation.
 */
public data class ClusterBinaryAuthorizationArgs(
    @Deprecated(
        message = """
  Deprecated in favor of evaluation_mode.
  """,
    )
    public val enabled: Output? = null,
    public val evaluationMode: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterBinaryAuthorizationArgs =
        com.pulumi.gcp.container.inputs.ClusterBinaryAuthorizationArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .evaluationMode(evaluationMode?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterBinaryAuthorizationArgs].
 */
@PulumiTagMarker
public class ClusterBinaryAuthorizationArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var evaluationMode: Output? = null

    /**
     * @param value Enable Binary Authorization for this cluster.
     */
    @Deprecated(
        message = """
  Deprecated in favor of evaluation_mode.
  """,
    )
    @JvmName("jxppkffhgthkxaxu")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Mode of operation for Binary Authorization policy evaluation.
     */
    @JvmName("cjjcyuejbcorqjtb")
    public suspend fun evaluationMode(`value`: Output) {
        this.evaluationMode = value
    }

    /**
     * @param value Enable Binary Authorization for this cluster.
     */
    @Deprecated(
        message = """
  Deprecated in favor of evaluation_mode.
  """,
    )
    @JvmName("imsjbeahjxnroexx")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Mode of operation for Binary Authorization policy evaluation.
     */
    @JvmName("sttviinorgqehmsw")
    public suspend fun evaluationMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.evaluationMode = mapped
    }

    internal fun build(): ClusterBinaryAuthorizationArgs = ClusterBinaryAuthorizationArgs(
        enabled = enabled,
        evaluationMode = evaluationMode,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy