aws_sdk_docdb/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>The specified CIDR IP or Amazon EC2 security group isn't authorized for the specified security group.</p>
7    /// <p>Amazon DocumentDB also might not be authorized to perform necessary actions on your behalf using IAM.</p>
8    AuthorizationNotFoundFault(crate::types::error::AuthorizationNotFoundFault),
9    /// <p><code>CertificateIdentifier</code> doesn't refer to an existing certificate.</p>
10    CertificateNotFoundFault(crate::types::error::CertificateNotFoundFault),
11    /// <p>You already have a cluster with the given identifier.</p>
12    DbClusterAlreadyExistsFault(crate::types::error::DbClusterAlreadyExistsFault),
13    /// <p><code>DBClusterIdentifier</code> doesn't refer to an existing cluster.</p>
14    DbClusterNotFoundFault(crate::types::error::DbClusterNotFoundFault),
15    /// <p><code>DBClusterParameterGroupName</code> doesn't refer to an existing cluster parameter group.</p>
16    DbClusterParameterGroupNotFoundFault(crate::types::error::DbClusterParameterGroupNotFoundFault),
17    /// <p>The cluster can't be created because you have reached the maximum allowed quota of clusters.</p>
18    DbClusterQuotaExceededFault(crate::types::error::DbClusterQuotaExceededFault),
19    /// <p>You already have a cluster snapshot with the given identifier.</p>
20    DbClusterSnapshotAlreadyExistsFault(crate::types::error::DbClusterSnapshotAlreadyExistsFault),
21    /// <p><code>DBClusterSnapshotIdentifier</code> doesn't refer to an existing cluster snapshot.</p>
22    DbClusterSnapshotNotFoundFault(crate::types::error::DbClusterSnapshotNotFoundFault),
23    /// <p>You already have a instance with the given identifier.</p>
24    DbInstanceAlreadyExistsFault(crate::types::error::DbInstanceAlreadyExistsFault),
25    /// <p><code>DBInstanceIdentifier</code> doesn't refer to an existing instance.</p>
26    DbInstanceNotFoundFault(crate::types::error::DbInstanceNotFoundFault),
27    /// <p>A parameter group with the same name already exists.</p>
28    DbParameterGroupAlreadyExistsFault(crate::types::error::DbParameterGroupAlreadyExistsFault),
29    /// <p><code>DBParameterGroupName</code> doesn't refer to an existing parameter group.</p>
30    DbParameterGroupNotFoundFault(crate::types::error::DbParameterGroupNotFoundFault),
31    /// <p>This request would cause you to exceed the allowed number of parameter groups.</p>
32    DbParameterGroupQuotaExceededFault(crate::types::error::DbParameterGroupQuotaExceededFault),
33    /// <p><code>DBSecurityGroupName</code> doesn't refer to an existing security group.</p>
34    DbSecurityGroupNotFoundFault(crate::types::error::DbSecurityGroupNotFoundFault),
35    /// <p><code>DBSnapshotIdentifier</code> is already being used by an existing snapshot.</p>
36    DbSnapshotAlreadyExistsFault(crate::types::error::DbSnapshotAlreadyExistsFault),
37    /// <p><code>DBSnapshotIdentifier</code> doesn't refer to an existing snapshot.</p>
38    DbSnapshotNotFoundFault(crate::types::error::DbSnapshotNotFoundFault),
39    /// <p><code>DBSubnetGroupName</code> is already being used by an existing subnet group.</p>
40    DbSubnetGroupAlreadyExistsFault(crate::types::error::DbSubnetGroupAlreadyExistsFault),
41    /// <p>Subnets in the subnet group should cover at least two Availability Zones unless there is only one Availability Zone.</p>
42    DbSubnetGroupDoesNotCoverEnoughAZs(crate::types::error::DbSubnetGroupDoesNotCoverEnoughAZs),
43    /// <p><code>DBSubnetGroupName</code> doesn't refer to an existing subnet group.</p>
44    DbSubnetGroupNotFoundFault(crate::types::error::DbSubnetGroupNotFoundFault),
45    /// <p>The request would cause you to exceed the allowed number of subnet groups.</p>
46    DbSubnetGroupQuotaExceededFault(crate::types::error::DbSubnetGroupQuotaExceededFault),
47    /// <p>The request would cause you to exceed the allowed number of subnets in a subnet group.</p>
48    DbSubnetQuotaExceededFault(crate::types::error::DbSubnetQuotaExceededFault),
49    /// <p>The upgrade failed because a resource that the depends on can't be modified.</p>
50    DbUpgradeDependencyFailureFault(crate::types::error::DbUpgradeDependencyFailureFault),
51    /// <p>You have reached the maximum number of event subscriptions.</p>
52    EventSubscriptionQuotaExceededFault(crate::types::error::EventSubscriptionQuotaExceededFault),
53    /// <p>The <code>GlobalClusterIdentifier</code> already exists. Choose a new global cluster identifier (unique name) to create a new global cluster.</p>
54    GlobalClusterAlreadyExistsFault(crate::types::error::GlobalClusterAlreadyExistsFault),
55    /// <p>The <code>GlobalClusterIdentifier</code> doesn't refer to an existing global cluster.</p>
56    GlobalClusterNotFoundFault(crate::types::error::GlobalClusterNotFoundFault),
57    /// <p>The number of global clusters for this account is already at the maximum allowed.</p>
58    GlobalClusterQuotaExceededFault(crate::types::error::GlobalClusterQuotaExceededFault),
59    /// <p>The request would cause you to exceed the allowed number of instances.</p>
60    InstanceQuotaExceededFault(crate::types::error::InstanceQuotaExceededFault),
61    /// <p>The cluster doesn't have enough capacity for the current operation.</p>
62    InsufficientDbClusterCapacityFault(crate::types::error::InsufficientDbClusterCapacityFault),
63    /// <p>The specified instance class isn't available in the specified Availability Zone.</p>
64    InsufficientDbInstanceCapacityFault(crate::types::error::InsufficientDbInstanceCapacityFault),
65    /// <p>There is not enough storage available for the current action. You might be able to resolve this error by updating your subnet group to use different Availability Zones that have more storage available.</p>
66    InsufficientStorageClusterCapacityFault(crate::types::error::InsufficientStorageClusterCapacityFault),
67    /// <p>The provided value isn't a valid cluster snapshot state.</p>
68    InvalidDbClusterSnapshotStateFault(crate::types::error::InvalidDbClusterSnapshotStateFault),
69    /// <p>The cluster isn't in a valid state.</p>
70    InvalidDbClusterStateFault(crate::types::error::InvalidDbClusterStateFault),
71    /// <p>The specified instance isn't in the <i>available</i> state.</p>
72    InvalidDbInstanceStateFault(crate::types::error::InvalidDbInstanceStateFault),
73    /// <p>The parameter group is in use, or it is in a state that is not valid. If you are trying to delete the parameter group, you can't delete it when the parameter group is in this state.</p>
74    InvalidDbParameterGroupStateFault(crate::types::error::InvalidDbParameterGroupStateFault),
75    /// <p>The state of the security group doesn't allow deletion.</p>
76    InvalidDbSecurityGroupStateFault(crate::types::error::InvalidDbSecurityGroupStateFault),
77    /// <p>The state of the snapshot doesn't allow deletion.</p>
78    InvalidDbSnapshotStateFault(crate::types::error::InvalidDbSnapshotStateFault),
79    /// <p>The subnet group can't be deleted because it's in use.</p>
80    InvalidDbSubnetGroupStateFault(crate::types::error::InvalidDbSubnetGroupStateFault),
81    /// <p>The subnet isn't in the <i>available</i> state.</p>
82    InvalidDbSubnetStateFault(crate::types::error::InvalidDbSubnetStateFault),
83    /// <p>Someone else might be modifying a subscription. Wait a few seconds, and try again.</p>
84    InvalidEventSubscriptionStateFault(crate::types::error::InvalidEventSubscriptionStateFault),
85    /// <p>The requested operation can't be performed while the cluster is in this state.</p>
86    InvalidGlobalClusterStateFault(crate::types::error::InvalidGlobalClusterStateFault),
87    /// <p>You cannot restore from a virtual private cloud (VPC) backup to a non-VPC DB instance.</p>
88    InvalidRestoreFault(crate::types::error::InvalidRestoreFault),
89    /// <p>The requested subnet is not valid, or multiple subnets were requested that are not all in a common virtual private cloud (VPC).</p>
90    InvalidSubnet(crate::types::error::InvalidSubnet),
91    /// <p>The subnet group doesn't cover all Availability Zones after it is created because of changes that were made.</p>
92    InvalidVpcNetworkStateFault(crate::types::error::InvalidVpcNetworkStateFault),
93    /// <p>An error occurred when accessing an KMS key.</p>
94    KmsKeyNotAccessibleFault(crate::types::error::KmsKeyNotAccessibleFault),
95    /// <p>The specified resource ID was not found.</p>
96    ResourceNotFoundFault(crate::types::error::ResourceNotFoundFault),
97    /// <p>Amazon SNS has responded that there is a problem with the specified topic.</p>
98    SnsInvalidTopicFault(crate::types::error::SnsInvalidTopicFault),
99    /// <p>You do not have permission to publish to the SNS topic Amazon Resource Name (ARN).</p>
100    SnsNoAuthorizationFault(crate::types::error::SnsNoAuthorizationFault),
101    /// <p>The SNS topic Amazon Resource Name (ARN) does not exist.</p>
102    SnsTopicArnNotFoundFault(crate::types::error::SnsTopicArnNotFoundFault),
103    /// <p>You have exceeded the maximum number of accounts that you can share a manual DB snapshot with.</p>
104    SharedSnapshotQuotaExceededFault(crate::types::error::SharedSnapshotQuotaExceededFault),
105    /// <p>The request would cause you to exceed the allowed number of snapshots.</p>
106    SnapshotQuotaExceededFault(crate::types::error::SnapshotQuotaExceededFault),
107    /// <p>The requested source could not be found.</p>
108    SourceNotFoundFault(crate::types::error::SourceNotFoundFault),
109    /// <p>The request would cause you to exceed the allowed amount of storage available across all instances.</p>
110    StorageQuotaExceededFault(crate::types::error::StorageQuotaExceededFault),
111    /// <p>Storage of the specified <code>StorageType</code> can't be associated with the DB instance.</p>
112    StorageTypeNotSupportedFault(crate::types::error::StorageTypeNotSupportedFault),
113    /// <p>The subnet is already in use in the Availability Zone.</p>
114    SubnetAlreadyInUse(crate::types::error::SubnetAlreadyInUse),
115    /// <p>The provided subscription name already exists.</p>
116    SubscriptionAlreadyExistFault(crate::types::error::SubscriptionAlreadyExistFault),
117    /// <p>The provided category does not exist.</p>
118    SubscriptionCategoryNotFoundFault(crate::types::error::SubscriptionCategoryNotFoundFault),
119    /// <p>The subscription name does not exist.</p>
120    SubscriptionNotFoundFault(crate::types::error::SubscriptionNotFoundFault),
121    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
122    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
123    variable wildcard pattern and check `.code()`:
124     \
125    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
126     \
127    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
128    Unhandled(crate::error::sealed_unhandled::Unhandled),
129}
130impl ::std::fmt::Display for Error {
131    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
132        match self {
133            Error::AuthorizationNotFoundFault(inner) => inner.fmt(f),
134            Error::CertificateNotFoundFault(inner) => inner.fmt(f),
135            Error::DbClusterAlreadyExistsFault(inner) => inner.fmt(f),
136            Error::DbClusterNotFoundFault(inner) => inner.fmt(f),
137            Error::DbClusterParameterGroupNotFoundFault(inner) => inner.fmt(f),
138            Error::DbClusterQuotaExceededFault(inner) => inner.fmt(f),
139            Error::DbClusterSnapshotAlreadyExistsFault(inner) => inner.fmt(f),
140            Error::DbClusterSnapshotNotFoundFault(inner) => inner.fmt(f),
141            Error::DbInstanceAlreadyExistsFault(inner) => inner.fmt(f),
142            Error::DbInstanceNotFoundFault(inner) => inner.fmt(f),
143            Error::DbParameterGroupAlreadyExistsFault(inner) => inner.fmt(f),
144            Error::DbParameterGroupNotFoundFault(inner) => inner.fmt(f),
145            Error::DbParameterGroupQuotaExceededFault(inner) => inner.fmt(f),
146            Error::DbSecurityGroupNotFoundFault(inner) => inner.fmt(f),
147            Error::DbSnapshotAlreadyExistsFault(inner) => inner.fmt(f),
148            Error::DbSnapshotNotFoundFault(inner) => inner.fmt(f),
149            Error::DbSubnetGroupAlreadyExistsFault(inner) => inner.fmt(f),
150            Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => inner.fmt(f),
151            Error::DbSubnetGroupNotFoundFault(inner) => inner.fmt(f),
152            Error::DbSubnetGroupQuotaExceededFault(inner) => inner.fmt(f),
153            Error::DbSubnetQuotaExceededFault(inner) => inner.fmt(f),
154            Error::DbUpgradeDependencyFailureFault(inner) => inner.fmt(f),
155            Error::EventSubscriptionQuotaExceededFault(inner) => inner.fmt(f),
156            Error::GlobalClusterAlreadyExistsFault(inner) => inner.fmt(f),
157            Error::GlobalClusterNotFoundFault(inner) => inner.fmt(f),
158            Error::GlobalClusterQuotaExceededFault(inner) => inner.fmt(f),
159            Error::InstanceQuotaExceededFault(inner) => inner.fmt(f),
160            Error::InsufficientDbClusterCapacityFault(inner) => inner.fmt(f),
161            Error::InsufficientDbInstanceCapacityFault(inner) => inner.fmt(f),
162            Error::InsufficientStorageClusterCapacityFault(inner) => inner.fmt(f),
163            Error::InvalidDbClusterSnapshotStateFault(inner) => inner.fmt(f),
164            Error::InvalidDbClusterStateFault(inner) => inner.fmt(f),
165            Error::InvalidDbInstanceStateFault(inner) => inner.fmt(f),
166            Error::InvalidDbParameterGroupStateFault(inner) => inner.fmt(f),
167            Error::InvalidDbSecurityGroupStateFault(inner) => inner.fmt(f),
168            Error::InvalidDbSnapshotStateFault(inner) => inner.fmt(f),
169            Error::InvalidDbSubnetGroupStateFault(inner) => inner.fmt(f),
170            Error::InvalidDbSubnetStateFault(inner) => inner.fmt(f),
171            Error::InvalidEventSubscriptionStateFault(inner) => inner.fmt(f),
172            Error::InvalidGlobalClusterStateFault(inner) => inner.fmt(f),
173            Error::InvalidRestoreFault(inner) => inner.fmt(f),
174            Error::InvalidSubnet(inner) => inner.fmt(f),
175            Error::InvalidVpcNetworkStateFault(inner) => inner.fmt(f),
176            Error::KmsKeyNotAccessibleFault(inner) => inner.fmt(f),
177            Error::ResourceNotFoundFault(inner) => inner.fmt(f),
178            Error::SnsInvalidTopicFault(inner) => inner.fmt(f),
179            Error::SnsNoAuthorizationFault(inner) => inner.fmt(f),
180            Error::SnsTopicArnNotFoundFault(inner) => inner.fmt(f),
181            Error::SharedSnapshotQuotaExceededFault(inner) => inner.fmt(f),
182            Error::SnapshotQuotaExceededFault(inner) => inner.fmt(f),
183            Error::SourceNotFoundFault(inner) => inner.fmt(f),
184            Error::StorageQuotaExceededFault(inner) => inner.fmt(f),
185            Error::StorageTypeNotSupportedFault(inner) => inner.fmt(f),
186            Error::SubnetAlreadyInUse(inner) => inner.fmt(f),
187            Error::SubscriptionAlreadyExistFault(inner) => inner.fmt(f),
188            Error::SubscriptionCategoryNotFoundFault(inner) => inner.fmt(f),
189            Error::SubscriptionNotFoundFault(inner) => inner.fmt(f),
190            Error::Unhandled(_) => {
191                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
192                    write!(f, "unhandled error ({code})")
193                } else {
194                    f.write_str("unhandled error")
195                }
196            }
197        }
198    }
199}
200impl From<::aws_smithy_types::error::operation::BuildError> for Error {
201    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
202        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
203            source: value.into(),
204            meta: ::std::default::Default::default(),
205        })
206    }
207}
208impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
209    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
210        match self {
211            Self::AuthorizationNotFoundFault(inner) => inner.meta(),
212            Self::CertificateNotFoundFault(inner) => inner.meta(),
213            Self::DbClusterAlreadyExistsFault(inner) => inner.meta(),
214            Self::DbClusterNotFoundFault(inner) => inner.meta(),
215            Self::DbClusterParameterGroupNotFoundFault(inner) => inner.meta(),
216            Self::DbClusterQuotaExceededFault(inner) => inner.meta(),
217            Self::DbClusterSnapshotAlreadyExistsFault(inner) => inner.meta(),
218            Self::DbClusterSnapshotNotFoundFault(inner) => inner.meta(),
219            Self::DbInstanceAlreadyExistsFault(inner) => inner.meta(),
220            Self::DbInstanceNotFoundFault(inner) => inner.meta(),
221            Self::DbParameterGroupAlreadyExistsFault(inner) => inner.meta(),
222            Self::DbParameterGroupNotFoundFault(inner) => inner.meta(),
223            Self::DbParameterGroupQuotaExceededFault(inner) => inner.meta(),
224            Self::DbSecurityGroupNotFoundFault(inner) => inner.meta(),
225            Self::DbSnapshotAlreadyExistsFault(inner) => inner.meta(),
226            Self::DbSnapshotNotFoundFault(inner) => inner.meta(),
227            Self::DbSubnetGroupAlreadyExistsFault(inner) => inner.meta(),
228            Self::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => inner.meta(),
229            Self::DbSubnetGroupNotFoundFault(inner) => inner.meta(),
230            Self::DbSubnetGroupQuotaExceededFault(inner) => inner.meta(),
231            Self::DbSubnetQuotaExceededFault(inner) => inner.meta(),
232            Self::DbUpgradeDependencyFailureFault(inner) => inner.meta(),
233            Self::EventSubscriptionQuotaExceededFault(inner) => inner.meta(),
234            Self::GlobalClusterAlreadyExistsFault(inner) => inner.meta(),
235            Self::GlobalClusterNotFoundFault(inner) => inner.meta(),
236            Self::GlobalClusterQuotaExceededFault(inner) => inner.meta(),
237            Self::InstanceQuotaExceededFault(inner) => inner.meta(),
238            Self::InsufficientDbClusterCapacityFault(inner) => inner.meta(),
239            Self::InsufficientDbInstanceCapacityFault(inner) => inner.meta(),
240            Self::InsufficientStorageClusterCapacityFault(inner) => inner.meta(),
241            Self::InvalidDbClusterSnapshotStateFault(inner) => inner.meta(),
242            Self::InvalidDbClusterStateFault(inner) => inner.meta(),
243            Self::InvalidDbInstanceStateFault(inner) => inner.meta(),
244            Self::InvalidDbParameterGroupStateFault(inner) => inner.meta(),
245            Self::InvalidDbSecurityGroupStateFault(inner) => inner.meta(),
246            Self::InvalidDbSnapshotStateFault(inner) => inner.meta(),
247            Self::InvalidDbSubnetGroupStateFault(inner) => inner.meta(),
248            Self::InvalidDbSubnetStateFault(inner) => inner.meta(),
249            Self::InvalidEventSubscriptionStateFault(inner) => inner.meta(),
250            Self::InvalidGlobalClusterStateFault(inner) => inner.meta(),
251            Self::InvalidRestoreFault(inner) => inner.meta(),
252            Self::InvalidSubnet(inner) => inner.meta(),
253            Self::InvalidVpcNetworkStateFault(inner) => inner.meta(),
254            Self::KmsKeyNotAccessibleFault(inner) => inner.meta(),
255            Self::ResourceNotFoundFault(inner) => inner.meta(),
256            Self::SnsInvalidTopicFault(inner) => inner.meta(),
257            Self::SnsNoAuthorizationFault(inner) => inner.meta(),
258            Self::SnsTopicArnNotFoundFault(inner) => inner.meta(),
259            Self::SharedSnapshotQuotaExceededFault(inner) => inner.meta(),
260            Self::SnapshotQuotaExceededFault(inner) => inner.meta(),
261            Self::SourceNotFoundFault(inner) => inner.meta(),
262            Self::StorageQuotaExceededFault(inner) => inner.meta(),
263            Self::StorageTypeNotSupportedFault(inner) => inner.meta(),
264            Self::SubnetAlreadyInUse(inner) => inner.meta(),
265            Self::SubscriptionAlreadyExistFault(inner) => inner.meta(),
266            Self::SubscriptionCategoryNotFoundFault(inner) => inner.meta(),
267            Self::SubscriptionNotFoundFault(inner) => inner.meta(),
268            Self::Unhandled(inner) => &inner.meta,
269        }
270    }
271}
272impl<R>
273    From<
274        ::aws_smithy_runtime_api::client::result::SdkError<
275            crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError,
276            R,
277        >,
278    > for Error
279where
280    R: Send + Sync + std::fmt::Debug + 'static,
281{
282    fn from(
283        err: ::aws_smithy_runtime_api::client::result::SdkError<
284            crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError,
285            R,
286        >,
287    ) -> Self {
288        match err {
289            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
290            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
291                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
292                source: err.into(),
293            }),
294        }
295    }
296}
297impl From<crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError> for Error {
298    fn from(err: crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError) -> Self {
299        match err {
300            crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError::SourceNotFoundFault(inner) => {
301                Error::SourceNotFoundFault(inner)
302            }
303            crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError::SubscriptionNotFoundFault(inner) => {
304                Error::SubscriptionNotFoundFault(inner)
305            }
306            crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError::Unhandled(inner) => {
307                Error::Unhandled(inner)
308            }
309        }
310    }
311}
312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags_to_resource::AddTagsToResourceError, R>> for Error
313where
314    R: Send + Sync + std::fmt::Debug + 'static,
315{
316    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags_to_resource::AddTagsToResourceError, R>) -> Self {
317        match err {
318            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
319            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
320                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
321                source: err.into(),
322            }),
323        }
324    }
325}
326impl From<crate::operation::add_tags_to_resource::AddTagsToResourceError> for Error {
327    fn from(err: crate::operation::add_tags_to_resource::AddTagsToResourceError) -> Self {
328        match err {
329            crate::operation::add_tags_to_resource::AddTagsToResourceError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
330            crate::operation::add_tags_to_resource::AddTagsToResourceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
331            crate::operation::add_tags_to_resource::AddTagsToResourceError::DbSnapshotNotFoundFault(inner) => Error::DbSnapshotNotFoundFault(inner),
332            crate::operation::add_tags_to_resource::AddTagsToResourceError::Unhandled(inner) => Error::Unhandled(inner),
333        }
334    }
335}
336impl<R>
337    From<
338        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError, R>,
339    > for Error
340where
341    R: Send + Sync + std::fmt::Debug + 'static,
342{
343    fn from(
344        err: ::aws_smithy_runtime_api::client::result::SdkError<
345            crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError,
346            R,
347        >,
348    ) -> Self {
349        match err {
350            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
351            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
352                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
353                source: err.into(),
354            }),
355        }
356    }
357}
358impl From<crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError> for Error {
359    fn from(err: crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError) -> Self {
360        match err {
361            crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::InvalidDbClusterStateFault(inner) => {
362                Error::InvalidDbClusterStateFault(inner)
363            }
364            crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::InvalidDbInstanceStateFault(inner) => {
365                Error::InvalidDbInstanceStateFault(inner)
366            }
367            crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::ResourceNotFoundFault(inner) => {
368                Error::ResourceNotFoundFault(inner)
369            }
370            crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError::Unhandled(inner) => Error::Unhandled(inner),
371        }
372    }
373}
374impl<R>
375    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError, R>>
376    for Error
377where
378    R: Send + Sync + std::fmt::Debug + 'static,
379{
380    fn from(
381        err: ::aws_smithy_runtime_api::client::result::SdkError<
382            crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError,
383            R,
384        >,
385    ) -> Self {
386        match err {
387            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
388            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
389                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
390                source: err.into(),
391            }),
392        }
393    }
394}
395impl From<crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError> for Error {
396    fn from(err: crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError) -> Self {
397        match err {
398            crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::DbParameterGroupAlreadyExistsFault(inner) => {
399                Error::DbParameterGroupAlreadyExistsFault(inner)
400            }
401            crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
402                Error::DbParameterGroupNotFoundFault(inner)
403            }
404            crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::DbParameterGroupQuotaExceededFault(inner) => {
405                Error::DbParameterGroupQuotaExceededFault(inner)
406            }
407            crate::operation::copy_db_cluster_parameter_group::CopyDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
408        }
409    }
410}
411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError, R>> for Error
412where
413    R: Send + Sync + std::fmt::Debug + 'static,
414{
415    fn from(
416        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError, R>,
417    ) -> Self {
418        match err {
419            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
420            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
421                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
422                source: err.into(),
423            }),
424        }
425    }
426}
427impl From<crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError> for Error {
428    fn from(err: crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError) -> Self {
429        match err {
430            crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::DbClusterSnapshotAlreadyExistsFault(inner) => {
431                Error::DbClusterSnapshotAlreadyExistsFault(inner)
432            }
433            crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::DbClusterSnapshotNotFoundFault(inner) => {
434                Error::DbClusterSnapshotNotFoundFault(inner)
435            }
436            crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
437                Error::InvalidDbClusterSnapshotStateFault(inner)
438            }
439            crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::InvalidDbClusterStateFault(inner) => {
440                Error::InvalidDbClusterStateFault(inner)
441            }
442            crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::KmsKeyNotAccessibleFault(inner) => {
443                Error::KmsKeyNotAccessibleFault(inner)
444            }
445            crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::SnapshotQuotaExceededFault(inner) => {
446                Error::SnapshotQuotaExceededFault(inner)
447            }
448            crate::operation::copy_db_cluster_snapshot::CopyDBClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
449        }
450    }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster::CreateDBClusterError, R>> for Error
453where
454    R: Send + Sync + std::fmt::Debug + 'static,
455{
456    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster::CreateDBClusterError, R>) -> Self {
457        match err {
458            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
459            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
460                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
461                source: err.into(),
462            }),
463        }
464    }
465}
466impl From<crate::operation::create_db_cluster::CreateDBClusterError> for Error {
467    fn from(err: crate::operation::create_db_cluster::CreateDBClusterError) -> Self {
468        match err {
469            crate::operation::create_db_cluster::CreateDBClusterError::DbClusterAlreadyExistsFault(inner) => {
470                Error::DbClusterAlreadyExistsFault(inner)
471            }
472            crate::operation::create_db_cluster::CreateDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
473            crate::operation::create_db_cluster::CreateDBClusterError::DbClusterParameterGroupNotFoundFault(inner) => {
474                Error::DbClusterParameterGroupNotFoundFault(inner)
475            }
476            crate::operation::create_db_cluster::CreateDBClusterError::DbClusterQuotaExceededFault(inner) => {
477                Error::DbClusterQuotaExceededFault(inner)
478            }
479            crate::operation::create_db_cluster::CreateDBClusterError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
480            crate::operation::create_db_cluster::CreateDBClusterError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
481                Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
482            }
483            crate::operation::create_db_cluster::CreateDBClusterError::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner),
484            crate::operation::create_db_cluster::CreateDBClusterError::GlobalClusterNotFoundFault(inner) => Error::GlobalClusterNotFoundFault(inner),
485            crate::operation::create_db_cluster::CreateDBClusterError::InsufficientStorageClusterCapacityFault(inner) => {
486                Error::InsufficientStorageClusterCapacityFault(inner)
487            }
488            crate::operation::create_db_cluster::CreateDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
489            crate::operation::create_db_cluster::CreateDBClusterError::InvalidDbInstanceStateFault(inner) => {
490                Error::InvalidDbInstanceStateFault(inner)
491            }
492            crate::operation::create_db_cluster::CreateDBClusterError::InvalidDbSubnetGroupStateFault(inner) => {
493                Error::InvalidDbSubnetGroupStateFault(inner)
494            }
495            crate::operation::create_db_cluster::CreateDBClusterError::InvalidGlobalClusterStateFault(inner) => {
496                Error::InvalidGlobalClusterStateFault(inner)
497            }
498            crate::operation::create_db_cluster::CreateDBClusterError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
499            crate::operation::create_db_cluster::CreateDBClusterError::InvalidVpcNetworkStateFault(inner) => {
500                Error::InvalidVpcNetworkStateFault(inner)
501            }
502            crate::operation::create_db_cluster::CreateDBClusterError::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner),
503            crate::operation::create_db_cluster::CreateDBClusterError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
504            crate::operation::create_db_cluster::CreateDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
505        }
506    }
507}
508impl<R>
509    From<
510        ::aws_smithy_runtime_api::client::result::SdkError<
511            crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError,
512            R,
513        >,
514    > for Error
515where
516    R: Send + Sync + std::fmt::Debug + 'static,
517{
518    fn from(
519        err: ::aws_smithy_runtime_api::client::result::SdkError<
520            crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError,
521            R,
522        >,
523    ) -> Self {
524        match err {
525            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
526            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
527                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
528                source: err.into(),
529            }),
530        }
531    }
532}
533impl From<crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError> for Error {
534    fn from(err: crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError) -> Self {
535        match err {
536            crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError::DbParameterGroupAlreadyExistsFault(inner) => {
537                Error::DbParameterGroupAlreadyExistsFault(inner)
538            }
539            crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError::DbParameterGroupQuotaExceededFault(inner) => {
540                Error::DbParameterGroupQuotaExceededFault(inner)
541            }
542            crate::operation::create_db_cluster_parameter_group::CreateDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
543        }
544    }
545}
546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError, R>>
547    for Error
548where
549    R: Send + Sync + std::fmt::Debug + 'static,
550{
551    fn from(
552        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError, R>,
553    ) -> Self {
554        match err {
555            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
556            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
557                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
558                source: err.into(),
559            }),
560        }
561    }
562}
563impl From<crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError> for Error {
564    fn from(err: crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError) -> Self {
565        match err {
566            crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::DbClusterNotFoundFault(inner) => {
567                Error::DbClusterNotFoundFault(inner)
568            }
569            crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::DbClusterSnapshotAlreadyExistsFault(inner) => {
570                Error::DbClusterSnapshotAlreadyExistsFault(inner)
571            }
572            crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
573                Error::InvalidDbClusterSnapshotStateFault(inner)
574            }
575            crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::InvalidDbClusterStateFault(inner) => {
576                Error::InvalidDbClusterStateFault(inner)
577            }
578            crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::SnapshotQuotaExceededFault(inner) => {
579                Error::SnapshotQuotaExceededFault(inner)
580            }
581            crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
582        }
583    }
584}
585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_instance::CreateDBInstanceError, R>> for Error
586where
587    R: Send + Sync + std::fmt::Debug + 'static,
588{
589    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_instance::CreateDBInstanceError, R>) -> Self {
590        match err {
591            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
592            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
593                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
594                source: err.into(),
595            }),
596        }
597    }
598}
599impl From<crate::operation::create_db_instance::CreateDBInstanceError> for Error {
600    fn from(err: crate::operation::create_db_instance::CreateDBInstanceError) -> Self {
601        match err {
602            crate::operation::create_db_instance::CreateDBInstanceError::AuthorizationNotFoundFault(inner) => {
603                Error::AuthorizationNotFoundFault(inner)
604            }
605            crate::operation::create_db_instance::CreateDBInstanceError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
606            crate::operation::create_db_instance::CreateDBInstanceError::DbInstanceAlreadyExistsFault(inner) => {
607                Error::DbInstanceAlreadyExistsFault(inner)
608            }
609            crate::operation::create_db_instance::CreateDBInstanceError::DbParameterGroupNotFoundFault(inner) => {
610                Error::DbParameterGroupNotFoundFault(inner)
611            }
612            crate::operation::create_db_instance::CreateDBInstanceError::DbSecurityGroupNotFoundFault(inner) => {
613                Error::DbSecurityGroupNotFoundFault(inner)
614            }
615            crate::operation::create_db_instance::CreateDBInstanceError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
616                Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
617            }
618            crate::operation::create_db_instance::CreateDBInstanceError::DbSubnetGroupNotFoundFault(inner) => {
619                Error::DbSubnetGroupNotFoundFault(inner)
620            }
621            crate::operation::create_db_instance::CreateDBInstanceError::InstanceQuotaExceededFault(inner) => {
622                Error::InstanceQuotaExceededFault(inner)
623            }
624            crate::operation::create_db_instance::CreateDBInstanceError::InsufficientDbInstanceCapacityFault(inner) => {
625                Error::InsufficientDbInstanceCapacityFault(inner)
626            }
627            crate::operation::create_db_instance::CreateDBInstanceError::InvalidDbClusterStateFault(inner) => {
628                Error::InvalidDbClusterStateFault(inner)
629            }
630            crate::operation::create_db_instance::CreateDBInstanceError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
631            crate::operation::create_db_instance::CreateDBInstanceError::InvalidVpcNetworkStateFault(inner) => {
632                Error::InvalidVpcNetworkStateFault(inner)
633            }
634            crate::operation::create_db_instance::CreateDBInstanceError::KmsKeyNotAccessibleFault(inner) => Error::KmsKeyNotAccessibleFault(inner),
635            crate::operation::create_db_instance::CreateDBInstanceError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
636            crate::operation::create_db_instance::CreateDBInstanceError::StorageTypeNotSupportedFault(inner) => {
637                Error::StorageTypeNotSupportedFault(inner)
638            }
639            crate::operation::create_db_instance::CreateDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
640        }
641    }
642}
643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_subnet_group::CreateDBSubnetGroupError, R>> for Error
644where
645    R: Send + Sync + std::fmt::Debug + 'static,
646{
647    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_db_subnet_group::CreateDBSubnetGroupError, R>) -> Self {
648        match err {
649            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
650            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
651                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
652                source: err.into(),
653            }),
654        }
655    }
656}
657impl From<crate::operation::create_db_subnet_group::CreateDBSubnetGroupError> for Error {
658    fn from(err: crate::operation::create_db_subnet_group::CreateDBSubnetGroupError) -> Self {
659        match err {
660            crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetGroupAlreadyExistsFault(inner) => {
661                Error::DbSubnetGroupAlreadyExistsFault(inner)
662            }
663            crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
664                Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
665            }
666            crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetGroupQuotaExceededFault(inner) => {
667                Error::DbSubnetGroupQuotaExceededFault(inner)
668            }
669            crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::DbSubnetQuotaExceededFault(inner) => {
670                Error::DbSubnetQuotaExceededFault(inner)
671            }
672            crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
673            crate::operation::create_db_subnet_group::CreateDBSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
674        }
675    }
676}
677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_subscription::CreateEventSubscriptionError, R>>
678    for Error
679where
680    R: Send + Sync + std::fmt::Debug + 'static,
681{
682    fn from(
683        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_subscription::CreateEventSubscriptionError, R>,
684    ) -> Self {
685        match err {
686            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
687            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
688                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
689                source: err.into(),
690            }),
691        }
692    }
693}
694impl From<crate::operation::create_event_subscription::CreateEventSubscriptionError> for Error {
695    fn from(err: crate::operation::create_event_subscription::CreateEventSubscriptionError) -> Self {
696        match err {
697            crate::operation::create_event_subscription::CreateEventSubscriptionError::EventSubscriptionQuotaExceededFault(inner) => {
698                Error::EventSubscriptionQuotaExceededFault(inner)
699            }
700            crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsInvalidTopicFault(inner) => {
701                Error::SnsInvalidTopicFault(inner)
702            }
703            crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsNoAuthorizationFault(inner) => {
704                Error::SnsNoAuthorizationFault(inner)
705            }
706            crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsTopicArnNotFoundFault(inner) => {
707                Error::SnsTopicArnNotFoundFault(inner)
708            }
709            crate::operation::create_event_subscription::CreateEventSubscriptionError::SourceNotFoundFault(inner) => {
710                Error::SourceNotFoundFault(inner)
711            }
712            crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionAlreadyExistFault(inner) => {
713                Error::SubscriptionAlreadyExistFault(inner)
714            }
715            crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionCategoryNotFoundFault(inner) => {
716                Error::SubscriptionCategoryNotFoundFault(inner)
717            }
718            crate::operation::create_event_subscription::CreateEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
719        }
720    }
721}
722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_cluster::CreateGlobalClusterError, R>> for Error
723where
724    R: Send + Sync + std::fmt::Debug + 'static,
725{
726    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_cluster::CreateGlobalClusterError, R>) -> Self {
727        match err {
728            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
729            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
730                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
731                source: err.into(),
732            }),
733        }
734    }
735}
736impl From<crate::operation::create_global_cluster::CreateGlobalClusterError> for Error {
737    fn from(err: crate::operation::create_global_cluster::CreateGlobalClusterError) -> Self {
738        match err {
739            crate::operation::create_global_cluster::CreateGlobalClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
740            crate::operation::create_global_cluster::CreateGlobalClusterError::GlobalClusterAlreadyExistsFault(inner) => {
741                Error::GlobalClusterAlreadyExistsFault(inner)
742            }
743            crate::operation::create_global_cluster::CreateGlobalClusterError::GlobalClusterQuotaExceededFault(inner) => {
744                Error::GlobalClusterQuotaExceededFault(inner)
745            }
746            crate::operation::create_global_cluster::CreateGlobalClusterError::InvalidDbClusterStateFault(inner) => {
747                Error::InvalidDbClusterStateFault(inner)
748            }
749            crate::operation::create_global_cluster::CreateGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
750        }
751    }
752}
753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster::DeleteDBClusterError, R>> for Error
754where
755    R: Send + Sync + std::fmt::Debug + 'static,
756{
757    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster::DeleteDBClusterError, R>) -> Self {
758        match err {
759            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
760            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
761                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
762                source: err.into(),
763            }),
764        }
765    }
766}
767impl From<crate::operation::delete_db_cluster::DeleteDBClusterError> for Error {
768    fn from(err: crate::operation::delete_db_cluster::DeleteDBClusterError) -> Self {
769        match err {
770            crate::operation::delete_db_cluster::DeleteDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
771            crate::operation::delete_db_cluster::DeleteDBClusterError::DbClusterSnapshotAlreadyExistsFault(inner) => {
772                Error::DbClusterSnapshotAlreadyExistsFault(inner)
773            }
774            crate::operation::delete_db_cluster::DeleteDBClusterError::InvalidDbClusterSnapshotStateFault(inner) => {
775                Error::InvalidDbClusterSnapshotStateFault(inner)
776            }
777            crate::operation::delete_db_cluster::DeleteDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
778            crate::operation::delete_db_cluster::DeleteDBClusterError::SnapshotQuotaExceededFault(inner) => Error::SnapshotQuotaExceededFault(inner),
779            crate::operation::delete_db_cluster::DeleteDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
780        }
781    }
782}
783impl<R>
784    From<
785        ::aws_smithy_runtime_api::client::result::SdkError<
786            crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError,
787            R,
788        >,
789    > for Error
790where
791    R: Send + Sync + std::fmt::Debug + 'static,
792{
793    fn from(
794        err: ::aws_smithy_runtime_api::client::result::SdkError<
795            crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError,
796            R,
797        >,
798    ) -> Self {
799        match err {
800            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
801            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
802                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
803                source: err.into(),
804            }),
805        }
806    }
807}
808impl From<crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError> for Error {
809    fn from(err: crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError) -> Self {
810        match err {
811            crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
812                Error::DbParameterGroupNotFoundFault(inner)
813            }
814            crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError::InvalidDbParameterGroupStateFault(inner) => {
815                Error::InvalidDbParameterGroupStateFault(inner)
816            }
817            crate::operation::delete_db_cluster_parameter_group::DeleteDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
818        }
819    }
820}
821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError, R>>
822    for Error
823where
824    R: Send + Sync + std::fmt::Debug + 'static,
825{
826    fn from(
827        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError, R>,
828    ) -> Self {
829        match err {
830            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
831            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
832                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
833                source: err.into(),
834            }),
835        }
836    }
837}
838impl From<crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError> for Error {
839    fn from(err: crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError) -> Self {
840        match err {
841            crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError::DbClusterSnapshotNotFoundFault(inner) => {
842                Error::DbClusterSnapshotNotFoundFault(inner)
843            }
844            crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
845                Error::InvalidDbClusterSnapshotStateFault(inner)
846            }
847            crate::operation::delete_db_cluster_snapshot::DeleteDBClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
848        }
849    }
850}
851impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_instance::DeleteDBInstanceError, R>> for Error
852where
853    R: Send + Sync + std::fmt::Debug + 'static,
854{
855    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_instance::DeleteDBInstanceError, R>) -> Self {
856        match err {
857            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
858            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
859                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
860                source: err.into(),
861            }),
862        }
863    }
864}
865impl From<crate::operation::delete_db_instance::DeleteDBInstanceError> for Error {
866    fn from(err: crate::operation::delete_db_instance::DeleteDBInstanceError) -> Self {
867        match err {
868            crate::operation::delete_db_instance::DeleteDBInstanceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
869            crate::operation::delete_db_instance::DeleteDBInstanceError::DbSnapshotAlreadyExistsFault(inner) => {
870                Error::DbSnapshotAlreadyExistsFault(inner)
871            }
872            crate::operation::delete_db_instance::DeleteDBInstanceError::InvalidDbClusterStateFault(inner) => {
873                Error::InvalidDbClusterStateFault(inner)
874            }
875            crate::operation::delete_db_instance::DeleteDBInstanceError::InvalidDbInstanceStateFault(inner) => {
876                Error::InvalidDbInstanceStateFault(inner)
877            }
878            crate::operation::delete_db_instance::DeleteDBInstanceError::SnapshotQuotaExceededFault(inner) => {
879                Error::SnapshotQuotaExceededFault(inner)
880            }
881            crate::operation::delete_db_instance::DeleteDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
882        }
883    }
884}
885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError, R>> for Error
886where
887    R: Send + Sync + std::fmt::Debug + 'static,
888{
889    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError, R>) -> Self {
890        match err {
891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
894                source: err.into(),
895            }),
896        }
897    }
898}
899impl From<crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError> for Error {
900    fn from(err: crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError) -> Self {
901        match err {
902            crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::DbSubnetGroupNotFoundFault(inner) => {
903                Error::DbSubnetGroupNotFoundFault(inner)
904            }
905            crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::InvalidDbSubnetGroupStateFault(inner) => {
906                Error::InvalidDbSubnetGroupStateFault(inner)
907            }
908            crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::InvalidDbSubnetStateFault(inner) => {
909                Error::InvalidDbSubnetStateFault(inner)
910            }
911            crate::operation::delete_db_subnet_group::DeleteDBSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
912        }
913    }
914}
915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_subscription::DeleteEventSubscriptionError, R>>
916    for Error
917where
918    R: Send + Sync + std::fmt::Debug + 'static,
919{
920    fn from(
921        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_subscription::DeleteEventSubscriptionError, R>,
922    ) -> Self {
923        match err {
924            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
925            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
926                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
927                source: err.into(),
928            }),
929        }
930    }
931}
932impl From<crate::operation::delete_event_subscription::DeleteEventSubscriptionError> for Error {
933    fn from(err: crate::operation::delete_event_subscription::DeleteEventSubscriptionError) -> Self {
934        match err {
935            crate::operation::delete_event_subscription::DeleteEventSubscriptionError::InvalidEventSubscriptionStateFault(inner) => {
936                Error::InvalidEventSubscriptionStateFault(inner)
937            }
938            crate::operation::delete_event_subscription::DeleteEventSubscriptionError::SubscriptionNotFoundFault(inner) => {
939                Error::SubscriptionNotFoundFault(inner)
940            }
941            crate::operation::delete_event_subscription::DeleteEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
942        }
943    }
944}
945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_cluster::DeleteGlobalClusterError, R>> for Error
946where
947    R: Send + Sync + std::fmt::Debug + 'static,
948{
949    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_cluster::DeleteGlobalClusterError, R>) -> Self {
950        match err {
951            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
952            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
953                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
954                source: err.into(),
955            }),
956        }
957    }
958}
959impl From<crate::operation::delete_global_cluster::DeleteGlobalClusterError> for Error {
960    fn from(err: crate::operation::delete_global_cluster::DeleteGlobalClusterError) -> Self {
961        match err {
962            crate::operation::delete_global_cluster::DeleteGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
963                Error::GlobalClusterNotFoundFault(inner)
964            }
965            crate::operation::delete_global_cluster::DeleteGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
966                Error::InvalidGlobalClusterStateFault(inner)
967            }
968            crate::operation::delete_global_cluster::DeleteGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
969        }
970    }
971}
972impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificates::DescribeCertificatesError, R>> for Error
973where
974    R: Send + Sync + std::fmt::Debug + 'static,
975{
976    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificates::DescribeCertificatesError, R>) -> Self {
977        match err {
978            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
979            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
980                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
981                source: err.into(),
982            }),
983        }
984    }
985}
986impl From<crate::operation::describe_certificates::DescribeCertificatesError> for Error {
987    fn from(err: crate::operation::describe_certificates::DescribeCertificatesError) -> Self {
988        match err {
989            crate::operation::describe_certificates::DescribeCertificatesError::CertificateNotFoundFault(inner) => {
990                Error::CertificateNotFoundFault(inner)
991            }
992            crate::operation::describe_certificates::DescribeCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
993        }
994    }
995}
996impl<R>
997    From<
998        ::aws_smithy_runtime_api::client::result::SdkError<
999            crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError,
1000            R,
1001        >,
1002    > for Error
1003where
1004    R: Send + Sync + std::fmt::Debug + 'static,
1005{
1006    fn from(
1007        err: ::aws_smithy_runtime_api::client::result::SdkError<
1008            crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError,
1009            R,
1010        >,
1011    ) -> Self {
1012        match err {
1013            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1014            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1015                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1016                source: err.into(),
1017            }),
1018        }
1019    }
1020}
1021impl From<crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError> for Error {
1022    fn from(err: crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError) -> Self {
1023        match err {
1024            crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError::DbParameterGroupNotFoundFault(inner) => {
1025                Error::DbParameterGroupNotFoundFault(inner)
1026            }
1027            crate::operation::describe_db_cluster_parameter_groups::DescribeDBClusterParameterGroupsError::Unhandled(inner) => {
1028                Error::Unhandled(inner)
1029            }
1030        }
1031    }
1032}
1033impl<R>
1034    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError, R>>
1035    for Error
1036where
1037    R: Send + Sync + std::fmt::Debug + 'static,
1038{
1039    fn from(
1040        err: ::aws_smithy_runtime_api::client::result::SdkError<
1041            crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError,
1042            R,
1043        >,
1044    ) -> Self {
1045        match err {
1046            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1047            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1048                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1049                source: err.into(),
1050            }),
1051        }
1052    }
1053}
1054impl From<crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError> for Error {
1055    fn from(err: crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError) -> Self {
1056        match err {
1057            crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError::DbParameterGroupNotFoundFault(inner) => {
1058                Error::DbParameterGroupNotFoundFault(inner)
1059            }
1060            crate::operation::describe_db_cluster_parameters::DescribeDBClusterParametersError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_clusters::DescribeDBClustersError, R>> for Error
1065where
1066    R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_clusters::DescribeDBClustersError, R>) -> Self {
1069        match err {
1070            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1071            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1072                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1073                source: err.into(),
1074            }),
1075        }
1076    }
1077}
1078impl From<crate::operation::describe_db_clusters::DescribeDBClustersError> for Error {
1079    fn from(err: crate::operation::describe_db_clusters::DescribeDBClustersError) -> Self {
1080        match err {
1081            crate::operation::describe_db_clusters::DescribeDBClustersError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
1082            crate::operation::describe_db_clusters::DescribeDBClustersError::Unhandled(inner) => Error::Unhandled(inner),
1083        }
1084    }
1085}
1086impl<R>
1087    From<
1088        ::aws_smithy_runtime_api::client::result::SdkError<
1089            crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError,
1090            R,
1091        >,
1092    > for Error
1093where
1094    R: Send + Sync + std::fmt::Debug + 'static,
1095{
1096    fn from(
1097        err: ::aws_smithy_runtime_api::client::result::SdkError<
1098            crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError,
1099            R,
1100        >,
1101    ) -> Self {
1102        match err {
1103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1106                source: err.into(),
1107            }),
1108        }
1109    }
1110}
1111impl From<crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError> for Error {
1112    fn from(err: crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError) -> Self {
1113        match err {
1114            crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError::DbClusterSnapshotNotFoundFault(
1115                inner,
1116            ) => Error::DbClusterSnapshotNotFoundFault(inner),
1117            crate::operation::describe_db_cluster_snapshot_attributes::DescribeDBClusterSnapshotAttributesError::Unhandled(inner) => {
1118                Error::Unhandled(inner)
1119            }
1120        }
1121    }
1122}
1123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError, R>>
1124    for Error
1125where
1126    R: Send + Sync + std::fmt::Debug + 'static,
1127{
1128    fn from(
1129        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError, R>,
1130    ) -> Self {
1131        match err {
1132            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1133            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1134                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1135                source: err.into(),
1136            }),
1137        }
1138    }
1139}
1140impl From<crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError> for Error {
1141    fn from(err: crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError) -> Self {
1142        match err {
1143            crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError::DbClusterSnapshotNotFoundFault(inner) => {
1144                Error::DbClusterSnapshotNotFoundFault(inner)
1145            }
1146            crate::operation::describe_db_cluster_snapshots::DescribeDBClusterSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
1147        }
1148    }
1149}
1150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError, R>>
1151    for Error
1152where
1153    R: Send + Sync + std::fmt::Debug + 'static,
1154{
1155    fn from(
1156        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError, R>,
1157    ) -> Self {
1158        match err {
1159            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1160            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1161                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1162                source: err.into(),
1163            }),
1164        }
1165    }
1166}
1167impl From<crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError> for Error {
1168    fn from(err: crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError) -> Self {
1169        match err {
1170            crate::operation::describe_db_engine_versions::DescribeDBEngineVersionsError::Unhandled(inner) => Error::Unhandled(inner),
1171        }
1172    }
1173}
1174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_instances::DescribeDBInstancesError, R>> for Error
1175where
1176    R: Send + Sync + std::fmt::Debug + 'static,
1177{
1178    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_instances::DescribeDBInstancesError, R>) -> Self {
1179        match err {
1180            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1181            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1182                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1183                source: err.into(),
1184            }),
1185        }
1186    }
1187}
1188impl From<crate::operation::describe_db_instances::DescribeDBInstancesError> for Error {
1189    fn from(err: crate::operation::describe_db_instances::DescribeDBInstancesError) -> Self {
1190        match err {
1191            crate::operation::describe_db_instances::DescribeDBInstancesError::DbInstanceNotFoundFault(inner) => {
1192                Error::DbInstanceNotFoundFault(inner)
1193            }
1194            crate::operation::describe_db_instances::DescribeDBInstancesError::Unhandled(inner) => Error::Unhandled(inner),
1195        }
1196    }
1197}
1198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError, R>>
1199    for Error
1200where
1201    R: Send + Sync + std::fmt::Debug + 'static,
1202{
1203    fn from(
1204        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError, R>,
1205    ) -> Self {
1206        match err {
1207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1210                source: err.into(),
1211            }),
1212        }
1213    }
1214}
1215impl From<crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError> for Error {
1216    fn from(err: crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError) -> Self {
1217        match err {
1218            crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError::DbSubnetGroupNotFoundFault(inner) => {
1219                Error::DbSubnetGroupNotFoundFault(inner)
1220            }
1221            crate::operation::describe_db_subnet_groups::DescribeDBSubnetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1222        }
1223    }
1224}
1225impl<R>
1226    From<
1227        ::aws_smithy_runtime_api::client::result::SdkError<
1228            crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError,
1229            R,
1230        >,
1231    > for Error
1232where
1233    R: Send + Sync + std::fmt::Debug + 'static,
1234{
1235    fn from(
1236        err: ::aws_smithy_runtime_api::client::result::SdkError<
1237            crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError,
1238            R,
1239        >,
1240    ) -> Self {
1241        match err {
1242            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1243            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1244                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1245                source: err.into(),
1246            }),
1247        }
1248    }
1249}
1250impl From<crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError> for Error {
1251    fn from(err: crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError) -> Self {
1252        match err {
1253            crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersError::Unhandled(inner) => {
1254                Error::Unhandled(inner)
1255            }
1256        }
1257    }
1258}
1259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_categories::DescribeEventCategoriesError, R>>
1260    for Error
1261where
1262    R: Send + Sync + std::fmt::Debug + 'static,
1263{
1264    fn from(
1265        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_categories::DescribeEventCategoriesError, R>,
1266    ) -> Self {
1267        match err {
1268            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1269            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1270                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1271                source: err.into(),
1272            }),
1273        }
1274    }
1275}
1276impl From<crate::operation::describe_event_categories::DescribeEventCategoriesError> for Error {
1277    fn from(err: crate::operation::describe_event_categories::DescribeEventCategoriesError) -> Self {
1278        match err {
1279            crate::operation::describe_event_categories::DescribeEventCategoriesError::Unhandled(inner) => Error::Unhandled(inner),
1280        }
1281    }
1282}
1283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>> for Error
1284where
1285    R: Send + Sync + std::fmt::Debug + 'static,
1286{
1287    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>) -> Self {
1288        match err {
1289            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1290            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1291                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1292                source: err.into(),
1293            }),
1294        }
1295    }
1296}
1297impl From<crate::operation::describe_events::DescribeEventsError> for Error {
1298    fn from(err: crate::operation::describe_events::DescribeEventsError) -> Self {
1299        match err {
1300            crate::operation::describe_events::DescribeEventsError::Unhandled(inner) => Error::Unhandled(inner),
1301        }
1302    }
1303}
1304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError, R>>
1305    for Error
1306where
1307    R: Send + Sync + std::fmt::Debug + 'static,
1308{
1309    fn from(
1310        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError, R>,
1311    ) -> Self {
1312        match err {
1313            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1314            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1315                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1316                source: err.into(),
1317            }),
1318        }
1319    }
1320}
1321impl From<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError> for Error {
1322    fn from(err: crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError) -> Self {
1323        match err {
1324            crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError::SubscriptionNotFoundFault(inner) => {
1325                Error::SubscriptionNotFoundFault(inner)
1326            }
1327            crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
1328        }
1329    }
1330}
1331impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_clusters::DescribeGlobalClustersError, R>> for Error
1332where
1333    R: Send + Sync + std::fmt::Debug + 'static,
1334{
1335    fn from(
1336        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_clusters::DescribeGlobalClustersError, R>,
1337    ) -> Self {
1338        match err {
1339            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1340            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1341                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1342                source: err.into(),
1343            }),
1344        }
1345    }
1346}
1347impl From<crate::operation::describe_global_clusters::DescribeGlobalClustersError> for Error {
1348    fn from(err: crate::operation::describe_global_clusters::DescribeGlobalClustersError) -> Self {
1349        match err {
1350            crate::operation::describe_global_clusters::DescribeGlobalClustersError::GlobalClusterNotFoundFault(inner) => {
1351                Error::GlobalClusterNotFoundFault(inner)
1352            }
1353            crate::operation::describe_global_clusters::DescribeGlobalClustersError::Unhandled(inner) => Error::Unhandled(inner),
1354        }
1355    }
1356}
1357impl<R>
1358    From<
1359        ::aws_smithy_runtime_api::client::result::SdkError<
1360            crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError,
1361            R,
1362        >,
1363    > for Error
1364where
1365    R: Send + Sync + std::fmt::Debug + 'static,
1366{
1367    fn from(
1368        err: ::aws_smithy_runtime_api::client::result::SdkError<
1369            crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError,
1370            R,
1371        >,
1372    ) -> Self {
1373        match err {
1374            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1375            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1376                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1377                source: err.into(),
1378            }),
1379        }
1380    }
1381}
1382impl From<crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError> for Error {
1383    fn from(err: crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError) -> Self {
1384        match err {
1385            crate::operation::describe_orderable_db_instance_options::DescribeOrderableDBInstanceOptionsError::Unhandled(inner) => {
1386                Error::Unhandled(inner)
1387            }
1388        }
1389    }
1390}
1391impl<R>
1392    From<
1393        ::aws_smithy_runtime_api::client::result::SdkError<
1394            crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError,
1395            R,
1396        >,
1397    > for Error
1398where
1399    R: Send + Sync + std::fmt::Debug + 'static,
1400{
1401    fn from(
1402        err: ::aws_smithy_runtime_api::client::result::SdkError<
1403            crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError,
1404            R,
1405        >,
1406    ) -> Self {
1407        match err {
1408            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1409            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1410                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1411                source: err.into(),
1412            }),
1413        }
1414    }
1415}
1416impl From<crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError> for Error {
1417    fn from(err: crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError) -> Self {
1418        match err {
1419            crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError::ResourceNotFoundFault(inner) => {
1420                Error::ResourceNotFoundFault(inner)
1421            }
1422            crate::operation::describe_pending_maintenance_actions::DescribePendingMaintenanceActionsError::Unhandled(inner) => {
1423                Error::Unhandled(inner)
1424            }
1425        }
1426    }
1427}
1428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_db_cluster::FailoverDBClusterError, R>> for Error
1429where
1430    R: Send + Sync + std::fmt::Debug + 'static,
1431{
1432    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_db_cluster::FailoverDBClusterError, R>) -> Self {
1433        match err {
1434            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1435            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1436                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1437                source: err.into(),
1438            }),
1439        }
1440    }
1441}
1442impl From<crate::operation::failover_db_cluster::FailoverDBClusterError> for Error {
1443    fn from(err: crate::operation::failover_db_cluster::FailoverDBClusterError) -> Self {
1444        match err {
1445            crate::operation::failover_db_cluster::FailoverDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
1446            crate::operation::failover_db_cluster::FailoverDBClusterError::InvalidDbClusterStateFault(inner) => {
1447                Error::InvalidDbClusterStateFault(inner)
1448            }
1449            crate::operation::failover_db_cluster::FailoverDBClusterError::InvalidDbInstanceStateFault(inner) => {
1450                Error::InvalidDbInstanceStateFault(inner)
1451            }
1452            crate::operation::failover_db_cluster::FailoverDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
1453        }
1454    }
1455}
1456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_global_cluster::FailoverGlobalClusterError, R>> for Error
1457where
1458    R: Send + Sync + std::fmt::Debug + 'static,
1459{
1460    fn from(
1461        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_global_cluster::FailoverGlobalClusterError, R>,
1462    ) -> Self {
1463        match err {
1464            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1465            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1466                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1467                source: err.into(),
1468            }),
1469        }
1470    }
1471}
1472impl From<crate::operation::failover_global_cluster::FailoverGlobalClusterError> for Error {
1473    fn from(err: crate::operation::failover_global_cluster::FailoverGlobalClusterError) -> Self {
1474        match err {
1475            crate::operation::failover_global_cluster::FailoverGlobalClusterError::DbClusterNotFoundFault(inner) => {
1476                Error::DbClusterNotFoundFault(inner)
1477            }
1478            crate::operation::failover_global_cluster::FailoverGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
1479                Error::GlobalClusterNotFoundFault(inner)
1480            }
1481            crate::operation::failover_global_cluster::FailoverGlobalClusterError::InvalidDbClusterStateFault(inner) => {
1482                Error::InvalidDbClusterStateFault(inner)
1483            }
1484            crate::operation::failover_global_cluster::FailoverGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
1485                Error::InvalidGlobalClusterStateFault(inner)
1486            }
1487            crate::operation::failover_global_cluster::FailoverGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
1488        }
1489    }
1490}
1491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1492where
1493    R: Send + Sync + std::fmt::Debug + 'static,
1494{
1495    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1496        match err {
1497            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1498            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1499                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1500                source: err.into(),
1501            }),
1502        }
1503    }
1504}
1505impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1506    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1507        match err {
1508            crate::operation::list_tags_for_resource::ListTagsForResourceError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
1509            crate::operation::list_tags_for_resource::ListTagsForResourceError::DbInstanceNotFoundFault(inner) => {
1510                Error::DbInstanceNotFoundFault(inner)
1511            }
1512            crate::operation::list_tags_for_resource::ListTagsForResourceError::DbSnapshotNotFoundFault(inner) => {
1513                Error::DbSnapshotNotFoundFault(inner)
1514            }
1515            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1516        }
1517    }
1518}
1519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_cluster::ModifyDBClusterError, R>> for Error
1520where
1521    R: Send + Sync + std::fmt::Debug + 'static,
1522{
1523    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_cluster::ModifyDBClusterError, R>) -> Self {
1524        match err {
1525            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1526            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1527                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1528                source: err.into(),
1529            }),
1530        }
1531    }
1532}
1533impl From<crate::operation::modify_db_cluster::ModifyDBClusterError> for Error {
1534    fn from(err: crate::operation::modify_db_cluster::ModifyDBClusterError) -> Self {
1535        match err {
1536            crate::operation::modify_db_cluster::ModifyDBClusterError::DbClusterAlreadyExistsFault(inner) => {
1537                Error::DbClusterAlreadyExistsFault(inner)
1538            }
1539            crate::operation::modify_db_cluster::ModifyDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
1540            crate::operation::modify_db_cluster::ModifyDBClusterError::DbClusterParameterGroupNotFoundFault(inner) => {
1541                Error::DbClusterParameterGroupNotFoundFault(inner)
1542            }
1543            crate::operation::modify_db_cluster::ModifyDBClusterError::DbSubnetGroupNotFoundFault(inner) => Error::DbSubnetGroupNotFoundFault(inner),
1544            crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
1545            crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbInstanceStateFault(inner) => {
1546                Error::InvalidDbInstanceStateFault(inner)
1547            }
1548            crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbSecurityGroupStateFault(inner) => {
1549                Error::InvalidDbSecurityGroupStateFault(inner)
1550            }
1551            crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidDbSubnetGroupStateFault(inner) => {
1552                Error::InvalidDbSubnetGroupStateFault(inner)
1553            }
1554            crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
1555            crate::operation::modify_db_cluster::ModifyDBClusterError::InvalidVpcNetworkStateFault(inner) => {
1556                Error::InvalidVpcNetworkStateFault(inner)
1557            }
1558            crate::operation::modify_db_cluster::ModifyDBClusterError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
1559            crate::operation::modify_db_cluster::ModifyDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
1560        }
1561    }
1562}
1563impl<R>
1564    From<
1565        ::aws_smithy_runtime_api::client::result::SdkError<
1566            crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError,
1567            R,
1568        >,
1569    > for Error
1570where
1571    R: Send + Sync + std::fmt::Debug + 'static,
1572{
1573    fn from(
1574        err: ::aws_smithy_runtime_api::client::result::SdkError<
1575            crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError,
1576            R,
1577        >,
1578    ) -> Self {
1579        match err {
1580            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1581            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1582                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1583                source: err.into(),
1584            }),
1585        }
1586    }
1587}
1588impl From<crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError> for Error {
1589    fn from(err: crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError) -> Self {
1590        match err {
1591            crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
1592                Error::DbParameterGroupNotFoundFault(inner)
1593            }
1594            crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError::InvalidDbParameterGroupStateFault(inner) => {
1595                Error::InvalidDbParameterGroupStateFault(inner)
1596            }
1597            crate::operation::modify_db_cluster_parameter_group::ModifyDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
1598        }
1599    }
1600}
1601impl<R>
1602    From<
1603        ::aws_smithy_runtime_api::client::result::SdkError<
1604            crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError,
1605            R,
1606        >,
1607    > for Error
1608where
1609    R: Send + Sync + std::fmt::Debug + 'static,
1610{
1611    fn from(
1612        err: ::aws_smithy_runtime_api::client::result::SdkError<
1613            crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError,
1614            R,
1615        >,
1616    ) -> Self {
1617        match err {
1618            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1619            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1620                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1621                source: err.into(),
1622            }),
1623        }
1624    }
1625}
1626impl From<crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError> for Error {
1627    fn from(err: crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError) -> Self {
1628        match err {
1629            crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::DbClusterSnapshotNotFoundFault(inner) => {
1630                Error::DbClusterSnapshotNotFoundFault(inner)
1631            }
1632            crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::InvalidDbClusterSnapshotStateFault(
1633                inner,
1634            ) => Error::InvalidDbClusterSnapshotStateFault(inner),
1635            crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::SharedSnapshotQuotaExceededFault(
1636                inner,
1637            ) => Error::SharedSnapshotQuotaExceededFault(inner),
1638            crate::operation::modify_db_cluster_snapshot_attribute::ModifyDBClusterSnapshotAttributeError::Unhandled(inner) => {
1639                Error::Unhandled(inner)
1640            }
1641        }
1642    }
1643}
1644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_instance::ModifyDBInstanceError, R>> for Error
1645where
1646    R: Send + Sync + std::fmt::Debug + 'static,
1647{
1648    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_instance::ModifyDBInstanceError, R>) -> Self {
1649        match err {
1650            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1651            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1652                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1653                source: err.into(),
1654            }),
1655        }
1656    }
1657}
1658impl From<crate::operation::modify_db_instance::ModifyDBInstanceError> for Error {
1659    fn from(err: crate::operation::modify_db_instance::ModifyDBInstanceError) -> Self {
1660        match err {
1661            crate::operation::modify_db_instance::ModifyDBInstanceError::AuthorizationNotFoundFault(inner) => {
1662                Error::AuthorizationNotFoundFault(inner)
1663            }
1664            crate::operation::modify_db_instance::ModifyDBInstanceError::CertificateNotFoundFault(inner) => Error::CertificateNotFoundFault(inner),
1665            crate::operation::modify_db_instance::ModifyDBInstanceError::DbInstanceAlreadyExistsFault(inner) => {
1666                Error::DbInstanceAlreadyExistsFault(inner)
1667            }
1668            crate::operation::modify_db_instance::ModifyDBInstanceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
1669            crate::operation::modify_db_instance::ModifyDBInstanceError::DbParameterGroupNotFoundFault(inner) => {
1670                Error::DbParameterGroupNotFoundFault(inner)
1671            }
1672            crate::operation::modify_db_instance::ModifyDBInstanceError::DbSecurityGroupNotFoundFault(inner) => {
1673                Error::DbSecurityGroupNotFoundFault(inner)
1674            }
1675            crate::operation::modify_db_instance::ModifyDBInstanceError::DbUpgradeDependencyFailureFault(inner) => {
1676                Error::DbUpgradeDependencyFailureFault(inner)
1677            }
1678            crate::operation::modify_db_instance::ModifyDBInstanceError::InsufficientDbInstanceCapacityFault(inner) => {
1679                Error::InsufficientDbInstanceCapacityFault(inner)
1680            }
1681            crate::operation::modify_db_instance::ModifyDBInstanceError::InvalidDbInstanceStateFault(inner) => {
1682                Error::InvalidDbInstanceStateFault(inner)
1683            }
1684            crate::operation::modify_db_instance::ModifyDBInstanceError::InvalidDbSecurityGroupStateFault(inner) => {
1685                Error::InvalidDbSecurityGroupStateFault(inner)
1686            }
1687            crate::operation::modify_db_instance::ModifyDBInstanceError::InvalidVpcNetworkStateFault(inner) => {
1688                Error::InvalidVpcNetworkStateFault(inner)
1689            }
1690            crate::operation::modify_db_instance::ModifyDBInstanceError::StorageQuotaExceededFault(inner) => Error::StorageQuotaExceededFault(inner),
1691            crate::operation::modify_db_instance::ModifyDBInstanceError::StorageTypeNotSupportedFault(inner) => {
1692                Error::StorageTypeNotSupportedFault(inner)
1693            }
1694            crate::operation::modify_db_instance::ModifyDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1695        }
1696    }
1697}
1698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError, R>> for Error
1699where
1700    R: Send + Sync + std::fmt::Debug + 'static,
1701{
1702    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError, R>) -> Self {
1703        match err {
1704            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1705            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1706                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1707                source: err.into(),
1708            }),
1709        }
1710    }
1711}
1712impl From<crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError> for Error {
1713    fn from(err: crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError) -> Self {
1714        match err {
1715            crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => {
1716                Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner)
1717            }
1718            crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::DbSubnetGroupNotFoundFault(inner) => {
1719                Error::DbSubnetGroupNotFoundFault(inner)
1720            }
1721            crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::DbSubnetQuotaExceededFault(inner) => {
1722                Error::DbSubnetQuotaExceededFault(inner)
1723            }
1724            crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
1725            crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::SubnetAlreadyInUse(inner) => Error::SubnetAlreadyInUse(inner),
1726            crate::operation::modify_db_subnet_group::ModifyDBSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1727        }
1728    }
1729}
1730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_event_subscription::ModifyEventSubscriptionError, R>>
1731    for Error
1732where
1733    R: Send + Sync + std::fmt::Debug + 'static,
1734{
1735    fn from(
1736        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_event_subscription::ModifyEventSubscriptionError, R>,
1737    ) -> Self {
1738        match err {
1739            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1740            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1741                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1742                source: err.into(),
1743            }),
1744        }
1745    }
1746}
1747impl From<crate::operation::modify_event_subscription::ModifyEventSubscriptionError> for Error {
1748    fn from(err: crate::operation::modify_event_subscription::ModifyEventSubscriptionError) -> Self {
1749        match err {
1750            crate::operation::modify_event_subscription::ModifyEventSubscriptionError::EventSubscriptionQuotaExceededFault(inner) => {
1751                Error::EventSubscriptionQuotaExceededFault(inner)
1752            }
1753            crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsInvalidTopicFault(inner) => {
1754                Error::SnsInvalidTopicFault(inner)
1755            }
1756            crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsNoAuthorizationFault(inner) => {
1757                Error::SnsNoAuthorizationFault(inner)
1758            }
1759            crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsTopicArnNotFoundFault(inner) => {
1760                Error::SnsTopicArnNotFoundFault(inner)
1761            }
1762            crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionCategoryNotFoundFault(inner) => {
1763                Error::SubscriptionCategoryNotFoundFault(inner)
1764            }
1765            crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionNotFoundFault(inner) => {
1766                Error::SubscriptionNotFoundFault(inner)
1767            }
1768            crate::operation::modify_event_subscription::ModifyEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1769        }
1770    }
1771}
1772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_global_cluster::ModifyGlobalClusterError, R>> for Error
1773where
1774    R: Send + Sync + std::fmt::Debug + 'static,
1775{
1776    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_global_cluster::ModifyGlobalClusterError, R>) -> Self {
1777        match err {
1778            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1779            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1780                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1781                source: err.into(),
1782            }),
1783        }
1784    }
1785}
1786impl From<crate::operation::modify_global_cluster::ModifyGlobalClusterError> for Error {
1787    fn from(err: crate::operation::modify_global_cluster::ModifyGlobalClusterError) -> Self {
1788        match err {
1789            crate::operation::modify_global_cluster::ModifyGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
1790                Error::GlobalClusterNotFoundFault(inner)
1791            }
1792            crate::operation::modify_global_cluster::ModifyGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
1793                Error::InvalidGlobalClusterStateFault(inner)
1794            }
1795            crate::operation::modify_global_cluster::ModifyGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
1796        }
1797    }
1798}
1799impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_db_instance::RebootDBInstanceError, R>> for Error
1800where
1801    R: Send + Sync + std::fmt::Debug + 'static,
1802{
1803    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_db_instance::RebootDBInstanceError, R>) -> Self {
1804        match err {
1805            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1806            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1807                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1808                source: err.into(),
1809            }),
1810        }
1811    }
1812}
1813impl From<crate::operation::reboot_db_instance::RebootDBInstanceError> for Error {
1814    fn from(err: crate::operation::reboot_db_instance::RebootDBInstanceError) -> Self {
1815        match err {
1816            crate::operation::reboot_db_instance::RebootDBInstanceError::DbInstanceNotFoundFault(inner) => Error::DbInstanceNotFoundFault(inner),
1817            crate::operation::reboot_db_instance::RebootDBInstanceError::InvalidDbInstanceStateFault(inner) => {
1818                Error::InvalidDbInstanceStateFault(inner)
1819            }
1820            crate::operation::reboot_db_instance::RebootDBInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1821        }
1822    }
1823}
1824impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError, R>>
1825    for Error
1826where
1827    R: Send + Sync + std::fmt::Debug + 'static,
1828{
1829    fn from(
1830        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError, R>,
1831    ) -> Self {
1832        match err {
1833            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1834            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1835                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1836                source: err.into(),
1837            }),
1838        }
1839    }
1840}
1841impl From<crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError> for Error {
1842    fn from(err: crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError) -> Self {
1843        match err {
1844            crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::DbClusterNotFoundFault(inner) => {
1845                Error::DbClusterNotFoundFault(inner)
1846            }
1847            crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
1848                Error::GlobalClusterNotFoundFault(inner)
1849            }
1850            crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
1851                Error::InvalidGlobalClusterStateFault(inner)
1852            }
1853            crate::operation::remove_from_global_cluster::RemoveFromGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
1854        }
1855    }
1856}
1857impl<R>
1858    From<
1859        ::aws_smithy_runtime_api::client::result::SdkError<
1860            crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError,
1861            R,
1862        >,
1863    > for Error
1864where
1865    R: Send + Sync + std::fmt::Debug + 'static,
1866{
1867    fn from(
1868        err: ::aws_smithy_runtime_api::client::result::SdkError<
1869            crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError,
1870            R,
1871        >,
1872    ) -> Self {
1873        match err {
1874            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1875            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1876                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1877                source: err.into(),
1878            }),
1879        }
1880    }
1881}
1882impl From<crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError> for Error {
1883    fn from(err: crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError) -> Self {
1884        match err {
1885            crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError::SourceNotFoundFault(inner) => {
1886                Error::SourceNotFoundFault(inner)
1887            }
1888            crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError::SubscriptionNotFoundFault(
1889                inner,
1890            ) => Error::SubscriptionNotFoundFault(inner),
1891            crate::operation::remove_source_identifier_from_subscription::RemoveSourceIdentifierFromSubscriptionError::Unhandled(inner) => {
1892                Error::Unhandled(inner)
1893            }
1894        }
1895    }
1896}
1897impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError, R>>
1898    for Error
1899where
1900    R: Send + Sync + std::fmt::Debug + 'static,
1901{
1902    fn from(
1903        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError, R>,
1904    ) -> Self {
1905        match err {
1906            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1907            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1908                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1909                source: err.into(),
1910            }),
1911        }
1912    }
1913}
1914impl From<crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError> for Error {
1915    fn from(err: crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError) -> Self {
1916        match err {
1917            crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::DbClusterNotFoundFault(inner) => {
1918                Error::DbClusterNotFoundFault(inner)
1919            }
1920            crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::DbInstanceNotFoundFault(inner) => {
1921                Error::DbInstanceNotFoundFault(inner)
1922            }
1923            crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::DbSnapshotNotFoundFault(inner) => {
1924                Error::DbSnapshotNotFoundFault(inner)
1925            }
1926            crate::operation::remove_tags_from_resource::RemoveTagsFromResourceError::Unhandled(inner) => Error::Unhandled(inner),
1927        }
1928    }
1929}
1930impl<R>
1931    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError, R>>
1932    for Error
1933where
1934    R: Send + Sync + std::fmt::Debug + 'static,
1935{
1936    fn from(
1937        err: ::aws_smithy_runtime_api::client::result::SdkError<
1938            crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError,
1939            R,
1940        >,
1941    ) -> Self {
1942        match err {
1943            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1944            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1945                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1946                source: err.into(),
1947            }),
1948        }
1949    }
1950}
1951impl From<crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError> for Error {
1952    fn from(err: crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError) -> Self {
1953        match err {
1954            crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError::DbParameterGroupNotFoundFault(inner) => {
1955                Error::DbParameterGroupNotFoundFault(inner)
1956            }
1957            crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError::InvalidDbParameterGroupStateFault(inner) => {
1958                Error::InvalidDbParameterGroupStateFault(inner)
1959            }
1960            crate::operation::reset_db_cluster_parameter_group::ResetDBClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
1961        }
1962    }
1963}
1964impl<R>
1965    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError, R>>
1966    for Error
1967where
1968    R: Send + Sync + std::fmt::Debug + 'static,
1969{
1970    fn from(
1971        err: ::aws_smithy_runtime_api::client::result::SdkError<
1972            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError,
1973            R,
1974        >,
1975    ) -> Self {
1976        match err {
1977            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1978            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1979                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1980                source: err.into(),
1981            }),
1982        }
1983    }
1984}
1985impl From<crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError> for Error {
1986    fn from(err: crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError) -> Self {
1987        match err {
1988            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbClusterAlreadyExistsFault(inner) => {
1989                Error::DbClusterAlreadyExistsFault(inner)
1990            }
1991            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbClusterQuotaExceededFault(inner) => {
1992                Error::DbClusterQuotaExceededFault(inner)
1993            }
1994            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbClusterSnapshotNotFoundFault(inner) => {
1995                Error::DbClusterSnapshotNotFoundFault(inner)
1996            }
1997            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbSnapshotNotFoundFault(inner) => {
1998                Error::DbSnapshotNotFoundFault(inner)
1999            }
2000            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::DbSubnetGroupNotFoundFault(inner) => {
2001                Error::DbSubnetGroupNotFoundFault(inner)
2002            }
2003            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InsufficientDbClusterCapacityFault(inner) => {
2004                Error::InsufficientDbClusterCapacityFault(inner)
2005            }
2006            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InsufficientStorageClusterCapacityFault(inner) => {
2007                Error::InsufficientStorageClusterCapacityFault(inner)
2008            }
2009            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidDbClusterSnapshotStateFault(inner) => {
2010                Error::InvalidDbClusterSnapshotStateFault(inner)
2011            }
2012            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidDbSnapshotStateFault(inner) => {
2013                Error::InvalidDbSnapshotStateFault(inner)
2014            }
2015            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidRestoreFault(inner) => {
2016                Error::InvalidRestoreFault(inner)
2017            }
2018            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidSubnet(inner) => {
2019                Error::InvalidSubnet(inner)
2020            }
2021            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::InvalidVpcNetworkStateFault(inner) => {
2022                Error::InvalidVpcNetworkStateFault(inner)
2023            }
2024            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::KmsKeyNotAccessibleFault(inner) => {
2025                Error::KmsKeyNotAccessibleFault(inner)
2026            }
2027            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::StorageQuotaExceededFault(inner) => {
2028                Error::StorageQuotaExceededFault(inner)
2029            }
2030            crate::operation::restore_db_cluster_from_snapshot::RestoreDBClusterFromSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
2031        }
2032    }
2033}
2034impl<R>
2035    From<
2036        ::aws_smithy_runtime_api::client::result::SdkError<
2037            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError,
2038            R,
2039        >,
2040    > for Error
2041where
2042    R: Send + Sync + std::fmt::Debug + 'static,
2043{
2044    fn from(
2045        err: ::aws_smithy_runtime_api::client::result::SdkError<
2046            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError,
2047            R,
2048        >,
2049    ) -> Self {
2050        match err {
2051            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2052            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2053                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2054                source: err.into(),
2055            }),
2056        }
2057    }
2058}
2059impl From<crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError> for Error {
2060    fn from(err: crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError) -> Self {
2061        match err {
2062            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterAlreadyExistsFault(inner) => {
2063                Error::DbClusterAlreadyExistsFault(inner)
2064            }
2065            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterNotFoundFault(inner) => {
2066                Error::DbClusterNotFoundFault(inner)
2067            }
2068            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterQuotaExceededFault(inner) => {
2069                Error::DbClusterQuotaExceededFault(inner)
2070            }
2071            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbClusterSnapshotNotFoundFault(inner) => {
2072                Error::DbClusterSnapshotNotFoundFault(inner)
2073            }
2074            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::DbSubnetGroupNotFoundFault(inner) => {
2075                Error::DbSubnetGroupNotFoundFault(inner)
2076            }
2077            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InsufficientDbClusterCapacityFault(inner) => {
2078                Error::InsufficientDbClusterCapacityFault(inner)
2079            }
2080            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InsufficientStorageClusterCapacityFault(
2081                inner,
2082            ) => Error::InsufficientStorageClusterCapacityFault(inner),
2083            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidDbClusterSnapshotStateFault(inner) => {
2084                Error::InvalidDbClusterSnapshotStateFault(inner)
2085            }
2086            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidDbClusterStateFault(inner) => {
2087                Error::InvalidDbClusterStateFault(inner)
2088            }
2089            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidDbSnapshotStateFault(inner) => {
2090                Error::InvalidDbSnapshotStateFault(inner)
2091            }
2092            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidRestoreFault(inner) => {
2093                Error::InvalidRestoreFault(inner)
2094            }
2095            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidSubnet(inner) => {
2096                Error::InvalidSubnet(inner)
2097            }
2098            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::InvalidVpcNetworkStateFault(inner) => {
2099                Error::InvalidVpcNetworkStateFault(inner)
2100            }
2101            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::KmsKeyNotAccessibleFault(inner) => {
2102                Error::KmsKeyNotAccessibleFault(inner)
2103            }
2104            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::StorageQuotaExceededFault(inner) => {
2105                Error::StorageQuotaExceededFault(inner)
2106            }
2107            crate::operation::restore_db_cluster_to_point_in_time::RestoreDBClusterToPointInTimeError::Unhandled(inner) => Error::Unhandled(inner),
2108        }
2109    }
2110}
2111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_db_cluster::StartDBClusterError, R>> for Error
2112where
2113    R: Send + Sync + std::fmt::Debug + 'static,
2114{
2115    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_db_cluster::StartDBClusterError, R>) -> Self {
2116        match err {
2117            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2118            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2119                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2120                source: err.into(),
2121            }),
2122        }
2123    }
2124}
2125impl From<crate::operation::start_db_cluster::StartDBClusterError> for Error {
2126    fn from(err: crate::operation::start_db_cluster::StartDBClusterError) -> Self {
2127        match err {
2128            crate::operation::start_db_cluster::StartDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
2129            crate::operation::start_db_cluster::StartDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
2130            crate::operation::start_db_cluster::StartDBClusterError::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner),
2131            crate::operation::start_db_cluster::StartDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
2132        }
2133    }
2134}
2135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_db_cluster::StopDBClusterError, R>> for Error
2136where
2137    R: Send + Sync + std::fmt::Debug + 'static,
2138{
2139    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_db_cluster::StopDBClusterError, R>) -> Self {
2140        match err {
2141            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2142            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2143                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2144                source: err.into(),
2145            }),
2146        }
2147    }
2148}
2149impl From<crate::operation::stop_db_cluster::StopDBClusterError> for Error {
2150    fn from(err: crate::operation::stop_db_cluster::StopDBClusterError) -> Self {
2151        match err {
2152            crate::operation::stop_db_cluster::StopDBClusterError::DbClusterNotFoundFault(inner) => Error::DbClusterNotFoundFault(inner),
2153            crate::operation::stop_db_cluster::StopDBClusterError::InvalidDbClusterStateFault(inner) => Error::InvalidDbClusterStateFault(inner),
2154            crate::operation::stop_db_cluster::StopDBClusterError::InvalidDbInstanceStateFault(inner) => Error::InvalidDbInstanceStateFault(inner),
2155            crate::operation::stop_db_cluster::StopDBClusterError::Unhandled(inner) => Error::Unhandled(inner),
2156        }
2157    }
2158}
2159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError, R>>
2160    for Error
2161where
2162    R: Send + Sync + std::fmt::Debug + 'static,
2163{
2164    fn from(
2165        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError, R>,
2166    ) -> Self {
2167        match err {
2168            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2169            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2170                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2171                source: err.into(),
2172            }),
2173        }
2174    }
2175}
2176impl From<crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError> for Error {
2177    fn from(err: crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError) -> Self {
2178        match err {
2179            crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError::DbClusterNotFoundFault(inner) => {
2180                Error::DbClusterNotFoundFault(inner)
2181            }
2182            crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError::GlobalClusterNotFoundFault(inner) => {
2183                Error::GlobalClusterNotFoundFault(inner)
2184            }
2185            crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError::InvalidDbClusterStateFault(inner) => {
2186                Error::InvalidDbClusterStateFault(inner)
2187            }
2188            crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError::InvalidGlobalClusterStateFault(inner) => {
2189                Error::InvalidGlobalClusterStateFault(inner)
2190            }
2191            crate::operation::switchover_global_cluster::SwitchoverGlobalClusterError::Unhandled(inner) => Error::Unhandled(inner),
2192        }
2193    }
2194}
2195impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2196where
2197    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2198    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2199{
2200    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2201        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2202            meta: ::std::default::Default::default(),
2203            source: err.into(),
2204        })
2205    }
2206}
2207impl ::std::error::Error for Error {
2208    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2209        match self {
2210            Error::AuthorizationNotFoundFault(inner) => inner.source(),
2211            Error::CertificateNotFoundFault(inner) => inner.source(),
2212            Error::DbClusterAlreadyExistsFault(inner) => inner.source(),
2213            Error::DbClusterNotFoundFault(inner) => inner.source(),
2214            Error::DbClusterParameterGroupNotFoundFault(inner) => inner.source(),
2215            Error::DbClusterQuotaExceededFault(inner) => inner.source(),
2216            Error::DbClusterSnapshotAlreadyExistsFault(inner) => inner.source(),
2217            Error::DbClusterSnapshotNotFoundFault(inner) => inner.source(),
2218            Error::DbInstanceAlreadyExistsFault(inner) => inner.source(),
2219            Error::DbInstanceNotFoundFault(inner) => inner.source(),
2220            Error::DbParameterGroupAlreadyExistsFault(inner) => inner.source(),
2221            Error::DbParameterGroupNotFoundFault(inner) => inner.source(),
2222            Error::DbParameterGroupQuotaExceededFault(inner) => inner.source(),
2223            Error::DbSecurityGroupNotFoundFault(inner) => inner.source(),
2224            Error::DbSnapshotAlreadyExistsFault(inner) => inner.source(),
2225            Error::DbSnapshotNotFoundFault(inner) => inner.source(),
2226            Error::DbSubnetGroupAlreadyExistsFault(inner) => inner.source(),
2227            Error::DbSubnetGroupDoesNotCoverEnoughAZs(inner) => inner.source(),
2228            Error::DbSubnetGroupNotFoundFault(inner) => inner.source(),
2229            Error::DbSubnetGroupQuotaExceededFault(inner) => inner.source(),
2230            Error::DbSubnetQuotaExceededFault(inner) => inner.source(),
2231            Error::DbUpgradeDependencyFailureFault(inner) => inner.source(),
2232            Error::EventSubscriptionQuotaExceededFault(inner) => inner.source(),
2233            Error::GlobalClusterAlreadyExistsFault(inner) => inner.source(),
2234            Error::GlobalClusterNotFoundFault(inner) => inner.source(),
2235            Error::GlobalClusterQuotaExceededFault(inner) => inner.source(),
2236            Error::InstanceQuotaExceededFault(inner) => inner.source(),
2237            Error::InsufficientDbClusterCapacityFault(inner) => inner.source(),
2238            Error::InsufficientDbInstanceCapacityFault(inner) => inner.source(),
2239            Error::InsufficientStorageClusterCapacityFault(inner) => inner.source(),
2240            Error::InvalidDbClusterSnapshotStateFault(inner) => inner.source(),
2241            Error::InvalidDbClusterStateFault(inner) => inner.source(),
2242            Error::InvalidDbInstanceStateFault(inner) => inner.source(),
2243            Error::InvalidDbParameterGroupStateFault(inner) => inner.source(),
2244            Error::InvalidDbSecurityGroupStateFault(inner) => inner.source(),
2245            Error::InvalidDbSnapshotStateFault(inner) => inner.source(),
2246            Error::InvalidDbSubnetGroupStateFault(inner) => inner.source(),
2247            Error::InvalidDbSubnetStateFault(inner) => inner.source(),
2248            Error::InvalidEventSubscriptionStateFault(inner) => inner.source(),
2249            Error::InvalidGlobalClusterStateFault(inner) => inner.source(),
2250            Error::InvalidRestoreFault(inner) => inner.source(),
2251            Error::InvalidSubnet(inner) => inner.source(),
2252            Error::InvalidVpcNetworkStateFault(inner) => inner.source(),
2253            Error::KmsKeyNotAccessibleFault(inner) => inner.source(),
2254            Error::ResourceNotFoundFault(inner) => inner.source(),
2255            Error::SnsInvalidTopicFault(inner) => inner.source(),
2256            Error::SnsNoAuthorizationFault(inner) => inner.source(),
2257            Error::SnsTopicArnNotFoundFault(inner) => inner.source(),
2258            Error::SharedSnapshotQuotaExceededFault(inner) => inner.source(),
2259            Error::SnapshotQuotaExceededFault(inner) => inner.source(),
2260            Error::SourceNotFoundFault(inner) => inner.source(),
2261            Error::StorageQuotaExceededFault(inner) => inner.source(),
2262            Error::StorageTypeNotSupportedFault(inner) => inner.source(),
2263            Error::SubnetAlreadyInUse(inner) => inner.source(),
2264            Error::SubscriptionAlreadyExistFault(inner) => inner.source(),
2265            Error::SubscriptionCategoryNotFoundFault(inner) => inner.source(),
2266            Error::SubscriptionNotFoundFault(inner) => inner.source(),
2267            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2268        }
2269    }
2270}
2271impl ::aws_types::request_id::RequestId for Error {
2272    fn request_id(&self) -> Option<&str> {
2273        match self {
2274            Self::AuthorizationNotFoundFault(e) => e.request_id(),
2275            Self::CertificateNotFoundFault(e) => e.request_id(),
2276            Self::DbClusterAlreadyExistsFault(e) => e.request_id(),
2277            Self::DbClusterNotFoundFault(e) => e.request_id(),
2278            Self::DbClusterParameterGroupNotFoundFault(e) => e.request_id(),
2279            Self::DbClusterQuotaExceededFault(e) => e.request_id(),
2280            Self::DbClusterSnapshotAlreadyExistsFault(e) => e.request_id(),
2281            Self::DbClusterSnapshotNotFoundFault(e) => e.request_id(),
2282            Self::DbInstanceAlreadyExistsFault(e) => e.request_id(),
2283            Self::DbInstanceNotFoundFault(e) => e.request_id(),
2284            Self::DbParameterGroupAlreadyExistsFault(e) => e.request_id(),
2285            Self::DbParameterGroupNotFoundFault(e) => e.request_id(),
2286            Self::DbParameterGroupQuotaExceededFault(e) => e.request_id(),
2287            Self::DbSecurityGroupNotFoundFault(e) => e.request_id(),
2288            Self::DbSnapshotAlreadyExistsFault(e) => e.request_id(),
2289            Self::DbSnapshotNotFoundFault(e) => e.request_id(),
2290            Self::DbSubnetGroupAlreadyExistsFault(e) => e.request_id(),
2291            Self::DbSubnetGroupDoesNotCoverEnoughAZs(e) => e.request_id(),
2292            Self::DbSubnetGroupNotFoundFault(e) => e.request_id(),
2293            Self::DbSubnetGroupQuotaExceededFault(e) => e.request_id(),
2294            Self::DbSubnetQuotaExceededFault(e) => e.request_id(),
2295            Self::DbUpgradeDependencyFailureFault(e) => e.request_id(),
2296            Self::EventSubscriptionQuotaExceededFault(e) => e.request_id(),
2297            Self::GlobalClusterAlreadyExistsFault(e) => e.request_id(),
2298            Self::GlobalClusterNotFoundFault(e) => e.request_id(),
2299            Self::GlobalClusterQuotaExceededFault(e) => e.request_id(),
2300            Self::InstanceQuotaExceededFault(e) => e.request_id(),
2301            Self::InsufficientDbClusterCapacityFault(e) => e.request_id(),
2302            Self::InsufficientDbInstanceCapacityFault(e) => e.request_id(),
2303            Self::InsufficientStorageClusterCapacityFault(e) => e.request_id(),
2304            Self::InvalidDbClusterSnapshotStateFault(e) => e.request_id(),
2305            Self::InvalidDbClusterStateFault(e) => e.request_id(),
2306            Self::InvalidDbInstanceStateFault(e) => e.request_id(),
2307            Self::InvalidDbParameterGroupStateFault(e) => e.request_id(),
2308            Self::InvalidDbSecurityGroupStateFault(e) => e.request_id(),
2309            Self::InvalidDbSnapshotStateFault(e) => e.request_id(),
2310            Self::InvalidDbSubnetGroupStateFault(e) => e.request_id(),
2311            Self::InvalidDbSubnetStateFault(e) => e.request_id(),
2312            Self::InvalidEventSubscriptionStateFault(e) => e.request_id(),
2313            Self::InvalidGlobalClusterStateFault(e) => e.request_id(),
2314            Self::InvalidRestoreFault(e) => e.request_id(),
2315            Self::InvalidSubnet(e) => e.request_id(),
2316            Self::InvalidVpcNetworkStateFault(e) => e.request_id(),
2317            Self::KmsKeyNotAccessibleFault(e) => e.request_id(),
2318            Self::ResourceNotFoundFault(e) => e.request_id(),
2319            Self::SnsInvalidTopicFault(e) => e.request_id(),
2320            Self::SnsNoAuthorizationFault(e) => e.request_id(),
2321            Self::SnsTopicArnNotFoundFault(e) => e.request_id(),
2322            Self::SharedSnapshotQuotaExceededFault(e) => e.request_id(),
2323            Self::SnapshotQuotaExceededFault(e) => e.request_id(),
2324            Self::SourceNotFoundFault(e) => e.request_id(),
2325            Self::StorageQuotaExceededFault(e) => e.request_id(),
2326            Self::StorageTypeNotSupportedFault(e) => e.request_id(),
2327            Self::SubnetAlreadyInUse(e) => e.request_id(),
2328            Self::SubscriptionAlreadyExistFault(e) => e.request_id(),
2329            Self::SubscriptionCategoryNotFoundFault(e) => e.request_id(),
2330            Self::SubscriptionNotFoundFault(e) => e.request_id(),
2331            Self::Unhandled(e) => e.meta.request_id(),
2332        }
2333    }
2334}