aws_sdk_mailmanager/
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>Occurs when a user is denied access to a specific resource or action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request configuration has conflicts. For details, see the accompanying error message.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Occurs when a requested resource is not found.</p>
11    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
12    /// <p>Occurs when an operation exceeds a predefined service quota or limit.</p>
13    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
14    /// <p>Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.</p>
15    ThrottlingException(crate::types::error::ThrottlingException),
16    /// <p>The request validation has failed. For details, see the accompanying error message.</p>
17    ValidationException(crate::types::error::ValidationException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::AccessDeniedException(inner) => inner.fmt(f),
31            Error::ConflictException(inner) => inner.fmt(f),
32            Error::ResourceNotFoundException(inner) => inner.fmt(f),
33            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
34            Error::ThrottlingException(inner) => inner.fmt(f),
35            Error::ValidationException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::AccessDeniedException(inner) => inner.meta(),
58            Self::ConflictException(inner) => inner.meta(),
59            Self::ResourceNotFoundException(inner) => inner.meta(),
60            Self::ServiceQuotaExceededException(inner) => inner.meta(),
61            Self::ThrottlingException(inner) => inner.meta(),
62            Self::ValidationException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_addon_instance::CreateAddonInstanceError, R>> for Error
68where
69    R: Send + Sync + std::fmt::Debug + 'static,
70{
71    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_addon_instance::CreateAddonInstanceError, R>) -> Self {
72        match err {
73            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
74            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
76                source: err.into(),
77            }),
78        }
79    }
80}
81impl From<crate::operation::create_addon_instance::CreateAddonInstanceError> for Error {
82    fn from(err: crate::operation::create_addon_instance::CreateAddonInstanceError) -> Self {
83        match err {
84            crate::operation::create_addon_instance::CreateAddonInstanceError::ConflictException(inner) => Error::ConflictException(inner),
85            crate::operation::create_addon_instance::CreateAddonInstanceError::ResourceNotFoundException(inner) => {
86                Error::ResourceNotFoundException(inner)
87            }
88            crate::operation::create_addon_instance::CreateAddonInstanceError::ServiceQuotaExceededException(inner) => {
89                Error::ServiceQuotaExceededException(inner)
90            }
91            crate::operation::create_addon_instance::CreateAddonInstanceError::ValidationException(inner) => Error::ValidationException(inner),
92            crate::operation::create_addon_instance::CreateAddonInstanceError::Unhandled(inner) => Error::Unhandled(inner),
93        }
94    }
95}
96impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_addon_subscription::CreateAddonSubscriptionError, R>>
97    for Error
98where
99    R: Send + Sync + std::fmt::Debug + 'static,
100{
101    fn from(
102        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_addon_subscription::CreateAddonSubscriptionError, R>,
103    ) -> Self {
104        match err {
105            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
106            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
107                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
108                source: err.into(),
109            }),
110        }
111    }
112}
113impl From<crate::operation::create_addon_subscription::CreateAddonSubscriptionError> for Error {
114    fn from(err: crate::operation::create_addon_subscription::CreateAddonSubscriptionError) -> Self {
115        match err {
116            crate::operation::create_addon_subscription::CreateAddonSubscriptionError::ConflictException(inner) => Error::ConflictException(inner),
117            crate::operation::create_addon_subscription::CreateAddonSubscriptionError::ServiceQuotaExceededException(inner) => {
118                Error::ServiceQuotaExceededException(inner)
119            }
120            crate::operation::create_addon_subscription::CreateAddonSubscriptionError::ValidationException(inner) => {
121                Error::ValidationException(inner)
122            }
123            crate::operation::create_addon_subscription::CreateAddonSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
124        }
125    }
126}
127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_address_list::CreateAddressListError, R>> for Error
128where
129    R: Send + Sync + std::fmt::Debug + 'static,
130{
131    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_address_list::CreateAddressListError, R>) -> Self {
132        match err {
133            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
134            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
135                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
136                source: err.into(),
137            }),
138        }
139    }
140}
141impl From<crate::operation::create_address_list::CreateAddressListError> for Error {
142    fn from(err: crate::operation::create_address_list::CreateAddressListError) -> Self {
143        match err {
144            crate::operation::create_address_list::CreateAddressListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
145            crate::operation::create_address_list::CreateAddressListError::ConflictException(inner) => Error::ConflictException(inner),
146            crate::operation::create_address_list::CreateAddressListError::ServiceQuotaExceededException(inner) => {
147                Error::ServiceQuotaExceededException(inner)
148            }
149            crate::operation::create_address_list::CreateAddressListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
150            crate::operation::create_address_list::CreateAddressListError::ValidationException(inner) => Error::ValidationException(inner),
151            crate::operation::create_address_list::CreateAddressListError::Unhandled(inner) => Error::Unhandled(inner),
152        }
153    }
154}
155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_address_list_import_job::CreateAddressListImportJobError, R>>
156    for Error
157where
158    R: Send + Sync + std::fmt::Debug + 'static,
159{
160    fn from(
161        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_address_list_import_job::CreateAddressListImportJobError, R>,
162    ) -> Self {
163        match err {
164            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
165            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
166                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
167                source: err.into(),
168            }),
169        }
170    }
171}
172impl From<crate::operation::create_address_list_import_job::CreateAddressListImportJobError> for Error {
173    fn from(err: crate::operation::create_address_list_import_job::CreateAddressListImportJobError) -> Self {
174        match err {
175            crate::operation::create_address_list_import_job::CreateAddressListImportJobError::AccessDeniedException(inner) => {
176                Error::AccessDeniedException(inner)
177            }
178            crate::operation::create_address_list_import_job::CreateAddressListImportJobError::ResourceNotFoundException(inner) => {
179                Error::ResourceNotFoundException(inner)
180            }
181            crate::operation::create_address_list_import_job::CreateAddressListImportJobError::ThrottlingException(inner) => {
182                Error::ThrottlingException(inner)
183            }
184            crate::operation::create_address_list_import_job::CreateAddressListImportJobError::ValidationException(inner) => {
185                Error::ValidationException(inner)
186            }
187            crate::operation::create_address_list_import_job::CreateAddressListImportJobError::Unhandled(inner) => Error::Unhandled(inner),
188        }
189    }
190}
191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_archive::CreateArchiveError, R>> for Error
192where
193    R: Send + Sync + std::fmt::Debug + 'static,
194{
195    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_archive::CreateArchiveError, R>) -> Self {
196        match err {
197            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
198            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
199                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
200                source: err.into(),
201            }),
202        }
203    }
204}
205impl From<crate::operation::create_archive::CreateArchiveError> for Error {
206    fn from(err: crate::operation::create_archive::CreateArchiveError) -> Self {
207        match err {
208            crate::operation::create_archive::CreateArchiveError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
209            crate::operation::create_archive::CreateArchiveError::ConflictException(inner) => Error::ConflictException(inner),
210            crate::operation::create_archive::CreateArchiveError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
211            crate::operation::create_archive::CreateArchiveError::ThrottlingException(inner) => Error::ThrottlingException(inner),
212            crate::operation::create_archive::CreateArchiveError::ValidationException(inner) => Error::ValidationException(inner),
213            crate::operation::create_archive::CreateArchiveError::Unhandled(inner) => Error::Unhandled(inner),
214        }
215    }
216}
217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ingress_point::CreateIngressPointError, R>> for Error
218where
219    R: Send + Sync + std::fmt::Debug + 'static,
220{
221    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ingress_point::CreateIngressPointError, R>) -> Self {
222        match err {
223            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
224            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
225                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
226                source: err.into(),
227            }),
228        }
229    }
230}
231impl From<crate::operation::create_ingress_point::CreateIngressPointError> for Error {
232    fn from(err: crate::operation::create_ingress_point::CreateIngressPointError) -> Self {
233        match err {
234            crate::operation::create_ingress_point::CreateIngressPointError::ConflictException(inner) => Error::ConflictException(inner),
235            crate::operation::create_ingress_point::CreateIngressPointError::ServiceQuotaExceededException(inner) => {
236                Error::ServiceQuotaExceededException(inner)
237            }
238            crate::operation::create_ingress_point::CreateIngressPointError::ValidationException(inner) => Error::ValidationException(inner),
239            crate::operation::create_ingress_point::CreateIngressPointError::Unhandled(inner) => Error::Unhandled(inner),
240        }
241    }
242}
243impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_relay::CreateRelayError, R>> for Error
244where
245    R: Send + Sync + std::fmt::Debug + 'static,
246{
247    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_relay::CreateRelayError, R>) -> Self {
248        match err {
249            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
250            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
251                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
252                source: err.into(),
253            }),
254        }
255    }
256}
257impl From<crate::operation::create_relay::CreateRelayError> for Error {
258    fn from(err: crate::operation::create_relay::CreateRelayError) -> Self {
259        match err {
260            crate::operation::create_relay::CreateRelayError::ConflictException(inner) => Error::ConflictException(inner),
261            crate::operation::create_relay::CreateRelayError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
262            crate::operation::create_relay::CreateRelayError::ValidationException(inner) => Error::ValidationException(inner),
263            crate::operation::create_relay::CreateRelayError::Unhandled(inner) => Error::Unhandled(inner),
264        }
265    }
266}
267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_set::CreateRuleSetError, R>> for Error
268where
269    R: Send + Sync + std::fmt::Debug + 'static,
270{
271    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_set::CreateRuleSetError, R>) -> Self {
272        match err {
273            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
274            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
275                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
276                source: err.into(),
277            }),
278        }
279    }
280}
281impl From<crate::operation::create_rule_set::CreateRuleSetError> for Error {
282    fn from(err: crate::operation::create_rule_set::CreateRuleSetError) -> Self {
283        match err {
284            crate::operation::create_rule_set::CreateRuleSetError::ConflictException(inner) => Error::ConflictException(inner),
285            crate::operation::create_rule_set::CreateRuleSetError::ServiceQuotaExceededException(inner) => {
286                Error::ServiceQuotaExceededException(inner)
287            }
288            crate::operation::create_rule_set::CreateRuleSetError::ValidationException(inner) => Error::ValidationException(inner),
289            crate::operation::create_rule_set::CreateRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
290        }
291    }
292}
293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_policy::CreateTrafficPolicyError, R>> for Error
294where
295    R: Send + Sync + std::fmt::Debug + 'static,
296{
297    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_traffic_policy::CreateTrafficPolicyError, R>) -> Self {
298        match err {
299            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
300            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
301                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
302                source: err.into(),
303            }),
304        }
305    }
306}
307impl From<crate::operation::create_traffic_policy::CreateTrafficPolicyError> for Error {
308    fn from(err: crate::operation::create_traffic_policy::CreateTrafficPolicyError) -> Self {
309        match err {
310            crate::operation::create_traffic_policy::CreateTrafficPolicyError::ConflictException(inner) => Error::ConflictException(inner),
311            crate::operation::create_traffic_policy::CreateTrafficPolicyError::ServiceQuotaExceededException(inner) => {
312                Error::ServiceQuotaExceededException(inner)
313            }
314            crate::operation::create_traffic_policy::CreateTrafficPolicyError::ValidationException(inner) => Error::ValidationException(inner),
315            crate::operation::create_traffic_policy::CreateTrafficPolicyError::Unhandled(inner) => Error::Unhandled(inner),
316        }
317    }
318}
319impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_addon_instance::DeleteAddonInstanceError, R>> for Error
320where
321    R: Send + Sync + std::fmt::Debug + 'static,
322{
323    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_addon_instance::DeleteAddonInstanceError, R>) -> Self {
324        match err {
325            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
326            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
327                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
328                source: err.into(),
329            }),
330        }
331    }
332}
333impl From<crate::operation::delete_addon_instance::DeleteAddonInstanceError> for Error {
334    fn from(err: crate::operation::delete_addon_instance::DeleteAddonInstanceError) -> Self {
335        match err {
336            crate::operation::delete_addon_instance::DeleteAddonInstanceError::ConflictException(inner) => Error::ConflictException(inner),
337            crate::operation::delete_addon_instance::DeleteAddonInstanceError::ValidationException(inner) => Error::ValidationException(inner),
338            crate::operation::delete_addon_instance::DeleteAddonInstanceError::Unhandled(inner) => Error::Unhandled(inner),
339        }
340    }
341}
342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_addon_subscription::DeleteAddonSubscriptionError, 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<crate::operation::delete_addon_subscription::DeleteAddonSubscriptionError, R>,
349    ) -> Self {
350        match err {
351            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
352            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
353                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
354                source: err.into(),
355            }),
356        }
357    }
358}
359impl From<crate::operation::delete_addon_subscription::DeleteAddonSubscriptionError> for Error {
360    fn from(err: crate::operation::delete_addon_subscription::DeleteAddonSubscriptionError) -> Self {
361        match err {
362            crate::operation::delete_addon_subscription::DeleteAddonSubscriptionError::ConflictException(inner) => Error::ConflictException(inner),
363            crate::operation::delete_addon_subscription::DeleteAddonSubscriptionError::ValidationException(inner) => {
364                Error::ValidationException(inner)
365            }
366            crate::operation::delete_addon_subscription::DeleteAddonSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
367        }
368    }
369}
370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_address_list::DeleteAddressListError, R>> for Error
371where
372    R: Send + Sync + std::fmt::Debug + 'static,
373{
374    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_address_list::DeleteAddressListError, R>) -> Self {
375        match err {
376            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
377            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
378                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
379                source: err.into(),
380            }),
381        }
382    }
383}
384impl From<crate::operation::delete_address_list::DeleteAddressListError> for Error {
385    fn from(err: crate::operation::delete_address_list::DeleteAddressListError) -> Self {
386        match err {
387            crate::operation::delete_address_list::DeleteAddressListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
388            crate::operation::delete_address_list::DeleteAddressListError::ConflictException(inner) => Error::ConflictException(inner),
389            crate::operation::delete_address_list::DeleteAddressListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
390            crate::operation::delete_address_list::DeleteAddressListError::Unhandled(inner) => Error::Unhandled(inner),
391        }
392    }
393}
394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_archive::DeleteArchiveError, R>> for Error
395where
396    R: Send + Sync + std::fmt::Debug + 'static,
397{
398    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_archive::DeleteArchiveError, R>) -> Self {
399        match err {
400            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
401            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
402                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
403                source: err.into(),
404            }),
405        }
406    }
407}
408impl From<crate::operation::delete_archive::DeleteArchiveError> for Error {
409    fn from(err: crate::operation::delete_archive::DeleteArchiveError) -> Self {
410        match err {
411            crate::operation::delete_archive::DeleteArchiveError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
412            crate::operation::delete_archive::DeleteArchiveError::ConflictException(inner) => Error::ConflictException(inner),
413            crate::operation::delete_archive::DeleteArchiveError::ThrottlingException(inner) => Error::ThrottlingException(inner),
414            crate::operation::delete_archive::DeleteArchiveError::ValidationException(inner) => Error::ValidationException(inner),
415            crate::operation::delete_archive::DeleteArchiveError::Unhandled(inner) => Error::Unhandled(inner),
416        }
417    }
418}
419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ingress_point::DeleteIngressPointError, R>> for Error
420where
421    R: Send + Sync + std::fmt::Debug + 'static,
422{
423    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ingress_point::DeleteIngressPointError, R>) -> Self {
424        match err {
425            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
426            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
427                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
428                source: err.into(),
429            }),
430        }
431    }
432}
433impl From<crate::operation::delete_ingress_point::DeleteIngressPointError> for Error {
434    fn from(err: crate::operation::delete_ingress_point::DeleteIngressPointError) -> Self {
435        match err {
436            crate::operation::delete_ingress_point::DeleteIngressPointError::ConflictException(inner) => Error::ConflictException(inner),
437            crate::operation::delete_ingress_point::DeleteIngressPointError::ResourceNotFoundException(inner) => {
438                Error::ResourceNotFoundException(inner)
439            }
440            crate::operation::delete_ingress_point::DeleteIngressPointError::ValidationException(inner) => Error::ValidationException(inner),
441            crate::operation::delete_ingress_point::DeleteIngressPointError::Unhandled(inner) => Error::Unhandled(inner),
442        }
443    }
444}
445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_relay::DeleteRelayError, R>> for Error
446where
447    R: Send + Sync + std::fmt::Debug + 'static,
448{
449    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_relay::DeleteRelayError, R>) -> Self {
450        match err {
451            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
452            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
453                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
454                source: err.into(),
455            }),
456        }
457    }
458}
459impl From<crate::operation::delete_relay::DeleteRelayError> for Error {
460    fn from(err: crate::operation::delete_relay::DeleteRelayError) -> Self {
461        match err {
462            crate::operation::delete_relay::DeleteRelayError::ConflictException(inner) => Error::ConflictException(inner),
463            crate::operation::delete_relay::DeleteRelayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
464            crate::operation::delete_relay::DeleteRelayError::ValidationException(inner) => Error::ValidationException(inner),
465            crate::operation::delete_relay::DeleteRelayError::Unhandled(inner) => Error::Unhandled(inner),
466        }
467    }
468}
469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_set::DeleteRuleSetError, R>> for Error
470where
471    R: Send + Sync + std::fmt::Debug + 'static,
472{
473    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_set::DeleteRuleSetError, R>) -> Self {
474        match err {
475            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
476            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
477                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
478                source: err.into(),
479            }),
480        }
481    }
482}
483impl From<crate::operation::delete_rule_set::DeleteRuleSetError> for Error {
484    fn from(err: crate::operation::delete_rule_set::DeleteRuleSetError) -> Self {
485        match err {
486            crate::operation::delete_rule_set::DeleteRuleSetError::ConflictException(inner) => Error::ConflictException(inner),
487            crate::operation::delete_rule_set::DeleteRuleSetError::ValidationException(inner) => Error::ValidationException(inner),
488            crate::operation::delete_rule_set::DeleteRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
489        }
490    }
491}
492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_policy::DeleteTrafficPolicyError, R>> for Error
493where
494    R: Send + Sync + std::fmt::Debug + 'static,
495{
496    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_traffic_policy::DeleteTrafficPolicyError, R>) -> Self {
497        match err {
498            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
499            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
500                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
501                source: err.into(),
502            }),
503        }
504    }
505}
506impl From<crate::operation::delete_traffic_policy::DeleteTrafficPolicyError> for Error {
507    fn from(err: crate::operation::delete_traffic_policy::DeleteTrafficPolicyError) -> Self {
508        match err {
509            crate::operation::delete_traffic_policy::DeleteTrafficPolicyError::ConflictException(inner) => Error::ConflictException(inner),
510            crate::operation::delete_traffic_policy::DeleteTrafficPolicyError::ResourceNotFoundException(inner) => {
511                Error::ResourceNotFoundException(inner)
512            }
513            crate::operation::delete_traffic_policy::DeleteTrafficPolicyError::ValidationException(inner) => Error::ValidationException(inner),
514            crate::operation::delete_traffic_policy::DeleteTrafficPolicyError::Unhandled(inner) => Error::Unhandled(inner),
515        }
516    }
517}
518impl<R>
519    From<
520        ::aws_smithy_runtime_api::client::result::SdkError<
521            crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError,
522            R,
523        >,
524    > for Error
525where
526    R: Send + Sync + std::fmt::Debug + 'static,
527{
528    fn from(
529        err: ::aws_smithy_runtime_api::client::result::SdkError<
530            crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError,
531            R,
532        >,
533    ) -> Self {
534        match err {
535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
538                source: err.into(),
539            }),
540        }
541    }
542}
543impl From<crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError> for Error {
544    fn from(err: crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError) -> Self {
545        match err {
546            crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError::AccessDeniedException(inner) => {
547                Error::AccessDeniedException(inner)
548            }
549            crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError::ResourceNotFoundException(inner) => {
550                Error::ResourceNotFoundException(inner)
551            }
552            crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError::ThrottlingException(inner) => {
553                Error::ThrottlingException(inner)
554            }
555            crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError::ValidationException(inner) => {
556                Error::ValidationException(inner)
557            }
558            crate::operation::deregister_member_from_address_list::DeregisterMemberFromAddressListError::Unhandled(inner) => Error::Unhandled(inner),
559        }
560    }
561}
562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_addon_instance::GetAddonInstanceError, R>> for Error
563where
564    R: Send + Sync + std::fmt::Debug + 'static,
565{
566    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_addon_instance::GetAddonInstanceError, R>) -> Self {
567        match err {
568            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
569            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
570                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
571                source: err.into(),
572            }),
573        }
574    }
575}
576impl From<crate::operation::get_addon_instance::GetAddonInstanceError> for Error {
577    fn from(err: crate::operation::get_addon_instance::GetAddonInstanceError) -> Self {
578        match err {
579            crate::operation::get_addon_instance::GetAddonInstanceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
580            crate::operation::get_addon_instance::GetAddonInstanceError::ValidationException(inner) => Error::ValidationException(inner),
581            crate::operation::get_addon_instance::GetAddonInstanceError::Unhandled(inner) => Error::Unhandled(inner),
582        }
583    }
584}
585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_addon_subscription::GetAddonSubscriptionError, R>> for Error
586where
587    R: Send + Sync + std::fmt::Debug + 'static,
588{
589    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_addon_subscription::GetAddonSubscriptionError, R>) -> Self {
590        match err {
591            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
592            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
593                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
594                source: err.into(),
595            }),
596        }
597    }
598}
599impl From<crate::operation::get_addon_subscription::GetAddonSubscriptionError> for Error {
600    fn from(err: crate::operation::get_addon_subscription::GetAddonSubscriptionError) -> Self {
601        match err {
602            crate::operation::get_addon_subscription::GetAddonSubscriptionError::ResourceNotFoundException(inner) => {
603                Error::ResourceNotFoundException(inner)
604            }
605            crate::operation::get_addon_subscription::GetAddonSubscriptionError::ValidationException(inner) => Error::ValidationException(inner),
606            crate::operation::get_addon_subscription::GetAddonSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
607        }
608    }
609}
610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_address_list::GetAddressListError, R>> for Error
611where
612    R: Send + Sync + std::fmt::Debug + 'static,
613{
614    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_address_list::GetAddressListError, R>) -> Self {
615        match err {
616            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
617            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
618                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
619                source: err.into(),
620            }),
621        }
622    }
623}
624impl From<crate::operation::get_address_list::GetAddressListError> for Error {
625    fn from(err: crate::operation::get_address_list::GetAddressListError) -> Self {
626        match err {
627            crate::operation::get_address_list::GetAddressListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
628            crate::operation::get_address_list::GetAddressListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
629            crate::operation::get_address_list::GetAddressListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
630            crate::operation::get_address_list::GetAddressListError::ValidationException(inner) => Error::ValidationException(inner),
631            crate::operation::get_address_list::GetAddressListError::Unhandled(inner) => Error::Unhandled(inner),
632        }
633    }
634}
635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_address_list_import_job::GetAddressListImportJobError, R>>
636    for Error
637where
638    R: Send + Sync + std::fmt::Debug + 'static,
639{
640    fn from(
641        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_address_list_import_job::GetAddressListImportJobError, R>,
642    ) -> Self {
643        match err {
644            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
645            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
646                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
647                source: err.into(),
648            }),
649        }
650    }
651}
652impl From<crate::operation::get_address_list_import_job::GetAddressListImportJobError> for Error {
653    fn from(err: crate::operation::get_address_list_import_job::GetAddressListImportJobError) -> Self {
654        match err {
655            crate::operation::get_address_list_import_job::GetAddressListImportJobError::AccessDeniedException(inner) => {
656                Error::AccessDeniedException(inner)
657            }
658            crate::operation::get_address_list_import_job::GetAddressListImportJobError::ResourceNotFoundException(inner) => {
659                Error::ResourceNotFoundException(inner)
660            }
661            crate::operation::get_address_list_import_job::GetAddressListImportJobError::ThrottlingException(inner) => {
662                Error::ThrottlingException(inner)
663            }
664            crate::operation::get_address_list_import_job::GetAddressListImportJobError::ValidationException(inner) => {
665                Error::ValidationException(inner)
666            }
667            crate::operation::get_address_list_import_job::GetAddressListImportJobError::Unhandled(inner) => Error::Unhandled(inner),
668        }
669    }
670}
671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive::GetArchiveError, R>> for Error
672where
673    R: Send + Sync + std::fmt::Debug + 'static,
674{
675    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive::GetArchiveError, R>) -> Self {
676        match err {
677            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
678            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
679                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
680                source: err.into(),
681            }),
682        }
683    }
684}
685impl From<crate::operation::get_archive::GetArchiveError> for Error {
686    fn from(err: crate::operation::get_archive::GetArchiveError) -> Self {
687        match err {
688            crate::operation::get_archive::GetArchiveError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
689            crate::operation::get_archive::GetArchiveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
690            crate::operation::get_archive::GetArchiveError::ThrottlingException(inner) => Error::ThrottlingException(inner),
691            crate::operation::get_archive::GetArchiveError::ValidationException(inner) => Error::ValidationException(inner),
692            crate::operation::get_archive::GetArchiveError::Unhandled(inner) => Error::Unhandled(inner),
693        }
694    }
695}
696impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_export::GetArchiveExportError, R>> for Error
697where
698    R: Send + Sync + std::fmt::Debug + 'static,
699{
700    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_export::GetArchiveExportError, R>) -> Self {
701        match err {
702            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
703            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
704                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
705                source: err.into(),
706            }),
707        }
708    }
709}
710impl From<crate::operation::get_archive_export::GetArchiveExportError> for Error {
711    fn from(err: crate::operation::get_archive_export::GetArchiveExportError) -> Self {
712        match err {
713            crate::operation::get_archive_export::GetArchiveExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
714            crate::operation::get_archive_export::GetArchiveExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
715            crate::operation::get_archive_export::GetArchiveExportError::ValidationException(inner) => Error::ValidationException(inner),
716            crate::operation::get_archive_export::GetArchiveExportError::Unhandled(inner) => Error::Unhandled(inner),
717        }
718    }
719}
720impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_message::GetArchiveMessageError, R>> for Error
721where
722    R: Send + Sync + std::fmt::Debug + 'static,
723{
724    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_message::GetArchiveMessageError, R>) -> Self {
725        match err {
726            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
727            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
728                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
729                source: err.into(),
730            }),
731        }
732    }
733}
734impl From<crate::operation::get_archive_message::GetArchiveMessageError> for Error {
735    fn from(err: crate::operation::get_archive_message::GetArchiveMessageError) -> Self {
736        match err {
737            crate::operation::get_archive_message::GetArchiveMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
738            crate::operation::get_archive_message::GetArchiveMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
739            crate::operation::get_archive_message::GetArchiveMessageError::ValidationException(inner) => Error::ValidationException(inner),
740            crate::operation::get_archive_message::GetArchiveMessageError::Unhandled(inner) => Error::Unhandled(inner),
741        }
742    }
743}
744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_message_content::GetArchiveMessageContentError, R>>
745    for Error
746where
747    R: Send + Sync + std::fmt::Debug + 'static,
748{
749    fn from(
750        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_message_content::GetArchiveMessageContentError, R>,
751    ) -> Self {
752        match err {
753            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
754            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
755                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
756                source: err.into(),
757            }),
758        }
759    }
760}
761impl From<crate::operation::get_archive_message_content::GetArchiveMessageContentError> for Error {
762    fn from(err: crate::operation::get_archive_message_content::GetArchiveMessageContentError) -> Self {
763        match err {
764            crate::operation::get_archive_message_content::GetArchiveMessageContentError::AccessDeniedException(inner) => {
765                Error::AccessDeniedException(inner)
766            }
767            crate::operation::get_archive_message_content::GetArchiveMessageContentError::ThrottlingException(inner) => {
768                Error::ThrottlingException(inner)
769            }
770            crate::operation::get_archive_message_content::GetArchiveMessageContentError::ValidationException(inner) => {
771                Error::ValidationException(inner)
772            }
773            crate::operation::get_archive_message_content::GetArchiveMessageContentError::Unhandled(inner) => Error::Unhandled(inner),
774        }
775    }
776}
777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_search::GetArchiveSearchError, R>> for Error
778where
779    R: Send + Sync + std::fmt::Debug + 'static,
780{
781    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_search::GetArchiveSearchError, R>) -> Self {
782        match err {
783            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
784            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
785                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
786                source: err.into(),
787            }),
788        }
789    }
790}
791impl From<crate::operation::get_archive_search::GetArchiveSearchError> for Error {
792    fn from(err: crate::operation::get_archive_search::GetArchiveSearchError) -> Self {
793        match err {
794            crate::operation::get_archive_search::GetArchiveSearchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
795            crate::operation::get_archive_search::GetArchiveSearchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
796            crate::operation::get_archive_search::GetArchiveSearchError::ValidationException(inner) => Error::ValidationException(inner),
797            crate::operation::get_archive_search::GetArchiveSearchError::Unhandled(inner) => Error::Unhandled(inner),
798        }
799    }
800}
801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_search_results::GetArchiveSearchResultsError, R>>
802    for Error
803where
804    R: Send + Sync + std::fmt::Debug + 'static,
805{
806    fn from(
807        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_archive_search_results::GetArchiveSearchResultsError, R>,
808    ) -> Self {
809        match err {
810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
813                source: err.into(),
814            }),
815        }
816    }
817}
818impl From<crate::operation::get_archive_search_results::GetArchiveSearchResultsError> for Error {
819    fn from(err: crate::operation::get_archive_search_results::GetArchiveSearchResultsError) -> Self {
820        match err {
821            crate::operation::get_archive_search_results::GetArchiveSearchResultsError::AccessDeniedException(inner) => {
822                Error::AccessDeniedException(inner)
823            }
824            crate::operation::get_archive_search_results::GetArchiveSearchResultsError::ConflictException(inner) => Error::ConflictException(inner),
825            crate::operation::get_archive_search_results::GetArchiveSearchResultsError::ThrottlingException(inner) => {
826                Error::ThrottlingException(inner)
827            }
828            crate::operation::get_archive_search_results::GetArchiveSearchResultsError::ValidationException(inner) => {
829                Error::ValidationException(inner)
830            }
831            crate::operation::get_archive_search_results::GetArchiveSearchResultsError::Unhandled(inner) => Error::Unhandled(inner),
832        }
833    }
834}
835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ingress_point::GetIngressPointError, R>> for Error
836where
837    R: Send + Sync + std::fmt::Debug + 'static,
838{
839    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ingress_point::GetIngressPointError, R>) -> Self {
840        match err {
841            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
842            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
843                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
844                source: err.into(),
845            }),
846        }
847    }
848}
849impl From<crate::operation::get_ingress_point::GetIngressPointError> for Error {
850    fn from(err: crate::operation::get_ingress_point::GetIngressPointError) -> Self {
851        match err {
852            crate::operation::get_ingress_point::GetIngressPointError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
853            crate::operation::get_ingress_point::GetIngressPointError::ValidationException(inner) => Error::ValidationException(inner),
854            crate::operation::get_ingress_point::GetIngressPointError::Unhandled(inner) => Error::Unhandled(inner),
855        }
856    }
857}
858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member_of_address_list::GetMemberOfAddressListError, R>>
859    for Error
860where
861    R: Send + Sync + std::fmt::Debug + 'static,
862{
863    fn from(
864        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member_of_address_list::GetMemberOfAddressListError, R>,
865    ) -> Self {
866        match err {
867            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870                source: err.into(),
871            }),
872        }
873    }
874}
875impl From<crate::operation::get_member_of_address_list::GetMemberOfAddressListError> for Error {
876    fn from(err: crate::operation::get_member_of_address_list::GetMemberOfAddressListError) -> Self {
877        match err {
878            crate::operation::get_member_of_address_list::GetMemberOfAddressListError::AccessDeniedException(inner) => {
879                Error::AccessDeniedException(inner)
880            }
881            crate::operation::get_member_of_address_list::GetMemberOfAddressListError::ResourceNotFoundException(inner) => {
882                Error::ResourceNotFoundException(inner)
883            }
884            crate::operation::get_member_of_address_list::GetMemberOfAddressListError::ThrottlingException(inner) => {
885                Error::ThrottlingException(inner)
886            }
887            crate::operation::get_member_of_address_list::GetMemberOfAddressListError::ValidationException(inner) => {
888                Error::ValidationException(inner)
889            }
890            crate::operation::get_member_of_address_list::GetMemberOfAddressListError::Unhandled(inner) => Error::Unhandled(inner),
891        }
892    }
893}
894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_relay::GetRelayError, R>> for Error
895where
896    R: Send + Sync + std::fmt::Debug + 'static,
897{
898    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_relay::GetRelayError, R>) -> Self {
899        match err {
900            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
901            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
902                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
903                source: err.into(),
904            }),
905        }
906    }
907}
908impl From<crate::operation::get_relay::GetRelayError> for Error {
909    fn from(err: crate::operation::get_relay::GetRelayError) -> Self {
910        match err {
911            crate::operation::get_relay::GetRelayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
912            crate::operation::get_relay::GetRelayError::ValidationException(inner) => Error::ValidationException(inner),
913            crate::operation::get_relay::GetRelayError::Unhandled(inner) => Error::Unhandled(inner),
914        }
915    }
916}
917impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule_set::GetRuleSetError, R>> for Error
918where
919    R: Send + Sync + std::fmt::Debug + 'static,
920{
921    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule_set::GetRuleSetError, R>) -> Self {
922        match err {
923            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
924            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
925                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
926                source: err.into(),
927            }),
928        }
929    }
930}
931impl From<crate::operation::get_rule_set::GetRuleSetError> for Error {
932    fn from(err: crate::operation::get_rule_set::GetRuleSetError) -> Self {
933        match err {
934            crate::operation::get_rule_set::GetRuleSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
935            crate::operation::get_rule_set::GetRuleSetError::ValidationException(inner) => Error::ValidationException(inner),
936            crate::operation::get_rule_set::GetRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
937        }
938    }
939}
940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_traffic_policy::GetTrafficPolicyError, R>> for Error
941where
942    R: Send + Sync + std::fmt::Debug + 'static,
943{
944    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_traffic_policy::GetTrafficPolicyError, R>) -> Self {
945        match err {
946            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
947            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
948                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
949                source: err.into(),
950            }),
951        }
952    }
953}
954impl From<crate::operation::get_traffic_policy::GetTrafficPolicyError> for Error {
955    fn from(err: crate::operation::get_traffic_policy::GetTrafficPolicyError) -> Self {
956        match err {
957            crate::operation::get_traffic_policy::GetTrafficPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
958            crate::operation::get_traffic_policy::GetTrafficPolicyError::ValidationException(inner) => Error::ValidationException(inner),
959            crate::operation::get_traffic_policy::GetTrafficPolicyError::Unhandled(inner) => Error::Unhandled(inner),
960        }
961    }
962}
963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_addon_instances::ListAddonInstancesError, R>> for Error
964where
965    R: Send + Sync + std::fmt::Debug + 'static,
966{
967    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_addon_instances::ListAddonInstancesError, R>) -> Self {
968        match err {
969            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
970            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
971                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
972                source: err.into(),
973            }),
974        }
975    }
976}
977impl From<crate::operation::list_addon_instances::ListAddonInstancesError> for Error {
978    fn from(err: crate::operation::list_addon_instances::ListAddonInstancesError) -> Self {
979        match err {
980            crate::operation::list_addon_instances::ListAddonInstancesError::ValidationException(inner) => Error::ValidationException(inner),
981            crate::operation::list_addon_instances::ListAddonInstancesError::Unhandled(inner) => Error::Unhandled(inner),
982        }
983    }
984}
985impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_addon_subscriptions::ListAddonSubscriptionsError, R>> for Error
986where
987    R: Send + Sync + std::fmt::Debug + 'static,
988{
989    fn from(
990        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_addon_subscriptions::ListAddonSubscriptionsError, R>,
991    ) -> Self {
992        match err {
993            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
994            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
995                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
996                source: err.into(),
997            }),
998        }
999    }
1000}
1001impl From<crate::operation::list_addon_subscriptions::ListAddonSubscriptionsError> for Error {
1002    fn from(err: crate::operation::list_addon_subscriptions::ListAddonSubscriptionsError) -> Self {
1003        match err {
1004            crate::operation::list_addon_subscriptions::ListAddonSubscriptionsError::ValidationException(inner) => Error::ValidationException(inner),
1005            crate::operation::list_addon_subscriptions::ListAddonSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
1006        }
1007    }
1008}
1009impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError, R>>
1010    for Error
1011where
1012    R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014    fn from(
1015        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError, R>,
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::list_address_list_import_jobs::ListAddressListImportJobsError> for Error {
1027    fn from(err: crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError) -> Self {
1028        match err {
1029            crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError::AccessDeniedException(inner) => {
1030                Error::AccessDeniedException(inner)
1031            }
1032            crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError::ResourceNotFoundException(inner) => {
1033                Error::ResourceNotFoundException(inner)
1034            }
1035            crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError::ThrottlingException(inner) => {
1036                Error::ThrottlingException(inner)
1037            }
1038            crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError::ValidationException(inner) => {
1039                Error::ValidationException(inner)
1040            }
1041            crate::operation::list_address_list_import_jobs::ListAddressListImportJobsError::Unhandled(inner) => Error::Unhandled(inner),
1042        }
1043    }
1044}
1045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_address_lists::ListAddressListsError, R>> for Error
1046where
1047    R: Send + Sync + std::fmt::Debug + 'static,
1048{
1049    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_address_lists::ListAddressListsError, R>) -> 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::list_address_lists::ListAddressListsError> for Error {
1060    fn from(err: crate::operation::list_address_lists::ListAddressListsError) -> Self {
1061        match err {
1062            crate::operation::list_address_lists::ListAddressListsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1063            crate::operation::list_address_lists::ListAddressListsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1064            crate::operation::list_address_lists::ListAddressListsError::ValidationException(inner) => Error::ValidationException(inner),
1065            crate::operation::list_address_lists::ListAddressListsError::Unhandled(inner) => Error::Unhandled(inner),
1066        }
1067    }
1068}
1069impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_archive_exports::ListArchiveExportsError, 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::list_archive_exports::ListArchiveExportsError, 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::list_archive_exports::ListArchiveExportsError> for Error {
1084    fn from(err: crate::operation::list_archive_exports::ListArchiveExportsError) -> Self {
1085        match err {
1086            crate::operation::list_archive_exports::ListArchiveExportsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1087            crate::operation::list_archive_exports::ListArchiveExportsError::ResourceNotFoundException(inner) => {
1088                Error::ResourceNotFoundException(inner)
1089            }
1090            crate::operation::list_archive_exports::ListArchiveExportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1091            crate::operation::list_archive_exports::ListArchiveExportsError::ValidationException(inner) => Error::ValidationException(inner),
1092            crate::operation::list_archive_exports::ListArchiveExportsError::Unhandled(inner) => Error::Unhandled(inner),
1093        }
1094    }
1095}
1096impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_archives::ListArchivesError, R>> for Error
1097where
1098    R: Send + Sync + std::fmt::Debug + 'static,
1099{
1100    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_archives::ListArchivesError, R>) -> Self {
1101        match err {
1102            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1103            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1104                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1105                source: err.into(),
1106            }),
1107        }
1108    }
1109}
1110impl From<crate::operation::list_archives::ListArchivesError> for Error {
1111    fn from(err: crate::operation::list_archives::ListArchivesError) -> Self {
1112        match err {
1113            crate::operation::list_archives::ListArchivesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1114            crate::operation::list_archives::ListArchivesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1115            crate::operation::list_archives::ListArchivesError::ValidationException(inner) => Error::ValidationException(inner),
1116            crate::operation::list_archives::ListArchivesError::Unhandled(inner) => Error::Unhandled(inner),
1117        }
1118    }
1119}
1120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_archive_searches::ListArchiveSearchesError, R>> for Error
1121where
1122    R: Send + Sync + std::fmt::Debug + 'static,
1123{
1124    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_archive_searches::ListArchiveSearchesError, R>) -> Self {
1125        match err {
1126            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1127            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1128                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1129                source: err.into(),
1130            }),
1131        }
1132    }
1133}
1134impl From<crate::operation::list_archive_searches::ListArchiveSearchesError> for Error {
1135    fn from(err: crate::operation::list_archive_searches::ListArchiveSearchesError) -> Self {
1136        match err {
1137            crate::operation::list_archive_searches::ListArchiveSearchesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1138            crate::operation::list_archive_searches::ListArchiveSearchesError::ResourceNotFoundException(inner) => {
1139                Error::ResourceNotFoundException(inner)
1140            }
1141            crate::operation::list_archive_searches::ListArchiveSearchesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1142            crate::operation::list_archive_searches::ListArchiveSearchesError::ValidationException(inner) => Error::ValidationException(inner),
1143            crate::operation::list_archive_searches::ListArchiveSearchesError::Unhandled(inner) => Error::Unhandled(inner),
1144        }
1145    }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ingress_points::ListIngressPointsError, R>> for Error
1148where
1149    R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ingress_points::ListIngressPointsError, R>) -> Self {
1152        match err {
1153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156                source: err.into(),
1157            }),
1158        }
1159    }
1160}
1161impl From<crate::operation::list_ingress_points::ListIngressPointsError> for Error {
1162    fn from(err: crate::operation::list_ingress_points::ListIngressPointsError) -> Self {
1163        match err {
1164            crate::operation::list_ingress_points::ListIngressPointsError::ValidationException(inner) => Error::ValidationException(inner),
1165            crate::operation::list_ingress_points::ListIngressPointsError::Unhandled(inner) => Error::Unhandled(inner),
1166        }
1167    }
1168}
1169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members_of_address_list::ListMembersOfAddressListError, R>>
1170    for Error
1171where
1172    R: Send + Sync + std::fmt::Debug + 'static,
1173{
1174    fn from(
1175        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members_of_address_list::ListMembersOfAddressListError, R>,
1176    ) -> Self {
1177        match err {
1178            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1179            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1180                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1181                source: err.into(),
1182            }),
1183        }
1184    }
1185}
1186impl From<crate::operation::list_members_of_address_list::ListMembersOfAddressListError> for Error {
1187    fn from(err: crate::operation::list_members_of_address_list::ListMembersOfAddressListError) -> Self {
1188        match err {
1189            crate::operation::list_members_of_address_list::ListMembersOfAddressListError::AccessDeniedException(inner) => {
1190                Error::AccessDeniedException(inner)
1191            }
1192            crate::operation::list_members_of_address_list::ListMembersOfAddressListError::ResourceNotFoundException(inner) => {
1193                Error::ResourceNotFoundException(inner)
1194            }
1195            crate::operation::list_members_of_address_list::ListMembersOfAddressListError::ThrottlingException(inner) => {
1196                Error::ThrottlingException(inner)
1197            }
1198            crate::operation::list_members_of_address_list::ListMembersOfAddressListError::ValidationException(inner) => {
1199                Error::ValidationException(inner)
1200            }
1201            crate::operation::list_members_of_address_list::ListMembersOfAddressListError::Unhandled(inner) => Error::Unhandled(inner),
1202        }
1203    }
1204}
1205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_relays::ListRelaysError, R>> for Error
1206where
1207    R: Send + Sync + std::fmt::Debug + 'static,
1208{
1209    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_relays::ListRelaysError, R>) -> Self {
1210        match err {
1211            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1212            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1213                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1214                source: err.into(),
1215            }),
1216        }
1217    }
1218}
1219impl From<crate::operation::list_relays::ListRelaysError> for Error {
1220    fn from(err: crate::operation::list_relays::ListRelaysError) -> Self {
1221        match err {
1222            crate::operation::list_relays::ListRelaysError::ValidationException(inner) => Error::ValidationException(inner),
1223            crate::operation::list_relays::ListRelaysError::Unhandled(inner) => Error::Unhandled(inner),
1224        }
1225    }
1226}
1227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_sets::ListRuleSetsError, R>> for Error
1228where
1229    R: Send + Sync + std::fmt::Debug + 'static,
1230{
1231    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_sets::ListRuleSetsError, R>) -> Self {
1232        match err {
1233            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1234            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1235                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1236                source: err.into(),
1237            }),
1238        }
1239    }
1240}
1241impl From<crate::operation::list_rule_sets::ListRuleSetsError> for Error {
1242    fn from(err: crate::operation::list_rule_sets::ListRuleSetsError) -> Self {
1243        match err {
1244            crate::operation::list_rule_sets::ListRuleSetsError::ValidationException(inner) => Error::ValidationException(inner),
1245            crate::operation::list_rule_sets::ListRuleSetsError::Unhandled(inner) => Error::Unhandled(inner),
1246        }
1247    }
1248}
1249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1250where
1251    R: Send + Sync + std::fmt::Debug + 'static,
1252{
1253    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1254        match err {
1255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1258                source: err.into(),
1259            }),
1260        }
1261    }
1262}
1263impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1264    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1265        match err {
1266            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1267                Error::ResourceNotFoundException(inner)
1268            }
1269            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1270            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1271        }
1272    }
1273}
1274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_traffic_policies::ListTrafficPoliciesError, R>> for Error
1275where
1276    R: Send + Sync + std::fmt::Debug + 'static,
1277{
1278    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_traffic_policies::ListTrafficPoliciesError, R>) -> Self {
1279        match err {
1280            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1281            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1282                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1283                source: err.into(),
1284            }),
1285        }
1286    }
1287}
1288impl From<crate::operation::list_traffic_policies::ListTrafficPoliciesError> for Error {
1289    fn from(err: crate::operation::list_traffic_policies::ListTrafficPoliciesError) -> Self {
1290        match err {
1291            crate::operation::list_traffic_policies::ListTrafficPoliciesError::ValidationException(inner) => Error::ValidationException(inner),
1292            crate::operation::list_traffic_policies::ListTrafficPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1293        }
1294    }
1295}
1296impl<R>
1297    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_member_to_address_list::RegisterMemberToAddressListError, R>>
1298    for Error
1299where
1300    R: Send + Sync + std::fmt::Debug + 'static,
1301{
1302    fn from(
1303        err: ::aws_smithy_runtime_api::client::result::SdkError<
1304            crate::operation::register_member_to_address_list::RegisterMemberToAddressListError,
1305            R,
1306        >,
1307    ) -> Self {
1308        match err {
1309            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1310            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1311                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1312                source: err.into(),
1313            }),
1314        }
1315    }
1316}
1317impl From<crate::operation::register_member_to_address_list::RegisterMemberToAddressListError> for Error {
1318    fn from(err: crate::operation::register_member_to_address_list::RegisterMemberToAddressListError) -> Self {
1319        match err {
1320            crate::operation::register_member_to_address_list::RegisterMemberToAddressListError::AccessDeniedException(inner) => {
1321                Error::AccessDeniedException(inner)
1322            }
1323            crate::operation::register_member_to_address_list::RegisterMemberToAddressListError::ResourceNotFoundException(inner) => {
1324                Error::ResourceNotFoundException(inner)
1325            }
1326            crate::operation::register_member_to_address_list::RegisterMemberToAddressListError::ServiceQuotaExceededException(inner) => {
1327                Error::ServiceQuotaExceededException(inner)
1328            }
1329            crate::operation::register_member_to_address_list::RegisterMemberToAddressListError::ThrottlingException(inner) => {
1330                Error::ThrottlingException(inner)
1331            }
1332            crate::operation::register_member_to_address_list::RegisterMemberToAddressListError::ValidationException(inner) => {
1333                Error::ValidationException(inner)
1334            }
1335            crate::operation::register_member_to_address_list::RegisterMemberToAddressListError::Unhandled(inner) => Error::Unhandled(inner),
1336        }
1337    }
1338}
1339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_address_list_import_job::StartAddressListImportJobError, R>>
1340    for Error
1341where
1342    R: Send + Sync + std::fmt::Debug + 'static,
1343{
1344    fn from(
1345        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_address_list_import_job::StartAddressListImportJobError, R>,
1346    ) -> Self {
1347        match err {
1348            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1349            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1350                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1351                source: err.into(),
1352            }),
1353        }
1354    }
1355}
1356impl From<crate::operation::start_address_list_import_job::StartAddressListImportJobError> for Error {
1357    fn from(err: crate::operation::start_address_list_import_job::StartAddressListImportJobError) -> Self {
1358        match err {
1359            crate::operation::start_address_list_import_job::StartAddressListImportJobError::AccessDeniedException(inner) => {
1360                Error::AccessDeniedException(inner)
1361            }
1362            crate::operation::start_address_list_import_job::StartAddressListImportJobError::ConflictException(inner) => {
1363                Error::ConflictException(inner)
1364            }
1365            crate::operation::start_address_list_import_job::StartAddressListImportJobError::ResourceNotFoundException(inner) => {
1366                Error::ResourceNotFoundException(inner)
1367            }
1368            crate::operation::start_address_list_import_job::StartAddressListImportJobError::ServiceQuotaExceededException(inner) => {
1369                Error::ServiceQuotaExceededException(inner)
1370            }
1371            crate::operation::start_address_list_import_job::StartAddressListImportJobError::ThrottlingException(inner) => {
1372                Error::ThrottlingException(inner)
1373            }
1374            crate::operation::start_address_list_import_job::StartAddressListImportJobError::ValidationException(inner) => {
1375                Error::ValidationException(inner)
1376            }
1377            crate::operation::start_address_list_import_job::StartAddressListImportJobError::Unhandled(inner) => Error::Unhandled(inner),
1378        }
1379    }
1380}
1381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_archive_export::StartArchiveExportError, R>> for Error
1382where
1383    R: Send + Sync + std::fmt::Debug + 'static,
1384{
1385    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_archive_export::StartArchiveExportError, R>) -> Self {
1386        match err {
1387            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1388            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1389                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1390                source: err.into(),
1391            }),
1392        }
1393    }
1394}
1395impl From<crate::operation::start_archive_export::StartArchiveExportError> for Error {
1396    fn from(err: crate::operation::start_archive_export::StartArchiveExportError) -> Self {
1397        match err {
1398            crate::operation::start_archive_export::StartArchiveExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1399            crate::operation::start_archive_export::StartArchiveExportError::ResourceNotFoundException(inner) => {
1400                Error::ResourceNotFoundException(inner)
1401            }
1402            crate::operation::start_archive_export::StartArchiveExportError::ServiceQuotaExceededException(inner) => {
1403                Error::ServiceQuotaExceededException(inner)
1404            }
1405            crate::operation::start_archive_export::StartArchiveExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1406            crate::operation::start_archive_export::StartArchiveExportError::ValidationException(inner) => Error::ValidationException(inner),
1407            crate::operation::start_archive_export::StartArchiveExportError::Unhandled(inner) => Error::Unhandled(inner),
1408        }
1409    }
1410}
1411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_archive_search::StartArchiveSearchError, R>> for Error
1412where
1413    R: Send + Sync + std::fmt::Debug + 'static,
1414{
1415    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_archive_search::StartArchiveSearchError, R>) -> Self {
1416        match err {
1417            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1418            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1419                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1420                source: err.into(),
1421            }),
1422        }
1423    }
1424}
1425impl From<crate::operation::start_archive_search::StartArchiveSearchError> for Error {
1426    fn from(err: crate::operation::start_archive_search::StartArchiveSearchError) -> Self {
1427        match err {
1428            crate::operation::start_archive_search::StartArchiveSearchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1429            crate::operation::start_archive_search::StartArchiveSearchError::ConflictException(inner) => Error::ConflictException(inner),
1430            crate::operation::start_archive_search::StartArchiveSearchError::ResourceNotFoundException(inner) => {
1431                Error::ResourceNotFoundException(inner)
1432            }
1433            crate::operation::start_archive_search::StartArchiveSearchError::ServiceQuotaExceededException(inner) => {
1434                Error::ServiceQuotaExceededException(inner)
1435            }
1436            crate::operation::start_archive_search::StartArchiveSearchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1437            crate::operation::start_archive_search::StartArchiveSearchError::ValidationException(inner) => Error::ValidationException(inner),
1438            crate::operation::start_archive_search::StartArchiveSearchError::Unhandled(inner) => Error::Unhandled(inner),
1439        }
1440    }
1441}
1442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_address_list_import_job::StopAddressListImportJobError, R>>
1443    for Error
1444where
1445    R: Send + Sync + std::fmt::Debug + 'static,
1446{
1447    fn from(
1448        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_address_list_import_job::StopAddressListImportJobError, R>,
1449    ) -> Self {
1450        match err {
1451            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1452            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1453                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1454                source: err.into(),
1455            }),
1456        }
1457    }
1458}
1459impl From<crate::operation::stop_address_list_import_job::StopAddressListImportJobError> for Error {
1460    fn from(err: crate::operation::stop_address_list_import_job::StopAddressListImportJobError) -> Self {
1461        match err {
1462            crate::operation::stop_address_list_import_job::StopAddressListImportJobError::AccessDeniedException(inner) => {
1463                Error::AccessDeniedException(inner)
1464            }
1465            crate::operation::stop_address_list_import_job::StopAddressListImportJobError::ConflictException(inner) => {
1466                Error::ConflictException(inner)
1467            }
1468            crate::operation::stop_address_list_import_job::StopAddressListImportJobError::ResourceNotFoundException(inner) => {
1469                Error::ResourceNotFoundException(inner)
1470            }
1471            crate::operation::stop_address_list_import_job::StopAddressListImportJobError::ThrottlingException(inner) => {
1472                Error::ThrottlingException(inner)
1473            }
1474            crate::operation::stop_address_list_import_job::StopAddressListImportJobError::ValidationException(inner) => {
1475                Error::ValidationException(inner)
1476            }
1477            crate::operation::stop_address_list_import_job::StopAddressListImportJobError::Unhandled(inner) => Error::Unhandled(inner),
1478        }
1479    }
1480}
1481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_archive_export::StopArchiveExportError, R>> for Error
1482where
1483    R: Send + Sync + std::fmt::Debug + 'static,
1484{
1485    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_archive_export::StopArchiveExportError, R>) -> Self {
1486        match err {
1487            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1488            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1489                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1490                source: err.into(),
1491            }),
1492        }
1493    }
1494}
1495impl From<crate::operation::stop_archive_export::StopArchiveExportError> for Error {
1496    fn from(err: crate::operation::stop_archive_export::StopArchiveExportError) -> Self {
1497        match err {
1498            crate::operation::stop_archive_export::StopArchiveExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1499            crate::operation::stop_archive_export::StopArchiveExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1500            crate::operation::stop_archive_export::StopArchiveExportError::ValidationException(inner) => Error::ValidationException(inner),
1501            crate::operation::stop_archive_export::StopArchiveExportError::Unhandled(inner) => Error::Unhandled(inner),
1502        }
1503    }
1504}
1505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_archive_search::StopArchiveSearchError, R>> for Error
1506where
1507    R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_archive_search::StopArchiveSearchError, R>) -> Self {
1510        match err {
1511            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1512            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1513                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1514                source: err.into(),
1515            }),
1516        }
1517    }
1518}
1519impl From<crate::operation::stop_archive_search::StopArchiveSearchError> for Error {
1520    fn from(err: crate::operation::stop_archive_search::StopArchiveSearchError) -> Self {
1521        match err {
1522            crate::operation::stop_archive_search::StopArchiveSearchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1523            crate::operation::stop_archive_search::StopArchiveSearchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1524            crate::operation::stop_archive_search::StopArchiveSearchError::ValidationException(inner) => Error::ValidationException(inner),
1525            crate::operation::stop_archive_search::StopArchiveSearchError::Unhandled(inner) => Error::Unhandled(inner),
1526        }
1527    }
1528}
1529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1530where
1531    R: Send + Sync + std::fmt::Debug + 'static,
1532{
1533    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1534        match err {
1535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1538                source: err.into(),
1539            }),
1540        }
1541    }
1542}
1543impl From<crate::operation::tag_resource::TagResourceError> for Error {
1544    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1545        match err {
1546            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1547            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1548            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1549            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1550            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1551        }
1552    }
1553}
1554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1555where
1556    R: Send + Sync + std::fmt::Debug + 'static,
1557{
1558    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1559        match err {
1560            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1561            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1562                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1563                source: err.into(),
1564            }),
1565        }
1566    }
1567}
1568impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1569    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1570        match err {
1571            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1572            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1573            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1574            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1575        }
1576    }
1577}
1578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_archive::UpdateArchiveError, R>> for Error
1579where
1580    R: Send + Sync + std::fmt::Debug + 'static,
1581{
1582    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_archive::UpdateArchiveError, R>) -> Self {
1583        match err {
1584            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1585            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1586                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1587                source: err.into(),
1588            }),
1589        }
1590    }
1591}
1592impl From<crate::operation::update_archive::UpdateArchiveError> for Error {
1593    fn from(err: crate::operation::update_archive::UpdateArchiveError) -> Self {
1594        match err {
1595            crate::operation::update_archive::UpdateArchiveError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1596            crate::operation::update_archive::UpdateArchiveError::ConflictException(inner) => Error::ConflictException(inner),
1597            crate::operation::update_archive::UpdateArchiveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1598            crate::operation::update_archive::UpdateArchiveError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1599            crate::operation::update_archive::UpdateArchiveError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1600            crate::operation::update_archive::UpdateArchiveError::ValidationException(inner) => Error::ValidationException(inner),
1601            crate::operation::update_archive::UpdateArchiveError::Unhandled(inner) => Error::Unhandled(inner),
1602        }
1603    }
1604}
1605impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ingress_point::UpdateIngressPointError, R>> for Error
1606where
1607    R: Send + Sync + std::fmt::Debug + 'static,
1608{
1609    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ingress_point::UpdateIngressPointError, R>) -> Self {
1610        match err {
1611            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1612            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1613                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1614                source: err.into(),
1615            }),
1616        }
1617    }
1618}
1619impl From<crate::operation::update_ingress_point::UpdateIngressPointError> for Error {
1620    fn from(err: crate::operation::update_ingress_point::UpdateIngressPointError) -> Self {
1621        match err {
1622            crate::operation::update_ingress_point::UpdateIngressPointError::ConflictException(inner) => Error::ConflictException(inner),
1623            crate::operation::update_ingress_point::UpdateIngressPointError::ResourceNotFoundException(inner) => {
1624                Error::ResourceNotFoundException(inner)
1625            }
1626            crate::operation::update_ingress_point::UpdateIngressPointError::ValidationException(inner) => Error::ValidationException(inner),
1627            crate::operation::update_ingress_point::UpdateIngressPointError::Unhandled(inner) => Error::Unhandled(inner),
1628        }
1629    }
1630}
1631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_relay::UpdateRelayError, R>> for Error
1632where
1633    R: Send + Sync + std::fmt::Debug + 'static,
1634{
1635    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_relay::UpdateRelayError, R>) -> Self {
1636        match err {
1637            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1638            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1639                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1640                source: err.into(),
1641            }),
1642        }
1643    }
1644}
1645impl From<crate::operation::update_relay::UpdateRelayError> for Error {
1646    fn from(err: crate::operation::update_relay::UpdateRelayError) -> Self {
1647        match err {
1648            crate::operation::update_relay::UpdateRelayError::ConflictException(inner) => Error::ConflictException(inner),
1649            crate::operation::update_relay::UpdateRelayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1650            crate::operation::update_relay::UpdateRelayError::ValidationException(inner) => Error::ValidationException(inner),
1651            crate::operation::update_relay::UpdateRelayError::Unhandled(inner) => Error::Unhandled(inner),
1652        }
1653    }
1654}
1655impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_set::UpdateRuleSetError, R>> for Error
1656where
1657    R: Send + Sync + std::fmt::Debug + 'static,
1658{
1659    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_set::UpdateRuleSetError, R>) -> Self {
1660        match err {
1661            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1662            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1663                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1664                source: err.into(),
1665            }),
1666        }
1667    }
1668}
1669impl From<crate::operation::update_rule_set::UpdateRuleSetError> for Error {
1670    fn from(err: crate::operation::update_rule_set::UpdateRuleSetError) -> Self {
1671        match err {
1672            crate::operation::update_rule_set::UpdateRuleSetError::ConflictException(inner) => Error::ConflictException(inner),
1673            crate::operation::update_rule_set::UpdateRuleSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1674            crate::operation::update_rule_set::UpdateRuleSetError::ValidationException(inner) => Error::ValidationException(inner),
1675            crate::operation::update_rule_set::UpdateRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
1676        }
1677    }
1678}
1679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_traffic_policy::UpdateTrafficPolicyError, R>> for Error
1680where
1681    R: Send + Sync + std::fmt::Debug + 'static,
1682{
1683    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_traffic_policy::UpdateTrafficPolicyError, R>) -> Self {
1684        match err {
1685            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1686            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1687                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1688                source: err.into(),
1689            }),
1690        }
1691    }
1692}
1693impl From<crate::operation::update_traffic_policy::UpdateTrafficPolicyError> for Error {
1694    fn from(err: crate::operation::update_traffic_policy::UpdateTrafficPolicyError) -> Self {
1695        match err {
1696            crate::operation::update_traffic_policy::UpdateTrafficPolicyError::ConflictException(inner) => Error::ConflictException(inner),
1697            crate::operation::update_traffic_policy::UpdateTrafficPolicyError::ResourceNotFoundException(inner) => {
1698                Error::ResourceNotFoundException(inner)
1699            }
1700            crate::operation::update_traffic_policy::UpdateTrafficPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1701            crate::operation::update_traffic_policy::UpdateTrafficPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1702        }
1703    }
1704}
1705impl ::std::error::Error for Error {
1706    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1707        match self {
1708            Error::AccessDeniedException(inner) => inner.source(),
1709            Error::ConflictException(inner) => inner.source(),
1710            Error::ResourceNotFoundException(inner) => inner.source(),
1711            Error::ServiceQuotaExceededException(inner) => inner.source(),
1712            Error::ThrottlingException(inner) => inner.source(),
1713            Error::ValidationException(inner) => inner.source(),
1714            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1715        }
1716    }
1717}
1718impl ::aws_types::request_id::RequestId for Error {
1719    fn request_id(&self) -> Option<&str> {
1720        match self {
1721            Self::AccessDeniedException(e) => e.request_id(),
1722            Self::ConflictException(e) => e.request_id(),
1723            Self::ResourceNotFoundException(e) => e.request_id(),
1724            Self::ServiceQuotaExceededException(e) => e.request_id(),
1725            Self::ThrottlingException(e) => e.request_id(),
1726            Self::ValidationException(e) => e.request_id(),
1727            Self::Unhandled(e) => e.meta.request_id(),
1728        }
1729    }
1730}