com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceReplicaConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 GCS 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.
* > **NOTE:** Not supported for Postgres database.
* @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 DatabaseInstanceReplicaConfiguration(
public val caCertificate: String? = null,
public val clientCertificate: String? = null,
public val clientKey: String? = null,
public val connectRetryInterval: Int? = null,
public val dumpFilePath: String? = null,
public val failoverTarget: Boolean? = null,
public val masterHeartbeatPeriod: Int? = null,
public val password: String? = null,
public val sslCipher: String? = null,
public val username: String? = null,
public val verifyServerCertificate: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.DatabaseInstanceReplicaConfiguration): DatabaseInstanceReplicaConfiguration = DatabaseInstanceReplicaConfiguration(
caCertificate = javaType.caCertificate().map({ args0 -> args0 }).orElse(null),
clientCertificate = javaType.clientCertificate().map({ args0 -> args0 }).orElse(null),
clientKey = javaType.clientKey().map({ args0 -> args0 }).orElse(null),
connectRetryInterval = javaType.connectRetryInterval().map({ args0 -> args0 }).orElse(null),
dumpFilePath = javaType.dumpFilePath().map({ args0 -> args0 }).orElse(null),
failoverTarget = javaType.failoverTarget().map({ args0 -> args0 }).orElse(null),
masterHeartbeatPeriod = javaType.masterHeartbeatPeriod().map({ args0 -> args0 }).orElse(null),
password = javaType.password().map({ args0 -> args0 }).orElse(null),
sslCipher = javaType.sslCipher().map({ args0 -> args0 }).orElse(null),
username = javaType.username().map({ args0 -> args0 }).orElse(null),
verifyServerCertificate = javaType.verifyServerCertificate().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy