com.pulumi.gcp.integrationconnectors.kotlin.inputs.ConnectionAuthConfigSshPublicKeyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.integrationconnectors.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigSshPublicKeyArgs.builder
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 certType Format of SSH Client cert.
* @property sshClientCert SSH Client Cert. It should contain both public and private key.
* Structure is documented below.
* @property sshClientCertPass Password (passphrase) for ssh client certificate if it has one.
* Structure is documented below.
* @property username The user account used to authenticate.
*/
public data class ConnectionAuthConfigSshPublicKeyArgs(
public val certType: Output? = null,
public val sshClientCert: Output? = null,
public val sshClientCertPass: Output? =
null,
public val username: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigSshPublicKeyArgs =
com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigSshPublicKeyArgs.builder()
.certType(certType?.applyValue({ args0 -> args0 }))
.sshClientCert(sshClientCert?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sshClientCertPass(sshClientCertPass?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.username(username.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionAuthConfigSshPublicKeyArgs].
*/
@PulumiTagMarker
public class ConnectionAuthConfigSshPublicKeyArgsBuilder internal constructor() {
private var certType: Output? = null
private var sshClientCert: Output? = null
private var sshClientCertPass: Output? =
null
private var username: Output? = null
/**
* @param value Format of SSH Client cert.
*/
@JvmName("ohsnyxtlhaiabbqe")
public suspend fun certType(`value`: Output) {
this.certType = value
}
/**
* @param value SSH Client Cert. It should contain both public and private key.
* Structure is documented below.
*/
@JvmName("cmrqjugofthnbnlg")
public suspend fun sshClientCert(`value`: Output) {
this.sshClientCert = value
}
/**
* @param value Password (passphrase) for ssh client certificate if it has one.
* Structure is documented below.
*/
@JvmName("qyklmfabofqjftgj")
public suspend fun sshClientCertPass(`value`: Output) {
this.sshClientCertPass = value
}
/**
* @param value The user account used to authenticate.
*/
@JvmName("xkbnreuttkcarcrk")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Format of SSH Client cert.
*/
@JvmName("mympvibbeslbclnb")
public suspend fun certType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certType = mapped
}
/**
* @param value SSH Client Cert. It should contain both public and private key.
* Structure is documented below.
*/
@JvmName("utbgevuyhoikbfkx")
public suspend fun sshClientCert(`value`: ConnectionAuthConfigSshPublicKeySshClientCertArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sshClientCert = mapped
}
/**
* @param argument SSH Client Cert. It should contain both public and private key.
* Structure is documented below.
*/
@JvmName("kiuytxmwpsuximhg")
public suspend fun sshClientCert(argument: suspend ConnectionAuthConfigSshPublicKeySshClientCertArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionAuthConfigSshPublicKeySshClientCertArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.sshClientCert = mapped
}
/**
* @param value Password (passphrase) for ssh client certificate if it has one.
* Structure is documented below.
*/
@JvmName("bjmjeqpqcllksbru")
public suspend fun sshClientCertPass(`value`: ConnectionAuthConfigSshPublicKeySshClientCertPassArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sshClientCertPass = mapped
}
/**
* @param argument Password (passphrase) for ssh client certificate if it has one.
* Structure is documented below.
*/
@JvmName("gnhkbpshdcrywdvl")
public suspend fun sshClientCertPass(argument: suspend ConnectionAuthConfigSshPublicKeySshClientCertPassArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionAuthConfigSshPublicKeySshClientCertPassArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.sshClientCertPass = mapped
}
/**
* @param value The user account used to authenticate.
*/
@JvmName("mbudsmsqlrhnbmcb")
public suspend fun username(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): ConnectionAuthConfigSshPublicKeyArgs = ConnectionAuthConfigSshPublicKeyArgs(
certType = certType,
sshClientCert = sshClientCert,
sshClientCertPass = sshClientCertPass,
username = username ?: throw PulumiNullFieldException("username"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy