com.pulumi.cloudflare.kotlin.inputs.DeviceManagedNetworksConfigArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.DeviceManagedNetworksConfigArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property sha256 The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
* @property tlsSockaddr A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
*/
public data class DeviceManagedNetworksConfigArgs(
public val sha256: Output,
public val tlsSockaddr: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.DeviceManagedNetworksConfigArgs =
com.pulumi.cloudflare.inputs.DeviceManagedNetworksConfigArgs.builder()
.sha256(sha256.applyValue({ args0 -> args0 }))
.tlsSockaddr(tlsSockaddr.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeviceManagedNetworksConfigArgs].
*/
@PulumiTagMarker
public class DeviceManagedNetworksConfigArgsBuilder internal constructor() {
private var sha256: Output? = null
private var tlsSockaddr: Output? = null
/**
* @param value The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
*/
@JvmName("jmuhlewmcfpklvgc")
public suspend fun sha256(`value`: Output) {
this.sha256 = value
}
/**
* @param value A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
*/
@JvmName("khfjphxldrtovpkk")
public suspend fun tlsSockaddr(`value`: Output) {
this.tlsSockaddr = value
}
/**
* @param value The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
*/
@JvmName("igwvuknrshfkngvh")
public suspend fun sha256(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sha256 = mapped
}
/**
* @param value A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
*/
@JvmName("goasobghukwwixvs")
public suspend fun tlsSockaddr(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tlsSockaddr = mapped
}
internal fun build(): DeviceManagedNetworksConfigArgs = DeviceManagedNetworksConfigArgs(
sha256 = sha256 ?: throw PulumiNullFieldException("sha256"),
tlsSockaddr = tlsSockaddr ?: throw PulumiNullFieldException("tlsSockaddr"),
)
}