Enum aws_sdk_rds::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError
source · #[non_exhaustive]pub enum CreateDBInstanceReadReplicaError {
Show 25 variants
CertificateNotFoundFault(CertificateNotFoundFault),
DbClusterNotFoundFault(DbClusterNotFoundFault),
DbInstanceAlreadyExistsFault(DbInstanceAlreadyExistsFault),
DbInstanceNotFoundFault(DbInstanceNotFoundFault),
DbParameterGroupNotFoundFault(DbParameterGroupNotFoundFault),
DbSecurityGroupNotFoundFault(DbSecurityGroupNotFoundFault),
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupNotAllowedFault(DbSubnetGroupNotAllowedFault),
DbSubnetGroupNotFoundFault(DbSubnetGroupNotFoundFault),
DomainNotFoundFault(DomainNotFoundFault),
InstanceQuotaExceededFault(InstanceQuotaExceededFault),
InsufficientDbInstanceCapacityFault(InsufficientDbInstanceCapacityFault),
InvalidDbClusterStateFault(InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault),
InvalidDbSubnetGroupFault(InvalidDbSubnetGroupFault),
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 CreateDBInstanceReadReplicaError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
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.
DbSubnetGroupDoesNotCoverEnoughAZs(DbSubnetGroupDoesNotCoverEnoughAZs)
Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.
DbSubnetGroupNotAllowedFault(DbSubnetGroupNotAllowedFault)
The DBSubnetGroup shouldn't be specified while creating read replicas that lie in the same region as the source instance.
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.
InvalidDbInstanceStateFault(InvalidDbInstanceStateFault)
The DB instance isn't in a valid state.
InvalidDbSubnetGroupFault(InvalidDbSubnetGroupFault)
The DBSubnetGroup doesn't belong to the same VPC as that of an existing cross-region read replica of the same source instance.
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 CreateDBInstanceReadReplicaError
impl CreateDBInstanceReadReplicaError
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 CreateDBInstanceReadReplicaError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateDBInstanceReadReplicaError::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.
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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::DbSubnetGroupDoesNotCoverEnoughAZs.
sourcepub fn is_db_subnet_group_not_allowed_fault(&self) -> bool
pub fn is_db_subnet_group_not_allowed_fault(&self) -> bool
Returns true if the error kind is CreateDBInstanceReadReplicaError::DbSubnetGroupNotAllowedFault.
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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::InvalidDbInstanceStateFault.
sourcepub fn is_invalid_db_subnet_group_fault(&self) -> bool
pub fn is_invalid_db_subnet_group_fault(&self) -> bool
Returns true if the error kind is CreateDBInstanceReadReplicaError::InvalidDbSubnetGroupFault.
sourcepub fn is_invalid_subnet(&self) -> bool
pub fn is_invalid_subnet(&self) -> bool
Returns true if the error kind is CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::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 CreateDBInstanceReadReplicaError::TenantDatabaseQuotaExceededFault.
Trait Implementations§
source§impl CreateUnhandledError for CreateDBInstanceReadReplicaError
impl CreateUnhandledError for CreateDBInstanceReadReplicaError
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 Error for CreateDBInstanceReadReplicaError
impl Error for CreateDBInstanceReadReplicaError
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<CreateDBInstanceReadReplicaError> for Error
impl From<CreateDBInstanceReadReplicaError> for Error
source§fn from(err: CreateDBInstanceReadReplicaError) -> Self
fn from(err: CreateDBInstanceReadReplicaError) -> Self
source§impl ProvideErrorMetadata for CreateDBInstanceReadReplicaError
impl ProvideErrorMetadata for CreateDBInstanceReadReplicaError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateDBInstanceReadReplicaError
impl RequestId for CreateDBInstanceReadReplicaError
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 CreateDBInstanceReadReplicaError
impl !RefUnwindSafe for CreateDBInstanceReadReplicaError
impl Send for CreateDBInstanceReadReplicaError
impl Sync for CreateDBInstanceReadReplicaError
impl Unpin for CreateDBInstanceReadReplicaError
impl !UnwindSafe for CreateDBInstanceReadReplicaError
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