1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccountSendingPausedException(crate::types::error::AccountSendingPausedException),
9 AlreadyExistsException(crate::types::error::AlreadyExistsException),
11 CannotDeleteException(crate::types::error::CannotDeleteException),
13 ConfigurationSetAlreadyExistsException(crate::types::error::ConfigurationSetAlreadyExistsException),
15 ConfigurationSetDoesNotExistException(crate::types::error::ConfigurationSetDoesNotExistException),
17 ConfigurationSetSendingPausedException(crate::types::error::ConfigurationSetSendingPausedException),
20 CustomVerificationEmailInvalidContentException(crate::types::error::CustomVerificationEmailInvalidContentException),
22 CustomVerificationEmailTemplateAlreadyExistsException(crate::types::error::CustomVerificationEmailTemplateAlreadyExistsException),
24 CustomVerificationEmailTemplateDoesNotExistException(crate::types::error::CustomVerificationEmailTemplateDoesNotExistException),
26 EventDestinationAlreadyExistsException(crate::types::error::EventDestinationAlreadyExistsException),
28 EventDestinationDoesNotExistException(crate::types::error::EventDestinationDoesNotExistException),
30 FromEmailAddressNotVerifiedException(crate::types::error::FromEmailAddressNotVerifiedException),
32 InvalidCloudWatchDestinationException(crate::types::error::InvalidCloudWatchDestinationException),
34 InvalidConfigurationSetException(crate::types::error::InvalidConfigurationSetException),
36 InvalidDeliveryOptionsException(crate::types::error::InvalidDeliveryOptionsException),
38 InvalidFirehoseDestinationException(crate::types::error::InvalidFirehoseDestinationException),
40 InvalidLambdaFunctionException(crate::types::error::InvalidLambdaFunctionException),
42 InvalidPolicyException(crate::types::error::InvalidPolicyException),
44 InvalidRenderingParameterException(crate::types::error::InvalidRenderingParameterException),
46 InvalidS3ConfigurationException(crate::types::error::InvalidS3ConfigurationException),
48 InvalidSnsDestinationException(crate::types::error::InvalidSnsDestinationException),
50 InvalidSnsTopicException(crate::types::error::InvalidSnsTopicException),
52 InvalidTemplateException(crate::types::error::InvalidTemplateException),
54 InvalidTrackingOptionsException(crate::types::error::InvalidTrackingOptionsException),
62 LimitExceededException(crate::types::error::LimitExceededException),
64 MailFromDomainNotVerifiedException(crate::types::error::MailFromDomainNotVerifiedException),
66 MessageRejected(crate::types::error::MessageRejected),
68 MissingRenderingAttributeException(crate::types::error::MissingRenderingAttributeException),
70 ProductionAccessNotGrantedException(crate::types::error::ProductionAccessNotGrantedException),
72 RuleDoesNotExistException(crate::types::error::RuleDoesNotExistException),
74 RuleSetDoesNotExistException(crate::types::error::RuleSetDoesNotExistException),
76 TemplateDoesNotExistException(crate::types::error::TemplateDoesNotExistException),
78 TrackingOptionsAlreadyExistsException(crate::types::error::TrackingOptionsAlreadyExistsException),
80 TrackingOptionsDoesNotExistException(crate::types::error::TrackingOptionsDoesNotExistException),
82 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
84 variable wildcard pattern and check `.code()`:
85 \
86 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
87 \
88 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
89 Unhandled(crate::error::sealed_unhandled::Unhandled),
90}
91impl ::std::fmt::Display for Error {
92 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93 match self {
94 Error::AccountSendingPausedException(inner) => inner.fmt(f),
95 Error::AlreadyExistsException(inner) => inner.fmt(f),
96 Error::CannotDeleteException(inner) => inner.fmt(f),
97 Error::ConfigurationSetAlreadyExistsException(inner) => inner.fmt(f),
98 Error::ConfigurationSetDoesNotExistException(inner) => inner.fmt(f),
99 Error::ConfigurationSetSendingPausedException(inner) => inner.fmt(f),
100 Error::CustomVerificationEmailInvalidContentException(inner) => inner.fmt(f),
101 Error::CustomVerificationEmailTemplateAlreadyExistsException(inner) => inner.fmt(f),
102 Error::CustomVerificationEmailTemplateDoesNotExistException(inner) => inner.fmt(f),
103 Error::EventDestinationAlreadyExistsException(inner) => inner.fmt(f),
104 Error::EventDestinationDoesNotExistException(inner) => inner.fmt(f),
105 Error::FromEmailAddressNotVerifiedException(inner) => inner.fmt(f),
106 Error::InvalidCloudWatchDestinationException(inner) => inner.fmt(f),
107 Error::InvalidConfigurationSetException(inner) => inner.fmt(f),
108 Error::InvalidDeliveryOptionsException(inner) => inner.fmt(f),
109 Error::InvalidFirehoseDestinationException(inner) => inner.fmt(f),
110 Error::InvalidLambdaFunctionException(inner) => inner.fmt(f),
111 Error::InvalidPolicyException(inner) => inner.fmt(f),
112 Error::InvalidRenderingParameterException(inner) => inner.fmt(f),
113 Error::InvalidS3ConfigurationException(inner) => inner.fmt(f),
114 Error::InvalidSnsDestinationException(inner) => inner.fmt(f),
115 Error::InvalidSnsTopicException(inner) => inner.fmt(f),
116 Error::InvalidTemplateException(inner) => inner.fmt(f),
117 Error::InvalidTrackingOptionsException(inner) => inner.fmt(f),
118 Error::LimitExceededException(inner) => inner.fmt(f),
119 Error::MailFromDomainNotVerifiedException(inner) => inner.fmt(f),
120 Error::MessageRejected(inner) => inner.fmt(f),
121 Error::MissingRenderingAttributeException(inner) => inner.fmt(f),
122 Error::ProductionAccessNotGrantedException(inner) => inner.fmt(f),
123 Error::RuleDoesNotExistException(inner) => inner.fmt(f),
124 Error::RuleSetDoesNotExistException(inner) => inner.fmt(f),
125 Error::TemplateDoesNotExistException(inner) => inner.fmt(f),
126 Error::TrackingOptionsAlreadyExistsException(inner) => inner.fmt(f),
127 Error::TrackingOptionsDoesNotExistException(inner) => inner.fmt(f),
128 Error::Unhandled(_) => {
129 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
130 write!(f, "unhandled error ({code})")
131 } else {
132 f.write_str("unhandled error")
133 }
134 }
135 }
136 }
137}
138impl From<::aws_smithy_types::error::operation::BuildError> for Error {
139 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
140 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141 source: value.into(),
142 meta: ::std::default::Default::default(),
143 })
144 }
145}
146impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
147 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
148 match self {
149 Self::AccountSendingPausedException(inner) => inner.meta(),
150 Self::AlreadyExistsException(inner) => inner.meta(),
151 Self::CannotDeleteException(inner) => inner.meta(),
152 Self::ConfigurationSetAlreadyExistsException(inner) => inner.meta(),
153 Self::ConfigurationSetDoesNotExistException(inner) => inner.meta(),
154 Self::ConfigurationSetSendingPausedException(inner) => inner.meta(),
155 Self::CustomVerificationEmailInvalidContentException(inner) => inner.meta(),
156 Self::CustomVerificationEmailTemplateAlreadyExistsException(inner) => inner.meta(),
157 Self::CustomVerificationEmailTemplateDoesNotExistException(inner) => inner.meta(),
158 Self::EventDestinationAlreadyExistsException(inner) => inner.meta(),
159 Self::EventDestinationDoesNotExistException(inner) => inner.meta(),
160 Self::FromEmailAddressNotVerifiedException(inner) => inner.meta(),
161 Self::InvalidCloudWatchDestinationException(inner) => inner.meta(),
162 Self::InvalidConfigurationSetException(inner) => inner.meta(),
163 Self::InvalidDeliveryOptionsException(inner) => inner.meta(),
164 Self::InvalidFirehoseDestinationException(inner) => inner.meta(),
165 Self::InvalidLambdaFunctionException(inner) => inner.meta(),
166 Self::InvalidPolicyException(inner) => inner.meta(),
167 Self::InvalidRenderingParameterException(inner) => inner.meta(),
168 Self::InvalidS3ConfigurationException(inner) => inner.meta(),
169 Self::InvalidSnsDestinationException(inner) => inner.meta(),
170 Self::InvalidSnsTopicException(inner) => inner.meta(),
171 Self::InvalidTemplateException(inner) => inner.meta(),
172 Self::InvalidTrackingOptionsException(inner) => inner.meta(),
173 Self::LimitExceededException(inner) => inner.meta(),
174 Self::MailFromDomainNotVerifiedException(inner) => inner.meta(),
175 Self::MessageRejected(inner) => inner.meta(),
176 Self::MissingRenderingAttributeException(inner) => inner.meta(),
177 Self::ProductionAccessNotGrantedException(inner) => inner.meta(),
178 Self::RuleDoesNotExistException(inner) => inner.meta(),
179 Self::RuleSetDoesNotExistException(inner) => inner.meta(),
180 Self::TemplateDoesNotExistException(inner) => inner.meta(),
181 Self::TrackingOptionsAlreadyExistsException(inner) => inner.meta(),
182 Self::TrackingOptionsDoesNotExistException(inner) => inner.meta(),
183 Self::Unhandled(inner) => &inner.meta,
184 }
185 }
186}
187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError, R>> for Error
188where
189 R: Send + Sync + std::fmt::Debug + 'static,
190{
191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError, R>) -> Self {
192 match err {
193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
196 source: err.into(),
197 }),
198 }
199 }
200}
201impl From<crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError> for Error {
202 fn from(err: crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError) -> Self {
203 match err {
204 crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
205 crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
206 crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
207 Error::RuleSetDoesNotExistException(inner)
208 }
209 crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
210 }
211 }
212}
213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>> for Error
214where
215 R: Send + Sync + std::fmt::Debug + 'static,
216{
217 fn from(
218 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>,
219 ) -> Self {
220 match err {
221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224 source: err.into(),
225 }),
226 }
227 }
228}
229impl From<crate::operation::create_configuration_set::CreateConfigurationSetError> for Error {
230 fn from(err: crate::operation::create_configuration_set::CreateConfigurationSetError) -> Self {
231 match err {
232 crate::operation::create_configuration_set::CreateConfigurationSetError::ConfigurationSetAlreadyExistsException(inner) => {
233 Error::ConfigurationSetAlreadyExistsException(inner)
234 }
235 crate::operation::create_configuration_set::CreateConfigurationSetError::InvalidConfigurationSetException(inner) => {
236 Error::InvalidConfigurationSetException(inner)
237 }
238 crate::operation::create_configuration_set::CreateConfigurationSetError::LimitExceededException(inner) => {
239 Error::LimitExceededException(inner)
240 }
241 crate::operation::create_configuration_set::CreateConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
242 }
243 }
244}
245impl<R>
246 From<
247 ::aws_smithy_runtime_api::client::result::SdkError<
248 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
249 R,
250 >,
251 > for Error
252where
253 R: Send + Sync + std::fmt::Debug + 'static,
254{
255 fn from(
256 err: ::aws_smithy_runtime_api::client::result::SdkError<
257 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
258 R,
259 >,
260 ) -> Self {
261 match err {
262 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
263 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
264 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
265 source: err.into(),
266 }),
267 }
268 }
269}
270impl From<crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError> for Error {
271 fn from(err: crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError) -> Self {
272 match err {
273 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
274 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::EventDestinationAlreadyExistsException(inner) => Error::EventDestinationAlreadyExistsException(inner),
275 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::InvalidCloudWatchDestinationException(inner) => Error::InvalidCloudWatchDestinationException(inner),
276 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::InvalidFirehoseDestinationException(inner) => Error::InvalidFirehoseDestinationException(inner),
277 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::InvalidSnsDestinationException(inner) => Error::InvalidSnsDestinationException(inner),
278 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
279 crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
280 }
281 }
282}
283impl<R>
284 From<
285 ::aws_smithy_runtime_api::client::result::SdkError<
286 crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError,
287 R,
288 >,
289 > for Error
290where
291 R: Send + Sync + std::fmt::Debug + 'static,
292{
293 fn from(
294 err: ::aws_smithy_runtime_api::client::result::SdkError<
295 crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError,
296 R,
297 >,
298 ) -> Self {
299 match err {
300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
303 source: err.into(),
304 }),
305 }
306 }
307}
308impl From<crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError> for Error {
309 fn from(err: crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError) -> Self {
310 match err {
311 crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
312 crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::InvalidTrackingOptionsException(inner) => Error::InvalidTrackingOptionsException(inner),
313 crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::TrackingOptionsAlreadyExistsException(inner) => Error::TrackingOptionsAlreadyExistsException(inner),
314 crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
315 }
316 }
317}
318impl<R>
319 From<
320 ::aws_smithy_runtime_api::client::result::SdkError<
321 crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError,
322 R,
323 >,
324 > for Error
325where
326 R: Send + Sync + std::fmt::Debug + 'static,
327{
328 fn from(
329 err: ::aws_smithy_runtime_api::client::result::SdkError<
330 crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError,
331 R,
332 >,
333 ) -> Self {
334 match err {
335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
338 source: err.into(),
339 }),
340 }
341 }
342}
343impl From<crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError> for Error {
344 fn from(err: crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError) -> Self {
345 match err {
346 crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::CustomVerificationEmailInvalidContentException(inner) => Error::CustomVerificationEmailInvalidContentException(inner),
347 crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::CustomVerificationEmailTemplateAlreadyExistsException(inner) => Error::CustomVerificationEmailTemplateAlreadyExistsException(inner),
348 crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::FromEmailAddressNotVerifiedException(inner) => Error::FromEmailAddressNotVerifiedException(inner),
349 crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
350 crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
351 }
352 }
353}
354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_filter::CreateReceiptFilterError, R>> for Error
355where
356 R: Send + Sync + std::fmt::Debug + 'static,
357{
358 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_filter::CreateReceiptFilterError, R>) -> Self {
359 match err {
360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
363 source: err.into(),
364 }),
365 }
366 }
367}
368impl From<crate::operation::create_receipt_filter::CreateReceiptFilterError> for Error {
369 fn from(err: crate::operation::create_receipt_filter::CreateReceiptFilterError) -> Self {
370 match err {
371 crate::operation::create_receipt_filter::CreateReceiptFilterError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
372 crate::operation::create_receipt_filter::CreateReceiptFilterError::LimitExceededException(inner) => Error::LimitExceededException(inner),
373 crate::operation::create_receipt_filter::CreateReceiptFilterError::Unhandled(inner) => Error::Unhandled(inner),
374 }
375 }
376}
377impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule::CreateReceiptRuleError, R>> for Error
378where
379 R: Send + Sync + std::fmt::Debug + 'static,
380{
381 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule::CreateReceiptRuleError, R>) -> Self {
382 match err {
383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
386 source: err.into(),
387 }),
388 }
389 }
390}
391impl From<crate::operation::create_receipt_rule::CreateReceiptRuleError> for Error {
392 fn from(err: crate::operation::create_receipt_rule::CreateReceiptRuleError) -> Self {
393 match err {
394 crate::operation::create_receipt_rule::CreateReceiptRuleError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
395 crate::operation::create_receipt_rule::CreateReceiptRuleError::InvalidLambdaFunctionException(inner) => {
396 Error::InvalidLambdaFunctionException(inner)
397 }
398 crate::operation::create_receipt_rule::CreateReceiptRuleError::InvalidS3ConfigurationException(inner) => {
399 Error::InvalidS3ConfigurationException(inner)
400 }
401 crate::operation::create_receipt_rule::CreateReceiptRuleError::InvalidSnsTopicException(inner) => Error::InvalidSnsTopicException(inner),
402 crate::operation::create_receipt_rule::CreateReceiptRuleError::LimitExceededException(inner) => Error::LimitExceededException(inner),
403 crate::operation::create_receipt_rule::CreateReceiptRuleError::RuleDoesNotExistException(inner) => {
404 Error::RuleDoesNotExistException(inner)
405 }
406 crate::operation::create_receipt_rule::CreateReceiptRuleError::RuleSetDoesNotExistException(inner) => {
407 Error::RuleSetDoesNotExistException(inner)
408 }
409 crate::operation::create_receipt_rule::CreateReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
410 }
411 }
412}
413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError, R>> for Error
414where
415 R: Send + Sync + std::fmt::Debug + 'static,
416{
417 fn from(
418 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError, R>,
419 ) -> Self {
420 match err {
421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
424 source: err.into(),
425 }),
426 }
427 }
428}
429impl From<crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError> for Error {
430 fn from(err: crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError) -> Self {
431 match err {
432 crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError::AlreadyExistsException(inner) => {
433 Error::AlreadyExistsException(inner)
434 }
435 crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError::LimitExceededException(inner) => {
436 Error::LimitExceededException(inner)
437 }
438 crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
439 }
440 }
441}
442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>> for Error
443where
444 R: Send + Sync + std::fmt::Debug + 'static,
445{
446 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>) -> Self {
447 match err {
448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
451 source: err.into(),
452 }),
453 }
454 }
455}
456impl From<crate::operation::create_template::CreateTemplateError> for Error {
457 fn from(err: crate::operation::create_template::CreateTemplateError) -> Self {
458 match err {
459 crate::operation::create_template::CreateTemplateError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
460 crate::operation::create_template::CreateTemplateError::InvalidTemplateException(inner) => Error::InvalidTemplateException(inner),
461 crate::operation::create_template::CreateTemplateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
462 crate::operation::create_template::CreateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
463 }
464 }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>> for Error
467where
468 R: Send + Sync + std::fmt::Debug + 'static,
469{
470 fn from(
471 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>,
472 ) -> Self {
473 match err {
474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
477 source: err.into(),
478 }),
479 }
480 }
481}
482impl From<crate::operation::delete_configuration_set::DeleteConfigurationSetError> for Error {
483 fn from(err: crate::operation::delete_configuration_set::DeleteConfigurationSetError) -> Self {
484 match err {
485 crate::operation::delete_configuration_set::DeleteConfigurationSetError::ConfigurationSetDoesNotExistException(inner) => {
486 Error::ConfigurationSetDoesNotExistException(inner)
487 }
488 crate::operation::delete_configuration_set::DeleteConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
489 }
490 }
491}
492impl<R>
493 From<
494 ::aws_smithy_runtime_api::client::result::SdkError<
495 crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
496 R,
497 >,
498 > for Error
499where
500 R: Send + Sync + std::fmt::Debug + 'static,
501{
502 fn from(
503 err: ::aws_smithy_runtime_api::client::result::SdkError<
504 crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
505 R,
506 >,
507 ) -> Self {
508 match err {
509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
512 source: err.into(),
513 }),
514 }
515 }
516}
517impl From<crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError> for Error {
518 fn from(err: crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError) -> Self {
519 match err {
520 crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
521 crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::EventDestinationDoesNotExistException(inner) => Error::EventDestinationDoesNotExistException(inner),
522 crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
523 }
524 }
525}
526impl<R>
527 From<
528 ::aws_smithy_runtime_api::client::result::SdkError<
529 crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
530 R,
531 >,
532 > for Error
533where
534 R: Send + Sync + std::fmt::Debug + 'static,
535{
536 fn from(
537 err: ::aws_smithy_runtime_api::client::result::SdkError<
538 crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
539 R,
540 >,
541 ) -> Self {
542 match err {
543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
546 source: err.into(),
547 }),
548 }
549 }
550}
551impl From<crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError> for Error {
552 fn from(err: crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError) -> Self {
553 match err {
554 crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
555 crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError::TrackingOptionsDoesNotExistException(inner) => Error::TrackingOptionsDoesNotExistException(inner),
556 crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
557 }
558 }
559}
560impl<R>
561 From<
562 ::aws_smithy_runtime_api::client::result::SdkError<
563 crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError,
564 R,
565 >,
566 > for Error
567where
568 R: Send + Sync + std::fmt::Debug + 'static,
569{
570 fn from(
571 err: ::aws_smithy_runtime_api::client::result::SdkError<
572 crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError,
573 R,
574 >,
575 ) -> Self {
576 match err {
577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580 source: err.into(),
581 }),
582 }
583 }
584}
585impl From<crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError> for Error {
586 fn from(err: crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError) -> Self {
587 match err {
588 crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError::Unhandled(inner) => {
589 Error::Unhandled(inner)
590 }
591 }
592 }
593}
594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity::DeleteIdentityError, R>> for Error
595where
596 R: Send + Sync + std::fmt::Debug + 'static,
597{
598 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity::DeleteIdentityError, R>) -> Self {
599 match err {
600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
603 source: err.into(),
604 }),
605 }
606 }
607}
608impl From<crate::operation::delete_identity::DeleteIdentityError> for Error {
609 fn from(err: crate::operation::delete_identity::DeleteIdentityError) -> Self {
610 match err {
611 crate::operation::delete_identity::DeleteIdentityError::Unhandled(inner) => Error::Unhandled(inner),
612 }
613 }
614}
615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_policy::DeleteIdentityPolicyError, R>> for Error
616where
617 R: Send + Sync + std::fmt::Debug + 'static,
618{
619 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_policy::DeleteIdentityPolicyError, R>) -> Self {
620 match err {
621 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
622 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
623 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
624 source: err.into(),
625 }),
626 }
627 }
628}
629impl From<crate::operation::delete_identity_policy::DeleteIdentityPolicyError> for Error {
630 fn from(err: crate::operation::delete_identity_policy::DeleteIdentityPolicyError) -> Self {
631 match err {
632 crate::operation::delete_identity_policy::DeleteIdentityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
633 }
634 }
635}
636impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_filter::DeleteReceiptFilterError, R>> for Error
637where
638 R: Send + Sync + std::fmt::Debug + 'static,
639{
640 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_filter::DeleteReceiptFilterError, R>) -> Self {
641 match err {
642 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
643 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
644 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
645 source: err.into(),
646 }),
647 }
648 }
649}
650impl From<crate::operation::delete_receipt_filter::DeleteReceiptFilterError> for Error {
651 fn from(err: crate::operation::delete_receipt_filter::DeleteReceiptFilterError) -> Self {
652 match err {
653 crate::operation::delete_receipt_filter::DeleteReceiptFilterError::Unhandled(inner) => Error::Unhandled(inner),
654 }
655 }
656}
657impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule::DeleteReceiptRuleError, R>> for Error
658where
659 R: Send + Sync + std::fmt::Debug + 'static,
660{
661 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule::DeleteReceiptRuleError, R>) -> Self {
662 match err {
663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
666 source: err.into(),
667 }),
668 }
669 }
670}
671impl From<crate::operation::delete_receipt_rule::DeleteReceiptRuleError> for Error {
672 fn from(err: crate::operation::delete_receipt_rule::DeleteReceiptRuleError) -> Self {
673 match err {
674 crate::operation::delete_receipt_rule::DeleteReceiptRuleError::RuleSetDoesNotExistException(inner) => {
675 Error::RuleSetDoesNotExistException(inner)
676 }
677 crate::operation::delete_receipt_rule::DeleteReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
678 }
679 }
680}
681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError, R>> for Error
682where
683 R: Send + Sync + std::fmt::Debug + 'static,
684{
685 fn from(
686 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError, R>,
687 ) -> Self {
688 match err {
689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
692 source: err.into(),
693 }),
694 }
695 }
696}
697impl From<crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError> for Error {
698 fn from(err: crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError) -> Self {
699 match err {
700 crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError::CannotDeleteException(inner) => Error::CannotDeleteException(inner),
701 crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
702 }
703 }
704}
705impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>> for Error
706where
707 R: Send + Sync + std::fmt::Debug + 'static,
708{
709 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>) -> Self {
710 match err {
711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
714 source: err.into(),
715 }),
716 }
717 }
718}
719impl From<crate::operation::delete_template::DeleteTemplateError> for Error {
720 fn from(err: crate::operation::delete_template::DeleteTemplateError) -> Self {
721 match err {
722 crate::operation::delete_template::DeleteTemplateError::Unhandled(inner) => Error::Unhandled(inner),
723 }
724 }
725}
726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError, R>>
727 for Error
728where
729 R: Send + Sync + std::fmt::Debug + 'static,
730{
731 fn from(
732 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError, R>,
733 ) -> Self {
734 match err {
735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
738 source: err.into(),
739 }),
740 }
741 }
742}
743impl From<crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError> for Error {
744 fn from(err: crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError) -> Self {
745 match err {
746 crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError::Unhandled(inner) => Error::Unhandled(inner),
747 }
748 }
749}
750impl<R>
751 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError, R>>
752 for Error
753where
754 R: Send + Sync + std::fmt::Debug + 'static,
755{
756 fn from(
757 err: ::aws_smithy_runtime_api::client::result::SdkError<
758 crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError,
759 R,
760 >,
761 ) -> Self {
762 match err {
763 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
764 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
765 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
766 source: err.into(),
767 }),
768 }
769 }
770}
771impl From<crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError> for Error {
772 fn from(err: crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError) -> Self {
773 match err {
774 crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
775 }
776 }
777}
778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_set::DescribeConfigurationSetError, R>>
779 for Error
780where
781 R: Send + Sync + std::fmt::Debug + 'static,
782{
783 fn from(
784 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_set::DescribeConfigurationSetError, R>,
785 ) -> Self {
786 match err {
787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
790 source: err.into(),
791 }),
792 }
793 }
794}
795impl From<crate::operation::describe_configuration_set::DescribeConfigurationSetError> for Error {
796 fn from(err: crate::operation::describe_configuration_set::DescribeConfigurationSetError) -> Self {
797 match err {
798 crate::operation::describe_configuration_set::DescribeConfigurationSetError::ConfigurationSetDoesNotExistException(inner) => {
799 Error::ConfigurationSetDoesNotExistException(inner)
800 }
801 crate::operation::describe_configuration_set::DescribeConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
802 }
803 }
804}
805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule::DescribeReceiptRuleError, R>> for Error
806where
807 R: Send + Sync + std::fmt::Debug + 'static,
808{
809 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule::DescribeReceiptRuleError, R>) -> Self {
810 match err {
811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
814 source: err.into(),
815 }),
816 }
817 }
818}
819impl From<crate::operation::describe_receipt_rule::DescribeReceiptRuleError> for Error {
820 fn from(err: crate::operation::describe_receipt_rule::DescribeReceiptRuleError) -> Self {
821 match err {
822 crate::operation::describe_receipt_rule::DescribeReceiptRuleError::RuleDoesNotExistException(inner) => {
823 Error::RuleDoesNotExistException(inner)
824 }
825 crate::operation::describe_receipt_rule::DescribeReceiptRuleError::RuleSetDoesNotExistException(inner) => {
826 Error::RuleSetDoesNotExistException(inner)
827 }
828 crate::operation::describe_receipt_rule::DescribeReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
829 }
830 }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError, R>>
833 for Error
834where
835 R: Send + Sync + std::fmt::Debug + 'static,
836{
837 fn from(
838 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError, R>,
839 ) -> Self {
840 match err {
841 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
842 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
843 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
844 source: err.into(),
845 }),
846 }
847 }
848}
849impl From<crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError> for Error {
850 fn from(err: crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError) -> Self {
851 match err {
852 crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
853 Error::RuleSetDoesNotExistException(inner)
854 }
855 crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
856 }
857 }
858}
859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError, R>>
860 for Error
861where
862 R: Send + Sync + std::fmt::Debug + 'static,
863{
864 fn from(
865 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError, R>,
866 ) -> Self {
867 match err {
868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871 source: err.into(),
872 }),
873 }
874 }
875}
876impl From<crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError> for Error {
877 fn from(err: crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError) -> Self {
878 match err {
879 crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError::Unhandled(inner) => Error::Unhandled(inner),
880 }
881 }
882}
883impl<R>
884 From<
885 ::aws_smithy_runtime_api::client::result::SdkError<
886 crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError,
887 R,
888 >,
889 > for Error
890where
891 R: Send + Sync + std::fmt::Debug + 'static,
892{
893 fn from(
894 err: ::aws_smithy_runtime_api::client::result::SdkError<
895 crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError,
896 R,
897 >,
898 ) -> Self {
899 match err {
900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
903 source: err.into(),
904 }),
905 }
906 }
907}
908impl From<crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError> for Error {
909 fn from(err: crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError) -> Self {
910 match err {
911 crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::CustomVerificationEmailTemplateDoesNotExistException(inner) => Error::CustomVerificationEmailTemplateDoesNotExistException(inner),
912 crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
913 }
914 }
915}
916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError, R>>
917 for Error
918where
919 R: Send + Sync + std::fmt::Debug + 'static,
920{
921 fn from(
922 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError, R>,
923 ) -> Self {
924 match err {
925 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
926 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
927 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
928 source: err.into(),
929 }),
930 }
931 }
932}
933impl From<crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError> for Error {
934 fn from(err: crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError) -> Self {
935 match err {
936 crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError::Unhandled(inner) => Error::Unhandled(inner),
937 }
938 }
939}
940impl<R>
941 From<
942 ::aws_smithy_runtime_api::client::result::SdkError<
943 crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError,
944 R,
945 >,
946 > for Error
947where
948 R: Send + Sync + std::fmt::Debug + 'static,
949{
950 fn from(
951 err: ::aws_smithy_runtime_api::client::result::SdkError<
952 crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError,
953 R,
954 >,
955 ) -> Self {
956 match err {
957 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
958 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
959 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
960 source: err.into(),
961 }),
962 }
963 }
964}
965impl From<crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError> for Error {
966 fn from(err: crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError) -> Self {
967 match err {
968 crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError::Unhandled(inner) => {
969 Error::Unhandled(inner)
970 }
971 }
972 }
973}
974impl<R>
975 From<
976 ::aws_smithy_runtime_api::client::result::SdkError<
977 crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError,
978 R,
979 >,
980 > for Error
981where
982 R: Send + Sync + std::fmt::Debug + 'static,
983{
984 fn from(
985 err: ::aws_smithy_runtime_api::client::result::SdkError<
986 crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError,
987 R,
988 >,
989 ) -> Self {
990 match err {
991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
994 source: err.into(),
995 }),
996 }
997 }
998}
999impl From<crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError> for Error {
1000 fn from(err: crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError) -> Self {
1001 match err {
1002 crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError::Unhandled(inner) => {
1003 Error::Unhandled(inner)
1004 }
1005 }
1006 }
1007}
1008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_policies::GetIdentityPoliciesError, R>> for Error
1009where
1010 R: Send + Sync + std::fmt::Debug + 'static,
1011{
1012 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_policies::GetIdentityPoliciesError, R>) -> Self {
1013 match err {
1014 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1015 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1016 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1017 source: err.into(),
1018 }),
1019 }
1020 }
1021}
1022impl From<crate::operation::get_identity_policies::GetIdentityPoliciesError> for Error {
1023 fn from(err: crate::operation::get_identity_policies::GetIdentityPoliciesError) -> Self {
1024 match err {
1025 crate::operation::get_identity_policies::GetIdentityPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1026 }
1027 }
1028}
1029impl<R>
1030 From<
1031 ::aws_smithy_runtime_api::client::result::SdkError<
1032 crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError,
1033 R,
1034 >,
1035 > for Error
1036where
1037 R: Send + Sync + std::fmt::Debug + 'static,
1038{
1039 fn from(
1040 err: ::aws_smithy_runtime_api::client::result::SdkError<
1041 crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError,
1042 R,
1043 >,
1044 ) -> Self {
1045 match err {
1046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1049 source: err.into(),
1050 }),
1051 }
1052 }
1053}
1054impl From<crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError> for Error {
1055 fn from(err: crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError) -> Self {
1056 match err {
1057 crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError::Unhandled(inner) => {
1058 Error::Unhandled(inner)
1059 }
1060 }
1061 }
1062}
1063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_quota::GetSendQuotaError, R>> for Error
1064where
1065 R: Send + Sync + std::fmt::Debug + 'static,
1066{
1067 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_quota::GetSendQuotaError, R>) -> Self {
1068 match err {
1069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1072 source: err.into(),
1073 }),
1074 }
1075 }
1076}
1077impl From<crate::operation::get_send_quota::GetSendQuotaError> for Error {
1078 fn from(err: crate::operation::get_send_quota::GetSendQuotaError) -> Self {
1079 match err {
1080 crate::operation::get_send_quota::GetSendQuotaError::Unhandled(inner) => Error::Unhandled(inner),
1081 }
1082 }
1083}
1084impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_statistics::GetSendStatisticsError, R>> for Error
1085where
1086 R: Send + Sync + std::fmt::Debug + 'static,
1087{
1088 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_statistics::GetSendStatisticsError, R>) -> Self {
1089 match err {
1090 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1091 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1092 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1093 source: err.into(),
1094 }),
1095 }
1096 }
1097}
1098impl From<crate::operation::get_send_statistics::GetSendStatisticsError> for Error {
1099 fn from(err: crate::operation::get_send_statistics::GetSendStatisticsError) -> Self {
1100 match err {
1101 crate::operation::get_send_statistics::GetSendStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
1102 }
1103 }
1104}
1105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
1106where
1107 R: Send + Sync + std::fmt::Debug + 'static,
1108{
1109 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
1110 match err {
1111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114 source: err.into(),
1115 }),
1116 }
1117 }
1118}
1119impl From<crate::operation::get_template::GetTemplateError> for Error {
1120 fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
1121 match err {
1122 crate::operation::get_template::GetTemplateError::TemplateDoesNotExistException(inner) => Error::TemplateDoesNotExistException(inner),
1123 crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1124 }
1125 }
1126}
1127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>> for Error
1128where
1129 R: Send + Sync + std::fmt::Debug + 'static,
1130{
1131 fn from(
1132 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>,
1133 ) -> Self {
1134 match err {
1135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1138 source: err.into(),
1139 }),
1140 }
1141 }
1142}
1143impl From<crate::operation::list_configuration_sets::ListConfigurationSetsError> for Error {
1144 fn from(err: crate::operation::list_configuration_sets::ListConfigurationSetsError) -> Self {
1145 match err {
1146 crate::operation::list_configuration_sets::ListConfigurationSetsError::Unhandled(inner) => Error::Unhandled(inner),
1147 }
1148 }
1149}
1150impl<R>
1151 From<
1152 ::aws_smithy_runtime_api::client::result::SdkError<
1153 crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError,
1154 R,
1155 >,
1156 > for Error
1157where
1158 R: Send + Sync + std::fmt::Debug + 'static,
1159{
1160 fn from(
1161 err: ::aws_smithy_runtime_api::client::result::SdkError<
1162 crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError,
1163 R,
1164 >,
1165 ) -> Self {
1166 match err {
1167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1170 source: err.into(),
1171 }),
1172 }
1173 }
1174}
1175impl From<crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError> for Error {
1176 fn from(err: crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError) -> Self {
1177 match err {
1178 crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError::Unhandled(inner) => {
1179 Error::Unhandled(inner)
1180 }
1181 }
1182 }
1183}
1184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identities::ListIdentitiesError, R>> for Error
1185where
1186 R: Send + Sync + std::fmt::Debug + 'static,
1187{
1188 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identities::ListIdentitiesError, R>) -> Self {
1189 match err {
1190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1193 source: err.into(),
1194 }),
1195 }
1196 }
1197}
1198impl From<crate::operation::list_identities::ListIdentitiesError> for Error {
1199 fn from(err: crate::operation::list_identities::ListIdentitiesError) -> Self {
1200 match err {
1201 crate::operation::list_identities::ListIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
1202 }
1203 }
1204}
1205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_policies::ListIdentityPoliciesError, R>> for Error
1206where
1207 R: Send + Sync + std::fmt::Debug + 'static,
1208{
1209 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_policies::ListIdentityPoliciesError, R>) -> Self {
1210 match err {
1211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1214 source: err.into(),
1215 }),
1216 }
1217 }
1218}
1219impl From<crate::operation::list_identity_policies::ListIdentityPoliciesError> for Error {
1220 fn from(err: crate::operation::list_identity_policies::ListIdentityPoliciesError) -> Self {
1221 match err {
1222 crate::operation::list_identity_policies::ListIdentityPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1223 }
1224 }
1225}
1226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_filters::ListReceiptFiltersError, R>> for Error
1227where
1228 R: Send + Sync + std::fmt::Debug + 'static,
1229{
1230 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_filters::ListReceiptFiltersError, R>) -> Self {
1231 match err {
1232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1235 source: err.into(),
1236 }),
1237 }
1238 }
1239}
1240impl From<crate::operation::list_receipt_filters::ListReceiptFiltersError> for Error {
1241 fn from(err: crate::operation::list_receipt_filters::ListReceiptFiltersError) -> Self {
1242 match err {
1243 crate::operation::list_receipt_filters::ListReceiptFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1244 }
1245 }
1246}
1247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError, R>> for Error
1248where
1249 R: Send + Sync + std::fmt::Debug + 'static,
1250{
1251 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError, R>) -> Self {
1252 match err {
1253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1256 source: err.into(),
1257 }),
1258 }
1259 }
1260}
1261impl From<crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError> for Error {
1262 fn from(err: crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError) -> Self {
1263 match err {
1264 crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError::Unhandled(inner) => Error::Unhandled(inner),
1265 }
1266 }
1267}
1268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
1269where
1270 R: Send + Sync + std::fmt::Debug + 'static,
1271{
1272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> Self {
1273 match err {
1274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1277 source: err.into(),
1278 }),
1279 }
1280 }
1281}
1282impl From<crate::operation::list_templates::ListTemplatesError> for Error {
1283 fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
1284 match err {
1285 crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1286 }
1287 }
1288}
1289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError, R>>
1290 for Error
1291where
1292 R: Send + Sync + std::fmt::Debug + 'static,
1293{
1294 fn from(
1295 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError, R>,
1296 ) -> Self {
1297 match err {
1298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1301 source: err.into(),
1302 }),
1303 }
1304 }
1305}
1306impl From<crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError> for Error {
1307 fn from(err: crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError) -> Self {
1308 match err {
1309 crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError::Unhandled(inner) => Error::Unhandled(inner),
1310 }
1311 }
1312}
1313impl<R>
1314 From<
1315 ::aws_smithy_runtime_api::client::result::SdkError<
1316 crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
1317 R,
1318 >,
1319 > for Error
1320where
1321 R: Send + Sync + std::fmt::Debug + 'static,
1322{
1323 fn from(
1324 err: ::aws_smithy_runtime_api::client::result::SdkError<
1325 crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
1326 R,
1327 >,
1328 ) -> Self {
1329 match err {
1330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1333 source: err.into(),
1334 }),
1335 }
1336 }
1337}
1338impl From<crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError> for Error {
1339 fn from(err: crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError) -> Self {
1340 match err {
1341 crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
1342 crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::InvalidDeliveryOptionsException(inner) => Error::InvalidDeliveryOptionsException(inner),
1343 crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::Unhandled(inner) => Error::Unhandled(inner),
1344 }
1345 }
1346}
1347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_identity_policy::PutIdentityPolicyError, R>> for Error
1348where
1349 R: Send + Sync + std::fmt::Debug + 'static,
1350{
1351 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_identity_policy::PutIdentityPolicyError, R>) -> Self {
1352 match err {
1353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1356 source: err.into(),
1357 }),
1358 }
1359 }
1360}
1361impl From<crate::operation::put_identity_policy::PutIdentityPolicyError> for Error {
1362 fn from(err: crate::operation::put_identity_policy::PutIdentityPolicyError) -> Self {
1363 match err {
1364 crate::operation::put_identity_policy::PutIdentityPolicyError::InvalidPolicyException(inner) => Error::InvalidPolicyException(inner),
1365 crate::operation::put_identity_policy::PutIdentityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1366 }
1367 }
1368}
1369impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError, R>> for Error
1370where
1371 R: Send + Sync + std::fmt::Debug + 'static,
1372{
1373 fn from(
1374 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError, R>,
1375 ) -> Self {
1376 match err {
1377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1380 source: err.into(),
1381 }),
1382 }
1383 }
1384}
1385impl From<crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError> for Error {
1386 fn from(err: crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError) -> Self {
1387 match err {
1388 crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError::RuleDoesNotExistException(inner) => {
1389 Error::RuleDoesNotExistException(inner)
1390 }
1391 crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
1392 Error::RuleSetDoesNotExistException(inner)
1393 }
1394 crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
1395 }
1396 }
1397}
1398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bounce::SendBounceError, R>> for Error
1399where
1400 R: Send + Sync + std::fmt::Debug + 'static,
1401{
1402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bounce::SendBounceError, R>) -> Self {
1403 match err {
1404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1407 source: err.into(),
1408 }),
1409 }
1410 }
1411}
1412impl From<crate::operation::send_bounce::SendBounceError> for Error {
1413 fn from(err: crate::operation::send_bounce::SendBounceError) -> Self {
1414 match err {
1415 crate::operation::send_bounce::SendBounceError::MessageRejected(inner) => Error::MessageRejected(inner),
1416 crate::operation::send_bounce::SendBounceError::Unhandled(inner) => Error::Unhandled(inner),
1417 }
1418 }
1419}
1420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError, R>>
1421 for Error
1422where
1423 R: Send + Sync + std::fmt::Debug + 'static,
1424{
1425 fn from(
1426 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError, R>,
1427 ) -> Self {
1428 match err {
1429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1432 source: err.into(),
1433 }),
1434 }
1435 }
1436}
1437impl From<crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError> for Error {
1438 fn from(err: crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError) -> Self {
1439 match err {
1440 crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::AccountSendingPausedException(inner) => {
1441 Error::AccountSendingPausedException(inner)
1442 }
1443 crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::ConfigurationSetDoesNotExistException(inner) => {
1444 Error::ConfigurationSetDoesNotExistException(inner)
1445 }
1446 crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::ConfigurationSetSendingPausedException(inner) => {
1447 Error::ConfigurationSetSendingPausedException(inner)
1448 }
1449 crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::MailFromDomainNotVerifiedException(inner) => {
1450 Error::MailFromDomainNotVerifiedException(inner)
1451 }
1452 crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
1453 crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::TemplateDoesNotExistException(inner) => {
1454 Error::TemplateDoesNotExistException(inner)
1455 }
1456 crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::Unhandled(inner) => Error::Unhandled(inner),
1457 }
1458 }
1459}
1460impl<R>
1461 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_custom_verification_email::SendCustomVerificationEmailError, R>>
1462 for Error
1463where
1464 R: Send + Sync + std::fmt::Debug + 'static,
1465{
1466 fn from(
1467 err: ::aws_smithy_runtime_api::client::result::SdkError<
1468 crate::operation::send_custom_verification_email::SendCustomVerificationEmailError,
1469 R,
1470 >,
1471 ) -> Self {
1472 match err {
1473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1476 source: err.into(),
1477 }),
1478 }
1479 }
1480}
1481impl From<crate::operation::send_custom_verification_email::SendCustomVerificationEmailError> for Error {
1482 fn from(err: crate::operation::send_custom_verification_email::SendCustomVerificationEmailError) -> Self {
1483 match err {
1484 crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
1485 crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::CustomVerificationEmailTemplateDoesNotExistException(inner) => Error::CustomVerificationEmailTemplateDoesNotExistException(inner),
1486 crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::FromEmailAddressNotVerifiedException(inner) => Error::FromEmailAddressNotVerifiedException(inner),
1487 crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
1488 crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::ProductionAccessNotGrantedException(inner) => Error::ProductionAccessNotGrantedException(inner),
1489 crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::Unhandled(inner) => Error::Unhandled(inner),
1490 }
1491 }
1492}
1493impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>> for Error
1494where
1495 R: Send + Sync + std::fmt::Debug + 'static,
1496{
1497 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>) -> Self {
1498 match err {
1499 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1500 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1501 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1502 source: err.into(),
1503 }),
1504 }
1505 }
1506}
1507impl From<crate::operation::send_email::SendEmailError> for Error {
1508 fn from(err: crate::operation::send_email::SendEmailError) -> Self {
1509 match err {
1510 crate::operation::send_email::SendEmailError::AccountSendingPausedException(inner) => Error::AccountSendingPausedException(inner),
1511 crate::operation::send_email::SendEmailError::ConfigurationSetDoesNotExistException(inner) => {
1512 Error::ConfigurationSetDoesNotExistException(inner)
1513 }
1514 crate::operation::send_email::SendEmailError::ConfigurationSetSendingPausedException(inner) => {
1515 Error::ConfigurationSetSendingPausedException(inner)
1516 }
1517 crate::operation::send_email::SendEmailError::MailFromDomainNotVerifiedException(inner) => {
1518 Error::MailFromDomainNotVerifiedException(inner)
1519 }
1520 crate::operation::send_email::SendEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
1521 crate::operation::send_email::SendEmailError::Unhandled(inner) => Error::Unhandled(inner),
1522 }
1523 }
1524}
1525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_raw_email::SendRawEmailError, R>> for Error
1526where
1527 R: Send + Sync + std::fmt::Debug + 'static,
1528{
1529 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_raw_email::SendRawEmailError, R>) -> Self {
1530 match err {
1531 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1532 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1533 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1534 source: err.into(),
1535 }),
1536 }
1537 }
1538}
1539impl From<crate::operation::send_raw_email::SendRawEmailError> for Error {
1540 fn from(err: crate::operation::send_raw_email::SendRawEmailError) -> Self {
1541 match err {
1542 crate::operation::send_raw_email::SendRawEmailError::AccountSendingPausedException(inner) => Error::AccountSendingPausedException(inner),
1543 crate::operation::send_raw_email::SendRawEmailError::ConfigurationSetDoesNotExistException(inner) => {
1544 Error::ConfigurationSetDoesNotExistException(inner)
1545 }
1546 crate::operation::send_raw_email::SendRawEmailError::ConfigurationSetSendingPausedException(inner) => {
1547 Error::ConfigurationSetSendingPausedException(inner)
1548 }
1549 crate::operation::send_raw_email::SendRawEmailError::MailFromDomainNotVerifiedException(inner) => {
1550 Error::MailFromDomainNotVerifiedException(inner)
1551 }
1552 crate::operation::send_raw_email::SendRawEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
1553 crate::operation::send_raw_email::SendRawEmailError::Unhandled(inner) => Error::Unhandled(inner),
1554 }
1555 }
1556}
1557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_templated_email::SendTemplatedEmailError, R>> for Error
1558where
1559 R: Send + Sync + std::fmt::Debug + 'static,
1560{
1561 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_templated_email::SendTemplatedEmailError, R>) -> Self {
1562 match err {
1563 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1564 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1565 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1566 source: err.into(),
1567 }),
1568 }
1569 }
1570}
1571impl From<crate::operation::send_templated_email::SendTemplatedEmailError> for Error {
1572 fn from(err: crate::operation::send_templated_email::SendTemplatedEmailError) -> Self {
1573 match err {
1574 crate::operation::send_templated_email::SendTemplatedEmailError::AccountSendingPausedException(inner) => {
1575 Error::AccountSendingPausedException(inner)
1576 }
1577 crate::operation::send_templated_email::SendTemplatedEmailError::ConfigurationSetDoesNotExistException(inner) => {
1578 Error::ConfigurationSetDoesNotExistException(inner)
1579 }
1580 crate::operation::send_templated_email::SendTemplatedEmailError::ConfigurationSetSendingPausedException(inner) => {
1581 Error::ConfigurationSetSendingPausedException(inner)
1582 }
1583 crate::operation::send_templated_email::SendTemplatedEmailError::MailFromDomainNotVerifiedException(inner) => {
1584 Error::MailFromDomainNotVerifiedException(inner)
1585 }
1586 crate::operation::send_templated_email::SendTemplatedEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
1587 crate::operation::send_templated_email::SendTemplatedEmailError::TemplateDoesNotExistException(inner) => {
1588 Error::TemplateDoesNotExistException(inner)
1589 }
1590 crate::operation::send_templated_email::SendTemplatedEmailError::Unhandled(inner) => Error::Unhandled(inner),
1591 }
1592 }
1593}
1594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError, R>>
1595 for Error
1596where
1597 R: Send + Sync + std::fmt::Debug + 'static,
1598{
1599 fn from(
1600 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError, R>,
1601 ) -> Self {
1602 match err {
1603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1606 source: err.into(),
1607 }),
1608 }
1609 }
1610}
1611impl From<crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError> for Error {
1612 fn from(err: crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError) -> Self {
1613 match err {
1614 crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
1615 Error::RuleSetDoesNotExistException(inner)
1616 }
1617 crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
1618 }
1619 }
1620}
1621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError, R>>
1622 for Error
1623where
1624 R: Send + Sync + std::fmt::Debug + 'static,
1625{
1626 fn from(
1627 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError, R>,
1628 ) -> Self {
1629 match err {
1630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1633 source: err.into(),
1634 }),
1635 }
1636 }
1637}
1638impl From<crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError> for Error {
1639 fn from(err: crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError) -> Self {
1640 match err {
1641 crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError::Unhandled(inner) => Error::Unhandled(inner),
1642 }
1643 }
1644}
1645impl<R>
1646 From<
1647 ::aws_smithy_runtime_api::client::result::SdkError<
1648 crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError,
1649 R,
1650 >,
1651 > for Error
1652where
1653 R: Send + Sync + std::fmt::Debug + 'static,
1654{
1655 fn from(
1656 err: ::aws_smithy_runtime_api::client::result::SdkError<
1657 crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError,
1658 R,
1659 >,
1660 ) -> Self {
1661 match err {
1662 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1663 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1664 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1665 source: err.into(),
1666 }),
1667 }
1668 }
1669}
1670impl From<crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError> for Error {
1671 fn from(err: crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError) -> Self {
1672 match err {
1673 crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError::Unhandled(inner) => {
1674 Error::Unhandled(inner)
1675 }
1676 }
1677 }
1678}
1679impl<R>
1680 From<
1681 ::aws_smithy_runtime_api::client::result::SdkError<
1682 crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError,
1683 R,
1684 >,
1685 > for Error
1686where
1687 R: Send + Sync + std::fmt::Debug + 'static,
1688{
1689 fn from(
1690 err: ::aws_smithy_runtime_api::client::result::SdkError<
1691 crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError,
1692 R,
1693 >,
1694 ) -> Self {
1695 match err {
1696 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1697 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1698 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1699 source: err.into(),
1700 }),
1701 }
1702 }
1703}
1704impl From<crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError> for Error {
1705 fn from(err: crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError) -> Self {
1706 match err {
1707 crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError::Unhandled(inner) => {
1708 Error::Unhandled(inner)
1709 }
1710 }
1711 }
1712}
1713impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError, R>>
1714 for Error
1715where
1716 R: Send + Sync + std::fmt::Debug + 'static,
1717{
1718 fn from(
1719 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError, R>,
1720 ) -> Self {
1721 match err {
1722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1725 source: err.into(),
1726 }),
1727 }
1728 }
1729}
1730impl From<crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError> for Error {
1731 fn from(err: crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError) -> Self {
1732 match err {
1733 crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError::Unhandled(inner) => Error::Unhandled(inner),
1734 }
1735 }
1736}
1737impl<R>
1738 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError, R>>
1739 for Error
1740where
1741 R: Send + Sync + std::fmt::Debug + 'static,
1742{
1743 fn from(
1744 err: ::aws_smithy_runtime_api::client::result::SdkError<
1745 crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError,
1746 R,
1747 >,
1748 ) -> Self {
1749 match err {
1750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1753 source: err.into(),
1754 }),
1755 }
1756 }
1757}
1758impl From<crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError> for Error {
1759 fn from(err: crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError) -> Self {
1760 match err {
1761 crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError::Unhandled(inner) => Error::Unhandled(inner),
1762 }
1763 }
1764}
1765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_receipt_rule_position::SetReceiptRulePositionError, R>>
1766 for Error
1767where
1768 R: Send + Sync + std::fmt::Debug + 'static,
1769{
1770 fn from(
1771 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_receipt_rule_position::SetReceiptRulePositionError, R>,
1772 ) -> Self {
1773 match err {
1774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1777 source: err.into(),
1778 }),
1779 }
1780 }
1781}
1782impl From<crate::operation::set_receipt_rule_position::SetReceiptRulePositionError> for Error {
1783 fn from(err: crate::operation::set_receipt_rule_position::SetReceiptRulePositionError) -> Self {
1784 match err {
1785 crate::operation::set_receipt_rule_position::SetReceiptRulePositionError::RuleDoesNotExistException(inner) => {
1786 Error::RuleDoesNotExistException(inner)
1787 }
1788 crate::operation::set_receipt_rule_position::SetReceiptRulePositionError::RuleSetDoesNotExistException(inner) => {
1789 Error::RuleSetDoesNotExistException(inner)
1790 }
1791 crate::operation::set_receipt_rule_position::SetReceiptRulePositionError::Unhandled(inner) => Error::Unhandled(inner),
1792 }
1793 }
1794}
1795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_render_template::TestRenderTemplateError, R>> for Error
1796where
1797 R: Send + Sync + std::fmt::Debug + 'static,
1798{
1799 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_render_template::TestRenderTemplateError, R>) -> Self {
1800 match err {
1801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1804 source: err.into(),
1805 }),
1806 }
1807 }
1808}
1809impl From<crate::operation::test_render_template::TestRenderTemplateError> for Error {
1810 fn from(err: crate::operation::test_render_template::TestRenderTemplateError) -> Self {
1811 match err {
1812 crate::operation::test_render_template::TestRenderTemplateError::InvalidRenderingParameterException(inner) => {
1813 Error::InvalidRenderingParameterException(inner)
1814 }
1815 crate::operation::test_render_template::TestRenderTemplateError::MissingRenderingAttributeException(inner) => {
1816 Error::MissingRenderingAttributeException(inner)
1817 }
1818 crate::operation::test_render_template::TestRenderTemplateError::TemplateDoesNotExistException(inner) => {
1819 Error::TemplateDoesNotExistException(inner)
1820 }
1821 crate::operation::test_render_template::TestRenderTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1822 }
1823 }
1824}
1825impl<R>
1826 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError, R>>
1827 for Error
1828where
1829 R: Send + Sync + std::fmt::Debug + 'static,
1830{
1831 fn from(
1832 err: ::aws_smithy_runtime_api::client::result::SdkError<
1833 crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError,
1834 R,
1835 >,
1836 ) -> Self {
1837 match err {
1838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1841 source: err.into(),
1842 }),
1843 }
1844 }
1845}
1846impl From<crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError> for Error {
1847 fn from(err: crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError) -> Self {
1848 match err {
1849 crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError::Unhandled(inner) => Error::Unhandled(inner),
1850 }
1851 }
1852}
1853impl<R>
1854 From<
1855 ::aws_smithy_runtime_api::client::result::SdkError<
1856 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
1857 R,
1858 >,
1859 > for Error
1860where
1861 R: Send + Sync + std::fmt::Debug + 'static,
1862{
1863 fn from(
1864 err: ::aws_smithy_runtime_api::client::result::SdkError<
1865 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
1866 R,
1867 >,
1868 ) -> Self {
1869 match err {
1870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1873 source: err.into(),
1874 }),
1875 }
1876 }
1877}
1878impl From<crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError> for Error {
1879 fn from(err: crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError) -> Self {
1880 match err {
1881 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
1882 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::EventDestinationDoesNotExistException(inner) => Error::EventDestinationDoesNotExistException(inner),
1883 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::InvalidCloudWatchDestinationException(inner) => Error::InvalidCloudWatchDestinationException(inner),
1884 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::InvalidFirehoseDestinationException(inner) => Error::InvalidFirehoseDestinationException(inner),
1885 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::InvalidSnsDestinationException(inner) => Error::InvalidSnsDestinationException(inner),
1886 crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1887 }
1888 }
1889}
1890impl<R>
1891 From<
1892 ::aws_smithy_runtime_api::client::result::SdkError<
1893 crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError,
1894 R,
1895 >,
1896 > for Error
1897where
1898 R: Send + Sync + std::fmt::Debug + 'static,
1899{
1900 fn from(
1901 err: ::aws_smithy_runtime_api::client::result::SdkError<
1902 crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError,
1903 R,
1904 >,
1905 ) -> Self {
1906 match err {
1907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1910 source: err.into(),
1911 }),
1912 }
1913 }
1914}
1915impl From<crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError> for Error {
1916 fn from(err: crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError) -> Self {
1917 match err {
1918 crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
1919 crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError::Unhandled(inner) => Error::Unhandled(inner),
1920 }
1921 }
1922}
1923impl<R>
1924 From<
1925 ::aws_smithy_runtime_api::client::result::SdkError<
1926 crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError,
1927 R,
1928 >,
1929 > for Error
1930where
1931 R: Send + Sync + std::fmt::Debug + 'static,
1932{
1933 fn from(
1934 err: ::aws_smithy_runtime_api::client::result::SdkError<
1935 crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError,
1936 R,
1937 >,
1938 ) -> Self {
1939 match err {
1940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1943 source: err.into(),
1944 }),
1945 }
1946 }
1947}
1948impl From<crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError> for Error {
1949 fn from(err: crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError) -> Self {
1950 match err {
1951 crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
1952 crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError::Unhandled(inner) => Error::Unhandled(inner),
1953 }
1954 }
1955}
1956impl<R>
1957 From<
1958 ::aws_smithy_runtime_api::client::result::SdkError<
1959 crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError,
1960 R,
1961 >,
1962 > for Error
1963where
1964 R: Send + Sync + std::fmt::Debug + 'static,
1965{
1966 fn from(
1967 err: ::aws_smithy_runtime_api::client::result::SdkError<
1968 crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError,
1969 R,
1970 >,
1971 ) -> Self {
1972 match err {
1973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1976 source: err.into(),
1977 }),
1978 }
1979 }
1980}
1981impl From<crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError> for Error {
1982 fn from(err: crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError) -> Self {
1983 match err {
1984 crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
1985 crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::InvalidTrackingOptionsException(inner) => Error::InvalidTrackingOptionsException(inner),
1986 crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::TrackingOptionsDoesNotExistException(inner) => Error::TrackingOptionsDoesNotExistException(inner),
1987 crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
1988 }
1989 }
1990}
1991impl<R>
1992 From<
1993 ::aws_smithy_runtime_api::client::result::SdkError<
1994 crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError,
1995 R,
1996 >,
1997 > for Error
1998where
1999 R: Send + Sync + std::fmt::Debug + 'static,
2000{
2001 fn from(
2002 err: ::aws_smithy_runtime_api::client::result::SdkError<
2003 crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError,
2004 R,
2005 >,
2006 ) -> Self {
2007 match err {
2008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2011 source: err.into(),
2012 }),
2013 }
2014 }
2015}
2016impl From<crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError> for Error {
2017 fn from(err: crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError) -> Self {
2018 match err {
2019 crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::CustomVerificationEmailInvalidContentException(inner) => Error::CustomVerificationEmailInvalidContentException(inner),
2020 crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::CustomVerificationEmailTemplateDoesNotExistException(inner) => Error::CustomVerificationEmailTemplateDoesNotExistException(inner),
2021 crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::FromEmailAddressNotVerifiedException(inner) => Error::FromEmailAddressNotVerifiedException(inner),
2022 crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2023 }
2024 }
2025}
2026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_receipt_rule::UpdateReceiptRuleError, R>> for Error
2027where
2028 R: Send + Sync + std::fmt::Debug + 'static,
2029{
2030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_receipt_rule::UpdateReceiptRuleError, R>) -> Self {
2031 match err {
2032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2035 source: err.into(),
2036 }),
2037 }
2038 }
2039}
2040impl From<crate::operation::update_receipt_rule::UpdateReceiptRuleError> for Error {
2041 fn from(err: crate::operation::update_receipt_rule::UpdateReceiptRuleError) -> Self {
2042 match err {
2043 crate::operation::update_receipt_rule::UpdateReceiptRuleError::InvalidLambdaFunctionException(inner) => {
2044 Error::InvalidLambdaFunctionException(inner)
2045 }
2046 crate::operation::update_receipt_rule::UpdateReceiptRuleError::InvalidS3ConfigurationException(inner) => {
2047 Error::InvalidS3ConfigurationException(inner)
2048 }
2049 crate::operation::update_receipt_rule::UpdateReceiptRuleError::InvalidSnsTopicException(inner) => Error::InvalidSnsTopicException(inner),
2050 crate::operation::update_receipt_rule::UpdateReceiptRuleError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2051 crate::operation::update_receipt_rule::UpdateReceiptRuleError::RuleDoesNotExistException(inner) => {
2052 Error::RuleDoesNotExistException(inner)
2053 }
2054 crate::operation::update_receipt_rule::UpdateReceiptRuleError::RuleSetDoesNotExistException(inner) => {
2055 Error::RuleSetDoesNotExistException(inner)
2056 }
2057 crate::operation::update_receipt_rule::UpdateReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
2058 }
2059 }
2060}
2061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>> for Error
2062where
2063 R: Send + Sync + std::fmt::Debug + 'static,
2064{
2065 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>) -> Self {
2066 match err {
2067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2070 source: err.into(),
2071 }),
2072 }
2073 }
2074}
2075impl From<crate::operation::update_template::UpdateTemplateError> for Error {
2076 fn from(err: crate::operation::update_template::UpdateTemplateError) -> Self {
2077 match err {
2078 crate::operation::update_template::UpdateTemplateError::InvalidTemplateException(inner) => Error::InvalidTemplateException(inner),
2079 crate::operation::update_template::UpdateTemplateError::TemplateDoesNotExistException(inner) => {
2080 Error::TemplateDoesNotExistException(inner)
2081 }
2082 crate::operation::update_template::UpdateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2083 }
2084 }
2085}
2086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_dkim::VerifyDomainDkimError, R>> for Error
2087where
2088 R: Send + Sync + std::fmt::Debug + 'static,
2089{
2090 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_dkim::VerifyDomainDkimError, R>) -> Self {
2091 match err {
2092 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2093 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2094 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2095 source: err.into(),
2096 }),
2097 }
2098 }
2099}
2100impl From<crate::operation::verify_domain_dkim::VerifyDomainDkimError> for Error {
2101 fn from(err: crate::operation::verify_domain_dkim::VerifyDomainDkimError) -> Self {
2102 match err {
2103 crate::operation::verify_domain_dkim::VerifyDomainDkimError::Unhandled(inner) => Error::Unhandled(inner),
2104 }
2105 }
2106}
2107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_identity::VerifyDomainIdentityError, R>> for Error
2108where
2109 R: Send + Sync + std::fmt::Debug + 'static,
2110{
2111 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_identity::VerifyDomainIdentityError, R>) -> Self {
2112 match err {
2113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2116 source: err.into(),
2117 }),
2118 }
2119 }
2120}
2121impl From<crate::operation::verify_domain_identity::VerifyDomainIdentityError> for Error {
2122 fn from(err: crate::operation::verify_domain_identity::VerifyDomainIdentityError) -> Self {
2123 match err {
2124 crate::operation::verify_domain_identity::VerifyDomainIdentityError::Unhandled(inner) => Error::Unhandled(inner),
2125 }
2126 }
2127}
2128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_address::VerifyEmailAddressError, R>> for Error
2129where
2130 R: Send + Sync + std::fmt::Debug + 'static,
2131{
2132 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_address::VerifyEmailAddressError, R>) -> Self {
2133 match err {
2134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2137 source: err.into(),
2138 }),
2139 }
2140 }
2141}
2142impl From<crate::operation::verify_email_address::VerifyEmailAddressError> for Error {
2143 fn from(err: crate::operation::verify_email_address::VerifyEmailAddressError) -> Self {
2144 match err {
2145 crate::operation::verify_email_address::VerifyEmailAddressError::Unhandled(inner) => Error::Unhandled(inner),
2146 }
2147 }
2148}
2149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_identity::VerifyEmailIdentityError, R>> for Error
2150where
2151 R: Send + Sync + std::fmt::Debug + 'static,
2152{
2153 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_identity::VerifyEmailIdentityError, R>) -> Self {
2154 match err {
2155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2158 source: err.into(),
2159 }),
2160 }
2161 }
2162}
2163impl From<crate::operation::verify_email_identity::VerifyEmailIdentityError> for Error {
2164 fn from(err: crate::operation::verify_email_identity::VerifyEmailIdentityError) -> Self {
2165 match err {
2166 crate::operation::verify_email_identity::VerifyEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
2167 }
2168 }
2169}
2170impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2171where
2172 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2173 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2174{
2175 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2176 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2177 meta: ::std::default::Default::default(),
2178 source: err.into(),
2179 })
2180 }
2181}
2182impl ::std::error::Error for Error {
2183 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2184 match self {
2185 Error::AccountSendingPausedException(inner) => inner.source(),
2186 Error::AlreadyExistsException(inner) => inner.source(),
2187 Error::CannotDeleteException(inner) => inner.source(),
2188 Error::ConfigurationSetAlreadyExistsException(inner) => inner.source(),
2189 Error::ConfigurationSetDoesNotExistException(inner) => inner.source(),
2190 Error::ConfigurationSetSendingPausedException(inner) => inner.source(),
2191 Error::CustomVerificationEmailInvalidContentException(inner) => inner.source(),
2192 Error::CustomVerificationEmailTemplateAlreadyExistsException(inner) => inner.source(),
2193 Error::CustomVerificationEmailTemplateDoesNotExistException(inner) => inner.source(),
2194 Error::EventDestinationAlreadyExistsException(inner) => inner.source(),
2195 Error::EventDestinationDoesNotExistException(inner) => inner.source(),
2196 Error::FromEmailAddressNotVerifiedException(inner) => inner.source(),
2197 Error::InvalidCloudWatchDestinationException(inner) => inner.source(),
2198 Error::InvalidConfigurationSetException(inner) => inner.source(),
2199 Error::InvalidDeliveryOptionsException(inner) => inner.source(),
2200 Error::InvalidFirehoseDestinationException(inner) => inner.source(),
2201 Error::InvalidLambdaFunctionException(inner) => inner.source(),
2202 Error::InvalidPolicyException(inner) => inner.source(),
2203 Error::InvalidRenderingParameterException(inner) => inner.source(),
2204 Error::InvalidS3ConfigurationException(inner) => inner.source(),
2205 Error::InvalidSnsDestinationException(inner) => inner.source(),
2206 Error::InvalidSnsTopicException(inner) => inner.source(),
2207 Error::InvalidTemplateException(inner) => inner.source(),
2208 Error::InvalidTrackingOptionsException(inner) => inner.source(),
2209 Error::LimitExceededException(inner) => inner.source(),
2210 Error::MailFromDomainNotVerifiedException(inner) => inner.source(),
2211 Error::MessageRejected(inner) => inner.source(),
2212 Error::MissingRenderingAttributeException(inner) => inner.source(),
2213 Error::ProductionAccessNotGrantedException(inner) => inner.source(),
2214 Error::RuleDoesNotExistException(inner) => inner.source(),
2215 Error::RuleSetDoesNotExistException(inner) => inner.source(),
2216 Error::TemplateDoesNotExistException(inner) => inner.source(),
2217 Error::TrackingOptionsAlreadyExistsException(inner) => inner.source(),
2218 Error::TrackingOptionsDoesNotExistException(inner) => inner.source(),
2219 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2220 }
2221 }
2222}
2223impl ::aws_types::request_id::RequestId for Error {
2224 fn request_id(&self) -> Option<&str> {
2225 match self {
2226 Self::AccountSendingPausedException(e) => e.request_id(),
2227 Self::AlreadyExistsException(e) => e.request_id(),
2228 Self::CannotDeleteException(e) => e.request_id(),
2229 Self::ConfigurationSetAlreadyExistsException(e) => e.request_id(),
2230 Self::ConfigurationSetDoesNotExistException(e) => e.request_id(),
2231 Self::ConfigurationSetSendingPausedException(e) => e.request_id(),
2232 Self::CustomVerificationEmailInvalidContentException(e) => e.request_id(),
2233 Self::CustomVerificationEmailTemplateAlreadyExistsException(e) => e.request_id(),
2234 Self::CustomVerificationEmailTemplateDoesNotExistException(e) => e.request_id(),
2235 Self::EventDestinationAlreadyExistsException(e) => e.request_id(),
2236 Self::EventDestinationDoesNotExistException(e) => e.request_id(),
2237 Self::FromEmailAddressNotVerifiedException(e) => e.request_id(),
2238 Self::InvalidCloudWatchDestinationException(e) => e.request_id(),
2239 Self::InvalidConfigurationSetException(e) => e.request_id(),
2240 Self::InvalidDeliveryOptionsException(e) => e.request_id(),
2241 Self::InvalidFirehoseDestinationException(e) => e.request_id(),
2242 Self::InvalidLambdaFunctionException(e) => e.request_id(),
2243 Self::InvalidPolicyException(e) => e.request_id(),
2244 Self::InvalidRenderingParameterException(e) => e.request_id(),
2245 Self::InvalidS3ConfigurationException(e) => e.request_id(),
2246 Self::InvalidSnsDestinationException(e) => e.request_id(),
2247 Self::InvalidSnsTopicException(e) => e.request_id(),
2248 Self::InvalidTemplateException(e) => e.request_id(),
2249 Self::InvalidTrackingOptionsException(e) => e.request_id(),
2250 Self::LimitExceededException(e) => e.request_id(),
2251 Self::MailFromDomainNotVerifiedException(e) => e.request_id(),
2252 Self::MessageRejected(e) => e.request_id(),
2253 Self::MissingRenderingAttributeException(e) => e.request_id(),
2254 Self::ProductionAccessNotGrantedException(e) => e.request_id(),
2255 Self::RuleDoesNotExistException(e) => e.request_id(),
2256 Self::RuleSetDoesNotExistException(e) => e.request_id(),
2257 Self::TemplateDoesNotExistException(e) => e.request_id(),
2258 Self::TrackingOptionsAlreadyExistsException(e) => e.request_id(),
2259 Self::TrackingOptionsDoesNotExistException(e) => e.request_id(),
2260 Self::Unhandled(e) => e.meta.request_id(),
2261 }
2262 }
2263}