![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.machinelearning.kotlin.inputs.ComputeInstanceSshArgs.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.machinelearning.kotlin.inputs
import com.pulumi.azure.machinelearning.inputs.ComputeInstanceSshArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property port Describes the port for connecting through SSH.
* @property publicKey Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
* @property username The admin username of this Machine Learning Compute Instance.
*/
public data class ComputeInstanceSshArgs(
public val port: Output? = null,
public val publicKey: Output,
public val username: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.machinelearning.inputs.ComputeInstanceSshArgs =
com.pulumi.azure.machinelearning.inputs.ComputeInstanceSshArgs.builder()
.port(port?.applyValue({ args0 -> args0 }))
.publicKey(publicKey.applyValue({ args0 -> args0 }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ComputeInstanceSshArgs].
*/
@PulumiTagMarker
public class ComputeInstanceSshArgsBuilder internal constructor() {
private var port: Output? = null
private var publicKey: Output? = null
private var username: Output? = null
/**
* @param value Describes the port for connecting through SSH.
*/
@JvmName("dukbfxblpigbucfj")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
*/
@JvmName("vverbpcmcavxlyss")
public suspend fun publicKey(`value`: Output) {
this.publicKey = value
}
/**
* @param value The admin username of this Machine Learning Compute Instance.
*/
@JvmName("wvnwyhbbjgqrsexn")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Describes the port for connecting through SSH.
*/
@JvmName("psenchobtoddlnog")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
*/
@JvmName("wgxwtywdvloyidnw")
public suspend fun publicKey(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicKey = mapped
}
/**
* @param value The admin username of this Machine Learning Compute Instance.
*/
@JvmName("doyunsetbhqobaqo")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): ComputeInstanceSshArgs = ComputeInstanceSshArgs(
port = port,
publicKey = publicKey ?: throw PulumiNullFieldException("publicKey"),
username = username,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy