com.pulumi.cloudflare.kotlin.inputs.ZeroTrustAccessPolicyConnectionRulesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.ZeroTrustAccessPolicyConnectionRulesArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property ssh The SSH-specific rules that define how users may connect to the targets secured by your application.
*/
public data class ZeroTrustAccessPolicyConnectionRulesArgs(
public val ssh: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.ZeroTrustAccessPolicyConnectionRulesArgs =
com.pulumi.cloudflare.inputs.ZeroTrustAccessPolicyConnectionRulesArgs.builder()
.ssh(ssh.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ZeroTrustAccessPolicyConnectionRulesArgs].
*/
@PulumiTagMarker
public class ZeroTrustAccessPolicyConnectionRulesArgsBuilder internal constructor() {
private var ssh: Output? = null
/**
* @param value The SSH-specific rules that define how users may connect to the targets secured by your application.
*/
@JvmName("xbtejnqwegkiprhu")
public suspend fun ssh(`value`: Output) {
this.ssh = value
}
/**
* @param value The SSH-specific rules that define how users may connect to the targets secured by your application.
*/
@JvmName("lfyinohkueqrrnee")
public suspend fun ssh(`value`: ZeroTrustAccessPolicyConnectionRulesSshArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ssh = mapped
}
/**
* @param argument The SSH-specific rules that define how users may connect to the targets secured by your application.
*/
@JvmName("ljikfeijtcqrmffq")
public suspend fun ssh(argument: suspend ZeroTrustAccessPolicyConnectionRulesSshArgsBuilder.() -> Unit) {
val toBeMapped = ZeroTrustAccessPolicyConnectionRulesSshArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ssh = mapped
}
internal fun build(): ZeroTrustAccessPolicyConnectionRulesArgs =
ZeroTrustAccessPolicyConnectionRulesArgs(
ssh = ssh ?: throw PulumiNullFieldException("ssh"),
)
}