#[non_exhaustive]pub enum ModifyDBClusterError {
DbClusterAlreadyExistsFault(DbClusterAlreadyExistsFault),
DbClusterNotFoundFault(DbClusterNotFoundFault),
DbClusterParameterGroupNotFoundFault(DbClusterParameterGroupNotFoundFault),
DbSubnetGroupNotFoundFault(DbSubnetGroupNotFoundFault),
InvalidDbClusterStateFault(InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault),
InvalidDbSecurityGroupStateFault(InvalidDbSecurityGroupStateFault),
InvalidDbSubnetGroupStateFault(InvalidDbSubnetGroupStateFault),
InvalidSubnet(InvalidSubnet),
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault),
StorageQuotaExceededFault(StorageQuotaExceededFault),
Unhandled(Unhandled),
}
Expand description
Error type for the ModifyDBClusterError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DbClusterAlreadyExistsFault(DbClusterAlreadyExistsFault)
You already have a cluster with the given identifier.
DbClusterNotFoundFault(DbClusterNotFoundFault)
DBClusterIdentifier
doesn't refer to an existing cluster.
DbClusterParameterGroupNotFoundFault(DbClusterParameterGroupNotFoundFault)
DBClusterParameterGroupName
doesn't refer to an existing cluster parameter group.
DbSubnetGroupNotFoundFault(DbSubnetGroupNotFoundFault)
DBSubnetGroupName
doesn't refer to an existing subnet group.
InvalidDbClusterStateFault(InvalidDbClusterStateFault)
The cluster isn't in a valid state.
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault)
The specified instance isn't in the available state.
InvalidDbSecurityGroupStateFault(InvalidDbSecurityGroupStateFault)
The state of the security group doesn't allow deletion.
InvalidDbSubnetGroupStateFault(InvalidDbSubnetGroupStateFault)
The subnet group can't be deleted because it's in use.
InvalidSubnet(InvalidSubnet)
The requested subnet is not valid, or multiple subnets were requested that are not all in a common virtual private cloud (VPC).
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault)
The subnet group doesn't cover all Availability Zones after it is created because of changes that were made.
StorageQuotaExceededFault(StorageQuotaExceededFault)
The request would cause you to exceed the allowed amount of storage available across all instances.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ModifyDBClusterError
impl ModifyDBClusterError
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 ModifyDBClusterError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyDBClusterError::Unhandled
variant from a ::aws_smithy_types::error::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_db_cluster_already_exists_fault(&self) -> bool
pub fn is_db_cluster_already_exists_fault(&self) -> bool
Returns true
if the error kind is ModifyDBClusterError::DbClusterAlreadyExistsFault
.
sourcepub fn is_db_cluster_not_found_fault(&self) -> bool
pub fn is_db_cluster_not_found_fault(&self) -> bool
Returns true
if the error kind is ModifyDBClusterError::DbClusterNotFoundFault
.
sourcepub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool
pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool
Returns true
if the error kind is ModifyDBClusterError::DbClusterParameterGroupNotFoundFault
.
sourcepub fn is_db_subnet_group_not_found_fault(&self) -> bool
pub fn is_db_subnet_group_not_found_fault(&self) -> bool
Returns true
if the error kind is ModifyDBClusterError::DbSubnetGroupNotFoundFault
.
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 ModifyDBClusterError::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 ModifyDBClusterError::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 ModifyDBClusterError::InvalidDbSecurityGroupStateFault
.
sourcepub fn is_invalid_db_subnet_group_state_fault(&self) -> bool
pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool
Returns true
if the error kind is ModifyDBClusterError::InvalidDbSubnetGroupStateFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is ModifyDBClusterError::InvalidSubnet
.
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 ModifyDBClusterError::InvalidVpcNetworkStateFault
.
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 ModifyDBClusterError::StorageQuotaExceededFault
.
Trait Implementations§
source§impl CreateUnhandledError for ModifyDBClusterError
impl CreateUnhandledError for ModifyDBClusterError
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 ModifyDBClusterError
impl Debug for ModifyDBClusterError
source§impl Display for ModifyDBClusterError
impl Display for ModifyDBClusterError
source§impl Error for ModifyDBClusterError
impl Error for ModifyDBClusterError
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<ModifyDBClusterError> for Error
impl From<ModifyDBClusterError> for Error
source§fn from(err: ModifyDBClusterError) -> Self
fn from(err: ModifyDBClusterError) -> Self
source§impl ProvideErrorMetadata for ModifyDBClusterError
impl ProvideErrorMetadata for ModifyDBClusterError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyDBClusterError
impl RequestId for ModifyDBClusterError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.