Struct aws_sdk_docdb::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder
source · pub struct SwitchoverGlobalClusterFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to SwitchoverGlobalCluster.
Switches over the specified secondary Amazon DocumentDB cluster to be the new primary Amazon DocumentDB cluster in the global database cluster.
Implementations§
source§impl SwitchoverGlobalClusterFluentBuilder
impl SwitchoverGlobalClusterFluentBuilder
sourcepub fn as_input(&self) -> &SwitchoverGlobalClusterInputBuilder
pub fn as_input(&self) -> &SwitchoverGlobalClusterInputBuilder
Access the SwitchoverGlobalCluster as a reference.
sourcepub async fn send(
self
) -> Result<SwitchoverGlobalClusterOutput, SdkError<SwitchoverGlobalClusterError, HttpResponse>>
pub async fn send( self ) -> Result<SwitchoverGlobalClusterOutput, SdkError<SwitchoverGlobalClusterError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<SwitchoverGlobalClusterOutput, SwitchoverGlobalClusterError, Self>
pub fn customize( self ) -> CustomizableOperation<SwitchoverGlobalClusterOutput, SwitchoverGlobalClusterError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn global_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn global_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the Amazon DocumentDB global database cluster to switch over. The identifier is the unique key assigned by the user when the cluster is created. In other words, it's the name of the global cluster. This parameter isn’t case-sensitive.
Constraints:
-
Must match the identifier of an existing global cluster (Amazon DocumentDB global database).
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn set_global_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_global_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the Amazon DocumentDB global database cluster to switch over. The identifier is the unique key assigned by the user when the cluster is created. In other words, it's the name of the global cluster. This parameter isn’t case-sensitive.
Constraints:
-
Must match the identifier of an existing global cluster (Amazon DocumentDB global database).
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn get_global_cluster_identifier(&self) -> &Option<String>
pub fn get_global_cluster_identifier(&self) -> &Option<String>
The identifier of the Amazon DocumentDB global database cluster to switch over. The identifier is the unique key assigned by the user when the cluster is created. In other words, it's the name of the global cluster. This parameter isn’t case-sensitive.
Constraints:
-
Must match the identifier of an existing global cluster (Amazon DocumentDB global database).
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn target_db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn target_db_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the secondary Amazon DocumentDB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.
Constraints:
-
Must match the identifier of an existing secondary cluster.
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn set_target_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_target_db_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the secondary Amazon DocumentDB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.
Constraints:
-
Must match the identifier of an existing secondary cluster.
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
sourcepub fn get_target_db_cluster_identifier(&self) -> &Option<String>
pub fn get_target_db_cluster_identifier(&self) -> &Option<String>
The identifier of the secondary Amazon DocumentDB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its Amazon Web Services region.
Constraints:
-
Must match the identifier of an existing secondary cluster.
-
Minimum length of 1. Maximum length of 255.
Pattern: [A-Za-z][0-9A-Za-z-:._]*
Trait Implementations§
source§impl Clone for SwitchoverGlobalClusterFluentBuilder
impl Clone for SwitchoverGlobalClusterFluentBuilder
source§fn clone(&self) -> SwitchoverGlobalClusterFluentBuilder
fn clone(&self) -> SwitchoverGlobalClusterFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SwitchoverGlobalClusterFluentBuilder
impl !RefUnwindSafe for SwitchoverGlobalClusterFluentBuilder
impl Send for SwitchoverGlobalClusterFluentBuilder
impl Sync for SwitchoverGlobalClusterFluentBuilder
impl Unpin for SwitchoverGlobalClusterFluentBuilder
impl !UnwindSafe for SwitchoverGlobalClusterFluentBuilder
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