aws_sdk_memorydb/client/failover_shard.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 [`FailoverShard`](crate::operation::failover_shard::builders::FailoverShardFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cluster_name(impl Into<String>)`](crate::operation::failover_shard::builders::FailoverShardFluentBuilder::cluster_name) / [`set_cluster_name(Option<String>)`](crate::operation::failover_shard::builders::FailoverShardFluentBuilder::set_cluster_name):<br>required: **true**<br><p>The cluster being failed over.</p><br>
7 /// - [`shard_name(impl Into<String>)`](crate::operation::failover_shard::builders::FailoverShardFluentBuilder::shard_name) / [`set_shard_name(Option<String>)`](crate::operation::failover_shard::builders::FailoverShardFluentBuilder::set_shard_name):<br>required: **true**<br><p>The name of the shard.</p><br>
8 /// - On success, responds with [`FailoverShardOutput`](crate::operation::failover_shard::FailoverShardOutput) with field(s):
9 /// - [`cluster(Option<Cluster>)`](crate::operation::failover_shard::FailoverShardOutput::cluster): <p>The cluster being failed over.</p>
10 /// - On failure, responds with [`SdkError<FailoverShardError>`](crate::operation::failover_shard::FailoverShardError)
11 pub fn failover_shard(&self) -> crate::operation::failover_shard::builders::FailoverShardFluentBuilder {
12 crate::operation::failover_shard::builders::FailoverShardFluentBuilder::new(self.handle.clone())
13 }
14}