All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.cloudflare.kotlin.inputs.AccessMutualTlsHostnameSettingsSettingArgs.kt Maven / Gradle / Ivy

Go to download

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.AccessMutualTlsHostnameSettingsSettingArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property chinaNetwork Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
 * @property clientCertificateForwarding Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
 * @property hostname The hostname that these settings apply to.
 */
public data class AccessMutualTlsHostnameSettingsSettingArgs(
    public val chinaNetwork: Output? = null,
    public val clientCertificateForwarding: Output? = null,
    public val hostname: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.AccessMutualTlsHostnameSettingsSettingArgs =
        com.pulumi.cloudflare.inputs.AccessMutualTlsHostnameSettingsSettingArgs.builder()
            .chinaNetwork(chinaNetwork?.applyValue({ args0 -> args0 }))
            .clientCertificateForwarding(clientCertificateForwarding?.applyValue({ args0 -> args0 }))
            .hostname(hostname.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessMutualTlsHostnameSettingsSettingArgs].
 */
@PulumiTagMarker
public class AccessMutualTlsHostnameSettingsSettingArgsBuilder internal constructor() {
    private var chinaNetwork: Output? = null

    private var clientCertificateForwarding: Output? = null

    private var hostname: Output? = null

    /**
     * @param value Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
     */
    @JvmName("hcdhrbvxkggvdnqi")
    public suspend fun chinaNetwork(`value`: Output) {
        this.chinaNetwork = value
    }

    /**
     * @param value Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
     */
    @JvmName("txnychxxiktpferp")
    public suspend fun clientCertificateForwarding(`value`: Output) {
        this.clientCertificateForwarding = value
    }

    /**
     * @param value The hostname that these settings apply to.
     */
    @JvmName("duiupxnqecvjfjfp")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
     */
    @JvmName("disjnjlrbxbespjm")
    public suspend fun chinaNetwork(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.chinaNetwork = mapped
    }

    /**
     * @param value Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
     */
    @JvmName("ksknvpicmhrsoawd")
    public suspend fun clientCertificateForwarding(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCertificateForwarding = mapped
    }

    /**
     * @param value The hostname that these settings apply to.
     */
    @JvmName("kdbjulqrckdqbwuo")
    public suspend fun hostname(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    internal fun build(): AccessMutualTlsHostnameSettingsSettingArgs =
        AccessMutualTlsHostnameSettingsSettingArgs(
            chinaNetwork = chinaNetwork,
            clientCertificateForwarding = clientCertificateForwarding,
            hostname = hostname ?: throw PulumiNullFieldException("hostname"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy