Enum aws_sdk_elasticache::operation::modify_replication_group_shard_configuration::ModifyReplicationGroupShardConfigurationError
source · #[non_exhaustive]pub enum ModifyReplicationGroupShardConfigurationError {
InsufficientCacheClusterCapacityFault(InsufficientCacheClusterCapacityFault),
InvalidCacheClusterStateFault(InvalidCacheClusterStateFault),
InvalidKmsKeyFault(InvalidKmsKeyFault),
InvalidParameterCombinationException(InvalidParameterCombinationException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidReplicationGroupStateFault(InvalidReplicationGroupStateFault),
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault),
NodeGroupsPerReplicationGroupQuotaExceededFault(NodeGroupsPerReplicationGroupQuotaExceededFault),
NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault),
ReplicationGroupNotFoundFault(ReplicationGroupNotFoundFault),
Unhandled(Unhandled),
}
Expand description
Error type for the ModifyReplicationGroupShardConfigurationError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
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 ModifyReplicationGroupShardConfigurationError
impl ModifyReplicationGroupShardConfigurationError
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 ModifyReplicationGroupShardConfigurationError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyReplicationGroupShardConfigurationError::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_insufficient_cache_cluster_capacity_fault(&self) -> bool
pub fn is_insufficient_cache_cluster_capacity_fault(&self) -> bool
Returns true
if the error kind is ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::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 ModifyReplicationGroupShardConfigurationError::NodeQuotaForCustomerExceededFault
.
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 ModifyReplicationGroupShardConfigurationError::ReplicationGroupNotFoundFault
.
Trait Implementations§
source§impl CreateUnhandledError for ModifyReplicationGroupShardConfigurationError
impl CreateUnhandledError for ModifyReplicationGroupShardConfigurationError
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 Error for ModifyReplicationGroupShardConfigurationError
impl Error for ModifyReplicationGroupShardConfigurationError
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<ModifyReplicationGroupShardConfigurationError> for Error
impl From<ModifyReplicationGroupShardConfigurationError> for Error
source§fn from(err: ModifyReplicationGroupShardConfigurationError) -> Self
fn from(err: ModifyReplicationGroupShardConfigurationError) -> Self
source§impl ProvideErrorMetadata for ModifyReplicationGroupShardConfigurationError
impl ProvideErrorMetadata for ModifyReplicationGroupShardConfigurationError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyReplicationGroupShardConfigurationError
impl RequestId for ModifyReplicationGroupShardConfigurationError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.