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

com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionSslConfig.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.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 ConnectionSslConfig(
    public val additionalVariables: List? = null,
    public val clientCertType: String? = null,
    public val clientCertificate: ConnectionSslConfigClientCertificate? = null,
    public val clientPrivateKey: ConnectionSslConfigClientPrivateKey? = null,
    public val clientPrivateKeyPass: ConnectionSslConfigClientPrivateKeyPass? = null,
    public val privateServerCertificate: ConnectionSslConfigPrivateServerCertificate? = null,
    public val serverCertType: String? = null,
    public val trustModel: String? = null,
    public val type: String,
    public val useSsl: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.integrationconnectors.outputs.ConnectionSslConfig): ConnectionSslConfig = ConnectionSslConfig(
            additionalVariables = javaType.additionalVariables().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionSslConfigAdditionalVariable.Companion.toKotlin(args0)
                })
            }),
            clientCertType = javaType.clientCertType().map({ args0 -> args0 }).orElse(null),
            clientCertificate = javaType.clientCertificate().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionSslConfigClientCertificate.Companion.toKotlin(args0)
                })
            }).orElse(null),
            clientPrivateKey = javaType.clientPrivateKey().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionSslConfigClientPrivateKey.Companion.toKotlin(args0)
                })
            }).orElse(null),
            clientPrivateKeyPass = javaType.clientPrivateKeyPass().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionSslConfigClientPrivateKeyPass.Companion.toKotlin(args0)
                })
            }).orElse(null),
            privateServerCertificate = javaType.privateServerCertificate().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionSslConfigPrivateServerCertificate.Companion.toKotlin(args0)
                })
            }).orElse(null),
            serverCertType = javaType.serverCertType().map({ args0 -> args0 }).orElse(null),
            trustModel = javaType.trustModel().map({ args0 -> args0 }).orElse(null),
            type = javaType.type(),
            useSsl = javaType.useSsl().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy