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