#[non_exhaustive]pub struct FailoverDbClusterInput {
pub db_cluster_identifier: Option<String>,
pub target_db_instance_identifier: Option<String>,
}Expand description
Represents the input to FailoverDBCluster.
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.db_cluster_identifier: Option<String>A cluster identifier to force a failover for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster.
target_db_instance_identifier: Option<String>The name of the instance to promote to the primary instance.
You must specify the instance identifier for an Amazon DocumentDB replica in the cluster. For example, mydbcluster-replica1.
Implementations§
source§impl FailoverDbClusterInput
impl FailoverDbClusterInput
sourcepub fn db_cluster_identifier(&self) -> Option<&str>
pub fn db_cluster_identifier(&self) -> Option<&str>
A cluster identifier to force a failover for. This parameter is not case sensitive.
Constraints:
-
Must match the identifier of an existing
DBCluster.
sourcepub fn target_db_instance_identifier(&self) -> Option<&str>
pub fn target_db_instance_identifier(&self) -> Option<&str>
The name of the instance to promote to the primary instance.
You must specify the instance identifier for an Amazon DocumentDB replica in the cluster. For example, mydbcluster-replica1.
source§impl FailoverDbClusterInput
impl FailoverDbClusterInput
sourcepub fn builder() -> FailoverDbClusterInputBuilder
pub fn builder() -> FailoverDbClusterInputBuilder
Creates a new builder-style object to manufacture FailoverDbClusterInput.
Trait Implementations§
source§impl Clone for FailoverDbClusterInput
impl Clone for FailoverDbClusterInput
source§fn clone(&self) -> FailoverDbClusterInput
fn clone(&self) -> FailoverDbClusterInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FailoverDbClusterInput
impl Debug for FailoverDbClusterInput
source§impl PartialEq for FailoverDbClusterInput
impl PartialEq for FailoverDbClusterInput
source§fn eq(&self, other: &FailoverDbClusterInput) -> bool
fn eq(&self, other: &FailoverDbClusterInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FailoverDbClusterInput
Auto Trait Implementations§
impl Freeze for FailoverDbClusterInput
impl RefUnwindSafe for FailoverDbClusterInput
impl Send for FailoverDbClusterInput
impl Sync for FailoverDbClusterInput
impl Unpin for FailoverDbClusterInput
impl UnwindSafe for FailoverDbClusterInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more