com.pulumi.kubernetes.policy.v1beta1.kotlin.outputs.SELinuxStrategyOptionsPatch.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.policy.v1beta1.kotlin.outputs
import com.pulumi.kubernetes.core.v1.kotlin.outputs.SELinuxOptionsPatch
import kotlin.String
import kotlin.Suppress
/**
* 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 SELinuxStrategyOptionsPatch(
public val rule: String? = null,
public val seLinuxOptions: SELinuxOptionsPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.policy.v1beta1.outputs.SELinuxStrategyOptionsPatch): SELinuxStrategyOptionsPatch = SELinuxStrategyOptionsPatch(
rule = javaType.rule().map({ args0 -> args0 }).orElse(null),
seLinuxOptions = javaType.seLinuxOptions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.SELinuxOptionsPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy