#[non_exhaustive]pub struct ReplicationCluster {
pub psa_write_endpoint: String,
pub failover_dr_replica_name: String,
pub dr_replica: bool,
/* private fields */
}
Expand description
A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.psa_write_endpoint: String
Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, the dns should be pointing to this instance. After Switchover or Replica failover, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance does not yet have a replica, or had a DR replica that was deleted.
failover_dr_replica_name: String
Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
dr_replica: bool
Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
Implementations§
Source§impl ReplicationCluster
impl ReplicationCluster
pub fn new() -> Self
Sourcepub fn set_psa_write_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_psa_write_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of psa_write_endpoint.
Sourcepub fn set_failover_dr_replica_name<T: Into<String>>(self, v: T) -> Self
pub fn set_failover_dr_replica_name<T: Into<String>>(self, v: T) -> Self
Sets the value of failover_dr_replica_name.
Sourcepub fn set_dr_replica<T: Into<bool>>(self, v: T) -> Self
pub fn set_dr_replica<T: Into<bool>>(self, v: T) -> Self
Sets the value of dr_replica.
Trait Implementations§
Source§impl Clone for ReplicationCluster
impl Clone for ReplicationCluster
Source§fn clone(&self) -> ReplicationCluster
fn clone(&self) -> ReplicationCluster
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more