![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.azurefleet.kotlin.inputs.SshPublicKeyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.azurefleet.kotlin.inputs
import com.pulumi.azurenative.azurefleet.inputs.SshPublicKeyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Contains information about SSH certificate public key and the path on the Linux
* VM where the public key is placed.
* @property keyData SSH public key certificate used to authenticate with the VM through ssh. The
* key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys,
* see [Create SSH keys on Linux and Mac for Linux VMs in
* Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
* @property path Specifies the full path on the created VM where ssh public key is stored. If
* the file already exists, the specified key is appended to the file. Example:
* /home/user/.ssh/authorized_keys
*/
public data class SshPublicKeyArgs(
public val keyData: Output? = null,
public val path: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.azurefleet.inputs.SshPublicKeyArgs =
com.pulumi.azurenative.azurefleet.inputs.SshPublicKeyArgs.builder()
.keyData(keyData?.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SshPublicKeyArgs].
*/
@PulumiTagMarker
public class SshPublicKeyArgsBuilder internal constructor() {
private var keyData: Output? = null
private var path: Output? = null
/**
* @param value SSH public key certificate used to authenticate with the VM through ssh. The
* key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys,
* see [Create SSH keys on Linux and Mac for Linux VMs in
* Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
*/
@JvmName("iekblbpexbxjpgsk")
public suspend fun keyData(`value`: Output) {
this.keyData = value
}
/**
* @param value Specifies the full path on the created VM where ssh public key is stored. If
* the file already exists, the specified key is appended to the file. Example:
* /home/user/.ssh/authorized_keys
*/
@JvmName("jxdvaastcffwqpnt")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value SSH public key certificate used to authenticate with the VM through ssh. The
* key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys,
* see [Create SSH keys on Linux and Mac for Linux VMs in
* Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
*/
@JvmName("qrargcuebcbbvnjw")
public suspend fun keyData(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyData = mapped
}
/**
* @param value Specifies the full path on the created VM where ssh public key is stored. If
* the file already exists, the specified key is appended to the file. Example:
* /home/user/.ssh/authorized_keys
*/
@JvmName("ikadggldybaupyjg")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
internal fun build(): SshPublicKeyArgs = SshPublicKeyArgs(
keyData = keyData,
path = path,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy