DatabaseInstanceReplicaConfiguration

data class DatabaseInstanceReplicaConfiguration(val caCertificate: String? = null, val clientCertificate: String? = null, val clientKey: String? = null, val connectRetryInterval: Int? = null, val dumpFilePath: String? = null, val failoverTarget: Boolean? = null, val masterHeartbeatPeriod: Int? = null, val password: String? = null, val sslCipher: String? = null, val username: String? = null, val verifyServerCertificate: Boolean? = null)

Constructors

Link copied to clipboard
constructor(caCertificate: String? = null, clientCertificate: String? = null, clientKey: String? = null, connectRetryInterval: Int? = null, dumpFilePath: String? = null, failoverTarget: Boolean? = null, masterHeartbeatPeriod: Int? = null, password: String? = null, sslCipher: String? = null, username: String? = null, verifyServerCertificate: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val caCertificate: String? = null

PEM representation of the trusted CA's x509 certificate.

Link copied to clipboard

PEM representation of the replica's x509 certificate.

Link copied to clipboard
val clientKey: String? = null

PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.

Link copied to clipboard

The number of seconds between connect retries. MySQL's default is 60 seconds.

Link copied to clipboard
val dumpFilePath: String? = null

Path to a SQL file in GCS from which replica instances are created. Format is gs://bucket/filename.

Link copied to clipboard
val failoverTarget: Boolean? = null

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.

Link copied to clipboard

Time in ms between replication heartbeats.

Link copied to clipboard
val password: String? = null

Password for the replication connection.

Link copied to clipboard
val sslCipher: String? = null
Link copied to clipboard
val username: String? = null

Username for replication connection.

Link copied to clipboard

True if the master's common name value is checked during the SSL handshake.