
com.pulumi.azurenative.azurefleet.kotlin.outputs.VaultCertificateResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.azurefleet.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* Describes a single certificate reference in a Key Vault, and where the
* certificate should reside on the VM.
* @property certificateStore For Windows VMs, specifies the certificate store on the Virtual Machine to
* which the certificate should be added. The specified certificate store is
* implicitly in the LocalMachine account. For Linux VMs, the certificate file is
* placed under the /var/lib/waagent directory, with the file name
* <UppercaseThumbprint>.crt for the X509 certificate file and
* <UppercaseThumbprint>.prv for private key. Both of these files are .pem
* formatted.
* @property certificateUrl This is the URL of a certificate that has been uploaded to Key Vault as a
* secret. For adding a secret to the Key Vault, see [Add a key or secret to the
* key
* vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add).
* In this case, your certificate needs to be It is the Base64 encoding of the
* following JSON Object which is encoded in UTF-8:
{
* "data":"",
"dataType":"pfx",
* "password":""
}
To install certificates on a virtual
* machine it is recommended to use the [Azure Key Vault virtual machine extension
* for
* Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux)
* or the [Azure Key Vault virtual machine extension for
* Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).
*/
public data class VaultCertificateResponse(
public val certificateStore: String? = null,
public val certificateUrl: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.azurefleet.outputs.VaultCertificateResponse): VaultCertificateResponse = VaultCertificateResponse(
certificateStore = javaType.certificateStore().map({ args0 -> args0 }).orElse(null),
certificateUrl = javaType.certificateUrl().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy