
com.pulumi.gcp.spanner.kotlin.outputs.InstanceConfigReplica.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.spanner.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property defaultLeaderLocation If true, this location is designated as the default leader location where
* leader replicas are placed.
* - - -
* @property location The location of the serving resources, e.g. "us-central1".
* @property type Indicates the type of replica. See the [replica types
* documentation](https://cloud.google.com/spanner/docs/replication#replica_types)
* for more details.
* Possible values are: `READ_WRITE`, `READ_ONLY`, `WITNESS`.
*/
public data class InstanceConfigReplica(
public val defaultLeaderLocation: Boolean? = null,
public val location: String? = null,
public val type: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.spanner.outputs.InstanceConfigReplica): InstanceConfigReplica = InstanceConfigReplica(
defaultLeaderLocation = javaType.defaultLeaderLocation().map({ args0 -> args0 }).orElse(null),
location = javaType.location().map({ args0 -> args0 }).orElse(null),
type = javaType.type().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy