aws_sdk_dax/client/
decrease_replication_factor.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 [`DecreaseReplicationFactor`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster_name(impl Into<String>)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::cluster_name) / [`set_cluster_name(Option<String>)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::set_cluster_name):<br>required: **true**<br><p>The name of the DAX cluster from which you want to remove nodes.</p><br>
7    ///   - [`new_replication_factor(i32)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::new_replication_factor) / [`set_new_replication_factor(Option<i32>)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::set_new_replication_factor):<br>required: **true**<br><p>The new number of nodes for the DAX cluster.</p><br>
8    ///   - [`availability_zones(impl Into<String>)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::availability_zones) / [`set_availability_zones(Option<Vec::<String>>)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::set_availability_zones):<br>required: **false**<br><p>The Availability Zone(s) from which to remove nodes.</p><br>
9    ///   - [`node_ids_to_remove(impl Into<String>)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::node_ids_to_remove) / [`set_node_ids_to_remove(Option<Vec::<String>>)`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::set_node_ids_to_remove):<br>required: **false**<br><p>The unique identifiers of the nodes to be removed from the cluster.</p><br>
10    /// - On success, responds with [`DecreaseReplicationFactorOutput`](crate::operation::decrease_replication_factor::DecreaseReplicationFactorOutput) with field(s):
11    ///   - [`cluster(Option<Cluster>)`](crate::operation::decrease_replication_factor::DecreaseReplicationFactorOutput::cluster): <p>A description of the DAX cluster, after you have decreased its replication factor.</p>
12    /// - On failure, responds with [`SdkError<DecreaseReplicationFactorError>`](crate::operation::decrease_replication_factor::DecreaseReplicationFactorError)
13    pub fn decrease_replication_factor(&self) -> crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder {
14        crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::new(self.handle.clone())
15    }
16}