Enum aws_sdk_rds::operation::create_custom_db_engine_version::CreateCustomDBEngineVersionError
source · #[non_exhaustive]pub enum CreateCustomDBEngineVersionError {
CreateCustomDbEngineVersionFault(CreateCustomDbEngineVersionFault),
CustomDbEngineVersionAlreadyExistsFault(CustomDbEngineVersionAlreadyExistsFault),
CustomDbEngineVersionQuotaExceededFault(CustomDbEngineVersionQuotaExceededFault),
Ec2ImagePropertiesNotSupportedFault(Ec2ImagePropertiesNotSupportedFault),
KmsKeyNotAccessibleFault(KmsKeyNotAccessibleFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateCustomDBEngineVersionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CreateCustomDbEngineVersionFault(CreateCustomDbEngineVersionFault)
An error occurred while trying to create the CEV.
CustomDbEngineVersionAlreadyExistsFault(CustomDbEngineVersionAlreadyExistsFault)
A CEV with the specified name already exists.
CustomDbEngineVersionQuotaExceededFault(CustomDbEngineVersionQuotaExceededFault)
You have exceeded your CEV quota.
Ec2ImagePropertiesNotSupportedFault(Ec2ImagePropertiesNotSupportedFault)
The AMI configuration prerequisite has not been met.
KmsKeyNotAccessibleFault(KmsKeyNotAccessibleFault)
An error occurred accessing an Amazon Web Services KMS key.
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 CreateCustomDBEngineVersionError
impl CreateCustomDBEngineVersionError
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 CreateCustomDBEngineVersionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateCustomDBEngineVersionError::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_create_custom_db_engine_version_fault(&self) -> bool
pub fn is_create_custom_db_engine_version_fault(&self) -> bool
Returns true
if the error kind is CreateCustomDBEngineVersionError::CreateCustomDbEngineVersionFault
.
sourcepub fn is_custom_db_engine_version_already_exists_fault(&self) -> bool
pub fn is_custom_db_engine_version_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateCustomDBEngineVersionError::CustomDbEngineVersionAlreadyExistsFault
.
sourcepub fn is_custom_db_engine_version_quota_exceeded_fault(&self) -> bool
pub fn is_custom_db_engine_version_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateCustomDBEngineVersionError::CustomDbEngineVersionQuotaExceededFault
.
sourcepub fn is_ec2_image_properties_not_supported_fault(&self) -> bool
pub fn is_ec2_image_properties_not_supported_fault(&self) -> bool
Returns true
if the error kind is CreateCustomDBEngineVersionError::Ec2ImagePropertiesNotSupportedFault
.
sourcepub fn is_kms_key_not_accessible_fault(&self) -> bool
pub fn is_kms_key_not_accessible_fault(&self) -> bool
Returns true
if the error kind is CreateCustomDBEngineVersionError::KmsKeyNotAccessibleFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateCustomDBEngineVersionError
impl CreateUnhandledError for CreateCustomDBEngineVersionError
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 CreateCustomDBEngineVersionError
impl Error for CreateCustomDBEngineVersionError
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<CreateCustomDBEngineVersionError> for Error
impl From<CreateCustomDBEngineVersionError> for Error
source§fn from(err: CreateCustomDBEngineVersionError) -> Self
fn from(err: CreateCustomDBEngineVersionError) -> Self
source§impl ProvideErrorMetadata for CreateCustomDBEngineVersionError
impl ProvideErrorMetadata for CreateCustomDBEngineVersionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateCustomDBEngineVersionError
impl RequestId for CreateCustomDBEngineVersionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.