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

com.pulumi.azurenative.devcenter.kotlin.EncryptionSetArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.devcenter.kotlin

import com.pulumi.azurenative.devcenter.EncryptionSetArgs.builder
import com.pulumi.azurenative.devcenter.kotlin.enums.DevboxDisksEncryptionEnableStatus
import com.pulumi.azurenative.devcenter.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.devcenter.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.core.Either
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 kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Represents a devcenter encryption set resource.
 * Azure REST API version: 2024-05-01-preview.
 * Other available API versions: 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:devcenter:EncryptionSet EncryptionWestUs /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets/{encryptionSetName}
 * ```
 * @property devCenterName The name of the devcenter.
 * @property devboxDisksEncryptionEnableStatus Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.
 * @property encryptionSetName The name of the devcenter encryption set.
 * @property identity Managed identity properties
 * @property keyEncryptionKeyUrl Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.
 * @property location The geo-location where the resource lives
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property tags Resource tags.
 */
public data class EncryptionSetArgs(
    public val devCenterName: Output? = null,
    public val devboxDisksEncryptionEnableStatus: Output>? = null,
    public val encryptionSetName: Output? = null,
    public val identity: Output? = null,
    public val keyEncryptionKeyUrl: Output? = null,
    public val location: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devcenter.EncryptionSetArgs =
        com.pulumi.azurenative.devcenter.EncryptionSetArgs.builder()
            .devCenterName(devCenterName?.applyValue({ args0 -> args0 }))
            .devboxDisksEncryptionEnableStatus(
                devboxDisksEncryptionEnableStatus?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .encryptionSetName(encryptionSetName?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyEncryptionKeyUrl(keyEncryptionKeyUrl?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [EncryptionSetArgs].
 */
@PulumiTagMarker
public class EncryptionSetArgsBuilder internal constructor() {
    private var devCenterName: Output? = null

    private var devboxDisksEncryptionEnableStatus:
        Output>? = null

    private var encryptionSetName: Output? = null

    private var identity: Output? = null

    private var keyEncryptionKeyUrl: Output? = null

    private var location: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the devcenter.
     */
    @JvmName("kkhletvkevoegxau")
    public suspend fun devCenterName(`value`: Output) {
        this.devCenterName = value
    }

    /**
     * @param value Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.
     */
    @JvmName("incpprqnypvbbyfg")
    public suspend fun devboxDisksEncryptionEnableStatus(`value`: Output>) {
        this.devboxDisksEncryptionEnableStatus = value
    }

    /**
     * @param value The name of the devcenter encryption set.
     */
    @JvmName("cjerivnuevpkgocs")
    public suspend fun encryptionSetName(`value`: Output) {
        this.encryptionSetName = value
    }

    /**
     * @param value Managed identity properties
     */
    @JvmName("ccepqwpogalgiufm")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.
     */
    @JvmName("fhymlnyjqjrvgvbq")
    public suspend fun keyEncryptionKeyUrl(`value`: Output) {
        this.keyEncryptionKeyUrl = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("tjudqpujctttjdhc")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("nsdnlskiopvvvtiq")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("rjatwaqovnklvpvo")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The name of the devcenter.
     */
    @JvmName("ygphauwdifwihaxq")
    public suspend fun devCenterName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.devCenterName = mapped
    }

    /**
     * @param value Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.
     */
    @JvmName("kfoffhsvwakkbyjp")
    public suspend fun devboxDisksEncryptionEnableStatus(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.devboxDisksEncryptionEnableStatus = mapped
    }

    /**
     * @param value Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.
     */
    @JvmName("yapmvgnaprhufgjt")
    public fun devboxDisksEncryptionEnableStatus(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.devboxDisksEncryptionEnableStatus = mapped
    }

    /**
     * @param value Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.
     */
    @JvmName("xltcpfnbpiwtkmnb")
    public fun devboxDisksEncryptionEnableStatus(`value`: DevboxDisksEncryptionEnableStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.devboxDisksEncryptionEnableStatus = mapped
    }

    /**
     * @param value The name of the devcenter encryption set.
     */
    @JvmName("ysjxijxfdrwdqwtg")
    public suspend fun encryptionSetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionSetName = mapped
    }

    /**
     * @param value Managed identity properties
     */
    @JvmName("khotwknmsicgmvpb")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument Managed identity properties
     */
    @JvmName("yjlqilcdlwkmewly")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.
     */
    @JvmName("bxvjedbyjgegwobl")
    public suspend fun keyEncryptionKeyUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyEncryptionKeyUrl = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("xpnjmgnsouetdqfh")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("ldmcvanjjjdbjpyv")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("ylfjayhhkmtvbfnm")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("sahpaayhlktdqfoi")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): EncryptionSetArgs = EncryptionSetArgs(
        devCenterName = devCenterName,
        devboxDisksEncryptionEnableStatus = devboxDisksEncryptionEnableStatus,
        encryptionSetName = encryptionSetName,
        identity = identity,
        keyEncryptionKeyUrl = keyEncryptionKeyUrl,
        location = location,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy