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

com.pulumi.azure.compute.kotlin.inputs.VirtualMachineOsProfileSecretVaultCertificateArgs.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.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.VirtualMachineOsProfileSecretVaultCertificateArgs.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 certificateStore (Required, on windows machines) Specifies the certificate store on the Virtual Machine where the certificate should be added to, such as `My`.
 * @property certificateUrl The ID of the Key Vault Secret. Stored secret is the Base64 encoding of a JSON Object that which is encoded in UTF-8 of which the contents need to be:
 * ```json
 * {
 * "data":"",
 * "dataType":"pfx",
 * "password":""
 * }
 * ```
 * > **NOTE:** If your certificate is stored in Azure Key Vault - this can be sourced from the `secret_id` property on the `azure.keyvault.Certificate` resource.
 */
public data class VirtualMachineOsProfileSecretVaultCertificateArgs(
    public val certificateStore: Output? = null,
    public val certificateUrl: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.VirtualMachineOsProfileSecretVaultCertificateArgs =
        com.pulumi.azure.compute.inputs.VirtualMachineOsProfileSecretVaultCertificateArgs.builder()
            .certificateStore(certificateStore?.applyValue({ args0 -> args0 }))
            .certificateUrl(certificateUrl.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VirtualMachineOsProfileSecretVaultCertificateArgs].
 */
@PulumiTagMarker
public class VirtualMachineOsProfileSecretVaultCertificateArgsBuilder internal constructor() {
    private var certificateStore: Output? = null

    private var certificateUrl: Output? = null

    /**
     * @param value (Required, on windows machines) Specifies the certificate store on the Virtual Machine where the certificate should be added to, such as `My`.
     */
    @JvmName("ckxrqvoyexbvviwx")
    public suspend fun certificateStore(`value`: Output) {
        this.certificateStore = value
    }

    /**
     * @param value The ID of the Key Vault Secret. Stored secret is the Base64 encoding of a JSON Object that which is encoded in UTF-8 of which the contents need to be:
     * ```json
     * {
     * "data":"",
     * "dataType":"pfx",
     * "password":""
     * }
     * ```
     * > **NOTE:** If your certificate is stored in Azure Key Vault - this can be sourced from the `secret_id` property on the `azure.keyvault.Certificate` resource.
     */
    @JvmName("wfywttsfilbmmdng")
    public suspend fun certificateUrl(`value`: Output) {
        this.certificateUrl = value
    }

    /**
     * @param value (Required, on windows machines) Specifies the certificate store on the Virtual Machine where the certificate should be added to, such as `My`.
     */
    @JvmName("axxrrgaotjljdmnb")
    public suspend fun certificateStore(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateStore = mapped
    }

    /**
     * @param value The ID of the Key Vault Secret. Stored secret is the Base64 encoding of a JSON Object that which is encoded in UTF-8 of which the contents need to be:
     * ```json
     * {
     * "data":"",
     * "dataType":"pfx",
     * "password":""
     * }
     * ```
     * > **NOTE:** If your certificate is stored in Azure Key Vault - this can be sourced from the `secret_id` property on the `azure.keyvault.Certificate` resource.
     */
    @JvmName("mdotewvtuildbxik")
    public suspend fun certificateUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificateUrl = mapped
    }

    internal fun build(): VirtualMachineOsProfileSecretVaultCertificateArgs =
        VirtualMachineOsProfileSecretVaultCertificateArgs(
            certificateStore = certificateStore,
            certificateUrl = certificateUrl ?: throw PulumiNullFieldException("certificateUrl"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy