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

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

package com.pulumi.azure.media.kotlin.inputs

import com.pulumi.azure.media.inputs.ServiceAccountEncryptionArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property currentKeyIdentifier The current key used to encrypt the Media Services Account, including the key version.
 * @property keyVaultKeyIdentifier Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
 * @property managedIdentity A `managed_identity` block as defined below.
 * @property type Specifies the type of key used to encrypt the account data. Possible values are `SystemKey` and `CustomerKey`. Defaults to `SystemKey`.
 */
public data class ServiceAccountEncryptionArgs(
    public val currentKeyIdentifier: Output? = null,
    public val keyVaultKeyIdentifier: Output? = null,
    public val managedIdentity: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.ServiceAccountEncryptionArgs =
        com.pulumi.azure.media.inputs.ServiceAccountEncryptionArgs.builder()
            .currentKeyIdentifier(currentKeyIdentifier?.applyValue({ args0 -> args0 }))
            .keyVaultKeyIdentifier(keyVaultKeyIdentifier?.applyValue({ args0 -> args0 }))
            .managedIdentity(managedIdentity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceAccountEncryptionArgs].
 */
@PulumiTagMarker
public class ServiceAccountEncryptionArgsBuilder internal constructor() {
    private var currentKeyIdentifier: Output? = null

    private var keyVaultKeyIdentifier: Output? = null

    private var managedIdentity: Output? = null

    private var type: Output? = null

    /**
     * @param value The current key used to encrypt the Media Services Account, including the key version.
     */
    @JvmName("kdqjqoaucxbtlshi")
    public suspend fun currentKeyIdentifier(`value`: Output) {
        this.currentKeyIdentifier = value
    }

    /**
     * @param value Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
     */
    @JvmName("dygdfgorbtcklbee")
    public suspend fun keyVaultKeyIdentifier(`value`: Output) {
        this.keyVaultKeyIdentifier = value
    }

    /**
     * @param value A `managed_identity` block as defined below.
     */
    @JvmName("qdngkesqjcjvppdg")
    public suspend fun managedIdentity(`value`: Output) {
        this.managedIdentity = value
    }

    /**
     * @param value Specifies the type of key used to encrypt the account data. Possible values are `SystemKey` and `CustomerKey`. Defaults to `SystemKey`.
     */
    @JvmName("qoovrboechxwwyfy")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The current key used to encrypt the Media Services Account, including the key version.
     */
    @JvmName("kmjtrwhbrfhnwgbb")
    public suspend fun currentKeyIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.currentKeyIdentifier = mapped
    }

    /**
     * @param value Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
     */
    @JvmName("cgafhimpekeyxywr")
    public suspend fun keyVaultKeyIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyVaultKeyIdentifier = mapped
    }

    /**
     * @param value A `managed_identity` block as defined below.
     */
    @JvmName("xayscsqhgriqlkaj")
    public suspend fun managedIdentity(`value`: ServiceAccountEncryptionManagedIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedIdentity = mapped
    }

    /**
     * @param argument A `managed_identity` block as defined below.
     */
    @JvmName("bhntriubkdxjrmsr")
    public suspend
    fun managedIdentity(argument: suspend ServiceAccountEncryptionManagedIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAccountEncryptionManagedIdentityArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.managedIdentity = mapped
    }

    /**
     * @param value Specifies the type of key used to encrypt the account data. Possible values are `SystemKey` and `CustomerKey`. Defaults to `SystemKey`.
     */
    @JvmName("cqmvsmlvwrcjmyhe")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ServiceAccountEncryptionArgs = ServiceAccountEncryptionArgs(
        currentKeyIdentifier = currentKeyIdentifier,
        keyVaultKeyIdentifier = keyVaultKeyIdentifier,
        managedIdentity = managedIdentity,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy