#[non_exhaustive]pub struct ModifyReplicationGroupShardConfigurationInput { /* private fields */ }
Expand description
Represents the input for a ModifyReplicationGroupShardConfiguration
operation.
Implementations§
source§impl ModifyReplicationGroupShardConfigurationInput
impl ModifyReplicationGroupShardConfigurationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyReplicationGroupShardConfiguration, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyReplicationGroupShardConfiguration, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyReplicationGroupShardConfiguration
>
Examples found in repository?
9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyReplicationGroupShardConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::ModifyReplicationGroupShardConfigurationError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ModifyReplicationGroupShardConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::ModifyReplicationGroupShardConfigurationError,
>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyReplicationGroupShardConfigurationInput
.
source§impl ModifyReplicationGroupShardConfigurationInput
impl ModifyReplicationGroupShardConfigurationInput
sourcepub fn replication_group_id(&self) -> Option<&str>
pub fn replication_group_id(&self) -> Option<&str>
The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
sourcepub fn node_group_count(&self) -> i32
pub fn node_group_count(&self) -> i32
The number of node groups (shards) that results from the modification of the shard configuration.
sourcepub fn apply_immediately(&self) -> bool
pub fn apply_immediately(&self) -> bool
Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true
.
Value: true
sourcepub fn resharding_configuration(&self) -> Option<&[ReshardingConfiguration]>
pub fn resharding_configuration(&self) -> Option<&[ReshardingConfiguration]>
Specifies the preferred availability zones for each node group in the cluster. If the value of NodeGroupCount
is greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.
You can specify this parameter only if the value of NodeGroupCount
is greater than the current number of node groups (shards).
sourcepub fn node_groups_to_remove(&self) -> Option<&[String]>
pub fn node_groups_to_remove(&self) -> Option<&[String]>
If the value of NodeGroupCount
is less than the current number of node groups (shards), then either NodeGroupsToRemove
or NodeGroupsToRetain
is required. NodeGroupsToRemove
is a list of NodeGroupId
s to remove from the cluster.
ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove
from the cluster.
sourcepub fn node_groups_to_retain(&self) -> Option<&[String]>
pub fn node_groups_to_retain(&self) -> Option<&[String]>
If the value of NodeGroupCount
is less than the current number of node groups (shards), then either NodeGroupsToRemove
or NodeGroupsToRetain
is required. NodeGroupsToRetain
is a list of NodeGroupId
s to retain in the cluster.
ElastiCache for Redis will attempt to remove all node groups except those listed by NodeGroupsToRetain
from the cluster.
Trait Implementations§
source§impl Clone for ModifyReplicationGroupShardConfigurationInput
impl Clone for ModifyReplicationGroupShardConfigurationInput
source§fn clone(&self) -> ModifyReplicationGroupShardConfigurationInput
fn clone(&self) -> ModifyReplicationGroupShardConfigurationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more