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

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

package com.pulumi.azure.eventhub.kotlin.inputs

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

/**
 *
 * @property identityId The ID of the User Assigned Identity that has access to the key.
 * @property infrastructureEncryptionEnabled Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
 * @property keyVaultKeyId The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
 */
public data class NamespaceCustomerManagedKeyArgs(
    public val identityId: Output,
    public val infrastructureEncryptionEnabled: Output? = null,
    public val keyVaultKeyId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.eventhub.inputs.NamespaceCustomerManagedKeyArgs =
        com.pulumi.azure.eventhub.inputs.NamespaceCustomerManagedKeyArgs.builder()
            .identityId(identityId.applyValue({ args0 -> args0 }))
            .infrastructureEncryptionEnabled(infrastructureEncryptionEnabled?.applyValue({ args0 -> args0 }))
            .keyVaultKeyId(keyVaultKeyId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NamespaceCustomerManagedKeyArgs].
 */
@PulumiTagMarker
public class NamespaceCustomerManagedKeyArgsBuilder internal constructor() {
    private var identityId: Output? = null

    private var infrastructureEncryptionEnabled: Output? = null

    private var keyVaultKeyId: Output? = null

    /**
     * @param value The ID of the User Assigned Identity that has access to the key.
     */
    @JvmName("hmjsspeeejginuor")
    public suspend fun identityId(`value`: Output) {
        this.identityId = value
    }

    /**
     * @param value Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
     */
    @JvmName("adtakajxkkhpkdvu")
    public suspend fun infrastructureEncryptionEnabled(`value`: Output) {
        this.infrastructureEncryptionEnabled = value
    }

    /**
     * @param value The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
     */
    @JvmName("edlyqsoxitisxttn")
    public suspend fun keyVaultKeyId(`value`: Output) {
        this.keyVaultKeyId = value
    }

    /**
     * @param value The ID of the User Assigned Identity that has access to the key.
     */
    @JvmName("brordukqtegpbbjl")
    public suspend fun identityId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identityId = mapped
    }

    /**
     * @param value Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
     */
    @JvmName("veqgctcylxrdupfu")
    public suspend fun infrastructureEncryptionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.infrastructureEncryptionEnabled = mapped
    }

    /**
     * @param value The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
     */
    @JvmName("xgmekegujimgwpjf")
    public suspend fun keyVaultKeyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyVaultKeyId = mapped
    }

    internal fun build(): NamespaceCustomerManagedKeyArgs = NamespaceCustomerManagedKeyArgs(
        identityId = identityId ?: throw PulumiNullFieldException("identityId"),
        infrastructureEncryptionEnabled = infrastructureEncryptionEnabled,
        keyVaultKeyId = keyVaultKeyId ?: throw PulumiNullFieldException("keyVaultKeyId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy