#[non_exhaustive]pub enum ModifyDBInstanceError {
Show 22 variants
AuthorizationNotFoundFault(AuthorizationNotFoundFault),
BackupPolicyNotFoundFault(BackupPolicyNotFoundFault),
CertificateNotFoundFault(CertificateNotFoundFault),
DbInstanceAlreadyExistsFault(DbInstanceAlreadyExistsFault),
DbInstanceNotFoundFault(DbInstanceNotFoundFault),
DbParameterGroupNotFoundFault(DbParameterGroupNotFoundFault),
DbSecurityGroupNotFoundFault(DbSecurityGroupNotFoundFault),
DbUpgradeDependencyFailureFault(DbUpgradeDependencyFailureFault),
DomainNotFoundFault(DomainNotFoundFault),
InsufficientDbInstanceCapacityFault(InsufficientDbInstanceCapacityFault),
InvalidDbClusterStateFault(InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault),
InvalidDbSecurityGroupStateFault(InvalidDbSecurityGroupStateFault),
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault),
KmsKeyNotAccessibleFault(KmsKeyNotAccessibleFault),
NetworkTypeNotSupported(NetworkTypeNotSupported),
OptionGroupNotFoundFault(OptionGroupNotFoundFault),
ProvisionedIopsNotAvailableInAzFault(ProvisionedIopsNotAvailableInAzFault),
StorageQuotaExceededFault(StorageQuotaExceededFault),
StorageTypeNotSupportedFault(StorageTypeNotSupportedFault),
TenantDatabaseQuotaExceededFault(TenantDatabaseQuotaExceededFault),
Unhandled(Unhandled),
}Expand description
Error type for the ModifyDBInstanceError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AuthorizationNotFoundFault(AuthorizationNotFoundFault)
The specified CIDR IP range or Amazon EC2 security group might not be authorized for the specified DB security group.
Or, RDS might not be authorized to perform necessary actions using IAM on your behalf.
BackupPolicyNotFoundFault(BackupPolicyNotFoundFault)
CertificateNotFoundFault(CertificateNotFoundFault)
CertificateIdentifier doesn't refer to an existing certificate.
DbInstanceAlreadyExistsFault(DbInstanceAlreadyExistsFault)
The user already has a DB instance with the given identifier.
DbInstanceNotFoundFault(DbInstanceNotFoundFault)
DBInstanceIdentifier doesn't refer to an existing DB instance.
DbParameterGroupNotFoundFault(DbParameterGroupNotFoundFault)
DBParameterGroupName doesn't refer to an existing DB parameter group.
DbSecurityGroupNotFoundFault(DbSecurityGroupNotFoundFault)
DBSecurityGroupName doesn't refer to an existing DB security group.
DbUpgradeDependencyFailureFault(DbUpgradeDependencyFailureFault)
The DB upgrade failed because a resource the DB depends on can't be modified.
DomainNotFoundFault(DomainNotFoundFault)
Domain doesn't refer to an existing Active Directory domain.
InsufficientDbInstanceCapacityFault(InsufficientDbInstanceCapacityFault)
The specified DB instance class isn't available in the specified Availability Zone.
InvalidDbClusterStateFault(InvalidDbClusterStateFault)
The requested operation can't be performed while the cluster is in this state.
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault)
The DB instance isn't in a valid state.
InvalidDbSecurityGroupStateFault(InvalidDbSecurityGroupStateFault)
The state of the DB security group doesn't allow deletion.
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault)
The DB subnet group doesn't cover all Availability Zones after it's created because of users' change.
KmsKeyNotAccessibleFault(KmsKeyNotAccessibleFault)
An error occurred accessing an Amazon Web Services KMS key.
NetworkTypeNotSupported(NetworkTypeNotSupported)
The network type is invalid for the DB instance. Valid nework type values are IPV4 and DUAL.
OptionGroupNotFoundFault(OptionGroupNotFoundFault)
The specified option group could not be found.
ProvisionedIopsNotAvailableInAzFault(ProvisionedIopsNotAvailableInAzFault)
Provisioned IOPS not available in the specified Availability Zone.
StorageQuotaExceededFault(StorageQuotaExceededFault)
The request would result in the user exceeding the allowed amount of storage available across all DB instances.
StorageTypeNotSupportedFault(StorageTypeNotSupportedFault)
The specified StorageType can't be associated with the DB instance.
TenantDatabaseQuotaExceededFault(TenantDatabaseQuotaExceededFault)
You attempted to create more tenant databases than are permitted in your Amazon Web Services account.
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 ModifyDBInstanceError
impl ModifyDBInstanceError
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 ModifyDBInstanceError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyDBInstanceError::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.
Returns true if the error kind is ModifyDBInstanceError::AuthorizationNotFoundFault.
sourcepub fn is_backup_policy_not_found_fault(&self) -> bool
pub fn is_backup_policy_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::BackupPolicyNotFoundFault.
sourcepub fn is_certificate_not_found_fault(&self) -> bool
pub fn is_certificate_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::CertificateNotFoundFault.
sourcepub fn is_db_instance_already_exists_fault(&self) -> bool
pub fn is_db_instance_already_exists_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::DbInstanceAlreadyExistsFault.
sourcepub fn is_db_instance_not_found_fault(&self) -> bool
pub fn is_db_instance_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::DbInstanceNotFoundFault.
sourcepub fn is_db_parameter_group_not_found_fault(&self) -> bool
pub fn is_db_parameter_group_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::DbParameterGroupNotFoundFault.
sourcepub fn is_db_security_group_not_found_fault(&self) -> bool
pub fn is_db_security_group_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::DbSecurityGroupNotFoundFault.
sourcepub fn is_db_upgrade_dependency_failure_fault(&self) -> bool
pub fn is_db_upgrade_dependency_failure_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::DbUpgradeDependencyFailureFault.
sourcepub fn is_domain_not_found_fault(&self) -> bool
pub fn is_domain_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::DomainNotFoundFault.
sourcepub fn is_insufficient_db_instance_capacity_fault(&self) -> bool
pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::InsufficientDbInstanceCapacityFault.
sourcepub fn is_invalid_db_cluster_state_fault(&self) -> bool
pub fn is_invalid_db_cluster_state_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::InvalidDbClusterStateFault.
sourcepub fn is_invalid_db_instance_state_fault(&self) -> bool
pub fn is_invalid_db_instance_state_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::InvalidDbInstanceStateFault.
sourcepub fn is_invalid_db_security_group_state_fault(&self) -> bool
pub fn is_invalid_db_security_group_state_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::InvalidDbSecurityGroupStateFault.
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 ModifyDBInstanceError::InvalidVpcNetworkStateFault.
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 ModifyDBInstanceError::KmsKeyNotAccessibleFault.
sourcepub fn is_network_type_not_supported(&self) -> bool
pub fn is_network_type_not_supported(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::NetworkTypeNotSupported.
sourcepub fn is_option_group_not_found_fault(&self) -> bool
pub fn is_option_group_not_found_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::OptionGroupNotFoundFault.
sourcepub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool
pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::ProvisionedIopsNotAvailableInAzFault.
sourcepub fn is_storage_quota_exceeded_fault(&self) -> bool
pub fn is_storage_quota_exceeded_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::StorageQuotaExceededFault.
sourcepub fn is_storage_type_not_supported_fault(&self) -> bool
pub fn is_storage_type_not_supported_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::StorageTypeNotSupportedFault.
sourcepub fn is_tenant_database_quota_exceeded_fault(&self) -> bool
pub fn is_tenant_database_quota_exceeded_fault(&self) -> bool
Returns true if the error kind is ModifyDBInstanceError::TenantDatabaseQuotaExceededFault.
Trait Implementations§
source§impl CreateUnhandledError for ModifyDBInstanceError
impl CreateUnhandledError for ModifyDBInstanceError
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 ModifyDBInstanceError
impl Debug for ModifyDBInstanceError
source§impl Display for ModifyDBInstanceError
impl Display for ModifyDBInstanceError
source§impl Error for ModifyDBInstanceError
impl Error for ModifyDBInstanceError
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<ModifyDBInstanceError> for Error
impl From<ModifyDBInstanceError> for Error
source§fn from(err: ModifyDBInstanceError) -> Self
fn from(err: ModifyDBInstanceError) -> Self
source§impl ProvideErrorMetadata for ModifyDBInstanceError
impl ProvideErrorMetadata for ModifyDBInstanceError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyDBInstanceError
impl RequestId for ModifyDBInstanceError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.Auto Trait Implementations§
impl Freeze for ModifyDBInstanceError
impl !RefUnwindSafe for ModifyDBInstanceError
impl Send for ModifyDBInstanceError
impl Sync for ModifyDBInstanceError
impl Unpin for ModifyDBInstanceError
impl !UnwindSafe for ModifyDBInstanceError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more