Enum aws_sdk_elasticache::operation::create_cache_parameter_group::CreateCacheParameterGroupError
source · #[non_exhaustive]pub enum CreateCacheParameterGroupError {
CacheParameterGroupAlreadyExistsFault(CacheParameterGroupAlreadyExistsFault),
CacheParameterGroupQuotaExceededFault(CacheParameterGroupQuotaExceededFault),
InvalidCacheParameterGroupStateFault(InvalidCacheParameterGroupStateFault),
InvalidParameterCombinationException(InvalidParameterCombinationException),
InvalidParameterValueException(InvalidParameterValueException),
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateCacheParameterGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CacheParameterGroupAlreadyExistsFault(CacheParameterGroupAlreadyExistsFault)
A cache parameter group with the requested name already exists.
CacheParameterGroupQuotaExceededFault(CacheParameterGroupQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of cache security groups.
InvalidCacheParameterGroupStateFault(InvalidCacheParameterGroupStateFault)
The current state of the cache parameter group does not allow the requested operation to occur.
InvalidParameterCombinationException(InvalidParameterCombinationException)
Two or more incompatible parameters were specified.
InvalidParameterValueException(InvalidParameterValueException)
The value for a parameter is invalid.
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded)
The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.
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 CreateCacheParameterGroupError
impl CreateCacheParameterGroupError
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 CreateCacheParameterGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateCacheParameterGroupError::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_cache_parameter_group_already_exists_fault(&self) -> bool
pub fn is_cache_parameter_group_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateCacheParameterGroupError::CacheParameterGroupAlreadyExistsFault
.
sourcepub fn is_cache_parameter_group_quota_exceeded_fault(&self) -> bool
pub fn is_cache_parameter_group_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateCacheParameterGroupError::CacheParameterGroupQuotaExceededFault
.
sourcepub fn is_invalid_cache_parameter_group_state_fault(&self) -> bool
pub fn is_invalid_cache_parameter_group_state_fault(&self) -> bool
Returns true
if the error kind is CreateCacheParameterGroupError::InvalidCacheParameterGroupStateFault
.
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 CreateCacheParameterGroupError::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 CreateCacheParameterGroupError::InvalidParameterValueException
.
sourcepub fn is_tag_quota_per_resource_exceeded(&self) -> bool
pub fn is_tag_quota_per_resource_exceeded(&self) -> bool
Returns true
if the error kind is CreateCacheParameterGroupError::TagQuotaPerResourceExceeded
.
Trait Implementations§
source§impl CreateUnhandledError for CreateCacheParameterGroupError
impl CreateUnhandledError for CreateCacheParameterGroupError
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 CreateCacheParameterGroupError
impl Error for CreateCacheParameterGroupError
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<CreateCacheParameterGroupError> for Error
impl From<CreateCacheParameterGroupError> for Error
source§fn from(err: CreateCacheParameterGroupError) -> Self
fn from(err: CreateCacheParameterGroupError) -> Self
source§impl ProvideErrorMetadata for CreateCacheParameterGroupError
impl ProvideErrorMetadata for CreateCacheParameterGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateCacheParameterGroupError
impl RequestId for CreateCacheParameterGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.