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

com.pulumi.azure.keyvault.kotlin.inputs.GetKeyPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.keyvault.kotlin.inputs

import com.pulumi.azure.keyvault.inputs.GetKeyPlainArgs.builder
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

/**
 * A collection of arguments for invoking getKey.
 * @property keyVaultId Specifies the ID of the Key Vault instance where the Secret resides, available on the `azure.keyvault.KeyVault` Data Source / Resource.
 * **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.
 * @property name Specifies the name of the Key Vault Key.
 */
public data class GetKeyPlainArgs(
    public val keyVaultId: String,
    public val name: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.GetKeyPlainArgs =
        com.pulumi.azure.keyvault.inputs.GetKeyPlainArgs.builder()
            .keyVaultId(keyVaultId.let({ args0 -> args0 }))
            .name(name.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetKeyPlainArgs].
 */
@PulumiTagMarker
public class GetKeyPlainArgsBuilder internal constructor() {
    private var keyVaultId: String? = null

    private var name: String? = null

    /**
     * @param value Specifies the ID of the Key Vault instance where the Secret resides, available on the `azure.keyvault.KeyVault` Data Source / Resource.
     * **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.
     */
    @JvmName("cklcgcdljqkqoand")
    public suspend fun keyVaultId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.keyVaultId = mapped
    }

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

    internal fun build(): GetKeyPlainArgs = GetKeyPlainArgs(
        keyVaultId = keyVaultId ?: throw PulumiNullFieldException("keyVaultId"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy