aws_sdk_sesv2/
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>If there is already an ongoing account details update under review.</p>
15    ConflictException(crate::types::error::ConflictException),
16    /// <p>The request couldn't be processed because an error occurred with the Amazon SES API v2.</p>
17    InternalServiceErrorException(crate::types::error::InternalServiceErrorException),
18    /// <p>The specified request includes an invalid or expired token.</p>
19    InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
20    /// <p>There are too many instances of the specified resource type.</p>
21    LimitExceededException(crate::types::error::LimitExceededException),
22    /// <p>The message can't be sent because the sending domain isn't verified.</p>
23    MailFromDomainNotVerifiedException(crate::types::error::MailFromDomainNotVerifiedException),
24    /// <p>The message can't be sent because it contains invalid content.</p>
25    MessageRejected(crate::types::error::MessageRejected),
26    /// <p>The resource you attempted to access doesn't exist.</p>
27    NotFoundException(crate::types::error::NotFoundException),
28    /// <p>The message can't be sent because the account's ability to send email is currently paused.</p>
29    SendingPausedException(crate::types::error::SendingPausedException),
30    /// <p>Too many requests have been made to the operation.</p>
31    TooManyRequestsException(crate::types::error::TooManyRequestsException),
32    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
33    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
34    variable wildcard pattern and check `.code()`:
35     \
36    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
37     \
38    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
39    Unhandled(crate::error::sealed_unhandled::Unhandled),
40}
41impl ::std::fmt::Display for Error {
42    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
43        match self {
44            Error::AccountSuspendedException(inner) => inner.fmt(f),
45            Error::AlreadyExistsException(inner) => inner.fmt(f),
46            Error::BadRequestException(inner) => inner.fmt(f),
47            Error::ConcurrentModificationException(inner) => inner.fmt(f),
48            Error::ConflictException(inner) => inner.fmt(f),
49            Error::InternalServiceErrorException(inner) => inner.fmt(f),
50            Error::InvalidNextTokenException(inner) => inner.fmt(f),
51            Error::LimitExceededException(inner) => inner.fmt(f),
52            Error::MailFromDomainNotVerifiedException(inner) => inner.fmt(f),
53            Error::MessageRejected(inner) => inner.fmt(f),
54            Error::NotFoundException(inner) => inner.fmt(f),
55            Error::SendingPausedException(inner) => inner.fmt(f),
56            Error::TooManyRequestsException(inner) => inner.fmt(f),
57            Error::Unhandled(_) => {
58                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
59                    write!(f, "unhandled error ({code})")
60                } else {
61                    f.write_str("unhandled error")
62                }
63            }
64        }
65    }
66}
67impl From<::aws_smithy_types::error::operation::BuildError> for Error {
68    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
69        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
70            source: value.into(),
71            meta: ::std::default::Default::default(),
72        })
73    }
74}
75impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
76    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
77        match self {
78            Self::AccountSuspendedException(inner) => inner.meta(),
79            Self::AlreadyExistsException(inner) => inner.meta(),
80            Self::BadRequestException(inner) => inner.meta(),
81            Self::ConcurrentModificationException(inner) => inner.meta(),
82            Self::ConflictException(inner) => inner.meta(),
83            Self::InternalServiceErrorException(inner) => inner.meta(),
84            Self::InvalidNextTokenException(inner) => inner.meta(),
85            Self::LimitExceededException(inner) => inner.meta(),
86            Self::MailFromDomainNotVerifiedException(inner) => inner.meta(),
87            Self::MessageRejected(inner) => inner.meta(),
88            Self::NotFoundException(inner) => inner.meta(),
89            Self::SendingPausedException(inner) => inner.meta(),
90            Self::TooManyRequestsException(inner) => inner.meta(),
91            Self::Unhandled(inner) => &inner.meta,
92        }
93    }
94}
95impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_metric_data::BatchGetMetricDataError, R>> for Error
96where
97    R: Send + Sync + std::fmt::Debug + 'static,
98{
99    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_metric_data::BatchGetMetricDataError, R>) -> Self {
100        match err {
101            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
102            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
103                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
104                source: err.into(),
105            }),
106        }
107    }
108}
109impl From<crate::operation::batch_get_metric_data::BatchGetMetricDataError> for Error {
110    fn from(err: crate::operation::batch_get_metric_data::BatchGetMetricDataError) -> Self {
111        match err {
112            crate::operation::batch_get_metric_data::BatchGetMetricDataError::BadRequestException(inner) => Error::BadRequestException(inner),
113            crate::operation::batch_get_metric_data::BatchGetMetricDataError::InternalServiceErrorException(inner) => {
114                Error::InternalServiceErrorException(inner)
115            }
116            crate::operation::batch_get_metric_data::BatchGetMetricDataError::NotFoundException(inner) => Error::NotFoundException(inner),
117            crate::operation::batch_get_metric_data::BatchGetMetricDataError::TooManyRequestsException(inner) => {
118                Error::TooManyRequestsException(inner)
119            }
120            crate::operation::batch_get_metric_data::BatchGetMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
121        }
122    }
123}
124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_job::CancelExportJobError, R>> for Error
125where
126    R: Send + Sync + std::fmt::Debug + 'static,
127{
128    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_job::CancelExportJobError, R>) -> Self {
129        match err {
130            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
131            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
132                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
133                source: err.into(),
134            }),
135        }
136    }
137}
138impl From<crate::operation::cancel_export_job::CancelExportJobError> for Error {
139    fn from(err: crate::operation::cancel_export_job::CancelExportJobError) -> Self {
140        match err {
141            crate::operation::cancel_export_job::CancelExportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
142            crate::operation::cancel_export_job::CancelExportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
143            crate::operation::cancel_export_job::CancelExportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
144            crate::operation::cancel_export_job::CancelExportJobError::Unhandled(inner) => Error::Unhandled(inner),
145        }
146    }
147}
148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>> for Error
149where
150    R: Send + Sync + std::fmt::Debug + 'static,
151{
152    fn from(
153        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>,
154    ) -> Self {
155        match err {
156            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
157            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
158                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
159                source: err.into(),
160            }),
161        }
162    }
163}
164impl From<crate::operation::create_configuration_set::CreateConfigurationSetError> for Error {
165    fn from(err: crate::operation::create_configuration_set::CreateConfigurationSetError) -> Self {
166        match err {
167            crate::operation::create_configuration_set::CreateConfigurationSetError::AlreadyExistsException(inner) => {
168                Error::AlreadyExistsException(inner)
169            }
170            crate::operation::create_configuration_set::CreateConfigurationSetError::BadRequestException(inner) => Error::BadRequestException(inner),
171            crate::operation::create_configuration_set::CreateConfigurationSetError::ConcurrentModificationException(inner) => {
172                Error::ConcurrentModificationException(inner)
173            }
174            crate::operation::create_configuration_set::CreateConfigurationSetError::LimitExceededException(inner) => {
175                Error::LimitExceededException(inner)
176            }
177            crate::operation::create_configuration_set::CreateConfigurationSetError::NotFoundException(inner) => Error::NotFoundException(inner),
178            crate::operation::create_configuration_set::CreateConfigurationSetError::TooManyRequestsException(inner) => {
179                Error::TooManyRequestsException(inner)
180            }
181            crate::operation::create_configuration_set::CreateConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
182        }
183    }
184}
185impl<R>
186    From<
187        ::aws_smithy_runtime_api::client::result::SdkError<
188            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
189            R,
190        >,
191    > for Error
192where
193    R: Send + Sync + std::fmt::Debug + 'static,
194{
195    fn from(
196        err: ::aws_smithy_runtime_api::client::result::SdkError<
197            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
198            R,
199        >,
200    ) -> Self {
201        match err {
202            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
203            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
204                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
205                source: err.into(),
206            }),
207        }
208    }
209}
210impl From<crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError> for Error {
211    fn from(err: crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError) -> Self {
212        match err {
213            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::AlreadyExistsException(
214                inner,
215            ) => Error::AlreadyExistsException(inner),
216            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::BadRequestException(inner) => {
217                Error::BadRequestException(inner)
218            }
219            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::LimitExceededException(
220                inner,
221            ) => Error::LimitExceededException(inner),
222            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::NotFoundException(inner) => {
223                Error::NotFoundException(inner)
224            }
225            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::TooManyRequestsException(
226                inner,
227            ) => Error::TooManyRequestsException(inner),
228            crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::Unhandled(inner) => {
229                Error::Unhandled(inner)
230            }
231        }
232    }
233}
234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact::CreateContactError, R>> for Error
235where
236    R: Send + Sync + std::fmt::Debug + 'static,
237{
238    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact::CreateContactError, R>) -> Self {
239        match err {
240            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
241            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
242                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
243                source: err.into(),
244            }),
245        }
246    }
247}
248impl From<crate::operation::create_contact::CreateContactError> for Error {
249    fn from(err: crate::operation::create_contact::CreateContactError) -> Self {
250        match err {
251            crate::operation::create_contact::CreateContactError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
252            crate::operation::create_contact::CreateContactError::BadRequestException(inner) => Error::BadRequestException(inner),
253            crate::operation::create_contact::CreateContactError::NotFoundException(inner) => Error::NotFoundException(inner),
254            crate::operation::create_contact::CreateContactError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
255            crate::operation::create_contact::CreateContactError::Unhandled(inner) => Error::Unhandled(inner),
256        }
257    }
258}
259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_list::CreateContactListError, R>> for Error
260where
261    R: Send + Sync + std::fmt::Debug + 'static,
262{
263    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_list::CreateContactListError, R>) -> Self {
264        match err {
265            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
266            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
267                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
268                source: err.into(),
269            }),
270        }
271    }
272}
273impl From<crate::operation::create_contact_list::CreateContactListError> for Error {
274    fn from(err: crate::operation::create_contact_list::CreateContactListError) -> Self {
275        match err {
276            crate::operation::create_contact_list::CreateContactListError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
277            crate::operation::create_contact_list::CreateContactListError::BadRequestException(inner) => Error::BadRequestException(inner),
278            crate::operation::create_contact_list::CreateContactListError::LimitExceededException(inner) => Error::LimitExceededException(inner),
279            crate::operation::create_contact_list::CreateContactListError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
280            crate::operation::create_contact_list::CreateContactListError::Unhandled(inner) => Error::Unhandled(inner),
281        }
282    }
283}
284impl<R>
285    From<
286        ::aws_smithy_runtime_api::client::result::SdkError<
287            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError,
288            R,
289        >,
290    > for Error
291where
292    R: Send + Sync + std::fmt::Debug + 'static,
293{
294    fn from(
295        err: ::aws_smithy_runtime_api::client::result::SdkError<
296            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError,
297            R,
298        >,
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::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError> for Error {
310    fn from(err: crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError) -> Self {
311        match err {
312            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::AlreadyExistsException(
313                inner,
314            ) => Error::AlreadyExistsException(inner),
315            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::BadRequestException(inner) => {
316                Error::BadRequestException(inner)
317            }
318            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::LimitExceededException(
319                inner,
320            ) => Error::LimitExceededException(inner),
321            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::NotFoundException(inner) => {
322                Error::NotFoundException(inner)
323            }
324            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::TooManyRequestsException(
325                inner,
326            ) => Error::TooManyRequestsException(inner),
327            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::Unhandled(inner) => {
328                Error::Unhandled(inner)
329            }
330        }
331    }
332}
333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError, R>> for Error
334where
335    R: Send + Sync + std::fmt::Debug + 'static,
336{
337    fn from(
338        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError, R>,
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::create_dedicated_ip_pool::CreateDedicatedIpPoolError> for Error {
350    fn from(err: crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError) -> Self {
351        match err {
352            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::AlreadyExistsException(inner) => {
353                Error::AlreadyExistsException(inner)
354            }
355            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::BadRequestException(inner) => Error::BadRequestException(inner),
356            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::ConcurrentModificationException(inner) => {
357                Error::ConcurrentModificationException(inner)
358            }
359            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::LimitExceededException(inner) => {
360                Error::LimitExceededException(inner)
361            }
362            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::TooManyRequestsException(inner) => {
363                Error::TooManyRequestsException(inner)
364            }
365            crate::operation::create_dedicated_ip_pool::CreateDedicatedIpPoolError::Unhandled(inner) => Error::Unhandled(inner),
366        }
367    }
368}
369impl<R>
370    From<
371        ::aws_smithy_runtime_api::client::result::SdkError<
372            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError,
373            R,
374        >,
375    > for Error
376where
377    R: Send + Sync + std::fmt::Debug + 'static,
378{
379    fn from(
380        err: ::aws_smithy_runtime_api::client::result::SdkError<
381            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError,
382            R,
383        >,
384    ) -> Self {
385        match err {
386            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
387            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
388                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
389                source: err.into(),
390            }),
391        }
392    }
393}
394impl From<crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError> for Error {
395    fn from(err: crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError) -> Self {
396        match err {
397            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::AccountSuspendedException(inner) => {
398                Error::AccountSuspendedException(inner)
399            }
400            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::BadRequestException(inner) => {
401                Error::BadRequestException(inner)
402            }
403            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::ConcurrentModificationException(inner) => {
404                Error::ConcurrentModificationException(inner)
405            }
406            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::LimitExceededException(inner) => {
407                Error::LimitExceededException(inner)
408            }
409            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::MailFromDomainNotVerifiedException(inner) => {
410                Error::MailFromDomainNotVerifiedException(inner)
411            }
412            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::MessageRejected(inner) => {
413                Error::MessageRejected(inner)
414            }
415            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::NotFoundException(inner) => {
416                Error::NotFoundException(inner)
417            }
418            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::SendingPausedException(inner) => {
419                Error::SendingPausedException(inner)
420            }
421            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::TooManyRequestsException(inner) => {
422                Error::TooManyRequestsException(inner)
423            }
424            crate::operation::create_deliverability_test_report::CreateDeliverabilityTestReportError::Unhandled(inner) => Error::Unhandled(inner),
425        }
426    }
427}
428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_identity::CreateEmailIdentityError, R>> for Error
429where
430    R: Send + Sync + std::fmt::Debug + 'static,
431{
432    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_identity::CreateEmailIdentityError, R>) -> Self {
433        match err {
434            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
435            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
436                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
437                source: err.into(),
438            }),
439        }
440    }
441}
442impl From<crate::operation::create_email_identity::CreateEmailIdentityError> for Error {
443    fn from(err: crate::operation::create_email_identity::CreateEmailIdentityError) -> Self {
444        match err {
445            crate::operation::create_email_identity::CreateEmailIdentityError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
446            crate::operation::create_email_identity::CreateEmailIdentityError::BadRequestException(inner) => Error::BadRequestException(inner),
447            crate::operation::create_email_identity::CreateEmailIdentityError::ConcurrentModificationException(inner) => {
448                Error::ConcurrentModificationException(inner)
449            }
450            crate::operation::create_email_identity::CreateEmailIdentityError::LimitExceededException(inner) => Error::LimitExceededException(inner),
451            crate::operation::create_email_identity::CreateEmailIdentityError::NotFoundException(inner) => Error::NotFoundException(inner),
452            crate::operation::create_email_identity::CreateEmailIdentityError::TooManyRequestsException(inner) => {
453                Error::TooManyRequestsException(inner)
454            }
455            crate::operation::create_email_identity::CreateEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
456        }
457    }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError, R>>
460    for Error
461where
462    R: Send + Sync + std::fmt::Debug + 'static,
463{
464    fn from(
465        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError, R>,
466    ) -> Self {
467        match err {
468            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471                source: err.into(),
472            }),
473        }
474    }
475}
476impl From<crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError> for Error {
477    fn from(err: crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError) -> Self {
478        match err {
479            crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError::AlreadyExistsException(inner) => {
480                Error::AlreadyExistsException(inner)
481            }
482            crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError::BadRequestException(inner) => {
483                Error::BadRequestException(inner)
484            }
485            crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError::LimitExceededException(inner) => {
486                Error::LimitExceededException(inner)
487            }
488            crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError::NotFoundException(inner) => {
489                Error::NotFoundException(inner)
490            }
491            crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError::TooManyRequestsException(inner) => {
492                Error::TooManyRequestsException(inner)
493            }
494            crate::operation::create_email_identity_policy::CreateEmailIdentityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
495        }
496    }
497}
498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_template::CreateEmailTemplateError, R>> for Error
499where
500    R: Send + Sync + std::fmt::Debug + 'static,
501{
502    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_template::CreateEmailTemplateError, R>) -> Self {
503        match err {
504            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
505            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
506                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
507                source: err.into(),
508            }),
509        }
510    }
511}
512impl From<crate::operation::create_email_template::CreateEmailTemplateError> for Error {
513    fn from(err: crate::operation::create_email_template::CreateEmailTemplateError) -> Self {
514        match err {
515            crate::operation::create_email_template::CreateEmailTemplateError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
516            crate::operation::create_email_template::CreateEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
517            crate::operation::create_email_template::CreateEmailTemplateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
518            crate::operation::create_email_template::CreateEmailTemplateError::TooManyRequestsException(inner) => {
519                Error::TooManyRequestsException(inner)
520            }
521            crate::operation::create_email_template::CreateEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
522        }
523    }
524}
525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_job::CreateExportJobError, R>> for Error
526where
527    R: Send + Sync + std::fmt::Debug + 'static,
528{
529    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_job::CreateExportJobError, R>) -> Self {
530        match err {
531            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
532            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
533                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
534                source: err.into(),
535            }),
536        }
537    }
538}
539impl From<crate::operation::create_export_job::CreateExportJobError> for Error {
540    fn from(err: crate::operation::create_export_job::CreateExportJobError) -> Self {
541        match err {
542            crate::operation::create_export_job::CreateExportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
543            crate::operation::create_export_job::CreateExportJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
544            crate::operation::create_export_job::CreateExportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
545            crate::operation::create_export_job::CreateExportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
546            crate::operation::create_export_job::CreateExportJobError::Unhandled(inner) => Error::Unhandled(inner),
547        }
548    }
549}
550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_import_job::CreateImportJobError, R>> for Error
551where
552    R: Send + Sync + std::fmt::Debug + 'static,
553{
554    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_import_job::CreateImportJobError, R>) -> Self {
555        match err {
556            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
557            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
558                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
559                source: err.into(),
560            }),
561        }
562    }
563}
564impl From<crate::operation::create_import_job::CreateImportJobError> for Error {
565    fn from(err: crate::operation::create_import_job::CreateImportJobError) -> Self {
566        match err {
567            crate::operation::create_import_job::CreateImportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
568            crate::operation::create_import_job::CreateImportJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
569            crate::operation::create_import_job::CreateImportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
570            crate::operation::create_import_job::CreateImportJobError::Unhandled(inner) => Error::Unhandled(inner),
571        }
572    }
573}
574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError, R>>
575    for Error
576where
577    R: Send + Sync + std::fmt::Debug + 'static,
578{
579    fn from(
580        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError, R>,
581    ) -> Self {
582        match err {
583            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586                source: err.into(),
587            }),
588        }
589    }
590}
591impl From<crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError> for Error {
592    fn from(err: crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError) -> Self {
593        match err {
594            crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError::AlreadyExistsException(inner) => {
595                Error::AlreadyExistsException(inner)
596            }
597            crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError::BadRequestException(inner) => {
598                Error::BadRequestException(inner)
599            }
600            crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError::LimitExceededException(inner) => {
601                Error::LimitExceededException(inner)
602            }
603            crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError::TooManyRequestsException(inner) => {
604                Error::TooManyRequestsException(inner)
605            }
606            crate::operation::create_multi_region_endpoint::CreateMultiRegionEndpointError::Unhandled(inner) => Error::Unhandled(inner),
607        }
608    }
609}
610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tenant::CreateTenantError, 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::create_tenant::CreateTenantError, 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::create_tenant::CreateTenantError> for Error {
625    fn from(err: crate::operation::create_tenant::CreateTenantError) -> Self {
626        match err {
627            crate::operation::create_tenant::CreateTenantError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
628            crate::operation::create_tenant::CreateTenantError::BadRequestException(inner) => Error::BadRequestException(inner),
629            crate::operation::create_tenant::CreateTenantError::LimitExceededException(inner) => Error::LimitExceededException(inner),
630            crate::operation::create_tenant::CreateTenantError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
631            crate::operation::create_tenant::CreateTenantError::Unhandled(inner) => Error::Unhandled(inner),
632        }
633    }
634}
635impl<R>
636    From<
637        ::aws_smithy_runtime_api::client::result::SdkError<
638            crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError,
639            R,
640        >,
641    > for Error
642where
643    R: Send + Sync + std::fmt::Debug + 'static,
644{
645    fn from(
646        err: ::aws_smithy_runtime_api::client::result::SdkError<
647            crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError,
648            R,
649        >,
650    ) -> Self {
651        match err {
652            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
653            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
654                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
655                source: err.into(),
656            }),
657        }
658    }
659}
660impl From<crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError> for Error {
661    fn from(err: crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError) -> Self {
662        match err {
663            crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError::AlreadyExistsException(inner) => {
664                Error::AlreadyExistsException(inner)
665            }
666            crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError::BadRequestException(inner) => {
667                Error::BadRequestException(inner)
668            }
669            crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError::NotFoundException(inner) => {
670                Error::NotFoundException(inner)
671            }
672            crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError::TooManyRequestsException(inner) => {
673                Error::TooManyRequestsException(inner)
674            }
675            crate::operation::create_tenant_resource_association::CreateTenantResourceAssociationError::Unhandled(inner) => Error::Unhandled(inner),
676        }
677    }
678}
679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>> for Error
680where
681    R: Send + Sync + std::fmt::Debug + 'static,
682{
683    fn from(
684        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>,
685    ) -> Self {
686        match err {
687            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
688            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
689                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
690                source: err.into(),
691            }),
692        }
693    }
694}
695impl From<crate::operation::delete_configuration_set::DeleteConfigurationSetError> for Error {
696    fn from(err: crate::operation::delete_configuration_set::DeleteConfigurationSetError) -> Self {
697        match err {
698            crate::operation::delete_configuration_set::DeleteConfigurationSetError::BadRequestException(inner) => Error::BadRequestException(inner),
699            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ConcurrentModificationException(inner) => {
700                Error::ConcurrentModificationException(inner)
701            }
702            crate::operation::delete_configuration_set::DeleteConfigurationSetError::NotFoundException(inner) => Error::NotFoundException(inner),
703            crate::operation::delete_configuration_set::DeleteConfigurationSetError::TooManyRequestsException(inner) => {
704                Error::TooManyRequestsException(inner)
705            }
706            crate::operation::delete_configuration_set::DeleteConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
707        }
708    }
709}
710impl<R>
711    From<
712        ::aws_smithy_runtime_api::client::result::SdkError<
713            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
714            R,
715        >,
716    > for Error
717where
718    R: Send + Sync + std::fmt::Debug + 'static,
719{
720    fn from(
721        err: ::aws_smithy_runtime_api::client::result::SdkError<
722            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
723            R,
724        >,
725    ) -> Self {
726        match err {
727            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
728            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
729                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
730                source: err.into(),
731            }),
732        }
733    }
734}
735impl From<crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError> for Error {
736    fn from(err: crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError) -> Self {
737        match err {
738            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::BadRequestException(inner) => {
739                Error::BadRequestException(inner)
740            }
741            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::NotFoundException(inner) => {
742                Error::NotFoundException(inner)
743            }
744            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::TooManyRequestsException(
745                inner,
746            ) => Error::TooManyRequestsException(inner),
747            crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::Unhandled(inner) => {
748                Error::Unhandled(inner)
749            }
750        }
751    }
752}
753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact::DeleteContactError, R>> for Error
754where
755    R: Send + Sync + std::fmt::Debug + 'static,
756{
757    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact::DeleteContactError, R>) -> Self {
758        match err {
759            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
760            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
761                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
762                source: err.into(),
763            }),
764        }
765    }
766}
767impl From<crate::operation::delete_contact::DeleteContactError> for Error {
768    fn from(err: crate::operation::delete_contact::DeleteContactError) -> Self {
769        match err {
770            crate::operation::delete_contact::DeleteContactError::BadRequestException(inner) => Error::BadRequestException(inner),
771            crate::operation::delete_contact::DeleteContactError::NotFoundException(inner) => Error::NotFoundException(inner),
772            crate::operation::delete_contact::DeleteContactError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
773            crate::operation::delete_contact::DeleteContactError::Unhandled(inner) => Error::Unhandled(inner),
774        }
775    }
776}
777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact_list::DeleteContactListError, 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::delete_contact_list::DeleteContactListError, 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::delete_contact_list::DeleteContactListError> for Error {
792    fn from(err: crate::operation::delete_contact_list::DeleteContactListError) -> Self {
793        match err {
794            crate::operation::delete_contact_list::DeleteContactListError::BadRequestException(inner) => Error::BadRequestException(inner),
795            crate::operation::delete_contact_list::DeleteContactListError::ConcurrentModificationException(inner) => {
796                Error::ConcurrentModificationException(inner)
797            }
798            crate::operation::delete_contact_list::DeleteContactListError::NotFoundException(inner) => Error::NotFoundException(inner),
799            crate::operation::delete_contact_list::DeleteContactListError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
800            crate::operation::delete_contact_list::DeleteContactListError::Unhandled(inner) => Error::Unhandled(inner),
801        }
802    }
803}
804impl<R>
805    From<
806        ::aws_smithy_runtime_api::client::result::SdkError<
807            crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError,
808            R,
809        >,
810    > for Error
811where
812    R: Send + Sync + std::fmt::Debug + 'static,
813{
814    fn from(
815        err: ::aws_smithy_runtime_api::client::result::SdkError<
816            crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError,
817            R,
818        >,
819    ) -> Self {
820        match err {
821            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
822            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
823                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
824                source: err.into(),
825            }),
826        }
827    }
828}
829impl From<crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError> for Error {
830    fn from(err: crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError) -> Self {
831        match err {
832            crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError::BadRequestException(inner) => {
833                Error::BadRequestException(inner)
834            }
835            crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError::NotFoundException(inner) => {
836                Error::NotFoundException(inner)
837            }
838            crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError::TooManyRequestsException(
839                inner,
840            ) => Error::TooManyRequestsException(inner),
841            crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError::Unhandled(inner) => {
842                Error::Unhandled(inner)
843            }
844        }
845    }
846}
847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError, R>> for Error
848where
849    R: Send + Sync + std::fmt::Debug + 'static,
850{
851    fn from(
852        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError, R>,
853    ) -> Self {
854        match err {
855            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
856            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
857                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
858                source: err.into(),
859            }),
860        }
861    }
862}
863impl From<crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError> for Error {
864    fn from(err: crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError) -> Self {
865        match err {
866            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::BadRequestException(inner) => Error::BadRequestException(inner),
867            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::ConcurrentModificationException(inner) => {
868                Error::ConcurrentModificationException(inner)
869            }
870            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::NotFoundException(inner) => Error::NotFoundException(inner),
871            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::TooManyRequestsException(inner) => {
872                Error::TooManyRequestsException(inner)
873            }
874            crate::operation::delete_dedicated_ip_pool::DeleteDedicatedIpPoolError::Unhandled(inner) => Error::Unhandled(inner),
875        }
876    }
877}
878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_identity::DeleteEmailIdentityError, R>> for Error
879where
880    R: Send + Sync + std::fmt::Debug + 'static,
881{
882    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_identity::DeleteEmailIdentityError, R>) -> Self {
883        match err {
884            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
885            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
886                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
887                source: err.into(),
888            }),
889        }
890    }
891}
892impl From<crate::operation::delete_email_identity::DeleteEmailIdentityError> for Error {
893    fn from(err: crate::operation::delete_email_identity::DeleteEmailIdentityError) -> Self {
894        match err {
895            crate::operation::delete_email_identity::DeleteEmailIdentityError::BadRequestException(inner) => Error::BadRequestException(inner),
896            crate::operation::delete_email_identity::DeleteEmailIdentityError::ConcurrentModificationException(inner) => {
897                Error::ConcurrentModificationException(inner)
898            }
899            crate::operation::delete_email_identity::DeleteEmailIdentityError::NotFoundException(inner) => Error::NotFoundException(inner),
900            crate::operation::delete_email_identity::DeleteEmailIdentityError::TooManyRequestsException(inner) => {
901                Error::TooManyRequestsException(inner)
902            }
903            crate::operation::delete_email_identity::DeleteEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
904        }
905    }
906}
907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError, R>>
908    for Error
909where
910    R: Send + Sync + std::fmt::Debug + 'static,
911{
912    fn from(
913        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError, R>,
914    ) -> Self {
915        match err {
916            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
917            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
918                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
919                source: err.into(),
920            }),
921        }
922    }
923}
924impl From<crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError> for Error {
925    fn from(err: crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError) -> Self {
926        match err {
927            crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError::BadRequestException(inner) => {
928                Error::BadRequestException(inner)
929            }
930            crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError::NotFoundException(inner) => {
931                Error::NotFoundException(inner)
932            }
933            crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError::TooManyRequestsException(inner) => {
934                Error::TooManyRequestsException(inner)
935            }
936            crate::operation::delete_email_identity_policy::DeleteEmailIdentityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
937        }
938    }
939}
940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_template::DeleteEmailTemplateError, 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::delete_email_template::DeleteEmailTemplateError, 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::delete_email_template::DeleteEmailTemplateError> for Error {
955    fn from(err: crate::operation::delete_email_template::DeleteEmailTemplateError) -> Self {
956        match err {
957            crate::operation::delete_email_template::DeleteEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
958            crate::operation::delete_email_template::DeleteEmailTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
959            crate::operation::delete_email_template::DeleteEmailTemplateError::TooManyRequestsException(inner) => {
960                Error::TooManyRequestsException(inner)
961            }
962            crate::operation::delete_email_template::DeleteEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
963        }
964    }
965}
966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError, R>>
967    for Error
968where
969    R: Send + Sync + std::fmt::Debug + 'static,
970{
971    fn from(
972        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError, R>,
973    ) -> Self {
974        match err {
975            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
976            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
977                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
978                source: err.into(),
979            }),
980        }
981    }
982}
983impl From<crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError> for Error {
984    fn from(err: crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError) -> Self {
985        match err {
986            crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError::BadRequestException(inner) => {
987                Error::BadRequestException(inner)
988            }
989            crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError::ConcurrentModificationException(inner) => {
990                Error::ConcurrentModificationException(inner)
991            }
992            crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError::NotFoundException(inner) => {
993                Error::NotFoundException(inner)
994            }
995            crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError::TooManyRequestsException(inner) => {
996                Error::TooManyRequestsException(inner)
997            }
998            crate::operation::delete_multi_region_endpoint::DeleteMultiRegionEndpointError::Unhandled(inner) => Error::Unhandled(inner),
999        }
1000    }
1001}
1002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError, R>>
1003    for Error
1004where
1005    R: Send + Sync + std::fmt::Debug + 'static,
1006{
1007    fn from(
1008        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError, R>,
1009    ) -> Self {
1010        match err {
1011            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1012            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1013                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1014                source: err.into(),
1015            }),
1016        }
1017    }
1018}
1019impl From<crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError> for Error {
1020    fn from(err: crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError) -> Self {
1021        match err {
1022            crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError::BadRequestException(inner) => {
1023                Error::BadRequestException(inner)
1024            }
1025            crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError::NotFoundException(inner) => {
1026                Error::NotFoundException(inner)
1027            }
1028            crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError::TooManyRequestsException(inner) => {
1029                Error::TooManyRequestsException(inner)
1030            }
1031            crate::operation::delete_suppressed_destination::DeleteSuppressedDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1032        }
1033    }
1034}
1035impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tenant::DeleteTenantError, R>> for Error
1036where
1037    R: Send + Sync + std::fmt::Debug + 'static,
1038{
1039    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tenant::DeleteTenantError, R>) -> Self {
1040        match err {
1041            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1042            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1043                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1044                source: err.into(),
1045            }),
1046        }
1047    }
1048}
1049impl From<crate::operation::delete_tenant::DeleteTenantError> for Error {
1050    fn from(err: crate::operation::delete_tenant::DeleteTenantError) -> Self {
1051        match err {
1052            crate::operation::delete_tenant::DeleteTenantError::BadRequestException(inner) => Error::BadRequestException(inner),
1053            crate::operation::delete_tenant::DeleteTenantError::NotFoundException(inner) => Error::NotFoundException(inner),
1054            crate::operation::delete_tenant::DeleteTenantError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1055            crate::operation::delete_tenant::DeleteTenantError::Unhandled(inner) => Error::Unhandled(inner),
1056        }
1057    }
1058}
1059impl<R>
1060    From<
1061        ::aws_smithy_runtime_api::client::result::SdkError<
1062            crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError,
1063            R,
1064        >,
1065    > for Error
1066where
1067    R: Send + Sync + std::fmt::Debug + 'static,
1068{
1069    fn from(
1070        err: ::aws_smithy_runtime_api::client::result::SdkError<
1071            crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError,
1072            R,
1073        >,
1074    ) -> Self {
1075        match err {
1076            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1077            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1078                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1079                source: err.into(),
1080            }),
1081        }
1082    }
1083}
1084impl From<crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError> for Error {
1085    fn from(err: crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError) -> Self {
1086        match err {
1087            crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError::BadRequestException(inner) => {
1088                Error::BadRequestException(inner)
1089            }
1090            crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError::NotFoundException(inner) => {
1091                Error::NotFoundException(inner)
1092            }
1093            crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError::TooManyRequestsException(inner) => {
1094                Error::TooManyRequestsException(inner)
1095            }
1096            crate::operation::delete_tenant_resource_association::DeleteTenantResourceAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1097        }
1098    }
1099}
1100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account::GetAccountError, R>> for Error
1101where
1102    R: Send + Sync + std::fmt::Debug + 'static,
1103{
1104    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account::GetAccountError, R>) -> Self {
1105        match err {
1106            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1107            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1108                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1109                source: err.into(),
1110            }),
1111        }
1112    }
1113}
1114impl From<crate::operation::get_account::GetAccountError> for Error {
1115    fn from(err: crate::operation::get_account::GetAccountError) -> Self {
1116        match err {
1117            crate::operation::get_account::GetAccountError::BadRequestException(inner) => Error::BadRequestException(inner),
1118            crate::operation::get_account::GetAccountError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1119            crate::operation::get_account::GetAccountError::Unhandled(inner) => Error::Unhandled(inner),
1120        }
1121    }
1122}
1123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_blacklist_reports::GetBlacklistReportsError, R>> for Error
1124where
1125    R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_blacklist_reports::GetBlacklistReportsError, R>) -> Self {
1128        match err {
1129            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1130            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1131                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1132                source: err.into(),
1133            }),
1134        }
1135    }
1136}
1137impl From<crate::operation::get_blacklist_reports::GetBlacklistReportsError> for Error {
1138    fn from(err: crate::operation::get_blacklist_reports::GetBlacklistReportsError) -> Self {
1139        match err {
1140            crate::operation::get_blacklist_reports::GetBlacklistReportsError::BadRequestException(inner) => Error::BadRequestException(inner),
1141            crate::operation::get_blacklist_reports::GetBlacklistReportsError::NotFoundException(inner) => Error::NotFoundException(inner),
1142            crate::operation::get_blacklist_reports::GetBlacklistReportsError::TooManyRequestsException(inner) => {
1143                Error::TooManyRequestsException(inner)
1144            }
1145            crate::operation::get_blacklist_reports::GetBlacklistReportsError::Unhandled(inner) => Error::Unhandled(inner),
1146        }
1147    }
1148}
1149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration_set::GetConfigurationSetError, R>> for Error
1150where
1151    R: Send + Sync + std::fmt::Debug + 'static,
1152{
1153    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration_set::GetConfigurationSetError, R>) -> Self {
1154        match err {
1155            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1156            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1157                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1158                source: err.into(),
1159            }),
1160        }
1161    }
1162}
1163impl From<crate::operation::get_configuration_set::GetConfigurationSetError> for Error {
1164    fn from(err: crate::operation::get_configuration_set::GetConfigurationSetError) -> Self {
1165        match err {
1166            crate::operation::get_configuration_set::GetConfigurationSetError::BadRequestException(inner) => Error::BadRequestException(inner),
1167            crate::operation::get_configuration_set::GetConfigurationSetError::NotFoundException(inner) => Error::NotFoundException(inner),
1168            crate::operation::get_configuration_set::GetConfigurationSetError::TooManyRequestsException(inner) => {
1169                Error::TooManyRequestsException(inner)
1170            }
1171            crate::operation::get_configuration_set::GetConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
1172        }
1173    }
1174}
1175impl<R>
1176    From<
1177        ::aws_smithy_runtime_api::client::result::SdkError<
1178            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError,
1179            R,
1180        >,
1181    > for Error
1182where
1183    R: Send + Sync + std::fmt::Debug + 'static,
1184{
1185    fn from(
1186        err: ::aws_smithy_runtime_api::client::result::SdkError<
1187            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError,
1188            R,
1189        >,
1190    ) -> Self {
1191        match err {
1192            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1193            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1194                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1195                source: err.into(),
1196            }),
1197        }
1198    }
1199}
1200impl From<crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError> for Error {
1201    fn from(err: crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError) -> Self {
1202        match err {
1203            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::BadRequestException(inner) => {
1204                Error::BadRequestException(inner)
1205            }
1206            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::NotFoundException(inner) => {
1207                Error::NotFoundException(inner)
1208            }
1209            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::TooManyRequestsException(
1210                inner,
1211            ) => Error::TooManyRequestsException(inner),
1212            crate::operation::get_configuration_set_event_destinations::GetConfigurationSetEventDestinationsError::Unhandled(inner) => {
1213                Error::Unhandled(inner)
1214            }
1215        }
1216    }
1217}
1218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_contact::GetContactError, R>> for Error
1219where
1220    R: Send + Sync + std::fmt::Debug + 'static,
1221{
1222    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_contact::GetContactError, R>) -> Self {
1223        match err {
1224            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1225            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1226                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1227                source: err.into(),
1228            }),
1229        }
1230    }
1231}
1232impl From<crate::operation::get_contact::GetContactError> for Error {
1233    fn from(err: crate::operation::get_contact::GetContactError) -> Self {
1234        match err {
1235            crate::operation::get_contact::GetContactError::BadRequestException(inner) => Error::BadRequestException(inner),
1236            crate::operation::get_contact::GetContactError::NotFoundException(inner) => Error::NotFoundException(inner),
1237            crate::operation::get_contact::GetContactError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1238            crate::operation::get_contact::GetContactError::Unhandled(inner) => Error::Unhandled(inner),
1239        }
1240    }
1241}
1242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_contact_list::GetContactListError, R>> for Error
1243where
1244    R: Send + Sync + std::fmt::Debug + 'static,
1245{
1246    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_contact_list::GetContactListError, R>) -> 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::get_contact_list::GetContactListError> for Error {
1257    fn from(err: crate::operation::get_contact_list::GetContactListError) -> Self {
1258        match err {
1259            crate::operation::get_contact_list::GetContactListError::BadRequestException(inner) => Error::BadRequestException(inner),
1260            crate::operation::get_contact_list::GetContactListError::NotFoundException(inner) => Error::NotFoundException(inner),
1261            crate::operation::get_contact_list::GetContactListError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1262            crate::operation::get_contact_list::GetContactListError::Unhandled(inner) => Error::Unhandled(inner),
1263        }
1264    }
1265}
1266impl<R>
1267    From<
1268        ::aws_smithy_runtime_api::client::result::SdkError<
1269            crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError,
1270            R,
1271        >,
1272    > for Error
1273where
1274    R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276    fn from(
1277        err: ::aws_smithy_runtime_api::client::result::SdkError<
1278            crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError,
1279            R,
1280        >,
1281    ) -> Self {
1282        match err {
1283            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1284            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1285                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1286                source: err.into(),
1287            }),
1288        }
1289    }
1290}
1291impl From<crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError> for Error {
1292    fn from(err: crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError) -> Self {
1293        match err {
1294            crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::BadRequestException(inner) => {
1295                Error::BadRequestException(inner)
1296            }
1297            crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::NotFoundException(inner) => {
1298                Error::NotFoundException(inner)
1299            }
1300            crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::TooManyRequestsException(inner) => {
1301                Error::TooManyRequestsException(inner)
1302            }
1303            crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::Unhandled(inner) => {
1304                Error::Unhandled(inner)
1305            }
1306        }
1307    }
1308}
1309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ip::GetDedicatedIpError, R>> for Error
1310where
1311    R: Send + Sync + std::fmt::Debug + 'static,
1312{
1313    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ip::GetDedicatedIpError, R>) -> Self {
1314        match err {
1315            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1316            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1317                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1318                source: err.into(),
1319            }),
1320        }
1321    }
1322}
1323impl From<crate::operation::get_dedicated_ip::GetDedicatedIpError> for Error {
1324    fn from(err: crate::operation::get_dedicated_ip::GetDedicatedIpError) -> Self {
1325        match err {
1326            crate::operation::get_dedicated_ip::GetDedicatedIpError::BadRequestException(inner) => Error::BadRequestException(inner),
1327            crate::operation::get_dedicated_ip::GetDedicatedIpError::NotFoundException(inner) => Error::NotFoundException(inner),
1328            crate::operation::get_dedicated_ip::GetDedicatedIpError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1329            crate::operation::get_dedicated_ip::GetDedicatedIpError::Unhandled(inner) => Error::Unhandled(inner),
1330        }
1331    }
1332}
1333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError, R>> for Error
1334where
1335    R: Send + Sync + std::fmt::Debug + 'static,
1336{
1337    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError, R>) -> Self {
1338        match err {
1339            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1340            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1341                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1342                source: err.into(),
1343            }),
1344        }
1345    }
1346}
1347impl From<crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError> for Error {
1348    fn from(err: crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError) -> Self {
1349        match err {
1350            crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError::BadRequestException(inner) => Error::BadRequestException(inner),
1351            crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError::NotFoundException(inner) => Error::NotFoundException(inner),
1352            crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError::TooManyRequestsException(inner) => {
1353                Error::TooManyRequestsException(inner)
1354            }
1355            crate::operation::get_dedicated_ip_pool::GetDedicatedIpPoolError::Unhandled(inner) => Error::Unhandled(inner),
1356        }
1357    }
1358}
1359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ips::GetDedicatedIpsError, R>> for Error
1360where
1361    R: Send + Sync + std::fmt::Debug + 'static,
1362{
1363    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dedicated_ips::GetDedicatedIpsError, R>) -> Self {
1364        match err {
1365            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1366            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1367                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1368                source: err.into(),
1369            }),
1370        }
1371    }
1372}
1373impl From<crate::operation::get_dedicated_ips::GetDedicatedIpsError> for Error {
1374    fn from(err: crate::operation::get_dedicated_ips::GetDedicatedIpsError) -> Self {
1375        match err {
1376            crate::operation::get_dedicated_ips::GetDedicatedIpsError::BadRequestException(inner) => Error::BadRequestException(inner),
1377            crate::operation::get_dedicated_ips::GetDedicatedIpsError::NotFoundException(inner) => Error::NotFoundException(inner),
1378            crate::operation::get_dedicated_ips::GetDedicatedIpsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1379            crate::operation::get_dedicated_ips::GetDedicatedIpsError::Unhandled(inner) => Error::Unhandled(inner),
1380        }
1381    }
1382}
1383impl<R>
1384    From<
1385        ::aws_smithy_runtime_api::client::result::SdkError<
1386            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError,
1387            R,
1388        >,
1389    > for Error
1390where
1391    R: Send + Sync + std::fmt::Debug + 'static,
1392{
1393    fn from(
1394        err: ::aws_smithy_runtime_api::client::result::SdkError<
1395            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError,
1396            R,
1397        >,
1398    ) -> Self {
1399        match err {
1400            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1401            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1402                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1403                source: err.into(),
1404            }),
1405        }
1406    }
1407}
1408impl From<crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError> for Error {
1409    fn from(err: crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError) -> Self {
1410        match err {
1411            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::BadRequestException(inner) => {
1412                Error::BadRequestException(inner)
1413            }
1414            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::LimitExceededException(inner) => {
1415                Error::LimitExceededException(inner)
1416            }
1417            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::TooManyRequestsException(inner) => {
1418                Error::TooManyRequestsException(inner)
1419            }
1420            crate::operation::get_deliverability_dashboard_options::GetDeliverabilityDashboardOptionsError::Unhandled(inner) => {
1421                Error::Unhandled(inner)
1422            }
1423        }
1424    }
1425}
1426impl<R>
1427    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError, R>>
1428    for Error
1429where
1430    R: Send + Sync + std::fmt::Debug + 'static,
1431{
1432    fn from(
1433        err: ::aws_smithy_runtime_api::client::result::SdkError<
1434            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError,
1435            R,
1436        >,
1437    ) -> Self {
1438        match err {
1439            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1440            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1441                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1442                source: err.into(),
1443            }),
1444        }
1445    }
1446}
1447impl From<crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError> for Error {
1448    fn from(err: crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError) -> Self {
1449        match err {
1450            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::BadRequestException(inner) => {
1451                Error::BadRequestException(inner)
1452            }
1453            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::NotFoundException(inner) => {
1454                Error::NotFoundException(inner)
1455            }
1456            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::TooManyRequestsException(inner) => {
1457                Error::TooManyRequestsException(inner)
1458            }
1459            crate::operation::get_deliverability_test_report::GetDeliverabilityTestReportError::Unhandled(inner) => Error::Unhandled(inner),
1460        }
1461    }
1462}
1463impl<R>
1464    From<
1465        ::aws_smithy_runtime_api::client::result::SdkError<
1466            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError,
1467            R,
1468        >,
1469    > for Error
1470where
1471    R: Send + Sync + std::fmt::Debug + 'static,
1472{
1473    fn from(
1474        err: ::aws_smithy_runtime_api::client::result::SdkError<
1475            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError,
1476            R,
1477        >,
1478    ) -> Self {
1479        match err {
1480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1483                source: err.into(),
1484            }),
1485        }
1486    }
1487}
1488impl From<crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError> for Error {
1489    fn from(err: crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError) -> Self {
1490        match err {
1491            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::BadRequestException(inner) => {
1492                Error::BadRequestException(inner)
1493            }
1494            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::NotFoundException(inner) => {
1495                Error::NotFoundException(inner)
1496            }
1497            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::TooManyRequestsException(inner) => {
1498                Error::TooManyRequestsException(inner)
1499            }
1500            crate::operation::get_domain_deliverability_campaign::GetDomainDeliverabilityCampaignError::Unhandled(inner) => Error::Unhandled(inner),
1501        }
1502    }
1503}
1504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError, R>>
1505    for Error
1506where
1507    R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509    fn from(
1510        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError, R>,
1511    ) -> Self {
1512        match err {
1513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1516                source: err.into(),
1517            }),
1518        }
1519    }
1520}
1521impl From<crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError> for Error {
1522    fn from(err: crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError) -> Self {
1523        match err {
1524            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::BadRequestException(inner) => {
1525                Error::BadRequestException(inner)
1526            }
1527            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::NotFoundException(inner) => {
1528                Error::NotFoundException(inner)
1529            }
1530            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::TooManyRequestsException(inner) => {
1531                Error::TooManyRequestsException(inner)
1532            }
1533            crate::operation::get_domain_statistics_report::GetDomainStatisticsReportError::Unhandled(inner) => Error::Unhandled(inner),
1534        }
1535    }
1536}
1537impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_identity::GetEmailIdentityError, R>> for Error
1538where
1539    R: Send + Sync + std::fmt::Debug + 'static,
1540{
1541    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_identity::GetEmailIdentityError, R>) -> Self {
1542        match err {
1543            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1544            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1545                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1546                source: err.into(),
1547            }),
1548        }
1549    }
1550}
1551impl From<crate::operation::get_email_identity::GetEmailIdentityError> for Error {
1552    fn from(err: crate::operation::get_email_identity::GetEmailIdentityError) -> Self {
1553        match err {
1554            crate::operation::get_email_identity::GetEmailIdentityError::BadRequestException(inner) => Error::BadRequestException(inner),
1555            crate::operation::get_email_identity::GetEmailIdentityError::NotFoundException(inner) => Error::NotFoundException(inner),
1556            crate::operation::get_email_identity::GetEmailIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1557            crate::operation::get_email_identity::GetEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
1558        }
1559    }
1560}
1561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError, R>>
1562    for Error
1563where
1564    R: Send + Sync + std::fmt::Debug + 'static,
1565{
1566    fn from(
1567        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError, R>,
1568    ) -> Self {
1569        match err {
1570            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1571            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1572                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1573                source: err.into(),
1574            }),
1575        }
1576    }
1577}
1578impl From<crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError> for Error {
1579    fn from(err: crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError) -> Self {
1580        match err {
1581            crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError::BadRequestException(inner) => {
1582                Error::BadRequestException(inner)
1583            }
1584            crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError::NotFoundException(inner) => Error::NotFoundException(inner),
1585            crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError::TooManyRequestsException(inner) => {
1586                Error::TooManyRequestsException(inner)
1587            }
1588            crate::operation::get_email_identity_policies::GetEmailIdentityPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1589        }
1590    }
1591}
1592impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_template::GetEmailTemplateError, R>> for Error
1593where
1594    R: Send + Sync + std::fmt::Debug + 'static,
1595{
1596    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_template::GetEmailTemplateError, R>) -> Self {
1597        match err {
1598            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1599            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1600                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1601                source: err.into(),
1602            }),
1603        }
1604    }
1605}
1606impl From<crate::operation::get_email_template::GetEmailTemplateError> for Error {
1607    fn from(err: crate::operation::get_email_template::GetEmailTemplateError) -> Self {
1608        match err {
1609            crate::operation::get_email_template::GetEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
1610            crate::operation::get_email_template::GetEmailTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
1611            crate::operation::get_email_template::GetEmailTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1612            crate::operation::get_email_template::GetEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1613        }
1614    }
1615}
1616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_job::GetExportJobError, R>> for Error
1617where
1618    R: Send + Sync + std::fmt::Debug + 'static,
1619{
1620    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_job::GetExportJobError, R>) -> Self {
1621        match err {
1622            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1623            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1624                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1625                source: err.into(),
1626            }),
1627        }
1628    }
1629}
1630impl From<crate::operation::get_export_job::GetExportJobError> for Error {
1631    fn from(err: crate::operation::get_export_job::GetExportJobError) -> Self {
1632        match err {
1633            crate::operation::get_export_job::GetExportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
1634            crate::operation::get_export_job::GetExportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
1635            crate::operation::get_export_job::GetExportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1636            crate::operation::get_export_job::GetExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1637        }
1638    }
1639}
1640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import_job::GetImportJobError, R>> for Error
1641where
1642    R: Send + Sync + std::fmt::Debug + 'static,
1643{
1644    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import_job::GetImportJobError, R>) -> Self {
1645        match err {
1646            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1647            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1648                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1649                source: err.into(),
1650            }),
1651        }
1652    }
1653}
1654impl From<crate::operation::get_import_job::GetImportJobError> for Error {
1655    fn from(err: crate::operation::get_import_job::GetImportJobError) -> Self {
1656        match err {
1657            crate::operation::get_import_job::GetImportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
1658            crate::operation::get_import_job::GetImportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
1659            crate::operation::get_import_job::GetImportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1660            crate::operation::get_import_job::GetImportJobError::Unhandled(inner) => Error::Unhandled(inner),
1661        }
1662    }
1663}
1664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_message_insights::GetMessageInsightsError, R>> for Error
1665where
1666    R: Send + Sync + std::fmt::Debug + 'static,
1667{
1668    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_message_insights::GetMessageInsightsError, R>) -> Self {
1669        match err {
1670            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1671            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1672                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1673                source: err.into(),
1674            }),
1675        }
1676    }
1677}
1678impl From<crate::operation::get_message_insights::GetMessageInsightsError> for Error {
1679    fn from(err: crate::operation::get_message_insights::GetMessageInsightsError) -> Self {
1680        match err {
1681            crate::operation::get_message_insights::GetMessageInsightsError::BadRequestException(inner) => Error::BadRequestException(inner),
1682            crate::operation::get_message_insights::GetMessageInsightsError::NotFoundException(inner) => Error::NotFoundException(inner),
1683            crate::operation::get_message_insights::GetMessageInsightsError::TooManyRequestsException(inner) => {
1684                Error::TooManyRequestsException(inner)
1685            }
1686            crate::operation::get_message_insights::GetMessageInsightsError::Unhandled(inner) => Error::Unhandled(inner),
1687        }
1688    }
1689}
1690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError, R>>
1691    for Error
1692where
1693    R: Send + Sync + std::fmt::Debug + 'static,
1694{
1695    fn from(
1696        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError, R>,
1697    ) -> Self {
1698        match err {
1699            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1700            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1701                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1702                source: err.into(),
1703            }),
1704        }
1705    }
1706}
1707impl From<crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError> for Error {
1708    fn from(err: crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError) -> Self {
1709        match err {
1710            crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError::BadRequestException(inner) => Error::BadRequestException(inner),
1711            crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError::NotFoundException(inner) => Error::NotFoundException(inner),
1712            crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError::TooManyRequestsException(inner) => {
1713                Error::TooManyRequestsException(inner)
1714            }
1715            crate::operation::get_multi_region_endpoint::GetMultiRegionEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1716        }
1717    }
1718}
1719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reputation_entity::GetReputationEntityError, R>> for Error
1720where
1721    R: Send + Sync + std::fmt::Debug + 'static,
1722{
1723    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reputation_entity::GetReputationEntityError, R>) -> Self {
1724        match err {
1725            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1726            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1727                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1728                source: err.into(),
1729            }),
1730        }
1731    }
1732}
1733impl From<crate::operation::get_reputation_entity::GetReputationEntityError> for Error {
1734    fn from(err: crate::operation::get_reputation_entity::GetReputationEntityError) -> Self {
1735        match err {
1736            crate::operation::get_reputation_entity::GetReputationEntityError::BadRequestException(inner) => Error::BadRequestException(inner),
1737            crate::operation::get_reputation_entity::GetReputationEntityError::NotFoundException(inner) => Error::NotFoundException(inner),
1738            crate::operation::get_reputation_entity::GetReputationEntityError::TooManyRequestsException(inner) => {
1739                Error::TooManyRequestsException(inner)
1740            }
1741            crate::operation::get_reputation_entity::GetReputationEntityError::Unhandled(inner) => Error::Unhandled(inner),
1742        }
1743    }
1744}
1745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_suppressed_destination::GetSuppressedDestinationError, R>>
1746    for Error
1747where
1748    R: Send + Sync + std::fmt::Debug + 'static,
1749{
1750    fn from(
1751        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_suppressed_destination::GetSuppressedDestinationError, R>,
1752    ) -> Self {
1753        match err {
1754            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1755            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1756                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1757                source: err.into(),
1758            }),
1759        }
1760    }
1761}
1762impl From<crate::operation::get_suppressed_destination::GetSuppressedDestinationError> for Error {
1763    fn from(err: crate::operation::get_suppressed_destination::GetSuppressedDestinationError) -> Self {
1764        match err {
1765            crate::operation::get_suppressed_destination::GetSuppressedDestinationError::BadRequestException(inner) => {
1766                Error::BadRequestException(inner)
1767            }
1768            crate::operation::get_suppressed_destination::GetSuppressedDestinationError::NotFoundException(inner) => Error::NotFoundException(inner),
1769            crate::operation::get_suppressed_destination::GetSuppressedDestinationError::TooManyRequestsException(inner) => {
1770                Error::TooManyRequestsException(inner)
1771            }
1772            crate::operation::get_suppressed_destination::GetSuppressedDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1773        }
1774    }
1775}
1776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tenant::GetTenantError, R>> for Error
1777where
1778    R: Send + Sync + std::fmt::Debug + 'static,
1779{
1780    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tenant::GetTenantError, R>) -> Self {
1781        match err {
1782            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1783            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1784                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1785                source: err.into(),
1786            }),
1787        }
1788    }
1789}
1790impl From<crate::operation::get_tenant::GetTenantError> for Error {
1791    fn from(err: crate::operation::get_tenant::GetTenantError) -> Self {
1792        match err {
1793            crate::operation::get_tenant::GetTenantError::BadRequestException(inner) => Error::BadRequestException(inner),
1794            crate::operation::get_tenant::GetTenantError::NotFoundException(inner) => Error::NotFoundException(inner),
1795            crate::operation::get_tenant::GetTenantError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1796            crate::operation::get_tenant::GetTenantError::Unhandled(inner) => Error::Unhandled(inner),
1797        }
1798    }
1799}
1800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>> for Error
1801where
1802    R: Send + Sync + std::fmt::Debug + 'static,
1803{
1804    fn from(
1805        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>,
1806    ) -> Self {
1807        match err {
1808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1811                source: err.into(),
1812            }),
1813        }
1814    }
1815}
1816impl From<crate::operation::list_configuration_sets::ListConfigurationSetsError> for Error {
1817    fn from(err: crate::operation::list_configuration_sets::ListConfigurationSetsError) -> Self {
1818        match err {
1819            crate::operation::list_configuration_sets::ListConfigurationSetsError::BadRequestException(inner) => Error::BadRequestException(inner),
1820            crate::operation::list_configuration_sets::ListConfigurationSetsError::TooManyRequestsException(inner) => {
1821                Error::TooManyRequestsException(inner)
1822            }
1823            crate::operation::list_configuration_sets::ListConfigurationSetsError::Unhandled(inner) => Error::Unhandled(inner),
1824        }
1825    }
1826}
1827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_lists::ListContactListsError, R>> for Error
1828where
1829    R: Send + Sync + std::fmt::Debug + 'static,
1830{
1831    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_lists::ListContactListsError, R>) -> Self {
1832        match err {
1833            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1834            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1835                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1836                source: err.into(),
1837            }),
1838        }
1839    }
1840}
1841impl From<crate::operation::list_contact_lists::ListContactListsError> for Error {
1842    fn from(err: crate::operation::list_contact_lists::ListContactListsError) -> Self {
1843        match err {
1844            crate::operation::list_contact_lists::ListContactListsError::BadRequestException(inner) => Error::BadRequestException(inner),
1845            crate::operation::list_contact_lists::ListContactListsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1846            crate::operation::list_contact_lists::ListContactListsError::Unhandled(inner) => Error::Unhandled(inner),
1847        }
1848    }
1849}
1850impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contacts::ListContactsError, R>> for Error
1851where
1852    R: Send + Sync + std::fmt::Debug + 'static,
1853{
1854    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contacts::ListContactsError, R>) -> Self {
1855        match err {
1856            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1857            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1858                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1859                source: err.into(),
1860            }),
1861        }
1862    }
1863}
1864impl From<crate::operation::list_contacts::ListContactsError> for Error {
1865    fn from(err: crate::operation::list_contacts::ListContactsError) -> Self {
1866        match err {
1867            crate::operation::list_contacts::ListContactsError::BadRequestException(inner) => Error::BadRequestException(inner),
1868            crate::operation::list_contacts::ListContactsError::NotFoundException(inner) => Error::NotFoundException(inner),
1869            crate::operation::list_contacts::ListContactsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1870            crate::operation::list_contacts::ListContactsError::Unhandled(inner) => Error::Unhandled(inner),
1871        }
1872    }
1873}
1874impl<R>
1875    From<
1876        ::aws_smithy_runtime_api::client::result::SdkError<
1877            crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError,
1878            R,
1879        >,
1880    > for Error
1881where
1882    R: Send + Sync + std::fmt::Debug + 'static,
1883{
1884    fn from(
1885        err: ::aws_smithy_runtime_api::client::result::SdkError<
1886            crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError,
1887            R,
1888        >,
1889    ) -> Self {
1890        match err {
1891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1894                source: err.into(),
1895            }),
1896        }
1897    }
1898}
1899impl From<crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError> for Error {
1900    fn from(err: crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError) -> Self {
1901        match err {
1902            crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError::BadRequestException(inner) => {
1903                Error::BadRequestException(inner)
1904            }
1905            crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError::TooManyRequestsException(
1906                inner,
1907            ) => Error::TooManyRequestsException(inner),
1908            crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError::Unhandled(inner) => {
1909                Error::Unhandled(inner)
1910            }
1911        }
1912    }
1913}
1914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError, R>> for Error
1915where
1916    R: Send + Sync + std::fmt::Debug + 'static,
1917{
1918    fn from(
1919        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError, R>,
1920    ) -> Self {
1921        match err {
1922            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1923            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1924                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1925                source: err.into(),
1926            }),
1927        }
1928    }
1929}
1930impl From<crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError> for Error {
1931    fn from(err: crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError) -> Self {
1932        match err {
1933            crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError::BadRequestException(inner) => Error::BadRequestException(inner),
1934            crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError::TooManyRequestsException(inner) => {
1935                Error::TooManyRequestsException(inner)
1936            }
1937            crate::operation::list_dedicated_ip_pools::ListDedicatedIpPoolsError::Unhandled(inner) => Error::Unhandled(inner),
1938        }
1939    }
1940}
1941impl<R>
1942    From<
1943        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError, R>,
1944    > for Error
1945where
1946    R: Send + Sync + std::fmt::Debug + 'static,
1947{
1948    fn from(
1949        err: ::aws_smithy_runtime_api::client::result::SdkError<
1950            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError,
1951            R,
1952        >,
1953    ) -> Self {
1954        match err {
1955            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1956            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1957                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1958                source: err.into(),
1959            }),
1960        }
1961    }
1962}
1963impl From<crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError> for Error {
1964    fn from(err: crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError) -> Self {
1965        match err {
1966            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::BadRequestException(inner) => {
1967                Error::BadRequestException(inner)
1968            }
1969            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::NotFoundException(inner) => {
1970                Error::NotFoundException(inner)
1971            }
1972            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::TooManyRequestsException(inner) => {
1973                Error::TooManyRequestsException(inner)
1974            }
1975            crate::operation::list_deliverability_test_reports::ListDeliverabilityTestReportsError::Unhandled(inner) => Error::Unhandled(inner),
1976        }
1977    }
1978}
1979impl<R>
1980    From<
1981        ::aws_smithy_runtime_api::client::result::SdkError<
1982            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError,
1983            R,
1984        >,
1985    > for Error
1986where
1987    R: Send + Sync + std::fmt::Debug + 'static,
1988{
1989    fn from(
1990        err: ::aws_smithy_runtime_api::client::result::SdkError<
1991            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError,
1992            R,
1993        >,
1994    ) -> Self {
1995        match err {
1996            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1997            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1998                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1999                source: err.into(),
2000            }),
2001        }
2002    }
2003}
2004impl From<crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError> for Error {
2005    fn from(err: crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError) -> Self {
2006        match err {
2007            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::BadRequestException(inner) => {
2008                Error::BadRequestException(inner)
2009            }
2010            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::NotFoundException(inner) => {
2011                Error::NotFoundException(inner)
2012            }
2013            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::TooManyRequestsException(inner) => {
2014                Error::TooManyRequestsException(inner)
2015            }
2016            crate::operation::list_domain_deliverability_campaigns::ListDomainDeliverabilityCampaignsError::Unhandled(inner) => {
2017                Error::Unhandled(inner)
2018            }
2019        }
2020    }
2021}
2022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_email_identities::ListEmailIdentitiesError, R>> for Error
2023where
2024    R: Send + Sync + std::fmt::Debug + 'static,
2025{
2026    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_email_identities::ListEmailIdentitiesError, R>) -> Self {
2027        match err {
2028            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2029            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2030                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2031                source: err.into(),
2032            }),
2033        }
2034    }
2035}
2036impl From<crate::operation::list_email_identities::ListEmailIdentitiesError> for Error {
2037    fn from(err: crate::operation::list_email_identities::ListEmailIdentitiesError) -> Self {
2038        match err {
2039            crate::operation::list_email_identities::ListEmailIdentitiesError::BadRequestException(inner) => Error::BadRequestException(inner),
2040            crate::operation::list_email_identities::ListEmailIdentitiesError::TooManyRequestsException(inner) => {
2041                Error::TooManyRequestsException(inner)
2042            }
2043            crate::operation::list_email_identities::ListEmailIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
2044        }
2045    }
2046}
2047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_email_templates::ListEmailTemplatesError, R>> for Error
2048where
2049    R: Send + Sync + std::fmt::Debug + 'static,
2050{
2051    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_email_templates::ListEmailTemplatesError, R>) -> Self {
2052        match err {
2053            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2054            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2055                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2056                source: err.into(),
2057            }),
2058        }
2059    }
2060}
2061impl From<crate::operation::list_email_templates::ListEmailTemplatesError> for Error {
2062    fn from(err: crate::operation::list_email_templates::ListEmailTemplatesError) -> Self {
2063        match err {
2064            crate::operation::list_email_templates::ListEmailTemplatesError::BadRequestException(inner) => Error::BadRequestException(inner),
2065            crate::operation::list_email_templates::ListEmailTemplatesError::TooManyRequestsException(inner) => {
2066                Error::TooManyRequestsException(inner)
2067            }
2068            crate::operation::list_email_templates::ListEmailTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
2069        }
2070    }
2071}
2072impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_jobs::ListExportJobsError, R>> for Error
2073where
2074    R: Send + Sync + std::fmt::Debug + 'static,
2075{
2076    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_jobs::ListExportJobsError, R>) -> Self {
2077        match err {
2078            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2079            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2080                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2081                source: err.into(),
2082            }),
2083        }
2084    }
2085}
2086impl From<crate::operation::list_export_jobs::ListExportJobsError> for Error {
2087    fn from(err: crate::operation::list_export_jobs::ListExportJobsError) -> Self {
2088        match err {
2089            crate::operation::list_export_jobs::ListExportJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
2090            crate::operation::list_export_jobs::ListExportJobsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2091            crate::operation::list_export_jobs::ListExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2092        }
2093    }
2094}
2095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_import_jobs::ListImportJobsError, R>> for Error
2096where
2097    R: Send + Sync + std::fmt::Debug + 'static,
2098{
2099    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_import_jobs::ListImportJobsError, R>) -> Self {
2100        match err {
2101            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2102            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2103                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2104                source: err.into(),
2105            }),
2106        }
2107    }
2108}
2109impl From<crate::operation::list_import_jobs::ListImportJobsError> for Error {
2110    fn from(err: crate::operation::list_import_jobs::ListImportJobsError) -> Self {
2111        match err {
2112            crate::operation::list_import_jobs::ListImportJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
2113            crate::operation::list_import_jobs::ListImportJobsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2114            crate::operation::list_import_jobs::ListImportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2115        }
2116    }
2117}
2118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_multi_region_endpoints::ListMultiRegionEndpointsError, R>>
2119    for Error
2120where
2121    R: Send + Sync + std::fmt::Debug + 'static,
2122{
2123    fn from(
2124        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_multi_region_endpoints::ListMultiRegionEndpointsError, R>,
2125    ) -> Self {
2126        match err {
2127            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2128            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2129                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2130                source: err.into(),
2131            }),
2132        }
2133    }
2134}
2135impl From<crate::operation::list_multi_region_endpoints::ListMultiRegionEndpointsError> for Error {
2136    fn from(err: crate::operation::list_multi_region_endpoints::ListMultiRegionEndpointsError) -> Self {
2137        match err {
2138            crate::operation::list_multi_region_endpoints::ListMultiRegionEndpointsError::BadRequestException(inner) => {
2139                Error::BadRequestException(inner)
2140            }
2141            crate::operation::list_multi_region_endpoints::ListMultiRegionEndpointsError::TooManyRequestsException(inner) => {
2142                Error::TooManyRequestsException(inner)
2143            }
2144            crate::operation::list_multi_region_endpoints::ListMultiRegionEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
2145        }
2146    }
2147}
2148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>> for Error
2149where
2150    R: Send + Sync + std::fmt::Debug + 'static,
2151{
2152    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>) -> Self {
2153        match err {
2154            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2155            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2156                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2157                source: err.into(),
2158            }),
2159        }
2160    }
2161}
2162impl From<crate::operation::list_recommendations::ListRecommendationsError> for Error {
2163    fn from(err: crate::operation::list_recommendations::ListRecommendationsError) -> Self {
2164        match err {
2165            crate::operation::list_recommendations::ListRecommendationsError::BadRequestException(inner) => Error::BadRequestException(inner),
2166            crate::operation::list_recommendations::ListRecommendationsError::NotFoundException(inner) => Error::NotFoundException(inner),
2167            crate::operation::list_recommendations::ListRecommendationsError::TooManyRequestsException(inner) => {
2168                Error::TooManyRequestsException(inner)
2169            }
2170            crate::operation::list_recommendations::ListRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
2171        }
2172    }
2173}
2174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reputation_entities::ListReputationEntitiesError, R>> for Error
2175where
2176    R: Send + Sync + std::fmt::Debug + 'static,
2177{
2178    fn from(
2179        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reputation_entities::ListReputationEntitiesError, R>,
2180    ) -> Self {
2181        match err {
2182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2185                source: err.into(),
2186            }),
2187        }
2188    }
2189}
2190impl From<crate::operation::list_reputation_entities::ListReputationEntitiesError> for Error {
2191    fn from(err: crate::operation::list_reputation_entities::ListReputationEntitiesError) -> Self {
2192        match err {
2193            crate::operation::list_reputation_entities::ListReputationEntitiesError::BadRequestException(inner) => Error::BadRequestException(inner),
2194            crate::operation::list_reputation_entities::ListReputationEntitiesError::TooManyRequestsException(inner) => {
2195                Error::TooManyRequestsException(inner)
2196            }
2197            crate::operation::list_reputation_entities::ListReputationEntitiesError::Unhandled(inner) => Error::Unhandled(inner),
2198        }
2199    }
2200}
2201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_tenants::ListResourceTenantsError, R>> for Error
2202where
2203    R: Send + Sync + std::fmt::Debug + 'static,
2204{
2205    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_tenants::ListResourceTenantsError, R>) -> Self {
2206        match err {
2207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2210                source: err.into(),
2211            }),
2212        }
2213    }
2214}
2215impl From<crate::operation::list_resource_tenants::ListResourceTenantsError> for Error {
2216    fn from(err: crate::operation::list_resource_tenants::ListResourceTenantsError) -> Self {
2217        match err {
2218            crate::operation::list_resource_tenants::ListResourceTenantsError::BadRequestException(inner) => Error::BadRequestException(inner),
2219            crate::operation::list_resource_tenants::ListResourceTenantsError::NotFoundException(inner) => Error::NotFoundException(inner),
2220            crate::operation::list_resource_tenants::ListResourceTenantsError::TooManyRequestsException(inner) => {
2221                Error::TooManyRequestsException(inner)
2222            }
2223            crate::operation::list_resource_tenants::ListResourceTenantsError::Unhandled(inner) => Error::Unhandled(inner),
2224        }
2225    }
2226}
2227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError, R>>
2228    for Error
2229where
2230    R: Send + Sync + std::fmt::Debug + 'static,
2231{
2232    fn from(
2233        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError, R>,
2234    ) -> Self {
2235        match err {
2236            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2237            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2238                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2239                source: err.into(),
2240            }),
2241        }
2242    }
2243}
2244impl From<crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError> for Error {
2245    fn from(err: crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError) -> Self {
2246        match err {
2247            crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError::BadRequestException(inner) => {
2248                Error::BadRequestException(inner)
2249            }
2250            crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError::InvalidNextTokenException(inner) => {
2251                Error::InvalidNextTokenException(inner)
2252            }
2253            crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError::TooManyRequestsException(inner) => {
2254                Error::TooManyRequestsException(inner)
2255            }
2256            crate::operation::list_suppressed_destinations::ListSuppressedDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
2257        }
2258    }
2259}
2260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2261where
2262    R: Send + Sync + std::fmt::Debug + 'static,
2263{
2264    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2265        match err {
2266            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2267            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2268                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2269                source: err.into(),
2270            }),
2271        }
2272    }
2273}
2274impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2275    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2276        match err {
2277            crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
2278            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
2279            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestsException(inner) => {
2280                Error::TooManyRequestsException(inner)
2281            }
2282            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2283        }
2284    }
2285}
2286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tenant_resources::ListTenantResourcesError, R>> for Error
2287where
2288    R: Send + Sync + std::fmt::Debug + 'static,
2289{
2290    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tenant_resources::ListTenantResourcesError, R>) -> Self {
2291        match err {
2292            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2293            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2294                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2295                source: err.into(),
2296            }),
2297        }
2298    }
2299}
2300impl From<crate::operation::list_tenant_resources::ListTenantResourcesError> for Error {
2301    fn from(err: crate::operation::list_tenant_resources::ListTenantResourcesError) -> Self {
2302        match err {
2303            crate::operation::list_tenant_resources::ListTenantResourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
2304            crate::operation::list_tenant_resources::ListTenantResourcesError::NotFoundException(inner) => Error::NotFoundException(inner),
2305            crate::operation::list_tenant_resources::ListTenantResourcesError::TooManyRequestsException(inner) => {
2306                Error::TooManyRequestsException(inner)
2307            }
2308            crate::operation::list_tenant_resources::ListTenantResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2309        }
2310    }
2311}
2312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tenants::ListTenantsError, R>> for Error
2313where
2314    R: Send + Sync + std::fmt::Debug + 'static,
2315{
2316    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tenants::ListTenantsError, R>) -> Self {
2317        match err {
2318            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2319            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2320                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2321                source: err.into(),
2322            }),
2323        }
2324    }
2325}
2326impl From<crate::operation::list_tenants::ListTenantsError> for Error {
2327    fn from(err: crate::operation::list_tenants::ListTenantsError) -> Self {
2328        match err {
2329            crate::operation::list_tenants::ListTenantsError::BadRequestException(inner) => Error::BadRequestException(inner),
2330            crate::operation::list_tenants::ListTenantsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2331            crate::operation::list_tenants::ListTenantsError::Unhandled(inner) => Error::Unhandled(inner),
2332        }
2333    }
2334}
2335impl<R>
2336    From<
2337        ::aws_smithy_runtime_api::client::result::SdkError<
2338            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError,
2339            R,
2340        >,
2341    > for Error
2342where
2343    R: Send + Sync + std::fmt::Debug + 'static,
2344{
2345    fn from(
2346        err: ::aws_smithy_runtime_api::client::result::SdkError<
2347            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError,
2348            R,
2349        >,
2350    ) -> Self {
2351        match err {
2352            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2353            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2354                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2355                source: err.into(),
2356            }),
2357        }
2358    }
2359}
2360impl From<crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError> for Error {
2361    fn from(err: crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError) -> Self {
2362        match err {
2363            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError::BadRequestException(inner) => {
2364                Error::BadRequestException(inner)
2365            }
2366            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError::TooManyRequestsException(
2367                inner,
2368            ) => Error::TooManyRequestsException(inner),
2369            crate::operation::put_account_dedicated_ip_warmup_attributes::PutAccountDedicatedIpWarmupAttributesError::Unhandled(inner) => {
2370                Error::Unhandled(inner)
2371            }
2372        }
2373    }
2374}
2375impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_details::PutAccountDetailsError, R>> for Error
2376where
2377    R: Send + Sync + std::fmt::Debug + 'static,
2378{
2379    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_details::PutAccountDetailsError, R>) -> Self {
2380        match err {
2381            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2382            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2383                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2384                source: err.into(),
2385            }),
2386        }
2387    }
2388}
2389impl From<crate::operation::put_account_details::PutAccountDetailsError> for Error {
2390    fn from(err: crate::operation::put_account_details::PutAccountDetailsError) -> Self {
2391        match err {
2392            crate::operation::put_account_details::PutAccountDetailsError::BadRequestException(inner) => Error::BadRequestException(inner),
2393            crate::operation::put_account_details::PutAccountDetailsError::ConflictException(inner) => Error::ConflictException(inner),
2394            crate::operation::put_account_details::PutAccountDetailsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2395            crate::operation::put_account_details::PutAccountDetailsError::Unhandled(inner) => Error::Unhandled(inner),
2396        }
2397    }
2398}
2399impl<R>
2400    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError, R>>
2401    for Error
2402where
2403    R: Send + Sync + std::fmt::Debug + 'static,
2404{
2405    fn from(
2406        err: ::aws_smithy_runtime_api::client::result::SdkError<
2407            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError,
2408            R,
2409        >,
2410    ) -> Self {
2411        match err {
2412            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2413            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2414                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2415                source: err.into(),
2416            }),
2417        }
2418    }
2419}
2420impl From<crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError> for Error {
2421    fn from(err: crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError) -> Self {
2422        match err {
2423            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError::BadRequestException(inner) => {
2424                Error::BadRequestException(inner)
2425            }
2426            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError::TooManyRequestsException(inner) => {
2427                Error::TooManyRequestsException(inner)
2428            }
2429            crate::operation::put_account_sending_attributes::PutAccountSendingAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2430        }
2431    }
2432}
2433impl<R>
2434    From<
2435        ::aws_smithy_runtime_api::client::result::SdkError<
2436            crate::operation::put_account_suppression_attributes::PutAccountSuppressionAttributesError,
2437            R,
2438        >,
2439    > for Error
2440where
2441    R: Send + Sync + std::fmt::Debug + 'static,
2442{
2443    fn from(
2444        err: ::aws_smithy_runtime_api::client::result::SdkError<
2445            crate::operation::put_account_suppression_attributes::PutAccountSuppressionAttributesError,
2446            R,
2447        >,
2448    ) -> Self {
2449        match err {
2450            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2451            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2452                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2453                source: err.into(),
2454            }),
2455        }
2456    }
2457}
2458impl From<crate::operation::put_account_suppression_attributes::PutAccountSuppressionAttributesError> for Error {
2459    fn from(err: crate::operation::put_account_suppression_attributes::PutAccountSuppressionAttributesError) -> Self {
2460        match err {
2461            crate::operation::put_account_suppression_attributes::PutAccountSuppressionAttributesError::BadRequestException(inner) => {
2462                Error::BadRequestException(inner)
2463            }
2464            crate::operation::put_account_suppression_attributes::PutAccountSuppressionAttributesError::TooManyRequestsException(inner) => {
2465                Error::TooManyRequestsException(inner)
2466            }
2467            crate::operation::put_account_suppression_attributes::PutAccountSuppressionAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2468        }
2469    }
2470}
2471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_vdm_attributes::PutAccountVdmAttributesError, R>>
2472    for Error
2473where
2474    R: Send + Sync + std::fmt::Debug + 'static,
2475{
2476    fn from(
2477        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_vdm_attributes::PutAccountVdmAttributesError, R>,
2478    ) -> Self {
2479        match err {
2480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2483                source: err.into(),
2484            }),
2485        }
2486    }
2487}
2488impl From<crate::operation::put_account_vdm_attributes::PutAccountVdmAttributesError> for Error {
2489    fn from(err: crate::operation::put_account_vdm_attributes::PutAccountVdmAttributesError) -> Self {
2490        match err {
2491            crate::operation::put_account_vdm_attributes::PutAccountVdmAttributesError::BadRequestException(inner) => {
2492                Error::BadRequestException(inner)
2493            }
2494            crate::operation::put_account_vdm_attributes::PutAccountVdmAttributesError::TooManyRequestsException(inner) => {
2495                Error::TooManyRequestsException(inner)
2496            }
2497            crate::operation::put_account_vdm_attributes::PutAccountVdmAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2498        }
2499    }
2500}
2501impl<R>
2502    From<
2503        ::aws_smithy_runtime_api::client::result::SdkError<
2504            crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError,
2505            R,
2506        >,
2507    > for Error
2508where
2509    R: Send + Sync + std::fmt::Debug + 'static,
2510{
2511    fn from(
2512        err: ::aws_smithy_runtime_api::client::result::SdkError<
2513            crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError,
2514            R,
2515        >,
2516    ) -> Self {
2517        match err {
2518            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2519            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2520                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2521                source: err.into(),
2522            }),
2523        }
2524    }
2525}
2526impl From<crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError> for Error {
2527    fn from(err: crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError) -> Self {
2528        match err {
2529            crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError::BadRequestException(inner) => {
2530                Error::BadRequestException(inner)
2531            }
2532            crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError::NotFoundException(inner) => {
2533                Error::NotFoundException(inner)
2534            }
2535            crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError::TooManyRequestsException(inner) => {
2536                Error::TooManyRequestsException(inner)
2537            }
2538            crate::operation::put_configuration_set_archiving_options::PutConfigurationSetArchivingOptionsError::Unhandled(inner) => {
2539                Error::Unhandled(inner)
2540            }
2541        }
2542    }
2543}
2544impl<R>
2545    From<
2546        ::aws_smithy_runtime_api::client::result::SdkError<
2547            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
2548            R,
2549        >,
2550    > for Error
2551where
2552    R: Send + Sync + std::fmt::Debug + 'static,
2553{
2554    fn from(
2555        err: ::aws_smithy_runtime_api::client::result::SdkError<
2556            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
2557            R,
2558        >,
2559    ) -> Self {
2560        match err {
2561            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2562            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2563                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2564                source: err.into(),
2565            }),
2566        }
2567    }
2568}
2569impl From<crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError> for Error {
2570    fn from(err: crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError) -> Self {
2571        match err {
2572            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::BadRequestException(inner) => {
2573                Error::BadRequestException(inner)
2574            }
2575            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::NotFoundException(inner) => {
2576                Error::NotFoundException(inner)
2577            }
2578            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::TooManyRequestsException(inner) => {
2579                Error::TooManyRequestsException(inner)
2580            }
2581            crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::Unhandled(inner) => {
2582                Error::Unhandled(inner)
2583            }
2584        }
2585    }
2586}
2587impl<R>
2588    From<
2589        ::aws_smithy_runtime_api::client::result::SdkError<
2590            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError,
2591            R,
2592        >,
2593    > for Error
2594where
2595    R: Send + Sync + std::fmt::Debug + 'static,
2596{
2597    fn from(
2598        err: ::aws_smithy_runtime_api::client::result::SdkError<
2599            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError,
2600            R,
2601        >,
2602    ) -> Self {
2603        match err {
2604            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2605            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2606                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2607                source: err.into(),
2608            }),
2609        }
2610    }
2611}
2612impl From<crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError> for Error {
2613    fn from(err: crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError) -> Self {
2614        match err {
2615            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::BadRequestException(inner) => {
2616                Error::BadRequestException(inner)
2617            }
2618            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::NotFoundException(inner) => {
2619                Error::NotFoundException(inner)
2620            }
2621            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::TooManyRequestsException(
2622                inner,
2623            ) => Error::TooManyRequestsException(inner),
2624            crate::operation::put_configuration_set_reputation_options::PutConfigurationSetReputationOptionsError::Unhandled(inner) => {
2625                Error::Unhandled(inner)
2626            }
2627        }
2628    }
2629}
2630impl<R>
2631    From<
2632        ::aws_smithy_runtime_api::client::result::SdkError<
2633            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError,
2634            R,
2635        >,
2636    > for Error
2637where
2638    R: Send + Sync + std::fmt::Debug + 'static,
2639{
2640    fn from(
2641        err: ::aws_smithy_runtime_api::client::result::SdkError<
2642            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError,
2643            R,
2644        >,
2645    ) -> Self {
2646        match err {
2647            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2648            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2649                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2650                source: err.into(),
2651            }),
2652        }
2653    }
2654}
2655impl From<crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError> for Error {
2656    fn from(err: crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError) -> Self {
2657        match err {
2658            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::BadRequestException(inner) => {
2659                Error::BadRequestException(inner)
2660            }
2661            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::NotFoundException(inner) => {
2662                Error::NotFoundException(inner)
2663            }
2664            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::TooManyRequestsException(inner) => {
2665                Error::TooManyRequestsException(inner)
2666            }
2667            crate::operation::put_configuration_set_sending_options::PutConfigurationSetSendingOptionsError::Unhandled(inner) => {
2668                Error::Unhandled(inner)
2669            }
2670        }
2671    }
2672}
2673impl<R>
2674    From<
2675        ::aws_smithy_runtime_api::client::result::SdkError<
2676            crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError,
2677            R,
2678        >,
2679    > for Error
2680where
2681    R: Send + Sync + std::fmt::Debug + 'static,
2682{
2683    fn from(
2684        err: ::aws_smithy_runtime_api::client::result::SdkError<
2685            crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError,
2686            R,
2687        >,
2688    ) -> Self {
2689        match err {
2690            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2691            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2692                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2693                source: err.into(),
2694            }),
2695        }
2696    }
2697}
2698impl From<crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError> for Error {
2699    fn from(err: crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError) -> Self {
2700        match err {
2701            crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError::BadRequestException(inner) => {
2702                Error::BadRequestException(inner)
2703            }
2704            crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError::NotFoundException(inner) => {
2705                Error::NotFoundException(inner)
2706            }
2707            crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError::TooManyRequestsException(
2708                inner,
2709            ) => Error::TooManyRequestsException(inner),
2710            crate::operation::put_configuration_set_suppression_options::PutConfigurationSetSuppressionOptionsError::Unhandled(inner) => {
2711                Error::Unhandled(inner)
2712            }
2713        }
2714    }
2715}
2716impl<R>
2717    From<
2718        ::aws_smithy_runtime_api::client::result::SdkError<
2719            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError,
2720            R,
2721        >,
2722    > for Error
2723where
2724    R: Send + Sync + std::fmt::Debug + 'static,
2725{
2726    fn from(
2727        err: ::aws_smithy_runtime_api::client::result::SdkError<
2728            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError,
2729            R,
2730        >,
2731    ) -> Self {
2732        match err {
2733            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2734            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2735                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2736                source: err.into(),
2737            }),
2738        }
2739    }
2740}
2741impl From<crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError> for Error {
2742    fn from(err: crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError) -> Self {
2743        match err {
2744            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::BadRequestException(inner) => {
2745                Error::BadRequestException(inner)
2746            }
2747            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::NotFoundException(inner) => {
2748                Error::NotFoundException(inner)
2749            }
2750            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::TooManyRequestsException(inner) => {
2751                Error::TooManyRequestsException(inner)
2752            }
2753            crate::operation::put_configuration_set_tracking_options::PutConfigurationSetTrackingOptionsError::Unhandled(inner) => {
2754                Error::Unhandled(inner)
2755            }
2756        }
2757    }
2758}
2759impl<R>
2760    From<
2761        ::aws_smithy_runtime_api::client::result::SdkError<
2762            crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError,
2763            R,
2764        >,
2765    > for Error
2766where
2767    R: Send + Sync + std::fmt::Debug + 'static,
2768{
2769    fn from(
2770        err: ::aws_smithy_runtime_api::client::result::SdkError<
2771            crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError,
2772            R,
2773        >,
2774    ) -> Self {
2775        match err {
2776            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2777            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2778                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2779                source: err.into(),
2780            }),
2781        }
2782    }
2783}
2784impl From<crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError> for Error {
2785    fn from(err: crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError) -> Self {
2786        match err {
2787            crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError::BadRequestException(inner) => {
2788                Error::BadRequestException(inner)
2789            }
2790            crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError::NotFoundException(inner) => {
2791                Error::NotFoundException(inner)
2792            }
2793            crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError::TooManyRequestsException(inner) => {
2794                Error::TooManyRequestsException(inner)
2795            }
2796            crate::operation::put_configuration_set_vdm_options::PutConfigurationSetVdmOptionsError::Unhandled(inner) => Error::Unhandled(inner),
2797        }
2798    }
2799}
2800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError, R>> for Error
2801where
2802    R: Send + Sync + std::fmt::Debug + 'static,
2803{
2804    fn from(
2805        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError, R>,
2806    ) -> Self {
2807        match err {
2808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2811                source: err.into(),
2812            }),
2813        }
2814    }
2815}
2816impl From<crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError> for Error {
2817    fn from(err: crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError) -> Self {
2818        match err {
2819            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::BadRequestException(inner) => Error::BadRequestException(inner),
2820            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::NotFoundException(inner) => Error::NotFoundException(inner),
2821            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::TooManyRequestsException(inner) => {
2822                Error::TooManyRequestsException(inner)
2823            }
2824            crate::operation::put_dedicated_ip_in_pool::PutDedicatedIpInPoolError::Unhandled(inner) => Error::Unhandled(inner),
2825        }
2826    }
2827}
2828impl<R>
2829    From<
2830        ::aws_smithy_runtime_api::client::result::SdkError<
2831            crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError,
2832            R,
2833        >,
2834    > for Error
2835where
2836    R: Send + Sync + std::fmt::Debug + 'static,
2837{
2838    fn from(
2839        err: ::aws_smithy_runtime_api::client::result::SdkError<
2840            crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError,
2841            R,
2842        >,
2843    ) -> Self {
2844        match err {
2845            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2846            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2847                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2848                source: err.into(),
2849            }),
2850        }
2851    }
2852}
2853impl From<crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError> for Error {
2854    fn from(err: crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError) -> Self {
2855        match err {
2856            crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError::BadRequestException(inner) => {
2857                Error::BadRequestException(inner)
2858            }
2859            crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError::ConcurrentModificationException(
2860                inner,
2861            ) => Error::ConcurrentModificationException(inner),
2862            crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError::NotFoundException(inner) => {
2863                Error::NotFoundException(inner)
2864            }
2865            crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError::TooManyRequestsException(inner) => {
2866                Error::TooManyRequestsException(inner)
2867            }
2868            crate::operation::put_dedicated_ip_pool_scaling_attributes::PutDedicatedIpPoolScalingAttributesError::Unhandled(inner) => {
2869                Error::Unhandled(inner)
2870            }
2871        }
2872    }
2873}
2874impl<R>
2875    From<
2876        ::aws_smithy_runtime_api::client::result::SdkError<
2877            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError,
2878            R,
2879        >,
2880    > for Error
2881where
2882    R: Send + Sync + std::fmt::Debug + 'static,
2883{
2884    fn from(
2885        err: ::aws_smithy_runtime_api::client::result::SdkError<
2886            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError,
2887            R,
2888        >,
2889    ) -> Self {
2890        match err {
2891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2894                source: err.into(),
2895            }),
2896        }
2897    }
2898}
2899impl From<crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError> for Error {
2900    fn from(err: crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError) -> Self {
2901        match err {
2902            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::BadRequestException(inner) => {
2903                Error::BadRequestException(inner)
2904            }
2905            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::NotFoundException(inner) => {
2906                Error::NotFoundException(inner)
2907            }
2908            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::TooManyRequestsException(inner) => {
2909                Error::TooManyRequestsException(inner)
2910            }
2911            crate::operation::put_dedicated_ip_warmup_attributes::PutDedicatedIpWarmupAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2912        }
2913    }
2914}
2915impl<R>
2916    From<
2917        ::aws_smithy_runtime_api::client::result::SdkError<
2918            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError,
2919            R,
2920        >,
2921    > for Error
2922where
2923    R: Send + Sync + std::fmt::Debug + 'static,
2924{
2925    fn from(
2926        err: ::aws_smithy_runtime_api::client::result::SdkError<
2927            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError,
2928            R,
2929        >,
2930    ) -> Self {
2931        match err {
2932            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2933            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2934                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2935                source: err.into(),
2936            }),
2937        }
2938    }
2939}
2940impl From<crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError> for Error {
2941    fn from(err: crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError) -> Self {
2942        match err {
2943            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::AlreadyExistsException(inner) => {
2944                Error::AlreadyExistsException(inner)
2945            }
2946            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::BadRequestException(inner) => {
2947                Error::BadRequestException(inner)
2948            }
2949            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::LimitExceededException(inner) => {
2950                Error::LimitExceededException(inner)
2951            }
2952            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::NotFoundException(inner) => {
2953                Error::NotFoundException(inner)
2954            }
2955            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::TooManyRequestsException(inner) => {
2956                Error::TooManyRequestsException(inner)
2957            }
2958            crate::operation::put_deliverability_dashboard_option::PutDeliverabilityDashboardOptionError::Unhandled(inner) => Error::Unhandled(inner),
2959        }
2960    }
2961}
2962impl<R>
2963    From<
2964        ::aws_smithy_runtime_api::client::result::SdkError<
2965            crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError,
2966            R,
2967        >,
2968    > for Error
2969where
2970    R: Send + Sync + std::fmt::Debug + 'static,
2971{
2972    fn from(
2973        err: ::aws_smithy_runtime_api::client::result::SdkError<
2974            crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError,
2975            R,
2976        >,
2977    ) -> Self {
2978        match err {
2979            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2980            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2981                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2982                source: err.into(),
2983            }),
2984        }
2985    }
2986}
2987impl From<crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError> for Error {
2988    fn from(err: crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError) -> Self {
2989        match err {
2990            crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError::BadRequestException(inner) => Error::BadRequestException(inner),
2991            crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError::NotFoundException(inner) => Error::NotFoundException(inner),
2992            crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2993            crate::operation::put_email_identity_configuration_set_attributes::PutEmailIdentityConfigurationSetAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2994        }
2995    }
2996}
2997impl<R>
2998    From<
2999        ::aws_smithy_runtime_api::client::result::SdkError<
3000            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError,
3001            R,
3002        >,
3003    > for Error
3004where
3005    R: Send + Sync + std::fmt::Debug + 'static,
3006{
3007    fn from(
3008        err: ::aws_smithy_runtime_api::client::result::SdkError<
3009            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError,
3010            R,
3011        >,
3012    ) -> Self {
3013        match err {
3014            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3015            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3016                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3017                source: err.into(),
3018            }),
3019        }
3020    }
3021}
3022impl From<crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError> for Error {
3023    fn from(err: crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError) -> Self {
3024        match err {
3025            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::BadRequestException(inner) => {
3026                Error::BadRequestException(inner)
3027            }
3028            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::NotFoundException(inner) => {
3029                Error::NotFoundException(inner)
3030            }
3031            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::TooManyRequestsException(inner) => {
3032                Error::TooManyRequestsException(inner)
3033            }
3034            crate::operation::put_email_identity_dkim_attributes::PutEmailIdentityDkimAttributesError::Unhandled(inner) => Error::Unhandled(inner),
3035        }
3036    }
3037}
3038impl<R>
3039    From<
3040        ::aws_smithy_runtime_api::client::result::SdkError<
3041            crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError,
3042            R,
3043        >,
3044    > for Error
3045where
3046    R: Send + Sync + std::fmt::Debug + 'static,
3047{
3048    fn from(
3049        err: ::aws_smithy_runtime_api::client::result::SdkError<
3050            crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError,
3051            R,
3052        >,
3053    ) -> Self {
3054        match err {
3055            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3056            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3057                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3058                source: err.into(),
3059            }),
3060        }
3061    }
3062}
3063impl From<crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError> for Error {
3064    fn from(err: crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError) -> Self {
3065        match err {
3066            crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError::BadRequestException(inner) => {
3067                Error::BadRequestException(inner)
3068            }
3069            crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError::NotFoundException(inner) => {
3070                Error::NotFoundException(inner)
3071            }
3072            crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError::TooManyRequestsException(
3073                inner,
3074            ) => Error::TooManyRequestsException(inner),
3075            crate::operation::put_email_identity_dkim_signing_attributes::PutEmailIdentityDkimSigningAttributesError::Unhandled(inner) => {
3076                Error::Unhandled(inner)
3077            }
3078        }
3079    }
3080}
3081impl<R>
3082    From<
3083        ::aws_smithy_runtime_api::client::result::SdkError<
3084            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError,
3085            R,
3086        >,
3087    > for Error
3088where
3089    R: Send + Sync + std::fmt::Debug + 'static,
3090{
3091    fn from(
3092        err: ::aws_smithy_runtime_api::client::result::SdkError<
3093            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError,
3094            R,
3095        >,
3096    ) -> Self {
3097        match err {
3098            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3099            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3100                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3101                source: err.into(),
3102            }),
3103        }
3104    }
3105}
3106impl From<crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError> for Error {
3107    fn from(err: crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError) -> Self {
3108        match err {
3109            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::BadRequestException(inner) => {
3110                Error::BadRequestException(inner)
3111            }
3112            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::NotFoundException(inner) => {
3113                Error::NotFoundException(inner)
3114            }
3115            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::TooManyRequestsException(inner) => {
3116                Error::TooManyRequestsException(inner)
3117            }
3118            crate::operation::put_email_identity_feedback_attributes::PutEmailIdentityFeedbackAttributesError::Unhandled(inner) => {
3119                Error::Unhandled(inner)
3120            }
3121        }
3122    }
3123}
3124impl<R>
3125    From<
3126        ::aws_smithy_runtime_api::client::result::SdkError<
3127            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError,
3128            R,
3129        >,
3130    > for Error
3131where
3132    R: Send + Sync + std::fmt::Debug + 'static,
3133{
3134    fn from(
3135        err: ::aws_smithy_runtime_api::client::result::SdkError<
3136            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError,
3137            R,
3138        >,
3139    ) -> Self {
3140        match err {
3141            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3142            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3143                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3144                source: err.into(),
3145            }),
3146        }
3147    }
3148}
3149impl From<crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError> for Error {
3150    fn from(err: crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError) -> Self {
3151        match err {
3152            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::BadRequestException(inner) => {
3153                Error::BadRequestException(inner)
3154            }
3155            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::NotFoundException(inner) => {
3156                Error::NotFoundException(inner)
3157            }
3158            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::TooManyRequestsException(inner) => {
3159                Error::TooManyRequestsException(inner)
3160            }
3161            crate::operation::put_email_identity_mail_from_attributes::PutEmailIdentityMailFromAttributesError::Unhandled(inner) => {
3162                Error::Unhandled(inner)
3163            }
3164        }
3165    }
3166}
3167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_suppressed_destination::PutSuppressedDestinationError, R>>
3168    for Error
3169where
3170    R: Send + Sync + std::fmt::Debug + 'static,
3171{
3172    fn from(
3173        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_suppressed_destination::PutSuppressedDestinationError, R>,
3174    ) -> Self {
3175        match err {
3176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3179                source: err.into(),
3180            }),
3181        }
3182    }
3183}
3184impl From<crate::operation::put_suppressed_destination::PutSuppressedDestinationError> for Error {
3185    fn from(err: crate::operation::put_suppressed_destination::PutSuppressedDestinationError) -> Self {
3186        match err {
3187            crate::operation::put_suppressed_destination::PutSuppressedDestinationError::BadRequestException(inner) => {
3188                Error::BadRequestException(inner)
3189            }
3190            crate::operation::put_suppressed_destination::PutSuppressedDestinationError::TooManyRequestsException(inner) => {
3191                Error::TooManyRequestsException(inner)
3192            }
3193            crate::operation::put_suppressed_destination::PutSuppressedDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3194        }
3195    }
3196}
3197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bulk_email::SendBulkEmailError, R>> for Error
3198where
3199    R: Send + Sync + std::fmt::Debug + 'static,
3200{
3201    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bulk_email::SendBulkEmailError, R>) -> Self {
3202        match err {
3203            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3204            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3205                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3206                source: err.into(),
3207            }),
3208        }
3209    }
3210}
3211impl From<crate::operation::send_bulk_email::SendBulkEmailError> for Error {
3212    fn from(err: crate::operation::send_bulk_email::SendBulkEmailError) -> Self {
3213        match err {
3214            crate::operation::send_bulk_email::SendBulkEmailError::AccountSuspendedException(inner) => Error::AccountSuspendedException(inner),
3215            crate::operation::send_bulk_email::SendBulkEmailError::BadRequestException(inner) => Error::BadRequestException(inner),
3216            crate::operation::send_bulk_email::SendBulkEmailError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3217            crate::operation::send_bulk_email::SendBulkEmailError::MailFromDomainNotVerifiedException(inner) => {
3218                Error::MailFromDomainNotVerifiedException(inner)
3219            }
3220            crate::operation::send_bulk_email::SendBulkEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
3221            crate::operation::send_bulk_email::SendBulkEmailError::NotFoundException(inner) => Error::NotFoundException(inner),
3222            crate::operation::send_bulk_email::SendBulkEmailError::SendingPausedException(inner) => Error::SendingPausedException(inner),
3223            crate::operation::send_bulk_email::SendBulkEmailError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3224            crate::operation::send_bulk_email::SendBulkEmailError::Unhandled(inner) => Error::Unhandled(inner),
3225        }
3226    }
3227}
3228impl<R>
3229    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_custom_verification_email::SendCustomVerificationEmailError, R>>
3230    for Error
3231where
3232    R: Send + Sync + std::fmt::Debug + 'static,
3233{
3234    fn from(
3235        err: ::aws_smithy_runtime_api::client::result::SdkError<
3236            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError,
3237            R,
3238        >,
3239    ) -> Self {
3240        match err {
3241            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3242            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3243                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3244                source: err.into(),
3245            }),
3246        }
3247    }
3248}
3249impl From<crate::operation::send_custom_verification_email::SendCustomVerificationEmailError> for Error {
3250    fn from(err: crate::operation::send_custom_verification_email::SendCustomVerificationEmailError) -> Self {
3251        match err {
3252            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::BadRequestException(inner) => {
3253                Error::BadRequestException(inner)
3254            }
3255            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::LimitExceededException(inner) => {
3256                Error::LimitExceededException(inner)
3257            }
3258            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::MailFromDomainNotVerifiedException(inner) => {
3259                Error::MailFromDomainNotVerifiedException(inner)
3260            }
3261            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::MessageRejected(inner) => {
3262                Error::MessageRejected(inner)
3263            }
3264            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::NotFoundException(inner) => {
3265                Error::NotFoundException(inner)
3266            }
3267            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::SendingPausedException(inner) => {
3268                Error::SendingPausedException(inner)
3269            }
3270            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::TooManyRequestsException(inner) => {
3271                Error::TooManyRequestsException(inner)
3272            }
3273            crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::Unhandled(inner) => Error::Unhandled(inner),
3274        }
3275    }
3276}
3277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>> for Error
3278where
3279    R: Send + Sync + std::fmt::Debug + 'static,
3280{
3281    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>) -> Self {
3282        match err {
3283            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3284            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3285                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3286                source: err.into(),
3287            }),
3288        }
3289    }
3290}
3291impl From<crate::operation::send_email::SendEmailError> for Error {
3292    fn from(err: crate::operation::send_email::SendEmailError) -> Self {
3293        match err {
3294            crate::operation::send_email::SendEmailError::AccountSuspendedException(inner) => Error::AccountSuspendedException(inner),
3295            crate::operation::send_email::SendEmailError::BadRequestException(inner) => Error::BadRequestException(inner),
3296            crate::operation::send_email::SendEmailError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3297            crate::operation::send_email::SendEmailError::MailFromDomainNotVerifiedException(inner) => {
3298                Error::MailFromDomainNotVerifiedException(inner)
3299            }
3300            crate::operation::send_email::SendEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
3301            crate::operation::send_email::SendEmailError::NotFoundException(inner) => Error::NotFoundException(inner),
3302            crate::operation::send_email::SendEmailError::SendingPausedException(inner) => Error::SendingPausedException(inner),
3303            crate::operation::send_email::SendEmailError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3304            crate::operation::send_email::SendEmailError::Unhandled(inner) => Error::Unhandled(inner),
3305        }
3306    }
3307}
3308impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3309where
3310    R: Send + Sync + std::fmt::Debug + 'static,
3311{
3312    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3313        match err {
3314            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3315            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3316                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3317                source: err.into(),
3318            }),
3319        }
3320    }
3321}
3322impl From<crate::operation::tag_resource::TagResourceError> for Error {
3323    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3324        match err {
3325            crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
3326            crate::operation::tag_resource::TagResourceError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
3327            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
3328            crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3329            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3330        }
3331    }
3332}
3333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_render_email_template::TestRenderEmailTemplateError, R>>
3334    for Error
3335where
3336    R: Send + Sync + std::fmt::Debug + 'static,
3337{
3338    fn from(
3339        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_render_email_template::TestRenderEmailTemplateError, R>,
3340    ) -> Self {
3341        match err {
3342            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3343            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3344                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3345                source: err.into(),
3346            }),
3347        }
3348    }
3349}
3350impl From<crate::operation::test_render_email_template::TestRenderEmailTemplateError> for Error {
3351    fn from(err: crate::operation::test_render_email_template::TestRenderEmailTemplateError) -> Self {
3352        match err {
3353            crate::operation::test_render_email_template::TestRenderEmailTemplateError::BadRequestException(inner) => {
3354                Error::BadRequestException(inner)
3355            }
3356            crate::operation::test_render_email_template::TestRenderEmailTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
3357            crate::operation::test_render_email_template::TestRenderEmailTemplateError::TooManyRequestsException(inner) => {
3358                Error::TooManyRequestsException(inner)
3359            }
3360            crate::operation::test_render_email_template::TestRenderEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3361        }
3362    }
3363}
3364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3365where
3366    R: Send + Sync + std::fmt::Debug + 'static,
3367{
3368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3369        match err {
3370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3373                source: err.into(),
3374            }),
3375        }
3376    }
3377}
3378impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3379    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3380        match err {
3381            crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
3382            crate::operation::untag_resource::UntagResourceError::ConcurrentModificationException(inner) => {
3383                Error::ConcurrentModificationException(inner)
3384            }
3385            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
3386            crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3387            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3388        }
3389    }
3390}
3391impl<R>
3392    From<
3393        ::aws_smithy_runtime_api::client::result::SdkError<
3394            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
3395            R,
3396        >,
3397    > for Error
3398where
3399    R: Send + Sync + std::fmt::Debug + 'static,
3400{
3401    fn from(
3402        err: ::aws_smithy_runtime_api::client::result::SdkError<
3403            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
3404            R,
3405        >,
3406    ) -> Self {
3407        match err {
3408            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3409            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3410                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3411                source: err.into(),
3412            }),
3413        }
3414    }
3415}
3416impl From<crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError> for Error {
3417    fn from(err: crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError) -> Self {
3418        match err {
3419            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::BadRequestException(inner) => {
3420                Error::BadRequestException(inner)
3421            }
3422            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::NotFoundException(inner) => {
3423                Error::NotFoundException(inner)
3424            }
3425            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::TooManyRequestsException(
3426                inner,
3427            ) => Error::TooManyRequestsException(inner),
3428            crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::Unhandled(inner) => {
3429                Error::Unhandled(inner)
3430            }
3431        }
3432    }
3433}
3434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact::UpdateContactError, R>> for Error
3435where
3436    R: Send + Sync + std::fmt::Debug + 'static,
3437{
3438    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact::UpdateContactError, R>) -> Self {
3439        match err {
3440            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3441            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3442                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3443                source: err.into(),
3444            }),
3445        }
3446    }
3447}
3448impl From<crate::operation::update_contact::UpdateContactError> for Error {
3449    fn from(err: crate::operation::update_contact::UpdateContactError) -> Self {
3450        match err {
3451            crate::operation::update_contact::UpdateContactError::BadRequestException(inner) => Error::BadRequestException(inner),
3452            crate::operation::update_contact::UpdateContactError::ConcurrentModificationException(inner) => {
3453                Error::ConcurrentModificationException(inner)
3454            }
3455            crate::operation::update_contact::UpdateContactError::NotFoundException(inner) => Error::NotFoundException(inner),
3456            crate::operation::update_contact::UpdateContactError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3457            crate::operation::update_contact::UpdateContactError::Unhandled(inner) => Error::Unhandled(inner),
3458        }
3459    }
3460}
3461impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_list::UpdateContactListError, R>> for Error
3462where
3463    R: Send + Sync + std::fmt::Debug + 'static,
3464{
3465    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_list::UpdateContactListError, R>) -> Self {
3466        match err {
3467            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3468            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3469                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3470                source: err.into(),
3471            }),
3472        }
3473    }
3474}
3475impl From<crate::operation::update_contact_list::UpdateContactListError> for Error {
3476    fn from(err: crate::operation::update_contact_list::UpdateContactListError) -> Self {
3477        match err {
3478            crate::operation::update_contact_list::UpdateContactListError::BadRequestException(inner) => Error::BadRequestException(inner),
3479            crate::operation::update_contact_list::UpdateContactListError::ConcurrentModificationException(inner) => {
3480                Error::ConcurrentModificationException(inner)
3481            }
3482            crate::operation::update_contact_list::UpdateContactListError::NotFoundException(inner) => Error::NotFoundException(inner),
3483            crate::operation::update_contact_list::UpdateContactListError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3484            crate::operation::update_contact_list::UpdateContactListError::Unhandled(inner) => Error::Unhandled(inner),
3485        }
3486    }
3487}
3488impl<R>
3489    From<
3490        ::aws_smithy_runtime_api::client::result::SdkError<
3491            crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError,
3492            R,
3493        >,
3494    > for Error
3495where
3496    R: Send + Sync + std::fmt::Debug + 'static,
3497{
3498    fn from(
3499        err: ::aws_smithy_runtime_api::client::result::SdkError<
3500            crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError,
3501            R,
3502        >,
3503    ) -> Self {
3504        match err {
3505            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3506            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3507                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3508                source: err.into(),
3509            }),
3510        }
3511    }
3512}
3513impl From<crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError> for Error {
3514    fn from(err: crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError) -> Self {
3515        match err {
3516            crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::BadRequestException(inner) => {
3517                Error::BadRequestException(inner)
3518            }
3519            crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::NotFoundException(inner) => {
3520                Error::NotFoundException(inner)
3521            }
3522            crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::TooManyRequestsException(
3523                inner,
3524            ) => Error::TooManyRequestsException(inner),
3525            crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::Unhandled(inner) => {
3526                Error::Unhandled(inner)
3527            }
3528        }
3529    }
3530}
3531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError, R>>
3532    for Error
3533where
3534    R: Send + Sync + std::fmt::Debug + 'static,
3535{
3536    fn from(
3537        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError, R>,
3538    ) -> Self {
3539        match err {
3540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3543                source: err.into(),
3544            }),
3545        }
3546    }
3547}
3548impl From<crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError> for Error {
3549    fn from(err: crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError) -> Self {
3550        match err {
3551            crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError::BadRequestException(inner) => {
3552                Error::BadRequestException(inner)
3553            }
3554            crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError::NotFoundException(inner) => {
3555                Error::NotFoundException(inner)
3556            }
3557            crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError::TooManyRequestsException(inner) => {
3558                Error::TooManyRequestsException(inner)
3559            }
3560            crate::operation::update_email_identity_policy::UpdateEmailIdentityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3561        }
3562    }
3563}
3564impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_template::UpdateEmailTemplateError, R>> for Error
3565where
3566    R: Send + Sync + std::fmt::Debug + 'static,
3567{
3568    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_template::UpdateEmailTemplateError, R>) -> Self {
3569        match err {
3570            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3571            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3572                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3573                source: err.into(),
3574            }),
3575        }
3576    }
3577}
3578impl From<crate::operation::update_email_template::UpdateEmailTemplateError> for Error {
3579    fn from(err: crate::operation::update_email_template::UpdateEmailTemplateError) -> Self {
3580        match err {
3581            crate::operation::update_email_template::UpdateEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
3582            crate::operation::update_email_template::UpdateEmailTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
3583            crate::operation::update_email_template::UpdateEmailTemplateError::TooManyRequestsException(inner) => {
3584                Error::TooManyRequestsException(inner)
3585            }
3586            crate::operation::update_email_template::UpdateEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3587        }
3588    }
3589}
3590impl<R>
3591    From<
3592        ::aws_smithy_runtime_api::client::result::SdkError<
3593            crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError,
3594            R,
3595        >,
3596    > for Error
3597where
3598    R: Send + Sync + std::fmt::Debug + 'static,
3599{
3600    fn from(
3601        err: ::aws_smithy_runtime_api::client::result::SdkError<
3602            crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError,
3603            R,
3604        >,
3605    ) -> Self {
3606        match err {
3607            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3608            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3609                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3610                source: err.into(),
3611            }),
3612        }
3613    }
3614}
3615impl From<crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError> for Error {
3616    fn from(err: crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError) -> Self {
3617        match err {
3618            crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError::BadRequestException(inner) => Error::BadRequestException(inner),
3619            crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError::ConflictException(inner) => Error::ConflictException(inner),
3620            crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3621            crate::operation::update_reputation_entity_customer_managed_status::UpdateReputationEntityCustomerManagedStatusError::Unhandled(inner) => Error::Unhandled(inner),
3622        }
3623    }
3624}
3625impl<R>
3626    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError, R>>
3627    for Error
3628where
3629    R: Send + Sync + std::fmt::Debug + 'static,
3630{
3631    fn from(
3632        err: ::aws_smithy_runtime_api::client::result::SdkError<
3633            crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError,
3634            R,
3635        >,
3636    ) -> Self {
3637        match err {
3638            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3639            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3640                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3641                source: err.into(),
3642            }),
3643        }
3644    }
3645}
3646impl From<crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError> for Error {
3647    fn from(err: crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError) -> Self {
3648        match err {
3649            crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError::BadRequestException(inner) => {
3650                Error::BadRequestException(inner)
3651            }
3652            crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError::ConflictException(inner) => {
3653                Error::ConflictException(inner)
3654            }
3655            crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError::TooManyRequestsException(inner) => {
3656                Error::TooManyRequestsException(inner)
3657            }
3658            crate::operation::update_reputation_entity_policy::UpdateReputationEntityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3659        }
3660    }
3661}
3662impl ::std::error::Error for Error {
3663    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3664        match self {
3665            Error::AccountSuspendedException(inner) => inner.source(),
3666            Error::AlreadyExistsException(inner) => inner.source(),
3667            Error::BadRequestException(inner) => inner.source(),
3668            Error::ConcurrentModificationException(inner) => inner.source(),
3669            Error::ConflictException(inner) => inner.source(),
3670            Error::InternalServiceErrorException(inner) => inner.source(),
3671            Error::InvalidNextTokenException(inner) => inner.source(),
3672            Error::LimitExceededException(inner) => inner.source(),
3673            Error::MailFromDomainNotVerifiedException(inner) => inner.source(),
3674            Error::MessageRejected(inner) => inner.source(),
3675            Error::NotFoundException(inner) => inner.source(),
3676            Error::SendingPausedException(inner) => inner.source(),
3677            Error::TooManyRequestsException(inner) => inner.source(),
3678            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3679        }
3680    }
3681}
3682impl ::aws_types::request_id::RequestId for Error {
3683    fn request_id(&self) -> Option<&str> {
3684        match self {
3685            Self::AccountSuspendedException(e) => e.request_id(),
3686            Self::AlreadyExistsException(e) => e.request_id(),
3687            Self::BadRequestException(e) => e.request_id(),
3688            Self::ConcurrentModificationException(e) => e.request_id(),
3689            Self::ConflictException(e) => e.request_id(),
3690            Self::InternalServiceErrorException(e) => e.request_id(),
3691            Self::InvalidNextTokenException(e) => e.request_id(),
3692            Self::LimitExceededException(e) => e.request_id(),
3693            Self::MailFromDomainNotVerifiedException(e) => e.request_id(),
3694            Self::MessageRejected(e) => e.request_id(),
3695            Self::NotFoundException(e) => e.request_id(),
3696            Self::SendingPausedException(e) => e.request_id(),
3697            Self::TooManyRequestsException(e) => e.request_id(),
3698            Self::Unhandled(e) => e.meta.request_id(),
3699        }
3700    }
3701}