Struct aws_sdk_elasticache::client::fluent_builders::DecreaseReplicaCount [−][src]
pub struct DecreaseReplicaCount<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DecreaseReplicaCount
.
Dynamically decreases 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
impl<C, M, R> DecreaseReplicaCount<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DecreaseReplicaCount<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DecreaseReplicaCountOutput, SdkError<DecreaseReplicaCountError>> where
R::Policy: SmithyRetryPolicy<DecreaseReplicaCountInputOperationOutputAlias, DecreaseReplicaCountOutput, DecreaseReplicaCountError, DecreaseReplicaCountInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DecreaseReplicaCountOutput, SdkError<DecreaseReplicaCountError>> where
R::Policy: SmithyRetryPolicy<DecreaseReplicaCountInputOperationOutputAlias, DecreaseReplicaCountOutput, DecreaseReplicaCountError, DecreaseReplicaCountInputOperationRetryAlias>,
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.
The id of the replication group from which you want to remove replica nodes.
The id of the replication group from which you want to remove replica nodes.
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.
The minimum number of replicas in a shard or replication group is:
-
Redis (cluster mode disabled)
-
If Multi-AZ is enabled: 1
-
If Multi-AZ is not enabled: 0
-
-
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
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.
The minimum number of replicas in a shard or replication group is:
-
Redis (cluster mode disabled)
-
If Multi-AZ is enabled: 1
-
If Multi-AZ is not enabled: 0
-
-
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
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
.
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
.
Appends an item to ReplicasToRemove
.
To override the contents of this collection use set_replicas_to_remove
.
A list of the node ids to remove from the replication group or node group (shard).
A list of the node ids to remove from the replication group or node group (shard).
If True
, the number of replica nodes is decreased immediately.
ApplyImmediately=False
is not currently supported.
If True
, the number of replica nodes is decreased immediately.
ApplyImmediately=False
is not currently supported.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for DecreaseReplicaCount<C, M, R>
impl<C, M, R> Send for DecreaseReplicaCount<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DecreaseReplicaCount<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DecreaseReplicaCount<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for DecreaseReplicaCount<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more