com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobBinaryAuthorizationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobBinaryAuthorizationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property breakglassJustification If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
* @property useDefault If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
*/
public data class JobBinaryAuthorizationArgs(
public val breakglassJustification: Output? = null,
public val useDefault: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobBinaryAuthorizationArgs =
com.pulumi.gcp.cloudrunv2.inputs.JobBinaryAuthorizationArgs.builder()
.breakglassJustification(breakglassJustification?.applyValue({ args0 -> args0 }))
.useDefault(useDefault?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobBinaryAuthorizationArgs].
*/
@PulumiTagMarker
public class JobBinaryAuthorizationArgsBuilder internal constructor() {
private var breakglassJustification: Output? = null
private var useDefault: Output? = null
/**
* @param value If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
*/
@JvmName("wbytkhtmieptrbka")
public suspend fun breakglassJustification(`value`: Output) {
this.breakglassJustification = value
}
/**
* @param value If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
*/
@JvmName("mvxsunaxwsquilto")
public suspend fun useDefault(`value`: Output) {
this.useDefault = value
}
/**
* @param value If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
*/
@JvmName("ectuklijunpevljm")
public suspend fun breakglassJustification(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.breakglassJustification = mapped
}
/**
* @param value If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
*/
@JvmName("emscuknvidxggugi")
public suspend fun useDefault(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useDefault = mapped
}
internal fun build(): JobBinaryAuthorizationArgs = JobBinaryAuthorizationArgs(
breakglassJustification = breakglassJustification,
useDefault = useDefault,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy