com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs.SELinuxStrategyOptionsPatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.core.v1.kotlin.inputs.SELinuxOptionsPatchArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.SELinuxOptionsPatchArgsBuilder
import com.pulumi.kubernetes.policy.v1beta1.inputs.SELinuxStrategyOptionsPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.
* @property rule rule is the strategy that will dictate the allowable labels that may be set.
* @property seLinuxOptions seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
*/
public data class SELinuxStrategyOptionsPatchArgs(
public val rule: Output? = null,
public val seLinuxOptions: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.policy.v1beta1.inputs.SELinuxStrategyOptionsPatchArgs = com.pulumi.kubernetes.policy.v1beta1.inputs.SELinuxStrategyOptionsPatchArgs.builder()
.rule(rule?.applyValue({ args0 -> args0 }))
.seLinuxOptions(
seLinuxOptions?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [SELinuxStrategyOptionsPatchArgs].
*/
@PulumiTagMarker
public class SELinuxStrategyOptionsPatchArgsBuilder internal constructor() {
private var rule: Output? = null
private var seLinuxOptions: Output? = null
/**
* @param value rule is the strategy that will dictate the allowable labels that may be set.
*/
@JvmName("rmsvwgwwctkmrlsn")
public suspend fun rule(`value`: Output) {
this.rule = value
}
/**
* @param value seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
*/
@JvmName("jholkwrnkwrgurqs")
public suspend fun seLinuxOptions(`value`: Output) {
this.seLinuxOptions = value
}
/**
* @param value rule is the strategy that will dictate the allowable labels that may be set.
*/
@JvmName("vcoharhstyxbbmio")
public suspend fun rule(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rule = mapped
}
/**
* @param value seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
*/
@JvmName("arddyiiankkrxhci")
public suspend fun seLinuxOptions(`value`: SELinuxOptionsPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.seLinuxOptions = mapped
}
/**
* @param argument seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
*/
@JvmName("pccxoqfjpebxovpn")
public suspend fun seLinuxOptions(argument: suspend SELinuxOptionsPatchArgsBuilder.() -> Unit) {
val toBeMapped = SELinuxOptionsPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.seLinuxOptions = mapped
}
internal fun build(): SELinuxStrategyOptionsPatchArgs = SELinuxStrategyOptionsPatchArgs(
rule = rule,
seLinuxOptions = seLinuxOptions,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy