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

com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.SELinuxStrategyOptionsArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.core.v1.kotlin.inputs.SELinuxOptionsArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.SELinuxOptionsArgsBuilder
import com.pulumi.kubernetes.extensions.v1beta1.inputs.SELinuxStrategyOptionsArgs.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. Deprecated: use SELinuxStrategyOptions from policy API Group instead.
 * @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 SELinuxStrategyOptionsArgs(
    public val rule: Output,
    public val seLinuxOptions: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.extensions.v1beta1.inputs.SELinuxStrategyOptionsArgs = com.pulumi.kubernetes.extensions.v1beta1.inputs.SELinuxStrategyOptionsArgs.builder()
        .rule(rule.applyValue({ args0 -> args0 }))
        .seLinuxOptions(
            seLinuxOptions?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        ).build()
}

/**
 * Builder for [SELinuxStrategyOptionsArgs].
 */
@PulumiTagMarker
public class SELinuxStrategyOptionsArgsBuilder 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("luwfjrohcqcusbhq")
    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("augcntmotknedmvj")
    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("esohwbcvjaaibqgf")
    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("unkodjbxsfvrjglm")
    public suspend fun seLinuxOptions(`value`: SELinuxOptionsArgs?) {
        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("mgklhlsrwhxegilx")
    public suspend fun seLinuxOptions(argument: suspend SELinuxOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = SELinuxOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.seLinuxOptions = mapped
    }

    internal fun build(): SELinuxStrategyOptionsArgs = SELinuxStrategyOptionsArgs(
        rule = rule ?: throw PulumiNullFieldException("rule"),
        seLinuxOptions = seLinuxOptions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy