aws_sdk_pinpointemail/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>The message can't be sent because the account's ability to send email has been permanently restricted.</p>
7    AccountSuspendedException(crate::types::error::AccountSuspendedException),
8    /// <p>The resource specified in your request already exists.</p>
9    AlreadyExistsException(crate::types::error::AlreadyExistsException),
10    /// <p>The input you provided is invalid.</p>
11    BadRequestException(crate::types::error::BadRequestException),
12    /// <p>The resource is being modified by another operation or thread.</p>
13    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
14    /// <p>There are too many instances of the specified resource type.</p>
15    LimitExceededException(crate::types::error::LimitExceededException),
16    /// <p>The message can't be sent because the sending domain isn't verified.</p>
17    MailFromDomainNotVerifiedException(crate::types::error::MailFromDomainNotVerifiedException),
18    /// <p>The message can't be sent because it contains invalid content.</p>
19    MessageRejected(crate::types::error::MessageRejected),
20    /// <p>The resource you attempted to access doesn't exist.</p>
21    NotFoundException(crate::types::error::NotFoundException),
22    /// <p>The message can't be sent because the account's ability to send email is currently paused.</p>
23    SendingPausedException(crate::types::error::SendingPausedException),
24    /// <p>Too many requests have been made to the operation.</p>
25    TooManyRequestsException(crate::types::error::TooManyRequestsException),
26    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
27    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
28    variable wildcard pattern and check `.code()`:
29     \
30    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
31     \
32    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
33    Unhandled(crate::error::sealed_unhandled::Unhandled),
34}
35impl ::std::fmt::Display for Error {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        match self {
38            Error::AccountSuspendedException(inner) => inner.fmt(f),
39            Error::AlreadyExistsException(inner) => inner.fmt(f),
40            Error::BadRequestException(inner) => inner.fmt(f),
41            Error::ConcurrentModificationException(inner) => inner.fmt(f),
42            Error::LimitExceededException(inner) => inner.fmt(f),
43            Error::MailFromDomainNotVerifiedException(inner) => inner.fmt(f),
44            Error::MessageRejected(inner) => inner.fmt(f),
45            Error::NotFoundException(inner) => inner.fmt(f),
46            Error::SendingPausedException(inner) => inner.fmt(f),
47            Error::TooManyRequestsException(inner) => inner.fmt(f),
48            Error::Unhandled(_) => {
49                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
50                    write!(f, "unhandled error ({code})")
51                } else {
52                    f.write_str("unhandled error")
53                }
54            }
55        }
56    }
57}
58impl From<::aws_smithy_types::error::operation::BuildError> for Error {
59    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
60        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
61            source: value.into(),
62            meta: ::std::default::Default::default(),
63        })
64    }
65}
66impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
67    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
68        match self {
69            Self::AccountSuspendedException(inner) => inner.meta(),
70            Self::AlreadyExistsException(inner) => inner.meta(),
71            Self::BadRequestException(inner) => inner.meta(),
72            Self::ConcurrentModificationException(inner) => inner.meta(),
73            Self::LimitExceededException(inner) => inner.meta(),
74            Self::MailFromDomainNotVerifiedException(inner) => inner.meta(),
75            Self::MessageRejected(inner) => inner.meta(),
76            Self::NotFoundException(inner) => inner.meta(),
77            Self::SendingPausedException(inner) => inner.meta(),
78            Self::TooManyRequestsException(inner) => inner.meta(),
79            Self::Unhandled(inner) => &inner.meta,
80        }
81    }
82}
83impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>> for Error
84where
85    R: Send + Sync + std::fmt::Debug + 'static,
86{
87    fn from(
88        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>,
89    ) -> Self {
90        match err {
91            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
92            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
93                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
94                source: err.into(),
95            }),
96        }
97    }
98}
99impl From<crate::operation::create_configuration_set::CreateConfigurationSetError> for Error {
100    fn from(err: crate::operation::create_configuration_set::CreateConfigurationSetError) -> Self {
101        match err {
102            crate::operation::create_configuration_set::CreateConfigurationSetError::AlreadyExistsException(inner) => {
103                Error::AlreadyExistsException(inner)
104            }
105            crate::operation::create_configuration_set::CreateConfigurationSetError::BadRequestException(inner) => Error::BadRequestException(inner),
106            crate::operation::create_configuration_set::CreateConfigurationSetError::ConcurrentModificationException(inner) => {
107                Error::ConcurrentModificationException(inner)
108            }
109            crate::operation::create_configuration_set::CreateConfigurationSetError::LimitExceededException(inner) => {
110                Error::LimitExceededException(inner)
111            }
112            crate::operation::create_configuration_set::CreateConfigurationSetError::NotFoundException(inner) => Error::NotFoundException(inner),
113            crate::operation::create_configuration_set::CreateConfigurationSetError::TooManyRequestsException(inner) => {
114                Error::TooManyRequestsException(inner)
115            }
116            crate::operation::create_configuration_set::CreateConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
117        }
118    }
119}
120impl<R>
121    From<
122        ::aws_smithy_runtime_api::client::result::SdkError<
123            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
124            R,
125        >,
126    > for Error
127where
128    R: Send + Sync + std::fmt::Debug + 'static,
129{
130    fn from(
131        err: ::aws_smithy_runtime_api::client::result::SdkError<
132            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
133            R,
134        >,
135    ) -> Self {
136        match err {
137            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
138            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
139                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
140                source: err.into(),
141            }),
142        }
143    }
144}
145impl From<crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError> for Error {
146    fn from(err: crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError) -> Self {
147        match err {
148            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::AlreadyExistsException(
149                inner,
150            ) => Error::AlreadyExistsException(inner),
151            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::BadRequestException(inner) => {
152                Error::BadRequestException(inner)
153            }
154            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::LimitExceededException(
155                inner,
156            ) => Error::LimitExceededException(inner),
157            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::NotFoundException(inner) => {
158                Error::NotFoundException(inner)
159            }
160            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::TooManyRequestsException(
161                inner,
162            ) => Error::TooManyRequestsException(inner),
163            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::Unhandled(inner) => {
164                Error::Unhandled(inner)
165            }
166        }
167    }
168}
169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError, R>> for Error
170where
171    R: Send + Sync + std::fmt::Debug + 'static,
172{
173    fn from(
174        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError, R>,
175    ) -> Self {
176        match err {
177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
180                source: err.into(),
181            }),
182        }
183    }
184}
185impl From<crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError> for Error {
186    fn from(err: crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError) -> Self {
187        match err {
188            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::AlreadyExistsException(inner) => {
189                Error::AlreadyExistsException(inner)
190            }
191            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::BadRequestException(inner) => Error::BadRequestException(inner),
192            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::ConcurrentModificationException(inner) => {
193                Error::ConcurrentModificationException(inner)
194            }
195            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::LimitExceededException(inner) => {
196                Error::LimitExceededException(inner)
197            }
198            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::TooManyRequestsException(inner) => {
199                Error::TooManyRequestsException(inner)
200            }
201            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::Unhandled(inner) => Error::Unhandled(inner),
202        }
203    }
204}
205impl<R>
206    From<
207        ::aws_smithy_runtime_api::client::result::SdkError<
208            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError,
209            R,
210        >,
211    > for Error
212where
213    R: Send + Sync + std::fmt::Debug + 'static,
214{
215    fn from(
216        err: ::aws_smithy_runtime_api::client::result::SdkError<
217            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError,
218            R,
219        >,
220    ) -> Self {
221        match err {
222            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
223            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
224                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
225                source: err.into(),
226            }),
227        }
228    }
229}
230impl From<crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError> for Error {
231    fn from(err: crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError) -> Self {
232        match err {
233            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::AccountSuspendedException(inner) => {
234                Error::AccountSuspendedException(inner)
235            }
236            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::BadRequestException(inner) => {
237                Error::BadRequestException(inner)
238            }
239            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::ConcurrentModificationException(inner) => {
240                Error::ConcurrentModificationException(inner)
241            }
242            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::LimitExceededException(inner) => {
243                Error::LimitExceededException(inner)
244            }
245            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::MailFromDomainNotVerifiedException(inner) => {
246                Error::MailFromDomainNotVerifiedException(inner)
247            }
248            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::MessageRejected(inner) => {
249                Error::MessageRejected(inner)
250            }
251            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::NotFoundException(inner) => {
252                Error::NotFoundException(inner)
253            }
254            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::SendingPausedException(inner) => {
255                Error::SendingPausedException(inner)
256            }
257            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::TooManyRequestsException(inner) => {
258                Error::TooManyRequestsException(inner)
259            }
260            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::Unhandled(inner) => Error::Unhandled(inner),
261        }
262    }
263}
264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_identity::CreateEmailIdentityError, R>> for Error
265where
266    R: Send + Sync + std::fmt::Debug + 'static,
267{
268    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_identity::CreateEmailIdentityError, R>) -> Self {
269        match err {
270            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
271            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
272                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
273                source: err.into(),
274            }),
275        }
276    }
277}
278impl From<crate::operation::create_email_identity::CreateEmailIdentityError> for Error {
279    fn from(err: crate::operation::create_email_identity::CreateEmailIdentityError) -> Self {
280        match err {
281            crate::operation::create_email_identity::CreateEmailIdentityError::BadRequestException(inner) => Error::BadRequestException(inner),
282            crate::operation::create_email_identity::CreateEmailIdentityError::ConcurrentModificationException(inner) => {
283                Error::ConcurrentModificationException(inner)
284            }
285            crate::operation::create_email_identity::CreateEmailIdentityError::LimitExceededException(inner) => Error::LimitExceededException(inner),
286            crate::operation::create_email_identity::CreateEmailIdentityError::TooManyRequestsException(inner) => {
287                Error::TooManyRequestsException(inner)
288            }
289            crate::operation::create_email_identity::CreateEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
290        }
291    }
292}
293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>> for Error
294where
295    R: Send + Sync + std::fmt::Debug + 'static,
296{
297    fn from(
298        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>,
299    ) -> Self {
300        match err {
301            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
302            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
303                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
304                source: err.into(),
305            }),
306        }
307    }
308}
309impl From<crate::operation::delete_configuration_set::DeleteConfigurationSetError> for Error {
310    fn from(err: crate::operation::delete_configuration_set::DeleteConfigurationSetError) -> Self {
311        match err {
312            crate::operation::delete_configuration_set::DeleteConfigurationSetError::BadRequestException(inner) => Error::BadRequestException(inner),
313            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ConcurrentModificationException(inner) => {
314                Error::ConcurrentModificationException(inner)
315            }
316            crate::operation::delete_configuration_set::DeleteConfigurationSetError::NotFoundException(inner) => Error::NotFoundException(inner),
317            crate::operation::delete_configuration_set::DeleteConfigurationSetError::TooManyRequestsException(inner) => {
318                Error::TooManyRequestsException(inner)
319            }
320            crate::operation::delete_configuration_set::DeleteConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
321        }
322    }
323}
324impl<R>
325    From<
326        ::aws_smithy_runtime_api::client::result::SdkError<
327            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
328            R,
329        >,
330    > for Error
331where
332    R: Send + Sync + std::fmt::Debug + 'static,
333{
334    fn from(
335        err: ::aws_smithy_runtime_api::client::result::SdkError<
336            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
337            R,
338        >,
339    ) -> Self {
340        match err {
341            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
342            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
343                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
344                source: err.into(),
345            }),
346        }
347    }
348}
349impl From<crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError> for Error {
350    fn from(err: crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError) -> Self {
351        match err {
352            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::BadRequestException(inner) => {
353                Error::BadRequestException(inner)
354            }
355            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::NotFoundException(inner) => {
356                Error::NotFoundException(inner)
357            }
358            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::TooManyRequestsException(
359                inner,
360            ) => Error::TooManyRequestsException(inner),
361            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::Unhandled(inner) => {
362                Error::Unhandled(inner)
363            }
364        }
365    }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError, R>> for Error
368where
369    R: Send + Sync + std::fmt::Debug + 'static,
370{
371    fn from(
372        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError, R>,
373    ) -> Self {
374        match err {
375            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
376            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
377                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
378                source: err.into(),
379            }),
380        }
381    }
382}
383impl From<crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError> for Error {
384    fn from(err: crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError) -> Self {
385        match err {
386            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::BadRequestException(inner) => Error::BadRequestException(inner),
387            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::ConcurrentModificationException(inner) => {
388                Error::ConcurrentModificationException(inner)
389            }
390            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::NotFoundException(inner) => Error::NotFoundException(inner),
391            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::TooManyRequestsException(inner) => {
392                Error::TooManyRequestsException(inner)
393            }
394            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::Unhandled(inner) => Error::Unhandled(inner),
395        }
396    }
397}
398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_identity::DeleteEmailIdentityError, R>> for Error
399where
400    R: Send + Sync + std::fmt::Debug + 'static,
401{
402    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_identity::DeleteEmailIdentityError, R>) -> Self {
403        match err {
404            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
405            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
406                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
407                source: err.into(),
408            }),
409        }
410    }
411}
412impl From<crate::operation::delete_email_identity::DeleteEmailIdentityError> for Error {
413    fn from(err: crate::operation::delete_email_identity::DeleteEmailIdentityError) -> Self {
414        match err {
415            crate::operation::delete_email_identity::DeleteEmailIdentityError::BadRequestException(inner) => Error::BadRequestException(inner),
416            crate::operation::delete_email_identity::DeleteEmailIdentityError::ConcurrentModificationException(inner) => {
417                Error::ConcurrentModificationException(inner)
418            }
419            crate::operation::delete_email_identity::DeleteEmailIdentityError::NotFoundException(inner) => Error::NotFoundException(inner),
420            crate::operation::delete_email_identity::DeleteEmailIdentityError::TooManyRequestsException(inner) => {
421                Error::TooManyRequestsException(inner)
422            }
423            crate::operation::delete_email_identity::DeleteEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
424        }
425    }
426}
427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account::GetAccountError, R>> for Error
428where
429    R: Send + Sync + std::fmt::Debug + 'static,
430{
431    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account::GetAccountError, R>) -> Self {
432        match err {
433            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
434            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
435                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
436                source: err.into(),
437            }),
438        }
439    }
440}
441impl From<crate::operation::get_account::GetAccountError> for Error {
442    fn from(err: crate::operation::get_account::GetAccountError) -> Self {
443        match err {
444            crate::operation::get_account::GetAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
445            crate::operation::get_account::GetAccountError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
446            crate::operation::get_account::GetAccountError::Unhandled(inner) => Error::Unhandled(inner),
447        }
448    }
449}
450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_blacklist_reports::GetBlacklistReportsError, R>> for Error
451where
452    R: Send + Sync + std::fmt::Debug + 'static,
453{
454    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_blacklist_reports::GetBlacklistReportsError, R>) -> Self {
455        match err {
456            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
457            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
458                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
459                source: err.into(),
460            }),
461        }
462    }
463}
464impl From<crate::operation::get_blacklist_reports::GetBlacklistReportsError> for Error {
465    fn from(err: crate::operation::get_blacklist_reports::GetBlacklistReportsError) -> Self {
466        match err {
467            crate::operation::get_blacklist_reports::GetBlacklistReportsError::BadRequestException(inner) => Error::BadRequestException(inner),
468            crate::operation::get_blacklist_reports::GetBlacklistReportsError::NotFoundException(inner) => Error::NotFoundException(inner),
469            crate::operation::get_blacklist_reports::GetBlacklistReportsError::TooManyRequestsException(inner) => {
470                Error::TooManyRequestsException(inner)
471            }
472            crate::operation::get_blacklist_reports::GetBlacklistReportsError::Unhandled(inner) => Error::Unhandled(inner),
473        }
474    }
475}
476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration_set::GetConfigurationSetError, R>> for Error
477where
478    R: Send + Sync + std::fmt::Debug + 'static,
479{
480    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration_set::GetConfigurationSetError, R>) -> Self {
481        match err {
482            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
483            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
484                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
485                source: err.into(),
486            }),
487        }
488    }
489}
490impl From<crate::operation::get_configuration_set::GetConfigurationSetError> for Error {
491    fn from(err: crate::operation::get_configuration_set::GetConfigurationSetError) -> Self {
492        match err {
493            crate::operation::get_configuration_set::GetConfigurationSetError::BadRequestException(inner) => Error::BadRequestException(inner),
494            crate::operation::get_configuration_set::GetConfigurationSetError::NotFoundException(inner) => Error::NotFoundException(inner),
495            crate::operation::get_configuration_set::GetConfigurationSetError::TooManyRequestsException(inner) => {
496                Error::TooManyRequestsException(inner)
497            }
498            crate::operation::get_configuration_set::GetConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
499        }
500    }
501}
502impl<R>
503    From<
504        ::aws_smithy_runtime_api::client::result::SdkError<
505            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError,
506            R,
507        >,
508    > for Error
509where
510    R: Send + Sync + std::fmt::Debug + 'static,
511{
512    fn from(
513        err: ::aws_smithy_runtime_api::client::result::SdkError<
514            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError,
515            R,
516        >,
517    ) -> Self {
518        match err {
519            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
520            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
521                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
522                source: err.into(),
523            }),
524        }
525    }
526}
527impl From<crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError> for Error {
528    fn from(err: crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError) -> Self {
529        match err {
530            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::BadRequestException(inner) => {
531                Error::BadRequestException(inner)
532            }
533            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::NotFoundException(inner) => {
534                Error::NotFoundException(inner)
535            }
536            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::TooManyRequestsException(
537                inner,
538            ) => Error::TooManyRequestsException(inner),
539            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::Unhandled(inner) => {
540                Error::Unhandled(inner)
541            }
542        }
543    }
544}
545impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ip::GetDedicatedIpError, R>> for Error
546where
547    R: Send + Sync + std::fmt::Debug + 'static,
548{
549    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ip::GetDedicatedIpError, R>) -> Self {
550        match err {
551            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
552            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
553                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
554                source: err.into(),
555            }),
556        }
557    }
558}
559impl From<crate::operation::get_dedicated_ip::GetDedicatedIpError> for Error {
560    fn from(err: crate::operation::get_dedicated_ip::GetDedicatedIpError) -> Self {
561        match err {
562            crate::operation::get_dedicated_ip::GetDedicatedIpError::BadRequestException(inner) => Error::BadRequestException(inner),
563            crate::operation::get_dedicated_ip::GetDedicatedIpError::NotFoundException(inner) => Error::NotFoundException(inner),
564            crate::operation::get_dedicated_ip::GetDedicatedIpError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
565            crate::operation::get_dedicated_ip::GetDedicatedIpError::Unhandled(inner) => Error::Unhandled(inner),
566        }
567    }
568}
569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ips::GetDedicatedIpsError, R>> for Error
570where
571    R: Send + Sync + std::fmt::Debug + 'static,
572{
573    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ips::GetDedicatedIpsError, R>) -> Self {
574        match err {
575            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
576            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
577                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
578                source: err.into(),
579            }),
580        }
581    }
582}
583impl From<crate::operation::get_dedicated_ips::GetDedicatedIpsError> for Error {
584    fn from(err: crate::operation::get_dedicated_ips::GetDedicatedIpsError) -> Self {
585        match err {
586            crate::operation::get_dedicated_ips::GetDedicatedIpsError::BadRequestException(inner) => Error::BadRequestException(inner),
587            crate::operation::get_dedicated_ips::GetDedicatedIpsError::NotFoundException(inner) => Error::NotFoundException(inner),
588            crate::operation::get_dedicated_ips::GetDedicatedIpsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
589            crate::operation::get_dedicated_ips::GetDedicatedIpsError::Unhandled(inner) => Error::Unhandled(inner),
590        }
591    }
592}
593impl<R>
594    From<
595        ::aws_smithy_runtime_api::client::result::SdkError<
596            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError,
597            R,
598        >,
599    > for Error
600where
601    R: Send + Sync + std::fmt::Debug + 'static,
602{
603    fn from(
604        err: ::aws_smithy_runtime_api::client::result::SdkError<
605            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError,
606            R,
607        >,
608    ) -> Self {
609        match err {
610            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
611            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
612                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
613                source: err.into(),
614            }),
615        }
616    }
617}
618impl From<crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError> for Error {
619    fn from(err: crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError) -> Self {
620        match err {
621            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::BadRequestException(inner) => {
622                Error::BadRequestException(inner)
623            }
624            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::LimitExceededException(inner) => {
625                Error::LimitExceededException(inner)
626            }
627            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::TooManyRequestsException(inner) => {
628                Error::TooManyRequestsException(inner)
629            }
630            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::Unhandled(inner) => {
631                Error::Unhandled(inner)
632            }
633        }
634    }
635}
636impl<R>
637    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError, R>>
638    for Error
639where
640    R: Send + Sync + std::fmt::Debug + 'static,
641{
642    fn from(
643        err: ::aws_smithy_runtime_api::client::result::SdkError<
644            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError,
645            R,
646        >,
647    ) -> Self {
648        match err {
649            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
650            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
651                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
652                source: err.into(),
653            }),
654        }
655    }
656}
657impl From<crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError> for Error {
658    fn from(err: crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError) -> Self {
659        match err {
660            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::BadRequestException(inner) => {
661                Error::BadRequestException(inner)
662            }
663            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::NotFoundException(inner) => {
664                Error::NotFoundException(inner)
665            }
666            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::TooManyRequestsException(inner) => {
667                Error::TooManyRequestsException(inner)
668            }
669            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::Unhandled(inner) => Error::Unhandled(inner),
670        }
671    }
672}
673impl<R>
674    From<
675        ::aws_smithy_runtime_api::client::result::SdkError<
676            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError,
677            R,
678        >,
679    > for Error
680where
681    R: Send + Sync + std::fmt::Debug + 'static,
682{
683    fn from(
684        err: ::aws_smithy_runtime_api::client::result::SdkError<
685            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError,
686            R,
687        >,
688    ) -> Self {
689        match err {
690            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
691            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
692                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
693                source: err.into(),
694            }),
695        }
696    }
697}
698impl From<crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError> for Error {
699    fn from(err: crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError) -> Self {
700        match err {
701            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::BadRequestException(inner) => {
702                Error::BadRequestException(inner)
703            }
704            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::NotFoundException(inner) => {
705                Error::NotFoundException(inner)
706            }
707            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::TooManyRequestsException(inner) => {
708                Error::TooManyRequestsException(inner)
709            }
710            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::Unhandled(inner) => Error::Unhandled(inner),
711        }
712    }
713}
714impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError, R>>
715    for Error
716where
717    R: Send + Sync + std::fmt::Debug + 'static,
718{
719    fn from(
720        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError, R>,
721    ) -> Self {
722        match err {
723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726                source: err.into(),
727            }),
728        }
729    }
730}
731impl From<crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError> for Error {
732    fn from(err: crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError) -> Self {
733        match err {
734            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::BadRequestException(inner) => {
735                Error::BadRequestException(inner)
736            }
737            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::NotFoundException(inner) => {
738                Error::NotFoundException(inner)
739            }
740            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::TooManyRequestsException(inner) => {
741                Error::TooManyRequestsException(inner)
742            }
743            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::Unhandled(inner) => Error::Unhandled(inner),
744        }
745    }
746}
747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_identity::GetEmailIdentityError, R>> for Error
748where
749    R: Send + Sync + std::fmt::Debug + 'static,
750{
751    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_identity::GetEmailIdentityError, R>) -> 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_email_identity::GetEmailIdentityError> for Error {
762    fn from(err: crate::operation::get_email_identity::GetEmailIdentityError) -> Self {
763        match err {
764            crate::operation::get_email_identity::GetEmailIdentityError::BadRequestException(inner) => Error::BadRequestException(inner),
765            crate::operation::get_email_identity::GetEmailIdentityError::NotFoundException(inner) => Error::NotFoundException(inner),
766            crate::operation::get_email_identity::GetEmailIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
767            crate::operation::get_email_identity::GetEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
768        }
769    }
770}
771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>> for Error
772where
773    R: Send + Sync + std::fmt::Debug + 'static,
774{
775    fn from(
776        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>,
777    ) -> Self {
778        match err {
779            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782                source: err.into(),
783            }),
784        }
785    }
786}
787impl From<crate::operation::list_configuration_sets::ListConfigurationSetsError> for Error {
788    fn from(err: crate::operation::list_configuration_sets::ListConfigurationSetsError) -> Self {
789        match err {
790            crate::operation::list_configuration_sets::ListConfigurationSetsError::BadRequestException(inner) => Error::BadRequestException(inner),
791            crate::operation::list_configuration_sets::ListConfigurationSetsError::TooManyRequestsException(inner) => {
792                Error::TooManyRequestsException(inner)
793            }
794            crate::operation::list_configuration_sets::ListConfigurationSetsError::Unhandled(inner) => Error::Unhandled(inner),
795        }
796    }
797}
798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError, R>> for Error
799where
800    R: Send + Sync + std::fmt::Debug + 'static,
801{
802    fn from(
803        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError, R>,
804    ) -> Self {
805        match err {
806            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
807            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
808                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
809                source: err.into(),
810            }),
811        }
812    }
813}
814impl From<crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError> for Error {
815    fn from(err: crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError) -> Self {
816        match err {
817            crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError::BadRequestException(inner) => Error::BadRequestException(inner),
818            crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError::TooManyRequestsException(inner) => {
819                Error::TooManyRequestsException(inner)
820            }
821            crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError::Unhandled(inner) => Error::Unhandled(inner),
822        }
823    }
824}
825impl<R>
826    From<
827        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError, R>,
828    > for Error
829where
830    R: Send + Sync + std::fmt::Debug + 'static,
831{
832    fn from(
833        err: ::aws_smithy_runtime_api::client::result::SdkError<
834            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError,
835            R,
836        >,
837    ) -> Self {
838        match err {
839            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
840            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
841                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
842                source: err.into(),
843            }),
844        }
845    }
846}
847impl From<crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError> for Error {
848    fn from(err: crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError) -> Self {
849        match err {
850            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::BadRequestException(inner) => {
851                Error::BadRequestException(inner)
852            }
853            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::NotFoundException(inner) => {
854                Error::NotFoundException(inner)
855            }
856            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::TooManyRequestsException(inner) => {
857                Error::TooManyRequestsException(inner)
858            }
859            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::Unhandled(inner) => Error::Unhandled(inner),
860        }
861    }
862}
863impl<R>
864    From<
865        ::aws_smithy_runtime_api::client::result::SdkError<
866            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError,
867            R,
868        >,
869    > for Error
870where
871    R: Send + Sync + std::fmt::Debug + 'static,
872{
873    fn from(
874        err: ::aws_smithy_runtime_api::client::result::SdkError<
875            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError,
876            R,
877        >,
878    ) -> Self {
879        match err {
880            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
881            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
882                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
883                source: err.into(),
884            }),
885        }
886    }
887}
888impl From<crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError> for Error {
889    fn from(err: crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError) -> Self {
890        match err {
891            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::BadRequestException(inner) => {
892                Error::BadRequestException(inner)
893            }
894            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::NotFoundException(inner) => {
895                Error::NotFoundException(inner)
896            }
897            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::TooManyRequestsException(inner) => {
898                Error::TooManyRequestsException(inner)
899            }
900            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::Unhandled(inner) => {
901                Error::Unhandled(inner)
902            }
903        }
904    }
905}
906impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_email_identities::ListEmailIdentitiesError, R>> for Error
907where
908    R: Send + Sync + std::fmt::Debug + 'static,
909{
910    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_email_identities::ListEmailIdentitiesError, R>) -> Self {
911        match err {
912            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
913            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
914                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
915                source: err.into(),
916            }),
917        }
918    }
919}
920impl From<crate::operation::list_email_identities::ListEmailIdentitiesError> for Error {
921    fn from(err: crate::operation::list_email_identities::ListEmailIdentitiesError) -> Self {
922        match err {
923            crate::operation::list_email_identities::ListEmailIdentitiesError::BadRequestException(inner) => Error::BadRequestException(inner),
924            crate::operation::list_email_identities::ListEmailIdentitiesError::TooManyRequestsException(inner) => {
925                Error::TooManyRequestsException(inner)
926            }
927            crate::operation::list_email_identities::ListEmailIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
928        }
929    }
930}
931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
932where
933    R: Send + Sync + std::fmt::Debug + 'static,
934{
935    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
936        match err {
937            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
938            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
939                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
940                source: err.into(),
941            }),
942        }
943    }
944}
945impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
946    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
947        match err {
948            crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
949            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
950            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestsException(inner) => {
951                Error::TooManyRequestsException(inner)
952            }
953            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
954        }
955    }
956}
957impl<R>
958    From<
959        ::aws_smithy_runtime_api::client::result::SdkError<
960            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError,
961            R,
962        >,
963    > for Error
964where
965    R: Send + Sync + std::fmt::Debug + 'static,
966{
967    fn from(
968        err: ::aws_smithy_runtime_api::client::result::SdkError<
969            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError,
970            R,
971        >,
972    ) -> Self {
973        match err {
974            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
975            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
976                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
977                source: err.into(),
978            }),
979        }
980    }
981}
982impl From<crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError> for Error {
983    fn from(err: crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError) -> Self {
984        match err {
985            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError::BadRequestException(inner) => {
986                Error::BadRequestException(inner)
987            }
988            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError::TooManyRequestsException(
989                inner,
990            ) => Error::TooManyRequestsException(inner),
991            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError::Unhandled(inner) => {
992                Error::Unhandled(inner)
993            }
994        }
995    }
996}
997impl<R>
998    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError, R>>
999    for Error
1000where
1001    R: Send + Sync + std::fmt::Debug + 'static,
1002{
1003    fn from(
1004        err: ::aws_smithy_runtime_api::client::result::SdkError<
1005            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError,
1006            R,
1007        >,
1008    ) -> Self {
1009        match err {
1010            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1011            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1012                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1013                source: err.into(),
1014            }),
1015        }
1016    }
1017}
1018impl From<crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError> for Error {
1019    fn from(err: crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError) -> Self {
1020        match err {
1021            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError::BadRequestException(inner) => {
1022                Error::BadRequestException(inner)
1023            }
1024            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError::TooManyRequestsException(inner) => {
1025                Error::TooManyRequestsException(inner)
1026            }
1027            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1028        }
1029    }
1030}
1031impl<R>
1032    From<
1033        ::aws_smithy_runtime_api::client::result::SdkError<
1034            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
1035            R,
1036        >,
1037    > for Error
1038where
1039    R: Send + Sync + std::fmt::Debug + 'static,
1040{
1041    fn from(
1042        err: ::aws_smithy_runtime_api::client::result::SdkError<
1043            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
1044            R,
1045        >,
1046    ) -> Self {
1047        match err {
1048            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1049            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1050                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1051                source: err.into(),
1052            }),
1053        }
1054    }
1055}
1056impl From<crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError> for Error {
1057    fn from(err: crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError) -> Self {
1058        match err {
1059            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::BadRequestException(inner) => {
1060                Error::BadRequestException(inner)
1061            }
1062            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::NotFoundException(inner) => {
1063                Error::NotFoundException(inner)
1064            }
1065            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::TooManyRequestsException(inner) => {
1066                Error::TooManyRequestsException(inner)
1067            }
1068            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::Unhandled(inner) => {
1069                Error::Unhandled(inner)
1070            }
1071        }
1072    }
1073}
1074impl<R>
1075    From<
1076        ::aws_smithy_runtime_api::client::result::SdkError<
1077            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError,
1078            R,
1079        >,
1080    > for Error
1081where
1082    R: Send + Sync + std::fmt::Debug + 'static,
1083{
1084    fn from(
1085        err: ::aws_smithy_runtime_api::client::result::SdkError<
1086            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError,
1087            R,
1088        >,
1089    ) -> Self {
1090        match err {
1091            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094                source: err.into(),
1095            }),
1096        }
1097    }
1098}
1099impl From<crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError> for Error {
1100    fn from(err: crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError) -> Self {
1101        match err {
1102            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::BadRequestException(inner) => {
1103                Error::BadRequestException(inner)
1104            }
1105            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::NotFoundException(inner) => {
1106                Error::NotFoundException(inner)
1107            }
1108            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::TooManyRequestsException(
1109                inner,
1110            ) => Error::TooManyRequestsException(inner),
1111            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::Unhandled(inner) => {
1112                Error::Unhandled(inner)
1113            }
1114        }
1115    }
1116}
1117impl<R>
1118    From<
1119        ::aws_smithy_runtime_api::client::result::SdkError<
1120            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError,
1121            R,
1122        >,
1123    > for Error
1124where
1125    R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127    fn from(
1128        err: ::aws_smithy_runtime_api::client::result::SdkError<
1129            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError,
1130            R,
1131        >,
1132    ) -> Self {
1133        match err {
1134            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1135            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1136                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1137                source: err.into(),
1138            }),
1139        }
1140    }
1141}
1142impl From<crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError> for Error {
1143    fn from(err: crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError) -> Self {
1144        match err {
1145            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::BadRequestException(inner) => {
1146                Error::BadRequestException(inner)
1147            }
1148            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::NotFoundException(inner) => {
1149                Error::NotFoundException(inner)
1150            }
1151            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::TooManyRequestsException(inner) => {
1152                Error::TooManyRequestsException(inner)
1153            }
1154            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::Unhandled(inner) => {
1155                Error::Unhandled(inner)
1156            }
1157        }
1158    }
1159}
1160impl<R>
1161    From<
1162        ::aws_smithy_runtime_api::client::result::SdkError<
1163            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError,
1164            R,
1165        >,
1166    > for Error
1167where
1168    R: Send + Sync + std::fmt::Debug + 'static,
1169{
1170    fn from(
1171        err: ::aws_smithy_runtime_api::client::result::SdkError<
1172            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError,
1173            R,
1174        >,
1175    ) -> Self {
1176        match err {
1177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1180                source: err.into(),
1181            }),
1182        }
1183    }
1184}
1185impl From<crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError> for Error {
1186    fn from(err: crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError) -> Self {
1187        match err {
1188            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::BadRequestException(inner) => {
1189                Error::BadRequestException(inner)
1190            }
1191            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::NotFoundException(inner) => {
1192                Error::NotFoundException(inner)
1193            }
1194            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::TooManyRequestsException(inner) => {
1195                Error::TooManyRequestsException(inner)
1196            }
1197            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::Unhandled(inner) => {
1198                Error::Unhandled(inner)
1199            }
1200        }
1201    }
1202}
1203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError, R>> for Error
1204where
1205    R: Send + Sync + std::fmt::Debug + 'static,
1206{
1207    fn from(
1208        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError, R>,
1209    ) -> 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::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError> for Error {
1220    fn from(err: crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError) -> Self {
1221        match err {
1222            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::BadRequestException(inner) => Error::BadRequestException(inner),
1223            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::NotFoundException(inner) => Error::NotFoundException(inner),
1224            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::TooManyRequestsException(inner) => {
1225                Error::TooManyRequestsException(inner)
1226            }
1227            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::Unhandled(inner) => Error::Unhandled(inner),
1228        }
1229    }
1230}
1231impl<R>
1232    From<
1233        ::aws_smithy_runtime_api::client::result::SdkError<
1234            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError,
1235            R,
1236        >,
1237    > for Error
1238where
1239    R: Send + Sync + std::fmt::Debug + 'static,
1240{
1241    fn from(
1242        err: ::aws_smithy_runtime_api::client::result::SdkError<
1243            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError,
1244            R,
1245        >,
1246    ) -> Self {
1247        match err {
1248            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1249            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1250                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1251                source: err.into(),
1252            }),
1253        }
1254    }
1255}
1256impl From<crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError> for Error {
1257    fn from(err: crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError) -> Self {
1258        match err {
1259            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::BadRequestException(inner) => {
1260                Error::BadRequestException(inner)
1261            }
1262            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::NotFoundException(inner) => {
1263                Error::NotFoundException(inner)
1264            }
1265            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::TooManyRequestsException(inner) => {
1266                Error::TooManyRequestsException(inner)
1267            }
1268            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1269        }
1270    }
1271}
1272impl<R>
1273    From<
1274        ::aws_smithy_runtime_api::client::result::SdkError<
1275            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError,
1276            R,
1277        >,
1278    > for Error
1279where
1280    R: Send + Sync + std::fmt::Debug + 'static,
1281{
1282    fn from(
1283        err: ::aws_smithy_runtime_api::client::result::SdkError<
1284            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError,
1285            R,
1286        >,
1287    ) -> Self {
1288        match err {
1289            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1290            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1291                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1292                source: err.into(),
1293            }),
1294        }
1295    }
1296}
1297impl From<crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError> for Error {
1298    fn from(err: crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError) -> Self {
1299        match err {
1300            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::AlreadyExistsException(inner) => {
1301                Error::AlreadyExistsException(inner)
1302            }
1303            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::BadRequestException(inner) => {
1304                Error::BadRequestException(inner)
1305            }
1306            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::LimitExceededException(inner) => {
1307                Error::LimitExceededException(inner)
1308            }
1309            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::NotFoundException(inner) => {
1310                Error::NotFoundException(inner)
1311            }
1312            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::TooManyRequestsException(inner) => {
1313                Error::TooManyRequestsException(inner)
1314            }
1315            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::Unhandled(inner) => Error::Unhandled(inner),
1316        }
1317    }
1318}
1319impl<R>
1320    From<
1321        ::aws_smithy_runtime_api::client::result::SdkError<
1322            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError,
1323            R,
1324        >,
1325    > for Error
1326where
1327    R: Send + Sync + std::fmt::Debug + 'static,
1328{
1329    fn from(
1330        err: ::aws_smithy_runtime_api::client::result::SdkError<
1331            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError,
1332            R,
1333        >,
1334    ) -> Self {
1335        match err {
1336            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1337            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1338                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1339                source: err.into(),
1340            }),
1341        }
1342    }
1343}
1344impl From<crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError> for Error {
1345    fn from(err: crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError) -> Self {
1346        match err {
1347            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::BadRequestException(inner) => {
1348                Error::BadRequestException(inner)
1349            }
1350            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::NotFoundException(inner) => {
1351                Error::NotFoundException(inner)
1352            }
1353            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::TooManyRequestsException(inner) => {
1354                Error::TooManyRequestsException(inner)
1355            }
1356            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1357        }
1358    }
1359}
1360impl<R>
1361    From<
1362        ::aws_smithy_runtime_api::client::result::SdkError<
1363            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError,
1364            R,
1365        >,
1366    > for Error
1367where
1368    R: Send + Sync + std::fmt::Debug + 'static,
1369{
1370    fn from(
1371        err: ::aws_smithy_runtime_api::client::result::SdkError<
1372            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError,
1373            R,
1374        >,
1375    ) -> Self {
1376        match err {
1377            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1378            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1379                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1380                source: err.into(),
1381            }),
1382        }
1383    }
1384}
1385impl From<crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError> for Error {
1386    fn from(err: crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError) -> Self {
1387        match err {
1388            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::BadRequestException(inner) => {
1389                Error::BadRequestException(inner)
1390            }
1391            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::NotFoundException(inner) => {
1392                Error::NotFoundException(inner)
1393            }
1394            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::TooManyRequestsException(inner) => {
1395                Error::TooManyRequestsException(inner)
1396            }
1397            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::Unhandled(inner) => {
1398                Error::Unhandled(inner)
1399            }
1400        }
1401    }
1402}
1403impl<R>
1404    From<
1405        ::aws_smithy_runtime_api::client::result::SdkError<
1406            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError,
1407            R,
1408        >,
1409    > for Error
1410where
1411    R: Send + Sync + std::fmt::Debug + 'static,
1412{
1413    fn from(
1414        err: ::aws_smithy_runtime_api::client::result::SdkError<
1415            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError,
1416            R,
1417        >,
1418    ) -> Self {
1419        match err {
1420            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1421            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1422                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1423                source: err.into(),
1424            }),
1425        }
1426    }
1427}
1428impl From<crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError> for Error {
1429    fn from(err: crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError) -> Self {
1430        match err {
1431            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::BadRequestException(inner) => {
1432                Error::BadRequestException(inner)
1433            }
1434            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::NotFoundException(inner) => {
1435                Error::NotFoundException(inner)
1436            }
1437            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::TooManyRequestsException(inner) => {
1438                Error::TooManyRequestsException(inner)
1439            }
1440            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::Unhandled(inner) => {
1441                Error::Unhandled(inner)
1442            }
1443        }
1444    }
1445}
1446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>> for Error
1447where
1448    R: Send + Sync + std::fmt::Debug + 'static,
1449{
1450    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>) -> Self {
1451        match err {
1452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1455                source: err.into(),
1456            }),
1457        }
1458    }
1459}
1460impl From<crate::operation::send_email::SendEmailError> for Error {
1461    fn from(err: crate::operation::send_email::SendEmailError) -> Self {
1462        match err {
1463            crate::operation::send_email::SendEmailError::AccountSuspendedException(inner) => Error::AccountSuspendedException(inner),
1464            crate::operation::send_email::SendEmailError::BadRequestException(inner) => Error::BadRequestException(inner),
1465            crate::operation::send_email::SendEmailError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1466            crate::operation::send_email::SendEmailError::MailFromDomainNotVerifiedException(inner) => {
1467                Error::MailFromDomainNotVerifiedException(inner)
1468            }
1469            crate::operation::send_email::SendEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
1470            crate::operation::send_email::SendEmailError::NotFoundException(inner) => Error::NotFoundException(inner),
1471            crate::operation::send_email::SendEmailError::SendingPausedException(inner) => Error::SendingPausedException(inner),
1472            crate::operation::send_email::SendEmailError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1473            crate::operation::send_email::SendEmailError::Unhandled(inner) => Error::Unhandled(inner),
1474        }
1475    }
1476}
1477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1478where
1479    R: Send + Sync + std::fmt::Debug + 'static,
1480{
1481    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1482        match err {
1483            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1484            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1485                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1486                source: err.into(),
1487            }),
1488        }
1489    }
1490}
1491impl From<crate::operation::tag_resource::TagResourceError> for Error {
1492    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1493        match err {
1494            crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1495            crate::operation::tag_resource::TagResourceError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1496            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1497            crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1498            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1499        }
1500    }
1501}
1502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1503where
1504    R: Send + Sync + std::fmt::Debug + 'static,
1505{
1506    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1507        match err {
1508            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1509            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1510                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1511                source: err.into(),
1512            }),
1513        }
1514    }
1515}
1516impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1517    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1518        match err {
1519            crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1520            crate::operation::untag_resource::UntagResourceError::ConcurrentModificationException(inner) => {
1521                Error::ConcurrentModificationException(inner)
1522            }
1523            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1524            crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1525            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1526        }
1527    }
1528}
1529impl<R>
1530    From<
1531        ::aws_smithy_runtime_api::client::result::SdkError<
1532            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
1533            R,
1534        >,
1535    > for Error
1536where
1537    R: Send + Sync + std::fmt::Debug + 'static,
1538{
1539    fn from(
1540        err: ::aws_smithy_runtime_api::client::result::SdkError<
1541            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
1542            R,
1543        >,
1544    ) -> Self {
1545        match err {
1546            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1547            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1548                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1549                source: err.into(),
1550            }),
1551        }
1552    }
1553}
1554impl From<crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError> for Error {
1555    fn from(err: crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError) -> Self {
1556        match err {
1557            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::BadRequestException(inner) => {
1558                Error::BadRequestException(inner)
1559            }
1560            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::NotFoundException(inner) => {
1561                Error::NotFoundException(inner)
1562            }
1563            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::TooManyRequestsException(
1564                inner,
1565            ) => Error::TooManyRequestsException(inner),
1566            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::Unhandled(inner) => {
1567                Error::Unhandled(inner)
1568            }
1569        }
1570    }
1571}
1572impl ::std::error::Error for Error {
1573    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1574        match self {
1575            Error::AccountSuspendedException(inner) => inner.source(),
1576            Error::AlreadyExistsException(inner) => inner.source(),
1577            Error::BadRequestException(inner) => inner.source(),
1578            Error::ConcurrentModificationException(inner) => inner.source(),
1579            Error::LimitExceededException(inner) => inner.source(),
1580            Error::MailFromDomainNotVerifiedException(inner) => inner.source(),
1581            Error::MessageRejected(inner) => inner.source(),
1582            Error::NotFoundException(inner) => inner.source(),
1583            Error::SendingPausedException(inner) => inner.source(),
1584            Error::TooManyRequestsException(inner) => inner.source(),
1585            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1586        }
1587    }
1588}
1589impl ::aws_types::request_id::RequestId for Error {
1590    fn request_id(&self) -> Option<&str> {
1591        match self {
1592            Self::AccountSuspendedException(e) => e.request_id(),
1593            Self::AlreadyExistsException(e) => e.request_id(),
1594            Self::BadRequestException(e) => e.request_id(),
1595            Self::ConcurrentModificationException(e) => e.request_id(),
1596            Self::LimitExceededException(e) => e.request_id(),
1597            Self::MailFromDomainNotVerifiedException(e) => e.request_id(),
1598            Self::MessageRejected(e) => e.request_id(),
1599            Self::NotFoundException(e) => e.request_id(),
1600            Self::SendingPausedException(e) => e.request_id(),
1601            Self::TooManyRequestsException(e) => e.request_id(),
1602            Self::Unhandled(e) => e.meta.request_id(),
1603        }
1604    }
1605}