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

com.pulumi.azure.containerservice.kotlin.inputs.GroupContainerSecurityArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.GroupContainerSecurityArgs.builder
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 kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property privilegeEnabled Whether the container's permission is elevated to privileged? Changing this forces a new resource to be created.
 * > **NOTE:** Currently, this only applies when the `os_type` is `Linux` and the `sku` is `Confidential`.
 */
public data class GroupContainerSecurityArgs(
    public val privilegeEnabled: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.GroupContainerSecurityArgs =
        com.pulumi.azure.containerservice.inputs.GroupContainerSecurityArgs.builder()
            .privilegeEnabled(privilegeEnabled.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupContainerSecurityArgs].
 */
@PulumiTagMarker
public class GroupContainerSecurityArgsBuilder internal constructor() {
    private var privilegeEnabled: Output? = null

    /**
     * @param value Whether the container's permission is elevated to privileged? Changing this forces a new resource to be created.
     * > **NOTE:** Currently, this only applies when the `os_type` is `Linux` and the `sku` is `Confidential`.
     */
    @JvmName("rdswjocjumuyfbyd")
    public suspend fun privilegeEnabled(`value`: Output) {
        this.privilegeEnabled = value
    }

    /**
     * @param value Whether the container's permission is elevated to privileged? Changing this forces a new resource to be created.
     * > **NOTE:** Currently, this only applies when the `os_type` is `Linux` and the `sku` is `Confidential`.
     */
    @JvmName("exrycselanawwqvc")
    public suspend fun privilegeEnabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privilegeEnabled = mapped
    }

    internal fun build(): GroupContainerSecurityArgs = GroupContainerSecurityArgs(
        privilegeEnabled = privilegeEnabled ?: throw PulumiNullFieldException("privilegeEnabled"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy