1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SwitchoverGlobalCluster`](crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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 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.</p> <p>Constraints:</p> <ul>  <li>   <p>Must match the identifier of an existing global cluster (Amazon DocumentDB global database).</p></li>  <li>   <p>Minimum length of 1. Maximum length of 255.</p></li> </ul> <p>Pattern: <code>[A-Za-z][0-9A-Za-z-:._]*</code></p><br>
    ///   - [`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 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.</p> <p>Constraints:</p> <ul>  <li>   <p>Must match the identifier of an existing secondary cluster.</p></li>  <li>   <p>Minimum length of 1. Maximum length of 255.</p></li> </ul> <p>Pattern: <code>[A-Za-z][0-9A-Za-z-:._]*</code></p><br>
    /// - On success, responds with [`SwitchoverGlobalClusterOutput`](crate::operation::switchover_global_cluster::SwitchoverGlobalClusterOutput) with field(s):
    ///   - [`global_cluster(Option<GlobalCluster>)`](crate::operation::switchover_global_cluster::SwitchoverGlobalClusterOutput::global_cluster): <p>A data type representing an Amazon DocumentDB global cluster.</p>
    /// - On failure, responds with [`SdkError<SwitchoverGlobalClusterError>`](crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError)
    pub fn switchover_global_cluster(&self) -> crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder {
        crate::operation::switchover_global_cluster::builders::SwitchoverGlobalClusterFluentBuilder::new(self.handle.clone())
    }
}