com.pulumi.azure.compute.kotlin.inputs.ScaleSetOsProfileLinuxConfigArgs.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.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.ScaleSetOsProfileLinuxConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property disablePasswordAuthentication Specifies whether password authentication should be disabled. Defaults to `false`. Changing this forces a new resource to be created.
* @property sshKeys One or more `ssh_keys` blocks as defined below.
* > **Note:** Please note that the only allowed `path` is `/home//.ssh/authorized_keys` due to a limitation of Azure.
* > **NOTE:** At least one `ssh_keys` block is required if `disable_password_authentication` is set to `true`.
*/
public data class ScaleSetOsProfileLinuxConfigArgs(
public val disablePasswordAuthentication: Output? = null,
public val sshKeys: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.ScaleSetOsProfileLinuxConfigArgs =
com.pulumi.azure.compute.inputs.ScaleSetOsProfileLinuxConfigArgs.builder()
.disablePasswordAuthentication(disablePasswordAuthentication?.applyValue({ args0 -> args0 }))
.sshKeys(
sshKeys?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ScaleSetOsProfileLinuxConfigArgs].
*/
@PulumiTagMarker
public class ScaleSetOsProfileLinuxConfigArgsBuilder internal constructor() {
private var disablePasswordAuthentication: Output? = null
private var sshKeys: Output>? = null
/**
* @param value Specifies whether password authentication should be disabled. Defaults to `false`. Changing this forces a new resource to be created.
*/
@JvmName("xrimchnqtjrayadp")
public suspend fun disablePasswordAuthentication(`value`: Output) {
this.disablePasswordAuthentication = value
}
/**
* @param value One or more `ssh_keys` blocks as defined below.
* > **Note:** Please note that the only allowed `path` is `/home//.ssh/authorized_keys` due to a limitation of Azure.
* > **NOTE:** At least one `ssh_keys` block is required if `disable_password_authentication` is set to `true`.
*/
@JvmName("rjgtyfvpqiliffub")
public suspend fun sshKeys(`value`: Output>) {
this.sshKeys = value
}
@JvmName("vjytgadmvbojnowg")
public suspend fun sshKeys(vararg values: Output) {
this.sshKeys = Output.all(values.asList())
}
/**
* @param values One or more `ssh_keys` blocks as defined below.
* > **Note:** Please note that the only allowed `path` is `/home//.ssh/authorized_keys` due to a limitation of Azure.
* > **NOTE:** At least one `ssh_keys` block is required if `disable_password_authentication` is set to `true`.
*/
@JvmName("fjgbfpdgogbixvrh")
public suspend fun sshKeys(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy