#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AuthorizationNotFoundFault(crate::types::error::AuthorizationNotFoundFault),
CertificateNotFoundFault(crate::types::error::CertificateNotFoundFault),
DbClusterAlreadyExistsFault(crate::types::error::DbClusterAlreadyExistsFault),
DbClusterNotFoundFault(crate::types::error::DbClusterNotFoundFault),
DbClusterParameterGroupNotFoundFault(crate::types::error::DbClusterParameterGroupNotFoundFault),
DbClusterQuotaExceededFault(crate::types::error::DbClusterQuotaExceededFault),
DbClusterSnapshotAlreadyExistsFault(crate::types::error::DbClusterSnapshotAlreadyExistsFault),
DbClusterSnapshotNotFoundFault(crate::types::error::DbClusterSnapshotNotFoundFault),
DbInstanceAlreadyExistsFault(crate::types::error::DbInstanceAlreadyExistsFault),
DbInstanceNotFoundFault(crate::types::error::DbInstanceNotFoundFault),
DbParameterGroupAlreadyExistsFault(crate::types::error::DbParameterGroupAlreadyExistsFault),
DbParameterGroupNotFoundFault(crate::types::error::DbParameterGroupNotFoundFault),
DbParameterGroupQuotaExceededFault(crate::types::error::DbParameterGroupQuotaExceededFault),
DbSecurityGroupNotFoundFault(crate::types::error::DbSecurityGroupNotFoundFault),
DbSnapshotAlreadyExistsFault(crate::types::error::DbSnapshotAlreadyExistsFault),
DbSnapshotNotFoundFault(crate::types::error::DbSnapshotNotFoundFault),
DbSubnetGroupAlreadyExistsFault(crate::types::error::DbSubnetGroupAlreadyExistsFault),
DbSubnetGroupDoesNotCoverEnoughAZs(crate::types::error::DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupNotFoundFault(crate::types::error::DbSubnetGroupNotFoundFault),
DbSubnetGroupQuotaExceededFault(crate::types::error::DbSubnetGroupQuotaExceededFault),
DbSubnetQuotaExceededFault(crate::types::error::DbSubnetQuotaExceededFault),
DbUpgradeDependencyFailureFault(crate::types::error::DbUpgradeDependencyFailureFault),
EventSubscriptionQuotaExceededFault(crate::types::error::EventSubscriptionQuotaExceededFault),
GlobalClusterAlreadyExistsFault(crate::types::error::GlobalClusterAlreadyExistsFault),
GlobalClusterNotFoundFault(crate::types::error::GlobalClusterNotFoundFault),
GlobalClusterQuotaExceededFault(crate::types::error::GlobalClusterQuotaExceededFault),
InstanceQuotaExceededFault(crate::types::error::InstanceQuotaExceededFault),
InsufficientDbClusterCapacityFault(crate::types::error::InsufficientDbClusterCapacityFault),
InsufficientDbInstanceCapacityFault(crate::types::error::InsufficientDbInstanceCapacityFault),
InsufficientStorageClusterCapacityFault(crate::types::error::InsufficientStorageClusterCapacityFault),
InvalidDbClusterSnapshotStateFault(crate::types::error::InvalidDbClusterSnapshotStateFault),
InvalidDbClusterStateFault(crate::types::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::types::error::InvalidDbInstanceStateFault),
InvalidDbParameterGroupStateFault(crate::types::error::InvalidDbParameterGroupStateFault),
InvalidDbSecurityGroupStateFault(crate::types::error::InvalidDbSecurityGroupStateFault),
InvalidDbSnapshotStateFault(crate::types::error::InvalidDbSnapshotStateFault),
InvalidDbSubnetGroupStateFault(crate::types::error::InvalidDbSubnetGroupStateFault),
InvalidDbSubnetStateFault(crate::types::error::InvalidDbSubnetStateFault),
InvalidEventSubscriptionStateFault(crate::types::error::InvalidEventSubscriptionStateFault),
InvalidGlobalClusterStateFault(crate::types::error::InvalidGlobalClusterStateFault),
InvalidRestoreFault(crate::types::error::InvalidRestoreFault),
InvalidSubnet(crate::types::error::InvalidSubnet),
InvalidVpcNetworkStateFault(crate::types::error::InvalidVpcNetworkStateFault),
KmsKeyNotAccessibleFault(crate::types::error::KmsKeyNotAccessibleFault),
ResourceNotFoundFault(crate::types::error::ResourceNotFoundFault),
SnsInvalidTopicFault(crate::types::error::SnsInvalidTopicFault),
SnsNoAuthorizationFault(crate::types::error::SnsNoAuthorizationFault),
SnsTopicArnNotFoundFault(crate::types::error::SnsTopicArnNotFoundFault),
SharedSnapshotQuotaExceededFault(crate::types::error::SharedSnapshotQuotaExceededFault),
SnapshotQuotaExceededFault(crate::types::error::SnapshotQuotaExceededFault),
SourceNotFoundFault(crate::types::error::SourceNotFoundFault),
StorageQuotaExceededFault(crate::types::error::StorageQuotaExceededFault),
StorageTypeNotSupportedFault(crate::types::error::StorageTypeNotSupportedFault),
SubnetAlreadyInUse(crate::types::error::SubnetAlreadyInUse),
SubscriptionAlreadyExistFault(crate::types::error::SubscriptionAlreadyExistFault),
SubscriptionCategoryNotFoundFault(crate::types::error::SubscriptionCategoryNotFoundFault),
SubscriptionNotFoundFault(crate::types::error::SubscriptionNotFoundFault),
Unhandled(::aws_smithy_types::error::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AuthorizationNotFoundFault(inner) => inner.fmt(f),
Error::CertificateNotFoundFault(inner) => inner.fmt(f),
Error::DbClusterAlreadyExistsFault(inner) => inner.fmt(f),
Error::DbClusterNotFoundFault(inner) => inner.fmt(f),
Error::DbClusterParameterGroupNotFoundFault(inner) => inner.fmt(f),
Error::DbClusterQuotaExceededFault(inner) => inner.fmt(f),
Error::DbClusterSnapshotAlreadyExistsFault(inner) => inner.fmt(f),
Error::DbClusterSnapshotNotFoundFault(inner) => inner.fmt(f),
Error::DbInstanceAlreadyExistsFault(inner) => inner.fmt(f),
Error::DbInstanceNotFoundFault(inner) => inner.fmt(f),
Error::DbParameterGroupAlreadyExistsFault(inner) => inner.fmt(f),
Error::DbParameterGroupNotFoundFault(inner) => inner.fmt(f),
Error::DbParameterGroupQuotaExceededFault(inner) => inner.fmt(f),
Error::DbSecurityGroupNotFoundFault(inner) => inner.fmt(f),
Error::DbSnapshotAlreadyExistsFault(inner) => inner.fmt(f),
Error::DbSnapshotNotFoundFault(inner) => inner.fmt(f),
Error::DbSubnetGroupAlreadyExistsFault(inner) => inner.fmt(f),
Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => inner.fmt(f),
Error::DbSubnetGroupNotFoundFault(inner) => inner.fmt(f),
Error::DbSubnetGroupQuotaExceededFault(inner) => inner.fmt(f),
Error::DbSubnetQuotaExceededFault(inner) => inner.fmt(f),
Error::DbUpgradeDependencyFailureFault(inner) => inner.fmt(f),
Error::EventSubscriptionQuotaExceededFault(inner) => inner.fmt(f),
Error::GlobalClusterAlreadyExistsFault(inner) => inner.fmt(f),
Error::GlobalClusterNotFoundFault(inner) => inner.fmt(f),
Error::GlobalClusterQuotaExceededFault(inner) => inner.fmt(f),
Error::InstanceQuotaExceededFault(inner) => inner.fmt(f),
Error::InsufficientDbClusterCapacityFault(inner) => inner.fmt(f),
Error::InsufficientDbInstanceCapacityFault(inner) => inner.fmt(f),
Error::InsufficientStorageClusterCapacityFault(inner) => inner.fmt(f),
Error::InvalidDbClusterSnapshotStateFault(inner) => inner.fmt(f),
Error::InvalidDbClusterStateFault(inner) => inner.fmt(f),
Error::InvalidDbInstanceStateFault(inner) => inner.fmt(f),
Error::InvalidDbParameterGroupStateFault(inner) => inner.fmt(f),
Error::InvalidDbSecurityGroupStateFault(inner) => inner.fmt(f),
Error::InvalidDbSnapshotStateFault(inner) => inner.fmt(f),
Error::InvalidDbSubnetGroupStateFault(inner) => inner.fmt(f),
Error::InvalidDbSubnetStateFault(inner) => inner.fmt(f),
Error::InvalidEventSubscriptionStateFault(inner) => inner.fmt(f),
Error::InvalidGlobalClusterStateFault(inner) => inner.fmt(f),
Error::InvalidRestoreFault(inner) => inner.fmt(f),
Error::InvalidSubnet(inner) => inner.fmt(f),
Error::InvalidVpcNetworkStateFault(inner) => inner.fmt(f),
Error::KmsKeyNotAccessibleFault(inner) => inner.fmt(f),
Error::ResourceNotFoundFault(inner) => inner.fmt(f),
Error::SnsInvalidTopicFault(inner) => inner.fmt(f),
Error::SnsNoAuthorizationFault(inner) => inner.fmt(f),
Error::SnsTopicArnNotFoundFault(inner) => inner.fmt(f),
Error::SharedSnapshotQuotaExceededFault(inner) => inner.fmt(f),
Error::SnapshotQuotaExceededFault(inner) => inner.fmt(f),
Error::SourceNotFoundFault(inner) => inner.fmt(f),
Error::StorageQuotaExceededFault(inner) => inner.fmt(f),
Error::StorageTypeNotSupportedFault(inner) => inner.fmt(f),
Error::SubnetAlreadyInUse(inner) => inner.fmt(f),
Error::SubscriptionAlreadyExistFault(inner) => inner.fmt(f),
Error::SubscriptionCategoryNotFoundFault(inner) => inner.fmt(f),
Error::SubscriptionNotFoundFault(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError> for Error {
fn from(err: crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError) -> Self {
match err {
crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError::SourceNotFoundFault(inner) => {
Error::SourceNotFoundFault(inner)
}
crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError::SubscriptionNotFoundFault(inner) => {
Error::SubscriptionNotFoundFault(inner)
}
crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags_to_resource::AddTagsToResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags_to_resource::AddTagsToResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::add_tags_to_resource::AddTagsToResourceError> for Error {
fn from(err: crate::operation::add_tags_to_resource::AddTagsToResourceError) -> Self {
match err {
crate::operation::add_tags_to_resource::AddTagsToResourceError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::add_tags_to_resource::AddTagsToResourceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
crate::operation::add_tags_to_resource::AddTagsToResourceError::DbSnapshotNotFoundFault(inner) => Error::DbSnapshotNotFoundFault(inner),
crate::operation::add_tags_to_resource::AddTagsToResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError> for Error {
fn from(err: crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError) -> Self {
match err {
crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::InvalidDbInstanceStateFault(inner) => {
Error::InvalidDbInstanceStateFault(inner)
}
crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::ResourceNotFoundFault(inner) => {
Error::ResourceNotFoundFault(inner)
}
crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError> for Error {
fn from(err: crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError) -> Self {
match err {
crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::DbParameterGroupAlreadyExistsFault(inner) => {
Error::DbParameterGroupAlreadyExistsFault(inner)
}
crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::DbParameterGroupQuotaExceededFault(inner) => {
Error::DbParameterGroupQuotaExceededFault(inner)
}
crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError> for Error {
fn from(err: crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError) -> Self {
match err {
crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::DbClusterSnapshotAlreadyExistsFault(inner) => {
Error::DbClusterSnapshotAlreadyExistsFault(inner)
}
crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::DbClusterSnapshotNotFoundFault(inner) => {
Error::DbClusterSnapshotNotFoundFault(inner)
}
crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
Error::InvalidDbClusterSnapshotStateFault(inner)
}
crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::KmsKeyNotAccessibleFault(inner) => {
Error::KmsKeyNotAccessibleFault(inner)
}
crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::SnapshotQuotaExceededFault(inner) => {
Error::SnapshotQuotaExceededFault(inner)
}
crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster::CreateDBClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster::CreateDBClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_db_cluster::CreateDBClusterError> for Error {
fn from(err: crate::operation::create_db_cluster::CreateDBClusterError) -> Self {
match err {
crate::operation::create_db_cluster::CreateDBClusterError::DbClusterAlreadyExistsFault(inner) => {
Error::DbClusterAlreadyExistsFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::create_db_cluster::CreateDBClusterError::DbClusterParameterGroupNotFoundFault(inner) => {
Error::DbClusterParameterGroupNotFoundFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::DbClusterQuotaExceededFault(inner) => {
Error::DbClusterQuotaExceededFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
crate::operation::create_db_cluster::CreateDBClusterError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner),
crate::operation::create_db_cluster::CreateDBClusterError::GlobalClusterNotFoundFault(inner) => Error::GlobalClusterNotFoundFault(inner),
crate::operation::create_db_cluster::CreateDBClusterError::InsufficientStorageClusterCapacityFault(inner) => {
Error::InsufficientStorageClusterCapacityFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
crate::operation::create_db_cluster::CreateDBClusterError::InvalidDbInstanceStateFault(inner) => {
Error::InvalidDbInstanceStateFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::InvalidDbSubnetGroupStateFault(inner) => {
Error::InvalidDbSubnetGroupStateFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::InvalidGlobalClusterStateFault(inner) => {
Error::InvalidGlobalClusterStateFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
crate::operation::create_db_cluster::CreateDBClusterError::InvalidVpcNetworkStateFault(inner) => {
Error::InvalidVpcNetworkStateFault(inner)
}
crate::operation::create_db_cluster::CreateDBClusterError::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner),
crate::operation::create_db_cluster::CreateDBClusterError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
crate::operation::create_db_cluster::CreateDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError> for Error {
fn from(err: crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError) -> Self {
match err {
crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError::DbParameterGroupAlreadyExistsFault(inner) => {
Error::DbParameterGroupAlreadyExistsFault(inner)
}
crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError::DbParameterGroupQuotaExceededFault(inner) => {
Error::DbParameterGroupQuotaExceededFault(inner)
}
crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError> for Error {
fn from(err: crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError) -> Self {
match err {
crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::DbClusterNotFoundFault(inner) => {
Error::DbClusterNotFoundFault(inner)
}
crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::DbClusterSnapshotAlreadyExistsFault(inner) => {
Error::DbClusterSnapshotAlreadyExistsFault(inner)
}
crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
Error::InvalidDbClusterSnapshotStateFault(inner)
}
crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::SnapshotQuotaExceededFault(inner) => {
Error::SnapshotQuotaExceededFault(inner)
}
crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_instance::CreateDBInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_instance::CreateDBInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_db_instance::CreateDBInstanceError> for Error {
fn from(err: crate::operation::create_db_instance::CreateDBInstanceError) -> Self {
match err {
crate::operation::create_db_instance::CreateDBInstanceError::AuthorizationNotFoundFault(inner) => {
Error::AuthorizationNotFoundFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::create_db_instance::CreateDBInstanceError::DbInstanceAlreadyExistsFault(inner) => {
Error::DbInstanceAlreadyExistsFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::DbSecurityGroupNotFoundFault(inner) => {
Error::DbSecurityGroupNotFoundFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::DbSubnetGroupNotFoundFault(inner) => {
Error::DbSubnetGroupNotFoundFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::InstanceQuotaExceededFault(inner) => {
Error::InstanceQuotaExceededFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::InsufficientDbInstanceCapacityFault(inner) => {
Error::InsufficientDbInstanceCapacityFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
crate::operation::create_db_instance::CreateDBInstanceError::InvalidVpcNetworkStateFault(inner) => {
Error::InvalidVpcNetworkStateFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner),
crate::operation::create_db_instance::CreateDBInstanceError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
crate::operation::create_db_instance::CreateDBInstanceError::StorageTypeNotSupportedFault(inner) => {
Error::StorageTypeNotSupportedFault(inner)
}
crate::operation::create_db_instance::CreateDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_subnet_group::CreateDBSubnetGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_subnet_group::CreateDBSubnetGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_db_subnet_group::CreateDBSubnetGroupError> for Error {
fn from(err: crate::operation::create_db_subnet_group::CreateDBSubnetGroupError) -> Self {
match err {
crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetGroupAlreadyExistsFault(inner) => {
Error::DbSubnetGroupAlreadyExistsFault(inner)
}
crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
}
crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetGroupQuotaExceededFault(inner) => {
Error::DbSubnetGroupQuotaExceededFault(inner)
}
crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetQuotaExceededFault(inner) => {
Error::DbSubnetQuotaExceededFault(inner)
}
crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_subscription::CreateEventSubscriptionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_subscription::CreateEventSubscriptionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_event_subscription::CreateEventSubscriptionError> for Error {
fn from(err: crate::operation::create_event_subscription::CreateEventSubscriptionError) -> Self {
match err {
crate::operation::create_event_subscription::CreateEventSubscriptionError::EventSubscriptionQuotaExceededFault(inner) => {
Error::EventSubscriptionQuotaExceededFault(inner)
}
crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsInvalidTopicFault(inner) => {
Error::SnsInvalidTopicFault(inner)
}
crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsNoAuthorizationFault(inner) => {
Error::SnsNoAuthorizationFault(inner)
}
crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsTopicArnNotFoundFault(inner) => {
Error::SnsTopicArnNotFoundFault(inner)
}
crate::operation::create_event_subscription::CreateEventSubscriptionError::SourceNotFoundFault(inner) => {
Error::SourceNotFoundFault(inner)
}
crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionAlreadyExistFault(inner) => {
Error::SubscriptionAlreadyExistFault(inner)
}
crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionCategoryNotFoundFault(inner) => {
Error::SubscriptionCategoryNotFoundFault(inner)
}
crate::operation::create_event_subscription::CreateEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_cluster::CreateGlobalClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_cluster::CreateGlobalClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_global_cluster::CreateGlobalClusterError> for Error {
fn from(err: crate::operation::create_global_cluster::CreateGlobalClusterError) -> Self {
match err {
crate::operation::create_global_cluster::CreateGlobalClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::create_global_cluster::CreateGlobalClusterError::GlobalClusterAlreadyExistsFault(inner) => {
Error::GlobalClusterAlreadyExistsFault(inner)
}
crate::operation::create_global_cluster::CreateGlobalClusterError::GlobalClusterQuotaExceededFault(inner) => {
Error::GlobalClusterQuotaExceededFault(inner)
}
crate::operation::create_global_cluster::CreateGlobalClusterError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::create_global_cluster::CreateGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster::DeleteDBClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster::DeleteDBClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_db_cluster::DeleteDBClusterError> for Error {
fn from(err: crate::operation::delete_db_cluster::DeleteDBClusterError) -> Self {
match err {
crate::operation::delete_db_cluster::DeleteDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::delete_db_cluster::DeleteDBClusterError::DbClusterSnapshotAlreadyExistsFault(inner) => {
Error::DbClusterSnapshotAlreadyExistsFault(inner)
}
crate::operation::delete_db_cluster::DeleteDBClusterError::InvalidDbClusterSnapshotStateFault(inner) => {
Error::InvalidDbClusterSnapshotStateFault(inner)
}
crate::operation::delete_db_cluster::DeleteDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
crate::operation::delete_db_cluster::DeleteDBClusterError::SnapshotQuotaExceededFault(inner) => Error::SnapshotQuotaExceededFault(inner),
crate::operation::delete_db_cluster::DeleteDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError> for Error {
fn from(err: crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError) -> Self {
match err {
crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError::InvalidDbParameterGroupStateFault(inner) => {
Error::InvalidDbParameterGroupStateFault(inner)
}
crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError> for Error {
fn from(err: crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError) -> Self {
match err {
crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError::DbClusterSnapshotNotFoundFault(inner) => {
Error::DbClusterSnapshotNotFoundFault(inner)
}
crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
Error::InvalidDbClusterSnapshotStateFault(inner)
}
crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_instance::DeleteDBInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_instance::DeleteDBInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_db_instance::DeleteDBInstanceError> for Error {
fn from(err: crate::operation::delete_db_instance::DeleteDBInstanceError) -> Self {
match err {
crate::operation::delete_db_instance::DeleteDBInstanceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
crate::operation::delete_db_instance::DeleteDBInstanceError::DbSnapshotAlreadyExistsFault(inner) => {
Error::DbSnapshotAlreadyExistsFault(inner)
}
crate::operation::delete_db_instance::DeleteDBInstanceError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::delete_db_instance::DeleteDBInstanceError::InvalidDbInstanceStateFault(inner) => {
Error::InvalidDbInstanceStateFault(inner)
}
crate::operation::delete_db_instance::DeleteDBInstanceError::SnapshotQuotaExceededFault(inner) => {
Error::SnapshotQuotaExceededFault(inner)
}
crate::operation::delete_db_instance::DeleteDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError> for Error {
fn from(err: crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError) -> Self {
match err {
crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::DbSubnetGroupNotFoundFault(inner) => {
Error::DbSubnetGroupNotFoundFault(inner)
}
crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::InvalidDbSubnetGroupStateFault(inner) => {
Error::InvalidDbSubnetGroupStateFault(inner)
}
crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::InvalidDbSubnetStateFault(inner) => {
Error::InvalidDbSubnetStateFault(inner)
}
crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_subscription::DeleteEventSubscriptionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_subscription::DeleteEventSubscriptionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_event_subscription::DeleteEventSubscriptionError> for Error {
fn from(err: crate::operation::delete_event_subscription::DeleteEventSubscriptionError) -> Self {
match err {
crate::operation::delete_event_subscription::DeleteEventSubscriptionError::InvalidEventSubscriptionStateFault(inner) => {
Error::InvalidEventSubscriptionStateFault(inner)
}
crate::operation::delete_event_subscription::DeleteEventSubscriptionError::SubscriptionNotFoundFault(inner) => {
Error::SubscriptionNotFoundFault(inner)
}
crate::operation::delete_event_subscription::DeleteEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_cluster::DeleteGlobalClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_cluster::DeleteGlobalClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_global_cluster::DeleteGlobalClusterError> for Error {
fn from(err: crate::operation::delete_global_cluster::DeleteGlobalClusterError) -> Self {
match err {
crate::operation::delete_global_cluster::DeleteGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
Error::GlobalClusterNotFoundFault(inner)
}
crate::operation::delete_global_cluster::DeleteGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
Error::InvalidGlobalClusterStateFault(inner)
}
crate::operation::delete_global_cluster::DeleteGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificates::DescribeCertificatesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificates::DescribeCertificatesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_certificates::DescribeCertificatesError> for Error {
fn from(err: crate::operation::describe_certificates::DescribeCertificatesError) -> Self {
match err {
crate::operation::describe_certificates::DescribeCertificatesError::CertificateNotFoundFault(inner) => {
Error::CertificateNotFoundFault(inner)
}
crate::operation::describe_certificates::DescribeCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError> for Error {
fn from(err: crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError) -> Self {
match err {
crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError> for Error {
fn from(err: crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError) -> Self {
match err {
crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_clusters::DescribeDBClustersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_clusters::DescribeDBClustersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_clusters::DescribeDBClustersError> for Error {
fn from(err: crate::operation::describe_db_clusters::DescribeDBClustersError) -> Self {
match err {
crate::operation::describe_db_clusters::DescribeDBClustersError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::describe_db_clusters::DescribeDBClustersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError> for Error {
fn from(err: crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError) -> Self {
match err {
crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError::DbClusterSnapshotNotFoundFault(
inner,
) => Error::DbClusterSnapshotNotFoundFault(inner),
crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError> for Error {
fn from(err: crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError) -> Self {
match err {
crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError::DbClusterSnapshotNotFoundFault(inner) => {
Error::DbClusterSnapshotNotFoundFault(inner)
}
crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError> for Error {
fn from(err: crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError) -> Self {
match err {
crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_instances::DescribeDBInstancesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_instances::DescribeDBInstancesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_instances::DescribeDBInstancesError> for Error {
fn from(err: crate::operation::describe_db_instances::DescribeDBInstancesError) -> Self {
match err {
crate::operation::describe_db_instances::DescribeDBInstancesError::DbInstanceNotFoundFault(inner) => {
Error::DbInstanceNotFoundFault(inner)
}
crate::operation::describe_db_instances::DescribeDBInstancesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError> for Error {
fn from(err: crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError) -> Self {
match err {
crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError::DbSubnetGroupNotFoundFault(inner) => {
Error::DbSubnetGroupNotFoundFault(inner)
}
crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError> for Error {
fn from(err: crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError) -> Self {
match err {
crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_categories::DescribeEventCategoriesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_categories::DescribeEventCategoriesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_event_categories::DescribeEventCategoriesError> for Error {
fn from(err: crate::operation::describe_event_categories::DescribeEventCategoriesError) -> Self {
match err {
crate::operation::describe_event_categories::DescribeEventCategoriesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_events::DescribeEventsError> for Error {
fn from(err: crate::operation::describe_events::DescribeEventsError) -> Self {
match err {
crate::operation::describe_events::DescribeEventsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError> for Error {
fn from(err: crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError) -> Self {
match err {
crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError::SubscriptionNotFoundFault(inner) => {
Error::SubscriptionNotFoundFault(inner)
}
crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_clusters::DescribeGlobalClustersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_clusters::DescribeGlobalClustersError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_global_clusters::DescribeGlobalClustersError> for Error {
fn from(err: crate::operation::describe_global_clusters::DescribeGlobalClustersError) -> Self {
match err {
crate::operation::describe_global_clusters::DescribeGlobalClustersError::GlobalClusterNotFoundFault(inner) => {
Error::GlobalClusterNotFoundFault(inner)
}
crate::operation::describe_global_clusters::DescribeGlobalClustersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError> for Error {
fn from(err: crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError) -> Self {
match err {
crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError> for Error {
fn from(err: crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError) -> Self {
match err {
crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError::ResourceNotFoundFault(inner) => {
Error::ResourceNotFoundFault(inner)
}
crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_db_cluster::FailoverDBClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_db_cluster::FailoverDBClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::failover_db_cluster::FailoverDBClusterError> for Error {
fn from(err: crate::operation::failover_db_cluster::FailoverDBClusterError) -> Self {
match err {
crate::operation::failover_db_cluster::FailoverDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::failover_db_cluster::FailoverDBClusterError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::failover_db_cluster::FailoverDBClusterError::InvalidDbInstanceStateFault(inner) => {
Error::InvalidDbInstanceStateFault(inner)
}
crate::operation::failover_db_cluster::FailoverDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::DbInstanceNotFoundFault(inner) => {
Error::DbInstanceNotFoundFault(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::DbSnapshotNotFoundFault(inner) => {
Error::DbSnapshotNotFoundFault(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_cluster::ModifyDBClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_cluster::ModifyDBClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_db_cluster::ModifyDBClusterError> for Error {
fn from(err: crate::operation::modify_db_cluster::ModifyDBClusterError) -> Self {
match err {
crate::operation::modify_db_cluster::ModifyDBClusterError::DbClusterAlreadyExistsFault(inner) => {
Error::DbClusterAlreadyExistsFault(inner)
}
crate::operation::modify_db_cluster::ModifyDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::modify_db_cluster::ModifyDBClusterError::DbClusterParameterGroupNotFoundFault(inner) => {
Error::DbClusterParameterGroupNotFoundFault(inner)
}
crate::operation::modify_db_cluster::ModifyDBClusterError::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner),
crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbInstanceStateFault(inner) => {
Error::InvalidDbInstanceStateFault(inner)
}
crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbSecurityGroupStateFault(inner) => {
Error::InvalidDbSecurityGroupStateFault(inner)
}
crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbSubnetGroupStateFault(inner) => {
Error::InvalidDbSubnetGroupStateFault(inner)
}
crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidVpcNetworkStateFault(inner) => {
Error::InvalidVpcNetworkStateFault(inner)
}
crate::operation::modify_db_cluster::ModifyDBClusterError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
crate::operation::modify_db_cluster::ModifyDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError> for Error {
fn from(err: crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError) -> Self {
match err {
crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError::InvalidDbParameterGroupStateFault(inner) => {
Error::InvalidDbParameterGroupStateFault(inner)
}
crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError> for Error {
fn from(err: crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError) -> Self {
match err {
crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::DbClusterSnapshotNotFoundFault(inner) => {
Error::DbClusterSnapshotNotFoundFault(inner)
}
crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::InvalidDbClusterSnapshotStateFault(
inner,
) => Error::InvalidDbClusterSnapshotStateFault(inner),
crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::SharedSnapshotQuotaExceededFault(
inner,
) => Error::SharedSnapshotQuotaExceededFault(inner),
crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_instance::ModifyDBInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_instance::ModifyDBInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_db_instance::ModifyDBInstanceError> for Error {
fn from(err: crate::operation::modify_db_instance::ModifyDBInstanceError) -> Self {
match err {
crate::operation::modify_db_instance::ModifyDBInstanceError::AuthorizationNotFoundFault(inner) => {
Error::AuthorizationNotFoundFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::CertificateNotFoundFault(inner) => Error::CertificateNotFoundFault(inner),
crate::operation::modify_db_instance::ModifyDBInstanceError::DbInstanceAlreadyExistsFault(inner) => {
Error::DbInstanceAlreadyExistsFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
crate::operation::modify_db_instance::ModifyDBInstanceError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::DbSecurityGroupNotFoundFault(inner) => {
Error::DbSecurityGroupNotFoundFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::DbUpgradeDependencyFailureFault(inner) => {
Error::DbUpgradeDependencyFailureFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::InsufficientDbInstanceCapacityFault(inner) => {
Error::InsufficientDbInstanceCapacityFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::InvalidDbInstanceStateFault(inner) => {
Error::InvalidDbInstanceStateFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::InvalidDbSecurityGroupStateFault(inner) => {
Error::InvalidDbSecurityGroupStateFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::InvalidVpcNetworkStateFault(inner) => {
Error::InvalidVpcNetworkStateFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
crate::operation::modify_db_instance::ModifyDBInstanceError::StorageTypeNotSupportedFault(inner) => {
Error::StorageTypeNotSupportedFault(inner)
}
crate::operation::modify_db_instance::ModifyDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError> for Error {
fn from(err: crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError) -> Self {
match err {
crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
}
crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::DbSubnetGroupNotFoundFault(inner) => {
Error::DbSubnetGroupNotFoundFault(inner)
}
crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::DbSubnetQuotaExceededFault(inner) => {
Error::DbSubnetQuotaExceededFault(inner)
}
crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::SubnetAlreadyInUse(inner) => Error::SubnetAlreadyInUse(inner),
crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_event_subscription::ModifyEventSubscriptionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_event_subscription::ModifyEventSubscriptionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_event_subscription::ModifyEventSubscriptionError> for Error {
fn from(err: crate::operation::modify_event_subscription::ModifyEventSubscriptionError) -> Self {
match err {
crate::operation::modify_event_subscription::ModifyEventSubscriptionError::EventSubscriptionQuotaExceededFault(inner) => {
Error::EventSubscriptionQuotaExceededFault(inner)
}
crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsInvalidTopicFault(inner) => {
Error::SnsInvalidTopicFault(inner)
}
crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsNoAuthorizationFault(inner) => {
Error::SnsNoAuthorizationFault(inner)
}
crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsTopicArnNotFoundFault(inner) => {
Error::SnsTopicArnNotFoundFault(inner)
}
crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionCategoryNotFoundFault(inner) => {
Error::SubscriptionCategoryNotFoundFault(inner)
}
crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionNotFoundFault(inner) => {
Error::SubscriptionNotFoundFault(inner)
}
crate::operation::modify_event_subscription::ModifyEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_global_cluster::ModifyGlobalClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_global_cluster::ModifyGlobalClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_global_cluster::ModifyGlobalClusterError> for Error {
fn from(err: crate::operation::modify_global_cluster::ModifyGlobalClusterError) -> Self {
match err {
crate::operation::modify_global_cluster::ModifyGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
Error::GlobalClusterNotFoundFault(inner)
}
crate::operation::modify_global_cluster::ModifyGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
Error::InvalidGlobalClusterStateFault(inner)
}
crate::operation::modify_global_cluster::ModifyGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_db_instance::RebootDBInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_db_instance::RebootDBInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::reboot_db_instance::RebootDBInstanceError> for Error {
fn from(err: crate::operation::reboot_db_instance::RebootDBInstanceError) -> Self {
match err {
crate::operation::reboot_db_instance::RebootDBInstanceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
crate::operation::reboot_db_instance::RebootDBInstanceError::InvalidDbInstanceStateFault(inner) => {
Error::InvalidDbInstanceStateFault(inner)
}
crate::operation::reboot_db_instance::RebootDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError> for Error {
fn from(err: crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError) -> Self {
match err {
crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::DbClusterNotFoundFault(inner) => {
Error::DbClusterNotFoundFault(inner)
}
crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
Error::GlobalClusterNotFoundFault(inner)
}
crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
Error::InvalidGlobalClusterStateFault(inner)
}
crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError> for Error {
fn from(err: crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError) -> Self {
match err {
crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError::SourceNotFoundFault(inner) => {
Error::SourceNotFoundFault(inner)
}
crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError::SubscriptionNotFoundFault(
inner,
) => Error::SubscriptionNotFoundFault(inner),
crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError> for Error {
fn from(err: crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError) -> Self {
match err {
crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::DbClusterNotFoundFault(inner) => {
Error::DbClusterNotFoundFault(inner)
}
crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::DbInstanceNotFoundFault(inner) => {
Error::DbInstanceNotFoundFault(inner)
}
crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::DbSnapshotNotFoundFault(inner) => {
Error::DbSnapshotNotFoundFault(inner)
}
crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError> for Error {
fn from(err: crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError) -> Self {
match err {
crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
Error::DbParameterGroupNotFoundFault(inner)
}
crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError::InvalidDbParameterGroupStateFault(inner) => {
Error::InvalidDbParameterGroupStateFault(inner)
}
crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError> for Error {
fn from(err: crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError) -> Self {
match err {
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbClusterAlreadyExistsFault(inner) => {
Error::DbClusterAlreadyExistsFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbClusterQuotaExceededFault(inner) => {
Error::DbClusterQuotaExceededFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbClusterSnapshotNotFoundFault(inner) => {
Error::DbClusterSnapshotNotFoundFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbSnapshotNotFoundFault(inner) => {
Error::DbSnapshotNotFoundFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbSubnetGroupNotFoundFault(inner) => {
Error::DbSubnetGroupNotFoundFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InsufficientDbClusterCapacityFault(inner) => {
Error::InsufficientDbClusterCapacityFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InsufficientStorageClusterCapacityFault(inner) => {
Error::InsufficientStorageClusterCapacityFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
Error::InvalidDbClusterSnapshotStateFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidDbSnapshotStateFault(inner) => {
Error::InvalidDbSnapshotStateFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidRestoreFault(inner) => {
Error::InvalidRestoreFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidSubnet(inner) => {
Error::InvalidSubnet(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidVpcNetworkStateFault(inner) => {
Error::InvalidVpcNetworkStateFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::KmsKeyNotAccessibleFault(inner) => {
Error::KmsKeyNotAccessibleFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::StorageQuotaExceededFault(inner) => {
Error::StorageQuotaExceededFault(inner)
}
crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError> for Error {
fn from(err: crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError) -> Self {
match err {
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterAlreadyExistsFault(inner) => {
Error::DbClusterAlreadyExistsFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterNotFoundFault(inner) => {
Error::DbClusterNotFoundFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterQuotaExceededFault(inner) => {
Error::DbClusterQuotaExceededFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterSnapshotNotFoundFault(inner) => {
Error::DbClusterSnapshotNotFoundFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbSubnetGroupNotFoundFault(inner) => {
Error::DbSubnetGroupNotFoundFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InsufficientDbClusterCapacityFault(inner) => {
Error::InsufficientDbClusterCapacityFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InsufficientStorageClusterCapacityFault(
inner,
) => Error::InsufficientStorageClusterCapacityFault(inner),
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidDbClusterSnapshotStateFault(inner) => {
Error::InvalidDbClusterSnapshotStateFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidDbClusterStateFault(inner) => {
Error::InvalidDbClusterStateFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidDbSnapshotStateFault(inner) => {
Error::InvalidDbSnapshotStateFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidRestoreFault(inner) => {
Error::InvalidRestoreFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidSubnet(inner) => {
Error::InvalidSubnet(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidVpcNetworkStateFault(inner) => {
Error::InvalidVpcNetworkStateFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::KmsKeyNotAccessibleFault(inner) => {
Error::KmsKeyNotAccessibleFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::StorageQuotaExceededFault(inner) => {
Error::StorageQuotaExceededFault(inner)
}
crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_db_cluster::StartDBClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_db_cluster::StartDBClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::start_db_cluster::StartDBClusterError> for Error {
fn from(err: crate::operation::start_db_cluster::StartDBClusterError) -> Self {
match err {
crate::operation::start_db_cluster::StartDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::start_db_cluster::StartDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
crate::operation::start_db_cluster::StartDBClusterError::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner),
crate::operation::start_db_cluster::StartDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_db_cluster::StopDBClusterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_db_cluster::StopDBClusterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::stop_db_cluster::StopDBClusterError> for Error {
fn from(err: crate::operation::stop_db_cluster::StopDBClusterError) -> Self {
match err {
crate::operation::stop_db_cluster::StopDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
crate::operation::stop_db_cluster::StopDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
crate::operation::stop_db_cluster::StopDBClusterError::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner),
crate::operation::stop_db_cluster::StopDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AuthorizationNotFoundFault(inner) => inner.source(),
Error::CertificateNotFoundFault(inner) => inner.source(),
Error::DbClusterAlreadyExistsFault(inner) => inner.source(),
Error::DbClusterNotFoundFault(inner) => inner.source(),
Error::DbClusterParameterGroupNotFoundFault(inner) => inner.source(),
Error::DbClusterQuotaExceededFault(inner) => inner.source(),
Error::DbClusterSnapshotAlreadyExistsFault(inner) => inner.source(),
Error::DbClusterSnapshotNotFoundFault(inner) => inner.source(),
Error::DbInstanceAlreadyExistsFault(inner) => inner.source(),
Error::DbInstanceNotFoundFault(inner) => inner.source(),
Error::DbParameterGroupAlreadyExistsFault(inner) => inner.source(),
Error::DbParameterGroupNotFoundFault(inner) => inner.source(),
Error::DbParameterGroupQuotaExceededFault(inner) => inner.source(),
Error::DbSecurityGroupNotFoundFault(inner) => inner.source(),
Error::DbSnapshotAlreadyExistsFault(inner) => inner.source(),
Error::DbSnapshotNotFoundFault(inner) => inner.source(),
Error::DbSubnetGroupAlreadyExistsFault(inner) => inner.source(),
Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => inner.source(),
Error::DbSubnetGroupNotFoundFault(inner) => inner.source(),
Error::DbSubnetGroupQuotaExceededFault(inner) => inner.source(),
Error::DbSubnetQuotaExceededFault(inner) => inner.source(),
Error::DbUpgradeDependencyFailureFault(inner) => inner.source(),
Error::EventSubscriptionQuotaExceededFault(inner) => inner.source(),
Error::GlobalClusterAlreadyExistsFault(inner) => inner.source(),
Error::GlobalClusterNotFoundFault(inner) => inner.source(),
Error::GlobalClusterQuotaExceededFault(inner) => inner.source(),
Error::InstanceQuotaExceededFault(inner) => inner.source(),
Error::InsufficientDbClusterCapacityFault(inner) => inner.source(),
Error::InsufficientDbInstanceCapacityFault(inner) => inner.source(),
Error::InsufficientStorageClusterCapacityFault(inner) => inner.source(),
Error::InvalidDbClusterSnapshotStateFault(inner) => inner.source(),
Error::InvalidDbClusterStateFault(inner) => inner.source(),
Error::InvalidDbInstanceStateFault(inner) => inner.source(),
Error::InvalidDbParameterGroupStateFault(inner) => inner.source(),
Error::InvalidDbSecurityGroupStateFault(inner) => inner.source(),
Error::InvalidDbSnapshotStateFault(inner) => inner.source(),
Error::InvalidDbSubnetGroupStateFault(inner) => inner.source(),
Error::InvalidDbSubnetStateFault(inner) => inner.source(),
Error::InvalidEventSubscriptionStateFault(inner) => inner.source(),
Error::InvalidGlobalClusterStateFault(inner) => inner.source(),
Error::InvalidRestoreFault(inner) => inner.source(),
Error::InvalidSubnet(inner) => inner.source(),
Error::InvalidVpcNetworkStateFault(inner) => inner.source(),
Error::KmsKeyNotAccessibleFault(inner) => inner.source(),
Error::ResourceNotFoundFault(inner) => inner.source(),
Error::SnsInvalidTopicFault(inner) => inner.source(),
Error::SnsNoAuthorizationFault(inner) => inner.source(),
Error::SnsTopicArnNotFoundFault(inner) => inner.source(),
Error::SharedSnapshotQuotaExceededFault(inner) => inner.source(),
Error::SnapshotQuotaExceededFault(inner) => inner.source(),
Error::SourceNotFoundFault(inner) => inner.source(),
Error::StorageQuotaExceededFault(inner) => inner.source(),
Error::StorageTypeNotSupportedFault(inner) => inner.source(),
Error::SubnetAlreadyInUse(inner) => inner.source(),
Error::SubscriptionAlreadyExistFault(inner) => inner.source(),
Error::SubscriptionCategoryNotFoundFault(inner) => inner.source(),
Error::SubscriptionNotFoundFault(inner) => inner.source(),
Error::Unhandled(inner) => inner.source(),
}
}
}
impl ::aws_http::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AuthorizationNotFoundFault(e) => e.request_id(),
Self::CertificateNotFoundFault(e) => e.request_id(),
Self::DbClusterAlreadyExistsFault(e) => e.request_id(),
Self::DbClusterNotFoundFault(e) => e.request_id(),
Self::DbClusterParameterGroupNotFoundFault(e) => e.request_id(),
Self::DbClusterQuotaExceededFault(e) => e.request_id(),
Self::DbClusterSnapshotAlreadyExistsFault(e) => e.request_id(),
Self::DbClusterSnapshotNotFoundFault(e) => e.request_id(),
Self::DbInstanceAlreadyExistsFault(e) => e.request_id(),
Self::DbInstanceNotFoundFault(e) => e.request_id(),
Self::DbParameterGroupAlreadyExistsFault(e) => e.request_id(),
Self::DbParameterGroupNotFoundFault(e) => e.request_id(),
Self::DbParameterGroupQuotaExceededFault(e) => e.request_id(),
Self::DbSecurityGroupNotFoundFault(e) => e.request_id(),
Self::DbSnapshotAlreadyExistsFault(e) => e.request_id(),
Self::DbSnapshotNotFoundFault(e) => e.request_id(),
Self::DbSubnetGroupAlreadyExistsFault(e) => e.request_id(),
Self::DbSubnetGroupDoesNotCoverEnoughAZs(e) => e.request_id(),
Self::DbSubnetGroupNotFoundFault(e) => e.request_id(),
Self::DbSubnetGroupQuotaExceededFault(e) => e.request_id(),
Self::DbSubnetQuotaExceededFault(e) => e.request_id(),
Self::DbUpgradeDependencyFailureFault(e) => e.request_id(),
Self::EventSubscriptionQuotaExceededFault(e) => e.request_id(),
Self::GlobalClusterAlreadyExistsFault(e) => e.request_id(),
Self::GlobalClusterNotFoundFault(e) => e.request_id(),
Self::GlobalClusterQuotaExceededFault(e) => e.request_id(),
Self::InstanceQuotaExceededFault(e) => e.request_id(),
Self::InsufficientDbClusterCapacityFault(e) => e.request_id(),
Self::InsufficientDbInstanceCapacityFault(e) => e.request_id(),
Self::InsufficientStorageClusterCapacityFault(e) => e.request_id(),
Self::InvalidDbClusterSnapshotStateFault(e) => e.request_id(),
Self::InvalidDbClusterStateFault(e) => e.request_id(),
Self::InvalidDbInstanceStateFault(e) => e.request_id(),
Self::InvalidDbParameterGroupStateFault(e) => e.request_id(),
Self::InvalidDbSecurityGroupStateFault(e) => e.request_id(),
Self::InvalidDbSnapshotStateFault(e) => e.request_id(),
Self::InvalidDbSubnetGroupStateFault(e) => e.request_id(),
Self::InvalidDbSubnetStateFault(e) => e.request_id(),
Self::InvalidEventSubscriptionStateFault(e) => e.request_id(),
Self::InvalidGlobalClusterStateFault(e) => e.request_id(),
Self::InvalidRestoreFault(e) => e.request_id(),
Self::InvalidSubnet(e) => e.request_id(),
Self::InvalidVpcNetworkStateFault(e) => e.request_id(),
Self::KmsKeyNotAccessibleFault(e) => e.request_id(),
Self::ResourceNotFoundFault(e) => e.request_id(),
Self::SnsInvalidTopicFault(e) => e.request_id(),
Self::SnsNoAuthorizationFault(e) => e.request_id(),
Self::SnsTopicArnNotFoundFault(e) => e.request_id(),
Self::SharedSnapshotQuotaExceededFault(e) => e.request_id(),
Self::SnapshotQuotaExceededFault(e) => e.request_id(),
Self::SourceNotFoundFault(e) => e.request_id(),
Self::StorageQuotaExceededFault(e) => e.request_id(),
Self::StorageTypeNotSupportedFault(e) => e.request_id(),
Self::SubnetAlreadyInUse(e) => e.request_id(),
Self::SubscriptionAlreadyExistFault(e) => e.request_id(),
Self::SubscriptionCategoryNotFoundFault(e) => e.request_id(),
Self::SubscriptionNotFoundFault(e) => e.request_id(),
Self::Unhandled(e) => e.request_id(),
}
}
}