#[non_exhaustive]pub enum CreateDBInstanceError {
Show 23 variants
AuthorizationNotFoundFault(AuthorizationNotFoundFault),
BackupPolicyNotFoundFault(BackupPolicyNotFoundFault),
CertificateNotFoundFault(CertificateNotFoundFault),
DbClusterNotFoundFault(DbClusterNotFoundFault),
DbInstanceAlreadyExistsFault(DbInstanceAlreadyExistsFault),
DbParameterGroupNotFoundFault(DbParameterGroupNotFoundFault),
DbSecurityGroupNotFoundFault(DbSecurityGroupNotFoundFault),
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupNotFoundFault(DbSubnetGroupNotFoundFault),
DomainNotFoundFault(DomainNotFoundFault),
InstanceQuotaExceededFault(InstanceQuotaExceededFault),
InsufficientDbInstanceCapacityFault(InsufficientDbInstanceCapacityFault),
InvalidDbClusterStateFault(InvalidDbClusterStateFault),
InvalidSubnet(InvalidSubnet),
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault),
KmsKeyNotAccessibleFault(KmsKeyNotAccessibleFault),
NetworkTypeNotSupported(NetworkTypeNotSupported),
OptionGroupNotFoundFault(OptionGroupNotFoundFault),
ProvisionedIopsNotAvailableInAzFault(ProvisionedIopsNotAvailableInAzFault),
StorageQuotaExceededFault(StorageQuotaExceededFault),
StorageTypeNotSupportedFault(StorageTypeNotSupportedFault),
TenantDatabaseQuotaExceededFault(TenantDatabaseQuotaExceededFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateDBInstanceError
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.
DbClusterNotFoundFault(DbClusterNotFoundFault)
DBClusterIdentifier
doesn't refer to an existing DB cluster.
DbInstanceAlreadyExistsFault(DbInstanceAlreadyExistsFault)
The user already has a DB instance with the given identifier.
DbParameterGroupNotFoundFault(DbParameterGroupNotFoundFault)
DBParameterGroupName
doesn't refer to an existing DB parameter group.
DbSecurityGroupNotFoundFault(DbSecurityGroupNotFoundFault)
DBSecurityGroupName
doesn't refer to an existing DB security group.
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs)
Subnets in the DB 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 DB subnet group.
DomainNotFoundFault(DomainNotFoundFault)
Domain
doesn't refer to an existing Active Directory domain.
InstanceQuotaExceededFault(InstanceQuotaExceededFault)
The request would result in the user exceeding the allowed number of DB instances.
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.
InvalidSubnet(InvalidSubnet)
The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.
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 CreateDBInstanceError
impl CreateDBInstanceError
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 CreateDBInstanceError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::CertificateNotFoundFault
.
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 CreateDBInstanceError::DbClusterNotFoundFault
.
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 CreateDBInstanceError::DbInstanceAlreadyExistsFault
.
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 CreateDBInstanceError::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 CreateDBInstanceError::DbSecurityGroupNotFoundFault
.
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 CreateDBInstanceError::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 CreateDBInstanceError::DbSubnetGroupNotFoundFault
.
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 CreateDBInstanceError::DomainNotFoundFault
.
sourcepub fn is_instance_quota_exceeded_fault(&self) -> bool
pub fn is_instance_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateDBInstanceError::InstanceQuotaExceededFault
.
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 CreateDBInstanceError::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 CreateDBInstanceError::InvalidDbClusterStateFault
.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true
if the error kind is CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::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 CreateDBInstanceError::TenantDatabaseQuotaExceededFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateDBInstanceError
impl CreateUnhandledError for CreateDBInstanceError
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 CreateDBInstanceError
impl Debug for CreateDBInstanceError
source§impl Display for CreateDBInstanceError
impl Display for CreateDBInstanceError
source§impl Error for CreateDBInstanceError
impl Error for CreateDBInstanceError
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<CreateDBInstanceError> for Error
impl From<CreateDBInstanceError> for Error
source§fn from(err: CreateDBInstanceError) -> Self
fn from(err: CreateDBInstanceError) -> Self
source§impl ProvideErrorMetadata for CreateDBInstanceError
impl ProvideErrorMetadata for CreateDBInstanceError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateDBInstanceError
impl RequestId for CreateDBInstanceError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.