#[non_exhaustive]pub enum IncreaseReplicaCountError {
Show 13 variants
ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault),
InsufficientCacheClusterCapacityFault(InsufficientCacheClusterCapacityFault),
InvalidCacheClusterStateFault(InvalidCacheClusterStateFault),
InvalidKmsKeyFault(InvalidKmsKeyFault),
InvalidParameterCombinationException(InvalidParameterCombinationException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidReplicationGroupStateFault(InvalidReplicationGroupStateFault),
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault),
NodeGroupsPerReplicationGroupQuotaExceededFault(NodeGroupsPerReplicationGroupQuotaExceededFault),
NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault),
NoOperationFault(NoOperationFault),
ReplicationGroupNotFoundFault(ReplicationGroupNotFoundFault),
Unhandled(Unhandled),
}
Expand description
Error type for the IncreaseReplicaCountError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault)
The request cannot be processed because it would exceed the allowed number of clusters per customer.
InsufficientCacheClusterCapacityFault(InsufficientCacheClusterCapacityFault)
The requested cache node type is not available in the specified Availability Zone. For more information, see InsufficientCacheClusterCapacity in the ElastiCache User Guide.
InvalidCacheClusterStateFault(InvalidCacheClusterStateFault)
The requested cluster is not in the available
state.
InvalidKmsKeyFault(InvalidKmsKeyFault)
The KMS key supplied is not valid.
InvalidParameterCombinationException(InvalidParameterCombinationException)
Two or more incompatible parameters were specified.
InvalidParameterValueException(InvalidParameterValueException)
The value for a parameter is invalid.
InvalidReplicationGroupStateFault(InvalidReplicationGroupStateFault)
The requested replication group is not in the available
state.
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault)
The VPC network is in an invalid state.
NodeGroupsPerReplicationGroupQuotaExceededFault(NodeGroupsPerReplicationGroupQuotaExceededFault)
The request cannot be processed because it would exceed the maximum allowed number of node groups (shards) in a single replication group. The default maximum is 90
NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault)
The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
NoOperationFault(NoOperationFault)
The operation was not performed because no changes were required.
ReplicationGroupNotFoundFault(ReplicationGroupNotFoundFault)
The specified replication group does not exist.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl IncreaseReplicaCountError
impl IncreaseReplicaCountError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the IncreaseReplicaCountError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the IncreaseReplicaCountError::Unhandled
variant from an ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_cluster_quota_for_customer_exceeded_fault(&self) -> bool
pub fn is_cluster_quota_for_customer_exceeded_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::ClusterQuotaForCustomerExceededFault
.
sourcepub fn is_insufficient_cache_cluster_capacity_fault(&self) -> bool
pub fn is_insufficient_cache_cluster_capacity_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::InsufficientCacheClusterCapacityFault
.
sourcepub fn is_invalid_cache_cluster_state_fault(&self) -> bool
pub fn is_invalid_cache_cluster_state_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::InvalidCacheClusterStateFault
.
sourcepub fn is_invalid_kms_key_fault(&self) -> bool
pub fn is_invalid_kms_key_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::InvalidKmsKeyFault
.
sourcepub fn is_invalid_parameter_combination_exception(&self) -> bool
pub fn is_invalid_parameter_combination_exception(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::InvalidParameterCombinationException
.
sourcepub fn is_invalid_parameter_value_exception(&self) -> bool
pub fn is_invalid_parameter_value_exception(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::InvalidParameterValueException
.
sourcepub fn is_invalid_replication_group_state_fault(&self) -> bool
pub fn is_invalid_replication_group_state_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::InvalidReplicationGroupStateFault
.
sourcepub fn is_invalid_vpc_network_state_fault(&self) -> bool
pub fn is_invalid_vpc_network_state_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::InvalidVpcNetworkStateFault
.
sourcepub fn is_node_groups_per_replication_group_quota_exceeded_fault(&self) -> bool
pub fn is_node_groups_per_replication_group_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::NodeGroupsPerReplicationGroupQuotaExceededFault
.
sourcepub fn is_node_quota_for_customer_exceeded_fault(&self) -> bool
pub fn is_node_quota_for_customer_exceeded_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::NodeQuotaForCustomerExceededFault
.
sourcepub fn is_no_operation_fault(&self) -> bool
pub fn is_no_operation_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::NoOperationFault
.
sourcepub fn is_replication_group_not_found_fault(&self) -> bool
pub fn is_replication_group_not_found_fault(&self) -> bool
Returns true
if the error kind is IncreaseReplicaCountError::ReplicationGroupNotFoundFault
.
Trait Implementations§
source§impl CreateUnhandledError for IncreaseReplicaCountError
impl CreateUnhandledError for IncreaseReplicaCountError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for IncreaseReplicaCountError
impl Debug for IncreaseReplicaCountError
source§impl Display for IncreaseReplicaCountError
impl Display for IncreaseReplicaCountError
source§impl Error for IncreaseReplicaCountError
impl Error for IncreaseReplicaCountError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<IncreaseReplicaCountError> for Error
impl From<IncreaseReplicaCountError> for Error
source§fn from(err: IncreaseReplicaCountError) -> Self
fn from(err: IncreaseReplicaCountError) -> Self
source§impl ProvideErrorMetadata for IncreaseReplicaCountError
impl ProvideErrorMetadata for IncreaseReplicaCountError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for IncreaseReplicaCountError
impl RequestId for IncreaseReplicaCountError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.