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

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

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

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

import com.pulumi.azure.keyvault.inputs.GetCertificatePlainArgs.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 getCertificate.
 * @property keyVaultId Specifies the ID of the Key Vault instance where the Secret resides, available on the `azure.keyvault.KeyVault` Data Source / Resource.
 * @property name Specifies the name of the Key Vault Certificate.
 * @property version Specifies the version of the certificate to look up.  (Defaults to latest)
 * **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.
 */
public data class GetCertificatePlainArgs(
    public val keyVaultId: String,
    public val name: String,
    public val version: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.GetCertificatePlainArgs =
        com.pulumi.azure.keyvault.inputs.GetCertificatePlainArgs.builder()
            .keyVaultId(keyVaultId.let({ args0 -> args0 }))
            .name(name.let({ args0 -> args0 }))
            .version(version?.let({ args0 -> args0 })).build()
}

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

    private var name: String? = null

    private var version: 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.
     */
    @JvmName("yfmqbixupurlfvhk")
    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 Certificate.
     */
    @JvmName("mjupjpykuasatroc")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value Specifies the version of the certificate to look up.  (Defaults to latest)
     * **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("ucwkewkhyuvoddnh")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.version = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy