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

com.pulumi.azurenative.machinelearningservices.kotlin.inputs.ComputeInstanceSshSettingsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.machinelearningservices.kotlin.inputs

import com.pulumi.azurenative.machinelearningservices.inputs.ComputeInstanceSshSettingsArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.SshPublicAccess
import com.pulumi.core.Either
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

/**
 * Specifies policy and settings for SSH access.
 * @property adminPublicKey Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
 * @property sshPublicAccess State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
 */
public data class ComputeInstanceSshSettingsArgs(
    public val adminPublicKey: Output? = null,
    public val sshPublicAccess: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.ComputeInstanceSshSettingsArgs =
        com.pulumi.azurenative.machinelearningservices.inputs.ComputeInstanceSshSettingsArgs.builder()
            .adminPublicKey(adminPublicKey?.applyValue({ args0 -> args0 }))
            .sshPublicAccess(
                sshPublicAccess?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [ComputeInstanceSshSettingsArgs].
 */
@PulumiTagMarker
public class ComputeInstanceSshSettingsArgsBuilder internal constructor() {
    private var adminPublicKey: Output? = null

    private var sshPublicAccess: Output>? = null

    /**
     * @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("omapqrelehxyqbby")
    public suspend fun adminPublicKey(`value`: Output) {
        this.adminPublicKey = value
    }

    /**
     * @param value State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
     */
    @JvmName("ayvunlbbsnwasflm")
    public suspend fun sshPublicAccess(`value`: Output>) {
        this.sshPublicAccess = 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("qsqqcynjisytvtcp")
    public suspend fun adminPublicKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminPublicKey = mapped
    }

    /**
     * @param value State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
     */
    @JvmName("gutoyndsoqmnlpcs")
    public suspend fun sshPublicAccess(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sshPublicAccess = mapped
    }

    /**
     * @param value State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
     */
    @JvmName("aoooamrgloyfjbbi")
    public fun sshPublicAccess(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sshPublicAccess = mapped
    }

    /**
     * @param value State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
     */
    @JvmName("fryyoipyjuedeujd")
    public fun sshPublicAccess(`value`: SshPublicAccess) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sshPublicAccess = mapped
    }

    internal fun build(): ComputeInstanceSshSettingsArgs = ComputeInstanceSshSettingsArgs(
        adminPublicKey = adminPublicKey,
        sshPublicAccess = sshPublicAccess,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy