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

com.pulumi.azurenative.azurestackhci.kotlin.inputs.SshPublicKeyArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.azurestackhci.kotlin.inputs

import com.pulumi.azurenative.azurestackhci.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.azurestackhci.inputs.SshPublicKeyArgs = com.pulumi.azurenative.azurestackhci.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("abbwcpbjnmjluhwx") 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("vbjcgsnalkflgthd") 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("fwisqpslnibuvcsp") 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("fqteockaiwinvuor") 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