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

com.pulumi.gcp.integrationconnectors.kotlin.inputs.ConnectionSslConfigArgs.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.

There is a newer version: 8.10.0.0
Show newest version
@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.ConnectionSslConfigArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property additionalVariables Additional SSL related field values.
 * Structure is documented below.
 * @property clientCertType Type of Client Cert (PEM/JKS/.. etc.)
 * Possible values are: `PEM`.
 * @property clientCertificate Client Certificate
 * Structure is documented below.
 * @property clientPrivateKey Client Private Key
 * Structure is documented below.
 * @property clientPrivateKeyPass Secret containing the passphrase protecting the Client Private Key
 * Structure is documented below.
 * @property privateServerCertificate Private Server Certificate. Needs to be specified if trust model is PRIVATE.
 * Structure is documented below.
 * @property serverCertType Type of Server Cert (PEM/JKS/.. etc.)
 * Possible values are: `PEM`.
 * @property trustModel Enum for Trust Model
 * Possible values are: `PUBLIC`, `PRIVATE`, `INSECURE`.
 * @property type Enum for controlling the SSL Type (TLS/MTLS)
 * Possible values are: `TLS`, `MTLS`.
 * @property useSsl Bool for enabling SSL
 */
public data class ConnectionSslConfigArgs(
    public val additionalVariables: Output>? = null,
    public val clientCertType: Output? = null,
    public val clientCertificate: Output? = null,
    public val clientPrivateKey: Output? = null,
    public val clientPrivateKeyPass: Output? = null,
    public val privateServerCertificate: Output? =
        null,
    public val serverCertType: Output? = null,
    public val trustModel: Output? = null,
    public val type: Output,
    public val useSsl: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.integrationconnectors.inputs.ConnectionSslConfigArgs =
        com.pulumi.gcp.integrationconnectors.inputs.ConnectionSslConfigArgs.builder()
            .additionalVariables(
                additionalVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .clientCertType(clientCertType?.applyValue({ args0 -> args0 }))
            .clientCertificate(clientCertificate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .clientPrivateKey(clientPrivateKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .clientPrivateKeyPass(
                clientPrivateKeyPass?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .privateServerCertificate(
                privateServerCertificate?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .serverCertType(serverCertType?.applyValue({ args0 -> args0 }))
            .trustModel(trustModel?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .useSsl(useSsl?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionSslConfigArgs].
 */
@PulumiTagMarker
public class ConnectionSslConfigArgsBuilder internal constructor() {
    private var additionalVariables: Output>? = null

    private var clientCertType: Output? = null

    private var clientCertificate: Output? = null

    private var clientPrivateKey: Output? = null

    private var clientPrivateKeyPass: Output? = null

    private var privateServerCertificate: Output? =
        null

    private var serverCertType: Output? = null

    private var trustModel: Output? = null

    private var type: Output? = null

    private var useSsl: Output? = null

    /**
     * @param value Additional SSL related field values.
     * Structure is documented below.
     */
    @JvmName("dkdleyatkmmeuomk")
    public suspend fun additionalVariables(`value`: Output>) {
        this.additionalVariables = value
    }

    @JvmName("vmvketmgnnsqyuxi")
    public suspend fun additionalVariables(vararg values: Output) {
        this.additionalVariables = Output.all(values.asList())
    }

    /**
     * @param values Additional SSL related field values.
     * Structure is documented below.
     */
    @JvmName("aspqhmkbubnbekdj")
    public suspend fun additionalVariables(values: List>) {
        this.additionalVariables = Output.all(values)
    }

    /**
     * @param value Type of Client Cert (PEM/JKS/.. etc.)
     * Possible values are: `PEM`.
     */
    @JvmName("pmuujikhwwbiyhkc")
    public suspend fun clientCertType(`value`: Output) {
        this.clientCertType = value
    }

    /**
     * @param value Client Certificate
     * Structure is documented below.
     */
    @JvmName("lgnkxarhymevovaa")
    public suspend fun clientCertificate(`value`: Output) {
        this.clientCertificate = value
    }

    /**
     * @param value Client Private Key
     * Structure is documented below.
     */
    @JvmName("svadoouhbjaxjfjb")
    public suspend fun clientPrivateKey(`value`: Output) {
        this.clientPrivateKey = value
    }

    /**
     * @param value Secret containing the passphrase protecting the Client Private Key
     * Structure is documented below.
     */
    @JvmName("jaxcmlqkyxfqgpon")
    public suspend fun clientPrivateKeyPass(`value`: Output) {
        this.clientPrivateKeyPass = value
    }

    /**
     * @param value Private Server Certificate. Needs to be specified if trust model is PRIVATE.
     * Structure is documented below.
     */
    @JvmName("pfdncrdkdwbwfogo")
    public suspend fun privateServerCertificate(`value`: Output) {
        this.privateServerCertificate = value
    }

    /**
     * @param value Type of Server Cert (PEM/JKS/.. etc.)
     * Possible values are: `PEM`.
     */
    @JvmName("xwoabufxbobslklv")
    public suspend fun serverCertType(`value`: Output) {
        this.serverCertType = value
    }

    /**
     * @param value Enum for Trust Model
     * Possible values are: `PUBLIC`, `PRIVATE`, `INSECURE`.
     */
    @JvmName("viducmnriddmabcy")
    public suspend fun trustModel(`value`: Output) {
        this.trustModel = value
    }

    /**
     * @param value Enum for controlling the SSL Type (TLS/MTLS)
     * Possible values are: `TLS`, `MTLS`.
     */
    @JvmName("yktpqoxyngvmrwaf")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Bool for enabling SSL
     */
    @JvmName("kntnnvltpkvrahpp")
    public suspend fun useSsl(`value`: Output) {
        this.useSsl = value
    }

    /**
     * @param value Additional SSL related field values.
     * Structure is documented below.
     */
    @JvmName("qmqpjioywtwywldq")
    public suspend fun additionalVariables(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalVariables = mapped
    }

    /**
     * @param argument Additional SSL related field values.
     * Structure is documented below.
     */
    @JvmName("xkopmvnnjupsqumf")
    public suspend fun additionalVariables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectionSslConfigAdditionalVariableArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalVariables = mapped
    }

    /**
     * @param argument Additional SSL related field values.
     * Structure is documented below.
     */
    @JvmName("ullbfubekqklswqp")
    public suspend fun additionalVariables(vararg argument: suspend ConnectionSslConfigAdditionalVariableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConnectionSslConfigAdditionalVariableArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalVariables = mapped
    }

    /**
     * @param argument Additional SSL related field values.
     * Structure is documented below.
     */
    @JvmName("feglaijaxmfskvpj")
    public suspend fun additionalVariables(argument: suspend ConnectionSslConfigAdditionalVariableArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConnectionSslConfigAdditionalVariableArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.additionalVariables = mapped
    }

    /**
     * @param values Additional SSL related field values.
     * Structure is documented below.
     */
    @JvmName("xgjpitovaknkrsgg")
    public suspend fun additionalVariables(vararg values: ConnectionSslConfigAdditionalVariableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalVariables = mapped
    }

    /**
     * @param value Type of Client Cert (PEM/JKS/.. etc.)
     * Possible values are: `PEM`.
     */
    @JvmName("hbyqncmrdquerdtj")
    public suspend fun clientCertType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCertType = mapped
    }

    /**
     * @param value Client Certificate
     * Structure is documented below.
     */
    @JvmName("nfltnrmyiyfgofpy")
    public suspend fun clientCertificate(`value`: ConnectionSslConfigClientCertificateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCertificate = mapped
    }

    /**
     * @param argument Client Certificate
     * Structure is documented below.
     */
    @JvmName("yemepiyayekqbfhs")
    public suspend fun clientCertificate(argument: suspend ConnectionSslConfigClientCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionSslConfigClientCertificateArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.clientCertificate = mapped
    }

    /**
     * @param value Client Private Key
     * Structure is documented below.
     */
    @JvmName("enthcyjpgxuxnltg")
    public suspend fun clientPrivateKey(`value`: ConnectionSslConfigClientPrivateKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientPrivateKey = mapped
    }

    /**
     * @param argument Client Private Key
     * Structure is documented below.
     */
    @JvmName("yxctxjjqyvmcvlca")
    public suspend fun clientPrivateKey(argument: suspend ConnectionSslConfigClientPrivateKeyArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionSslConfigClientPrivateKeyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.clientPrivateKey = mapped
    }

    /**
     * @param value Secret containing the passphrase protecting the Client Private Key
     * Structure is documented below.
     */
    @JvmName("ahygmryusbiyubai")
    public suspend fun clientPrivateKeyPass(`value`: ConnectionSslConfigClientPrivateKeyPassArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientPrivateKeyPass = mapped
    }

    /**
     * @param argument Secret containing the passphrase protecting the Client Private Key
     * Structure is documented below.
     */
    @JvmName("batdujwfsxihcubr")
    public suspend fun clientPrivateKeyPass(argument: suspend ConnectionSslConfigClientPrivateKeyPassArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionSslConfigClientPrivateKeyPassArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.clientPrivateKeyPass = mapped
    }

    /**
     * @param value Private Server Certificate. Needs to be specified if trust model is PRIVATE.
     * Structure is documented below.
     */
    @JvmName("ltqwndcwxjvajvyc")
    public suspend fun privateServerCertificate(`value`: ConnectionSslConfigPrivateServerCertificateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateServerCertificate = mapped
    }

    /**
     * @param argument Private Server Certificate. Needs to be specified if trust model is PRIVATE.
     * Structure is documented below.
     */
    @JvmName("hlprhwfatmplgnyh")
    public suspend fun privateServerCertificate(argument: suspend ConnectionSslConfigPrivateServerCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionSslConfigPrivateServerCertificateArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.privateServerCertificate = mapped
    }

    /**
     * @param value Type of Server Cert (PEM/JKS/.. etc.)
     * Possible values are: `PEM`.
     */
    @JvmName("dvmislgijmdwmnmx")
    public suspend fun serverCertType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverCertType = mapped
    }

    /**
     * @param value Enum for Trust Model
     * Possible values are: `PUBLIC`, `PRIVATE`, `INSECURE`.
     */
    @JvmName("imttdxghbcrgjchx")
    public suspend fun trustModel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustModel = mapped
    }

    /**
     * @param value Enum for controlling the SSL Type (TLS/MTLS)
     * Possible values are: `TLS`, `MTLS`.
     */
    @JvmName("gogtxmmbwhsuydxj")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Bool for enabling SSL
     */
    @JvmName("mwivyxdlxadnkxow")
    public suspend fun useSsl(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useSsl = mapped
    }

    internal fun build(): ConnectionSslConfigArgs = ConnectionSslConfigArgs(
        additionalVariables = additionalVariables,
        clientCertType = clientCertType,
        clientCertificate = clientCertificate,
        clientPrivateKey = clientPrivateKey,
        clientPrivateKeyPass = clientPrivateKeyPass,
        privateServerCertificate = privateServerCertificate,
        serverCertType = serverCertType,
        trustModel = trustModel,
        type = type ?: throw PulumiNullFieldException("type"),
        useSsl = useSsl,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy