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

com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterLinuxProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.KubernetesClusterLinuxProfileArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property adminUsername The Admin Username for the Cluster. Changing this forces a new resource to be created.
 * @property sshKey An `ssh_key` block as defined below. Only one is currently allowed. Changing this will update the key on all node pools. More information can be found in [the documentation](https://learn.microsoft.com/en-us/azure/aks/node-access#update-ssh-key-on-an-existing-aks-cluster-preview).
 */
public data class KubernetesClusterLinuxProfileArgs(
    public val adminUsername: Output,
    public val sshKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.KubernetesClusterLinuxProfileArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterLinuxProfileArgs.builder()
            .adminUsername(adminUsername.applyValue({ args0 -> args0 }))
            .sshKey(sshKey.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [KubernetesClusterLinuxProfileArgs].
 */
@PulumiTagMarker
public class KubernetesClusterLinuxProfileArgsBuilder internal constructor() {
    private var adminUsername: Output? = null

    private var sshKey: Output? = null

    /**
     * @param value The Admin Username for the Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("ebpjivxfahoshiwy")
    public suspend fun adminUsername(`value`: Output) {
        this.adminUsername = value
    }

    /**
     * @param value An `ssh_key` block as defined below. Only one is currently allowed. Changing this will update the key on all node pools. More information can be found in [the documentation](https://learn.microsoft.com/en-us/azure/aks/node-access#update-ssh-key-on-an-existing-aks-cluster-preview).
     */
    @JvmName("tuappknxogvccelj")
    public suspend fun sshKey(`value`: Output) {
        this.sshKey = value
    }

    /**
     * @param value The Admin Username for the Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("esotxjgnsmxencdr")
    public suspend fun adminUsername(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminUsername = mapped
    }

    /**
     * @param value An `ssh_key` block as defined below. Only one is currently allowed. Changing this will update the key on all node pools. More information can be found in [the documentation](https://learn.microsoft.com/en-us/azure/aks/node-access#update-ssh-key-on-an-existing-aks-cluster-preview).
     */
    @JvmName("hjebvmlhavvbwaqp")
    public suspend fun sshKey(`value`: KubernetesClusterLinuxProfileSshKeyArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sshKey = mapped
    }

    /**
     * @param argument An `ssh_key` block as defined below. Only one is currently allowed. Changing this will update the key on all node pools. More information can be found in [the documentation](https://learn.microsoft.com/en-us/azure/aks/node-access#update-ssh-key-on-an-existing-aks-cluster-preview).
     */
    @JvmName("qnjlfskxxilvmteq")
    public suspend
    fun sshKey(argument: suspend KubernetesClusterLinuxProfileSshKeyArgsBuilder.() -> Unit) {
        val toBeMapped = KubernetesClusterLinuxProfileSshKeyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sshKey = mapped
    }

    internal fun build(): KubernetesClusterLinuxProfileArgs = KubernetesClusterLinuxProfileArgs(
        adminUsername = adminUsername ?: throw PulumiNullFieldException("adminUsername"),
        sshKey = sshKey ?: throw PulumiNullFieldException("sshKey"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy