#[non_exhaustive]pub enum CreateDBSubnetGroupError {
DbSubnetGroupAlreadyExistsFault(DbSubnetGroupAlreadyExistsFault),
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupQuotaExceededFault(DbSubnetGroupQuotaExceededFault),
DbSubnetQuotaExceededFault(DbSubnetQuotaExceededFault),
InvalidSubnet(InvalidSubnet),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateDBSubnetGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DbSubnetGroupAlreadyExistsFault(DbSubnetGroupAlreadyExistsFault)
DBSubnetGroupName
is already being used by an existing subnet group.
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs)
Subnets in the subnet group should cover at least two Availability Zones unless there is only one Availability Zone.
DbSubnetGroupQuotaExceededFault(DbSubnetGroupQuotaExceededFault)
The request would cause you to exceed the allowed number of subnet groups.
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).
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateDBSubnetGroupError
impl CreateDBSubnetGroupError
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 CreateDBSubnetGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateDBSubnetGroupError::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_already_exists_fault(&self) -> bool
pub fn is_db_subnet_group_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateDBSubnetGroupError::DbSubnetGroupAlreadyExistsFault
.
sourcepub fn is_db_subnet_group_does_not_cover_enough_azs(&self) -> bool
pub fn is_db_subnet_group_does_not_cover_enough_azs(&self) -> bool
Returns true
if the error kind is CreateDBSubnetGroupError::DbSubnetGroupDoesNotCoverEnoughAZs
.
sourcepub fn is_db_subnet_group_quota_exceeded_fault(&self) -> bool
pub fn is_db_subnet_group_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateDBSubnetGroupError::DbSubnetGroupQuotaExceededFault
.
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 CreateDBSubnetGroupError::DbSubnetQuotaExceededFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is CreateDBSubnetGroupError::InvalidSubnet
.
Trait Implementations§
source§impl CreateUnhandledError for CreateDBSubnetGroupError
impl CreateUnhandledError for CreateDBSubnetGroupError
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 CreateDBSubnetGroupError
impl Debug for CreateDBSubnetGroupError
source§impl Display for CreateDBSubnetGroupError
impl Display for CreateDBSubnetGroupError
source§impl Error for CreateDBSubnetGroupError
impl Error for CreateDBSubnetGroupError
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<CreateDBSubnetGroupError> for Error
impl From<CreateDBSubnetGroupError> for Error
source§fn from(err: CreateDBSubnetGroupError) -> Self
fn from(err: CreateDBSubnetGroupError) -> Self
source§impl ProvideErrorMetadata for CreateDBSubnetGroupError
impl ProvideErrorMetadata for CreateDBSubnetGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateDBSubnetGroupError
impl RequestId for CreateDBSubnetGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.