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

com.pulumi.azure.batch.kotlin.inputs.AccountEncryptionArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.batch.kotlin.inputs

import com.pulumi.azure.batch.inputs.AccountEncryptionArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property keyVaultKeyId The full URL path to the Azure key vault key id that should be used to encrypt data, as documented [here](https://docs.microsoft.com/azure/batch/batch-customer-managed-key). Both versioned and versionless keys are supported.
 */
public data class AccountEncryptionArgs(
    public val keyVaultKeyId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.AccountEncryptionArgs =
        com.pulumi.azure.batch.inputs.AccountEncryptionArgs.builder()
            .keyVaultKeyId(keyVaultKeyId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccountEncryptionArgs].
 */
@PulumiTagMarker
public class AccountEncryptionArgsBuilder internal constructor() {
    private var keyVaultKeyId: Output? = null

    /**
     * @param value The full URL path to the Azure key vault key id that should be used to encrypt data, as documented [here](https://docs.microsoft.com/azure/batch/batch-customer-managed-key). Both versioned and versionless keys are supported.
     */
    @JvmName("vlnqowlggceineuv")
    public suspend fun keyVaultKeyId(`value`: Output) {
        this.keyVaultKeyId = value
    }

    /**
     * @param value The full URL path to the Azure key vault key id that should be used to encrypt data, as documented [here](https://docs.microsoft.com/azure/batch/batch-customer-managed-key). Both versioned and versionless keys are supported.
     */
    @JvmName("jedqaqfsvekfvcbe")
    public suspend fun keyVaultKeyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyVaultKeyId = mapped
    }

    internal fun build(): AccountEncryptionArgs = AccountEncryptionArgs(
        keyVaultKeyId = keyVaultKeyId ?: throw PulumiNullFieldException("keyVaultKeyId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy