pub struct IncreaseReplicaCount { /* private fields */ }
Expand description
Fluent builder constructing a request to IncreaseReplicaCount
.
Dynamically increases the number of replicas in a Redis (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Redis (cluster mode enabled) replication group. This operation is performed with no cluster down time.
Implementations
sourceimpl IncreaseReplicaCount
impl IncreaseReplicaCount
sourcepub async fn send(
self
) -> Result<IncreaseReplicaCountOutput, SdkError<IncreaseReplicaCountError>>
pub async fn send(
self
) -> Result<IncreaseReplicaCountOutput, SdkError<IncreaseReplicaCountError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn replication_group_id(self, input: impl Into<String>) -> Self
pub fn replication_group_id(self, input: impl Into<String>) -> Self
The id of the replication group to which you want to add replica nodes.
sourcepub fn set_replication_group_id(self, input: Option<String>) -> Self
pub fn set_replication_group_id(self, input: Option<String>) -> Self
The id of the replication group to which you want to add replica nodes.
sourcepub fn new_replica_count(self, input: i32) -> Self
pub fn new_replica_count(self, input: i32) -> Self
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
sourcepub fn set_new_replica_count(self, input: Option<i32>) -> Self
pub fn set_new_replica_count(self, input: Option<i32>) -> Self
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
sourcepub fn replica_configuration(self, input: ConfigureShard) -> Self
pub fn replica_configuration(self, input: ConfigureShard) -> Self
Appends an item to ReplicaConfiguration
.
To override the contents of this collection use set_replica_configuration
.
A list of ConfigureShard
objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
, and PreferredAvailabilityZones
.
sourcepub fn set_replica_configuration(
self,
input: Option<Vec<ConfigureShard>>
) -> Self
pub fn set_replica_configuration(
self,
input: Option<Vec<ConfigureShard>>
) -> Self
A list of ConfigureShard
objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
, and PreferredAvailabilityZones
.
sourcepub fn apply_immediately(self, input: bool) -> Self
pub fn apply_immediately(self, input: bool) -> Self
If True
, the number of replica nodes is increased immediately. ApplyImmediately=False
is not currently supported.
sourcepub fn set_apply_immediately(self, input: Option<bool>) -> Self
pub fn set_apply_immediately(self, input: Option<bool>) -> Self
If True
, the number of replica nodes is increased immediately. ApplyImmediately=False
is not currently supported.
Trait Implementations
sourceimpl Clone for IncreaseReplicaCount
impl Clone for IncreaseReplicaCount
sourcefn clone(&self) -> IncreaseReplicaCount
fn clone(&self) -> IncreaseReplicaCount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for IncreaseReplicaCount
impl Send for IncreaseReplicaCount
impl Sync for IncreaseReplicaCount
impl Unpin for IncreaseReplicaCount
impl !UnwindSafe for IncreaseReplicaCount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more