aws_sdk_rds/client/
switchover_global_cluster.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`SwitchoverGlobalCluster`](crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`global_cluster_identifier(impl Into<String>)`](crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder::global_cluster_identifier) / [`set_global_cluster_identifier(Option<String>)`](crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder::set_global_cluster_identifier):<br>required: **true**<br><p>The identifier of the global database cluster to switch over. This parameter isn't case-sensitive.</p> <p>Constraints:</p> <ul>  <li>   <p>Must match the identifier of an existing global database cluster (Aurora global database).</p></li> </ul><br>
7    ///   - [`target_db_cluster_identifier(impl Into<String>)`](crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder::target_db_cluster_identifier) / [`set_target_db_cluster_identifier(Option<String>)`](crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder::set_target_db_cluster_identifier):<br>required: **true**<br><p>The identifier of the secondary Aurora DB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that Aurora can locate the cluster in its Amazon Web Services Region.</p><br>
8    /// - On success, responds with [`SwitchoverGlobalClusterOutput`](crate::operation::switchover_global_cluster::SwitchoverGlobalClusterOutput) with field(s):
9    ///   - [`global_cluster(Option<GlobalCluster>)`](crate::operation::switchover_global_cluster::SwitchoverGlobalClusterOutput::global_cluster): <p>A data type representing an Aurora global database.</p>
10    /// - On failure, responds with [`SdkError<SwitchoverGlobalClusterError>`](crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError)
11    pub fn switchover_global_cluster(&self) -> crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder {
12        crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder::new(self.handle.clone())
13    }
14}