aws_sdk_dax/client/
decrease_replication_factor.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DecreaseReplicationFactor`](crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`DecreaseReplicationFactorOutput`](crate::operation::decrease_replication_factor::DecreaseReplicationFactorOutput) with field(s):
    ///   - [`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>
    /// - On failure, responds with [`SdkError<DecreaseReplicationFactorError>`](crate::operation::decrease_replication_factor::DecreaseReplicationFactorError)
    pub fn decrease_replication_factor(&self) -> crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder {
        crate::operation::decrease_replication_factor::builders::DecreaseReplicationFactorFluentBuilder::new(self.handle.clone())
    }
}