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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryEncryptionArgs.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.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.RegistryEncryptionArgs.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.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled
 * @property identityClientId The client ID of the managed identity associated with the encryption key.
 * @property keyVaultKeyId The ID of the Key Vault Key.
 */
public data class RegistryEncryptionArgs(
    @Deprecated(
        message = """
  The property `enabled` is deprecated and will be removed in v4.0 of the AzureRM provider.
  """,
    )
    public val enabled: Output? = null,
    public val identityClientId: Output,
    public val keyVaultKeyId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryEncryptionArgs =
        com.pulumi.azure.containerservice.inputs.RegistryEncryptionArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .identityClientId(identityClientId.applyValue({ args0 -> args0 }))
            .keyVaultKeyId(keyVaultKeyId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegistryEncryptionArgs].
 */
@PulumiTagMarker
public class RegistryEncryptionArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var identityClientId: Output? = null

    private var keyVaultKeyId: Output? = null

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The property `enabled` is deprecated and will be removed in v4.0 of the AzureRM provider.
  """,
    )
    @JvmName("lhyyddaefumkcvnw")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The client ID of the managed identity associated with the encryption key.
     */
    @JvmName("jcffunfrchvxxwnw")
    public suspend fun identityClientId(`value`: Output) {
        this.identityClientId = value
    }

    /**
     * @param value The ID of the Key Vault Key.
     */
    @JvmName("ktsiiuqwrfggyjiv")
    public suspend fun keyVaultKeyId(`value`: Output) {
        this.keyVaultKeyId = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The property `enabled` is deprecated and will be removed in v4.0 of the AzureRM provider.
  """,
    )
    @JvmName("jphrhgdyxphhniww")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The client ID of the managed identity associated with the encryption key.
     */
    @JvmName("hhqnmxqxqfxehhwe")
    public suspend fun identityClientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identityClientId = mapped
    }

    /**
     * @param value The ID of the Key Vault Key.
     */
    @JvmName("gceuncrkaqkjivft")
    public suspend fun keyVaultKeyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyVaultKeyId = mapped
    }

    internal fun build(): RegistryEncryptionArgs = RegistryEncryptionArgs(
        enabled = enabled,
        identityClientId = identityClientId ?: throw PulumiNullFieldException("identityClientId"),
        keyVaultKeyId = keyVaultKeyId ?: throw PulumiNullFieldException("keyVaultKeyId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy