com.pulumi.azure.compute.kotlin.inputs.VirtualMachineOsProfileLinuxConfigArgs.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.VirtualMachineOsProfileLinuxConfigArgs.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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property disablePasswordAuthentication Specifies whether password authentication should be disabled. If set to `false`, an `admin_password` must be specified.
* @property sshKeys One or more `ssh_keys` blocks as defined below. This field is required if `disable_password_authentication` is set to `true`.
*/
public data class VirtualMachineOsProfileLinuxConfigArgs(
public val disablePasswordAuthentication: Output,
public val sshKeys: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.VirtualMachineOsProfileLinuxConfigArgs =
com.pulumi.azure.compute.inputs.VirtualMachineOsProfileLinuxConfigArgs.builder()
.disablePasswordAuthentication(disablePasswordAuthentication.applyValue({ args0 -> args0 }))
.sshKeys(
sshKeys?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [VirtualMachineOsProfileLinuxConfigArgs].
*/
@PulumiTagMarker
public class VirtualMachineOsProfileLinuxConfigArgsBuilder internal constructor() {
private var disablePasswordAuthentication: Output? = null
private var sshKeys: Output>? = null
/**
* @param value Specifies whether password authentication should be disabled. If set to `false`, an `admin_password` must be specified.
*/
@JvmName("flpobwcxlmikxmng")
public suspend fun disablePasswordAuthentication(`value`: Output) {
this.disablePasswordAuthentication = value
}
/**
* @param value One or more `ssh_keys` blocks as defined below. This field is required if `disable_password_authentication` is set to `true`.
*/
@JvmName("qyvmturfrujyhewc")
public suspend fun sshKeys(`value`: Output>) {
this.sshKeys = value
}
@JvmName("qhavadehpgcllyif")
public suspend fun sshKeys(vararg values: Output) {
this.sshKeys = Output.all(values.asList())
}
/**
* @param values One or more `ssh_keys` blocks as defined below. This field is required if `disable_password_authentication` is set to `true`.
*/
@JvmName("cpgyjyfcmhrbgekw")
public suspend fun sshKeys(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy