com.pulumi.azure.compute.kotlin.outputs.LinuxVirtualMachineAdminSshKey.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property publicKey The Public Key which should be used for authentication, which needs to be at least 2048-bit and in `ssh-rsa` format. Changing this forces a new resource to be created.
* @property username The Username for which this Public SSH Key should be configured. Changing this forces a new resource to be created.
* > **NOTE:** The Azure VM Agent only allows creating SSH Keys at the path `/home/{username}/.ssh/authorized_keys` - as such this public key will be written to the authorized keys file.
*/
public data class LinuxVirtualMachineAdminSshKey(
public val publicKey: String,
public val username: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.LinuxVirtualMachineAdminSshKey):
LinuxVirtualMachineAdminSshKey = LinuxVirtualMachineAdminSshKey(
publicKey = javaType.publicKey(),
username = javaType.username(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy