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

com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceReplicaConfiguration.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.sql.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property caCertificate PEM representation of the trusted CA's x509 certificate.
 * @property clientCertificate PEM representation of the replica's x509 certificate.
 * @property clientKey PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
 * @property connectRetryInterval The number of seconds between connect retries. MySQL's default is 60 seconds.
 * @property dumpFilePath Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
 * @property failoverTarget Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance. Not supported for Postgres
 * @property masterHeartbeatPeriod Time in ms between replication heartbeats.
 * @property password Password for the replication connection.
 * @property sslCipher Permissible ciphers for use in SSL encryption.
 * @property username Username for replication connection.
 * @property verifyServerCertificate True if the master's common name value is checked during the SSL handshake.
 */
public data class GetDatabaseInstanceReplicaConfiguration(
    public val caCertificate: String,
    public val clientCertificate: String,
    public val clientKey: String,
    public val connectRetryInterval: Int,
    public val dumpFilePath: String,
    public val failoverTarget: Boolean,
    public val masterHeartbeatPeriod: Int,
    public val password: String,
    public val sslCipher: String,
    public val username: String,
    public val verifyServerCertificate: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.GetDatabaseInstanceReplicaConfiguration): GetDatabaseInstanceReplicaConfiguration = GetDatabaseInstanceReplicaConfiguration(
            caCertificate = javaType.caCertificate(),
            clientCertificate = javaType.clientCertificate(),
            clientKey = javaType.clientKey(),
            connectRetryInterval = javaType.connectRetryInterval(),
            dumpFilePath = javaType.dumpFilePath(),
            failoverTarget = javaType.failoverTarget(),
            masterHeartbeatPeriod = javaType.masterHeartbeatPeriod(),
            password = javaType.password(),
            sslCipher = javaType.sslCipher(),
            username = javaType.username(),
            verifyServerCertificate = javaType.verifyServerCertificate(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy