aws_sdk_neptune/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: Must match the identifier of an existing global database cluster.</p><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 Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you want to promote to primary for the global database.</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>Contains the details of an Amazon Neptune global database.</p> <p>This data type is used as a response element for the <code>CreateGlobalCluster</code>, <code>DescribeGlobalClusters</code>, <code>ModifyGlobalCluster</code>, <code>DeleteGlobalCluster</code>, <code>FailoverGlobalCluster</code>, and <code>RemoveFromGlobalCluster</code> actions.</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}