#[non_exhaustive]pub enum ModifyDBSubnetGroupError {
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupNotFoundFault(DbSubnetGroupNotFoundFault),
DbSubnetQuotaExceededFault(DbSubnetQuotaExceededFault),
InvalidSubnet(InvalidSubnet),
SubnetAlreadyInUse(SubnetAlreadyInUse),
Unhandled(Unhandled),
}
Expand description
Error type for the ModifyDBSubnetGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs)
Subnets in the subnet group should cover at least two Availability Zones unless there is only one Availability Zone.
DbSubnetGroupNotFoundFault(DbSubnetGroupNotFoundFault)
DBSubnetGroupName
doesn't refer to an existing subnet group.
DbSubnetQuotaExceededFault(DbSubnetQuotaExceededFault)
The request would cause you to exceed the allowed number of subnets in a subnet group.
InvalidSubnet(InvalidSubnet)
The requested subnet is not valid, or multiple subnets were requested that are not all in a common virtual private cloud (VPC).
SubnetAlreadyInUse(SubnetAlreadyInUse)
The subnet is already in use in the Availability Zone.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ModifyDBSubnetGroupError
impl ModifyDBSubnetGroupError
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 ModifyDBSubnetGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyDBSubnetGroupError::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_subnet_group_does_not_cover_enough_a_zs(&self) -> bool
pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool
Returns true
if the error kind is ModifyDBSubnetGroupError::DbSubnetGroupDoesNotCoverEnoughAZs
.
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 ModifyDBSubnetGroupError::DbSubnetGroupNotFoundFault
.
sourcepub fn is_db_subnet_quota_exceeded_fault(&self) -> bool
pub fn is_db_subnet_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is ModifyDBSubnetGroupError::DbSubnetQuotaExceededFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is ModifyDBSubnetGroupError::InvalidSubnet
.
sourcepub fn is_subnet_already_in_use(&self) -> bool
pub fn is_subnet_already_in_use(&self) -> bool
Returns true
if the error kind is ModifyDBSubnetGroupError::SubnetAlreadyInUse
.
Trait Implementations§
source§impl CreateUnhandledError for ModifyDBSubnetGroupError
impl CreateUnhandledError for ModifyDBSubnetGroupError
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 ModifyDBSubnetGroupError
impl Debug for ModifyDBSubnetGroupError
source§impl Display for ModifyDBSubnetGroupError
impl Display for ModifyDBSubnetGroupError
source§impl Error for ModifyDBSubnetGroupError
impl Error for ModifyDBSubnetGroupError
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<ModifyDBSubnetGroupError> for Error
impl From<ModifyDBSubnetGroupError> for Error
source§fn from(err: ModifyDBSubnetGroupError) -> Self
fn from(err: ModifyDBSubnetGroupError) -> Self
source§impl ProvideErrorMetadata for ModifyDBSubnetGroupError
impl ProvideErrorMetadata for ModifyDBSubnetGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyDBSubnetGroupError
impl RequestId for ModifyDBSubnetGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.