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

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

package com.pulumi.azure.postgresql.kotlin.inputs

import com.pulumi.azure.postgresql.inputs.FlexibleServerCustomerManagedKeyArgs.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 geoBackupKeyVaultKeyId The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
 * @property geoBackupUserAssignedIdentityId The geo backup user managed identity id for a Customer Managed Key. Should be added with `identity_ids`. It can't cross region and need identity in same region as geo backup.
 * > **Note:** `primary_user_assigned_identity_id` or `geo_backup_user_assigned_identity_id` is required when `type` is set to `UserAssigned`.
 * @property keyVaultKeyId The ID of the Key Vault Key.
 * @property primaryUserAssignedIdentityId Specifies the primary user managed identity id for a Customer Managed Key. Should be added with `identity_ids`.
 */
public data class FlexibleServerCustomerManagedKeyArgs(
    public val geoBackupKeyVaultKeyId: Output? = null,
    public val geoBackupUserAssignedIdentityId: Output? = null,
    public val keyVaultKeyId: Output,
    public val primaryUserAssignedIdentityId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.postgresql.inputs.FlexibleServerCustomerManagedKeyArgs =
        com.pulumi.azure.postgresql.inputs.FlexibleServerCustomerManagedKeyArgs.builder()
            .geoBackupKeyVaultKeyId(geoBackupKeyVaultKeyId?.applyValue({ args0 -> args0 }))
            .geoBackupUserAssignedIdentityId(geoBackupUserAssignedIdentityId?.applyValue({ args0 -> args0 }))
            .keyVaultKeyId(keyVaultKeyId.applyValue({ args0 -> args0 }))
            .primaryUserAssignedIdentityId(
                primaryUserAssignedIdentityId?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [FlexibleServerCustomerManagedKeyArgs].
 */
@PulumiTagMarker
public class FlexibleServerCustomerManagedKeyArgsBuilder internal constructor() {
    private var geoBackupKeyVaultKeyId: Output? = null

    private var geoBackupUserAssignedIdentityId: Output? = null

    private var keyVaultKeyId: Output? = null

    private var primaryUserAssignedIdentityId: Output? = null

    /**
     * @param value The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
     */
    @JvmName("mklcprbqluvtjfos")
    public suspend fun geoBackupKeyVaultKeyId(`value`: Output) {
        this.geoBackupKeyVaultKeyId = value
    }

    /**
     * @param value The geo backup user managed identity id for a Customer Managed Key. Should be added with `identity_ids`. It can't cross region and need identity in same region as geo backup.
     * > **Note:** `primary_user_assigned_identity_id` or `geo_backup_user_assigned_identity_id` is required when `type` is set to `UserAssigned`.
     */
    @JvmName("ybejjyqsfnxyrxhy")
    public suspend fun geoBackupUserAssignedIdentityId(`value`: Output) {
        this.geoBackupUserAssignedIdentityId = value
    }

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

    /**
     * @param value Specifies the primary user managed identity id for a Customer Managed Key. Should be added with `identity_ids`.
     */
    @JvmName("ewhxdueopagijrwq")
    public suspend fun primaryUserAssignedIdentityId(`value`: Output) {
        this.primaryUserAssignedIdentityId = value
    }

    /**
     * @param value The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
     */
    @JvmName("ordpianvockhligd")
    public suspend fun geoBackupKeyVaultKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.geoBackupKeyVaultKeyId = mapped
    }

    /**
     * @param value The geo backup user managed identity id for a Customer Managed Key. Should be added with `identity_ids`. It can't cross region and need identity in same region as geo backup.
     * > **Note:** `primary_user_assigned_identity_id` or `geo_backup_user_assigned_identity_id` is required when `type` is set to `UserAssigned`.
     */
    @JvmName("ajxivlalotwunxib")
    public suspend fun geoBackupUserAssignedIdentityId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.geoBackupUserAssignedIdentityId = mapped
    }

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

    /**
     * @param value Specifies the primary user managed identity id for a Customer Managed Key. Should be added with `identity_ids`.
     */
    @JvmName("hppdbtbvajihjdxp")
    public suspend fun primaryUserAssignedIdentityId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.primaryUserAssignedIdentityId = mapped
    }

    internal fun build(): FlexibleServerCustomerManagedKeyArgs = FlexibleServerCustomerManagedKeyArgs(
        geoBackupKeyVaultKeyId = geoBackupKeyVaultKeyId,
        geoBackupUserAssignedIdentityId = geoBackupUserAssignedIdentityId,
        keyVaultKeyId = keyVaultKeyId ?: throw PulumiNullFieldException("keyVaultKeyId"),
        primaryUserAssignedIdentityId = primaryUserAssignedIdentityId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy