
com.pulumi.azure.machinelearning.kotlin.inputs.ComputeClusterSshArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.machinelearning.kotlin.inputs
import com.pulumi.azure.machinelearning.inputs.ComputeClusterSshArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property adminPassword Password of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
* @property adminUsername Name of the administrator user account which can be used to SSH to nodes. Changing this forces a new Machine Learning Compute Cluster to be created.
* @property keyValue SSH public key of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
* > **NOTE:** At least one of `admin_password` and `key_value` shoud be specified.
*/
public data class ComputeClusterSshArgs(
public val adminPassword: Output? = null,
public val adminUsername: Output,
public val keyValue: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.machinelearning.inputs.ComputeClusterSshArgs =
com.pulumi.azure.machinelearning.inputs.ComputeClusterSshArgs.builder()
.adminPassword(adminPassword?.applyValue({ args0 -> args0 }))
.adminUsername(adminUsername.applyValue({ args0 -> args0 }))
.keyValue(keyValue?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ComputeClusterSshArgs].
*/
@PulumiTagMarker
public class ComputeClusterSshArgsBuilder internal constructor() {
private var adminPassword: Output? = null
private var adminUsername: Output? = null
private var keyValue: Output? = null
/**
* @param value Password of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
*/
@JvmName("kwcsatysvdiyxdyi")
public suspend fun adminPassword(`value`: Output) {
this.adminPassword = value
}
/**
* @param value Name of the administrator user account which can be used to SSH to nodes. Changing this forces a new Machine Learning Compute Cluster to be created.
*/
@JvmName("kuaeidubopdcoyru")
public suspend fun adminUsername(`value`: Output) {
this.adminUsername = value
}
/**
* @param value SSH public key of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
* > **NOTE:** At least one of `admin_password` and `key_value` shoud be specified.
*/
@JvmName("mapesdkproyeesia")
public suspend fun keyValue(`value`: Output) {
this.keyValue = value
}
/**
* @param value Password of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
*/
@JvmName("afiepqgrfmyeqygt")
public suspend fun adminPassword(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.adminPassword = mapped
}
/**
* @param value Name of the administrator user account which can be used to SSH to nodes. Changing this forces a new Machine Learning Compute Cluster to be created.
*/
@JvmName("iwrslkempiyevlbv")
public suspend fun adminUsername(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.adminUsername = mapped
}
/**
* @param value SSH public key of the administrator user account. Changing this forces a new Machine Learning Compute Cluster to be created.
* > **NOTE:** At least one of `admin_password` and `key_value` shoud be specified.
*/
@JvmName("bmlpdvcqlvjwraqd")
public suspend fun keyValue(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyValue = mapped
}
internal fun build(): ComputeClusterSshArgs = ComputeClusterSshArgs(
adminPassword = adminPassword,
adminUsername = adminUsername ?: throw PulumiNullFieldException("adminUsername"),
keyValue = keyValue,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy