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

com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfileMysqlSsl.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.databasemigrationservice.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property caCertificate Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database server's certificate.
 * The replica will use this certificate to verify it's connecting to the right host.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property clientCertificate Input only. The x509 PEM-encoded certificate that will be used by the replica to authenticate against the source database server.
 * If this field is used then the 'clientKey' field is mandatory
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property clientKey Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with the Client Certificate.
 * If this field is used then the 'clientCertificate' field is mandatory.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property type (Output)
 * The current connection profile state.
 */
public data class ConnectionProfileMysqlSsl(
    public val caCertificate: String,
    public val clientCertificate: String? = null,
    public val clientKey: String? = null,
    public val type: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.databasemigrationservice.outputs.ConnectionProfileMysqlSsl): ConnectionProfileMysqlSsl = ConnectionProfileMysqlSsl(
            caCertificate = javaType.caCertificate(),
            clientCertificate = javaType.clientCertificate().map({ args0 -> args0 }).orElse(null),
            clientKey = javaType.clientKey().map({ args0 -> args0 }).orElse(null),
            type = javaType.type().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy