aws_sdk_elasticache/client/
increase_replica_count.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 [`IncreaseReplicaCount`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`replication_group_id(impl Into<String>)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::replication_group_id) / [`set_replication_group_id(Option<String>)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::set_replication_group_id):<br>required: **true**<br><p>The id of the replication group to which you want to add replica nodes.</p><br>
7    ///   - [`new_replica_count(i32)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::new_replica_count) / [`set_new_replica_count(Option<i32>)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::set_new_replica_count):<br>required: **false**<br><p>The number of read replica nodes you want at the completion of this operation. For Valkey or Redis OSS (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Valkey or Redis OSS (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.</p><br>
8    ///   - [`replica_configuration(ConfigureShard)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::replica_configuration) / [`set_replica_configuration(Option<Vec::<ConfigureShard>>)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::set_replica_configuration):<br>required: **false**<br><p>A list of <code>ConfigureShard</code> objects that can be used to configure each shard in a Valkey or Redis OSS (cluster mode enabled) replication group. The <code>ConfigureShard</code> has three members: <code>NewReplicaCount</code>, <code>NodeGroupId</code>, and <code>PreferredAvailabilityZones</code>.</p><br>
9    ///   - [`apply_immediately(bool)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::apply_immediately) / [`set_apply_immediately(Option<bool>)`](crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::set_apply_immediately):<br>required: **true**<br><p>If <code>True</code>, the number of replica nodes is increased immediately. <code>ApplyImmediately=False</code> is not currently supported.</p><br>
10    /// - On success, responds with [`IncreaseReplicaCountOutput`](crate::operation::increase_replica_count::IncreaseReplicaCountOutput) with field(s):
11    ///   - [`replication_group(Option<ReplicationGroup>)`](crate::operation::increase_replica_count::IncreaseReplicaCountOutput::replication_group): <p>Contains all of the attributes of a specific Valkey or Redis OSS replication group.</p>
12    /// - On failure, responds with [`SdkError<IncreaseReplicaCountError>`](crate::operation::increase_replica_count::IncreaseReplicaCountError)
13    pub fn increase_replica_count(&self) -> crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder {
14        crate::operation::increase_replica_count::builders::IncreaseReplicaCountFluentBuilder::new(self.handle.clone())
15    }
16}