stedi_sdk_client_guides/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(std::fmt::Debug)]
5pub enum Error {
6    /// The server response for authorization failure.
7    AccessDeniedError(crate::error::AccessDeniedError),
8    /// The server cannot process the request due to an apparent client error.
9    BadRequestError(crate::error::BadRequestError),
10    /// The server response when an unexpected error occurred while processing request.
11    InternalFailureError(crate::error::InternalFailureError),
12    /// The server response for the request too large error.
13    RequestTooLargeError(crate::error::RequestTooLargeError),
14    /// The server could not process the request because of conflict in the current state of the resource.
15    ResourceConflictError(crate::error::ResourceConflictError),
16    /// The server response when the specified resource cannot be found after an API request passes authentication and authorization.
17    ResourceNotFoundError(crate::error::ResourceNotFoundError),
18    /// The server response for the request too large error.
19    ResponseTooLargeError(crate::error::ResponseTooLargeError),
20    /// The server response when usage plan or account-level throttling limits exceeded.
21    ThrottlingError(crate::error::ThrottlingError),
22    /// The server response when the authorizer failed to authenticate the caller.
23    UnauthorizedError(crate::error::UnauthorizedError),
24    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
25    ValidationError(crate::error::ValidationError),
26    ///
27    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
28    ///
29    /// When logging an error from the SDK, it is recommended that you either wrap the error in
30    /// [`DisplayErrorContext`](crate::types::DisplayErrorContext), use another
31    /// error reporter library that visits the error's cause/source chain, or call
32    /// [`Error::source`](std::error::Error::source) for more details about the underlying cause.
33    ///
34    Unhandled(crate::error::Unhandled),
35}
36impl std::fmt::Display for Error {
37    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
38        match self {
39            Error::AccessDeniedError(inner) => inner.fmt(f),
40            Error::BadRequestError(inner) => inner.fmt(f),
41            Error::InternalFailureError(inner) => inner.fmt(f),
42            Error::RequestTooLargeError(inner) => inner.fmt(f),
43            Error::ResourceConflictError(inner) => inner.fmt(f),
44            Error::ResourceNotFoundError(inner) => inner.fmt(f),
45            Error::ResponseTooLargeError(inner) => inner.fmt(f),
46            Error::ThrottlingError(inner) => inner.fmt(f),
47            Error::UnauthorizedError(inner) => inner.fmt(f),
48            Error::ValidationError(inner) => inner.fmt(f),
49            Error::Unhandled(inner) => inner.fmt(f),
50        }
51    }
52}
53impl<R> From<aws_smithy_http::result::SdkError<crate::error::ChangeGuideVisibilityError, R>>
54    for Error
55where
56    R: Send + Sync + std::fmt::Debug + 'static,
57{
58    fn from(
59        err: aws_smithy_http::result::SdkError<crate::error::ChangeGuideVisibilityError, R>,
60    ) -> Self {
61        match err {
62            aws_smithy_http::result::SdkError::ServiceError(context) => {
63                Self::from(context.into_err())
64            }
65            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
66        }
67    }
68}
69impl From<crate::error::ChangeGuideVisibilityError> for Error {
70    fn from(err: crate::error::ChangeGuideVisibilityError) -> Self {
71        match err.kind {
72            crate::error::ChangeGuideVisibilityErrorKind::InternalFailureError(inner) => {
73                Error::InternalFailureError(inner)
74            }
75            crate::error::ChangeGuideVisibilityErrorKind::ThrottlingError(inner) => {
76                Error::ThrottlingError(inner)
77            }
78            crate::error::ChangeGuideVisibilityErrorKind::ValidationError(inner) => {
79                Error::ValidationError(inner)
80            }
81            crate::error::ChangeGuideVisibilityErrorKind::AccessDeniedError(inner) => {
82                Error::AccessDeniedError(inner)
83            }
84            crate::error::ChangeGuideVisibilityErrorKind::UnauthorizedError(inner) => {
85                Error::UnauthorizedError(inner)
86            }
87            crate::error::ChangeGuideVisibilityErrorKind::ResourceConflictError(inner) => {
88                Error::ResourceConflictError(inner)
89            }
90            crate::error::ChangeGuideVisibilityErrorKind::BadRequestError(inner) => {
91                Error::BadRequestError(inner)
92            }
93            crate::error::ChangeGuideVisibilityErrorKind::ResourceNotFoundError(inner) => {
94                Error::ResourceNotFoundError(inner)
95            }
96            crate::error::ChangeGuideVisibilityErrorKind::Unhandled(inner) => {
97                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
98            }
99        }
100    }
101}
102impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGuideError, R>> for Error
103where
104    R: Send + Sync + std::fmt::Debug + 'static,
105{
106    fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateGuideError, R>) -> Self {
107        match err {
108            aws_smithy_http::result::SdkError::ServiceError(context) => {
109                Self::from(context.into_err())
110            }
111            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
112        }
113    }
114}
115impl From<crate::error::CreateGuideError> for Error {
116    fn from(err: crate::error::CreateGuideError) -> Self {
117        match err.kind {
118            crate::error::CreateGuideErrorKind::InternalFailureError(inner) => {
119                Error::InternalFailureError(inner)
120            }
121            crate::error::CreateGuideErrorKind::ThrottlingError(inner) => {
122                Error::ThrottlingError(inner)
123            }
124            crate::error::CreateGuideErrorKind::ValidationError(inner) => {
125                Error::ValidationError(inner)
126            }
127            crate::error::CreateGuideErrorKind::AccessDeniedError(inner) => {
128                Error::AccessDeniedError(inner)
129            }
130            crate::error::CreateGuideErrorKind::ResponseTooLargeError(inner) => {
131                Error::ResponseTooLargeError(inner)
132            }
133            crate::error::CreateGuideErrorKind::UnauthorizedError(inner) => {
134                Error::UnauthorizedError(inner)
135            }
136            crate::error::CreateGuideErrorKind::ResourceConflictError(inner) => {
137                Error::ResourceConflictError(inner)
138            }
139            crate::error::CreateGuideErrorKind::BadRequestError(inner) => {
140                Error::BadRequestError(inner)
141            }
142            crate::error::CreateGuideErrorKind::ResourceNotFoundError(inner) => {
143                Error::ResourceNotFoundError(inner)
144            }
145            crate::error::CreateGuideErrorKind::RequestTooLargeError(inner) => {
146                Error::RequestTooLargeError(inner)
147            }
148            crate::error::CreateGuideErrorKind::Unhandled(inner) => {
149                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
150            }
151        }
152    }
153}
154impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGuideAttachmentError, R>>
155    for Error
156where
157    R: Send + Sync + std::fmt::Debug + 'static,
158{
159    fn from(
160        err: aws_smithy_http::result::SdkError<crate::error::CreateGuideAttachmentError, R>,
161    ) -> Self {
162        match err {
163            aws_smithy_http::result::SdkError::ServiceError(context) => {
164                Self::from(context.into_err())
165            }
166            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
167        }
168    }
169}
170impl From<crate::error::CreateGuideAttachmentError> for Error {
171    fn from(err: crate::error::CreateGuideAttachmentError) -> Self {
172        match err.kind {
173            crate::error::CreateGuideAttachmentErrorKind::InternalFailureError(inner) => {
174                Error::InternalFailureError(inner)
175            }
176            crate::error::CreateGuideAttachmentErrorKind::ThrottlingError(inner) => {
177                Error::ThrottlingError(inner)
178            }
179            crate::error::CreateGuideAttachmentErrorKind::ValidationError(inner) => {
180                Error::ValidationError(inner)
181            }
182            crate::error::CreateGuideAttachmentErrorKind::AccessDeniedError(inner) => {
183                Error::AccessDeniedError(inner)
184            }
185            crate::error::CreateGuideAttachmentErrorKind::ResponseTooLargeError(inner) => {
186                Error::ResponseTooLargeError(inner)
187            }
188            crate::error::CreateGuideAttachmentErrorKind::UnauthorizedError(inner) => {
189                Error::UnauthorizedError(inner)
190            }
191            crate::error::CreateGuideAttachmentErrorKind::ResourceConflictError(inner) => {
192                Error::ResourceConflictError(inner)
193            }
194            crate::error::CreateGuideAttachmentErrorKind::BadRequestError(inner) => {
195                Error::BadRequestError(inner)
196            }
197            crate::error::CreateGuideAttachmentErrorKind::ResourceNotFoundError(inner) => {
198                Error::ResourceNotFoundError(inner)
199            }
200            crate::error::CreateGuideAttachmentErrorKind::RequestTooLargeError(inner) => {
201                Error::RequestTooLargeError(inner)
202            }
203            crate::error::CreateGuideAttachmentErrorKind::Unhandled(inner) => {
204                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
205            }
206        }
207    }
208}
209impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGuideSampleError, R>> for Error
210where
211    R: Send + Sync + std::fmt::Debug + 'static,
212{
213    fn from(
214        err: aws_smithy_http::result::SdkError<crate::error::CreateGuideSampleError, R>,
215    ) -> Self {
216        match err {
217            aws_smithy_http::result::SdkError::ServiceError(context) => {
218                Self::from(context.into_err())
219            }
220            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
221        }
222    }
223}
224impl From<crate::error::CreateGuideSampleError> for Error {
225    fn from(err: crate::error::CreateGuideSampleError) -> Self {
226        match err.kind {
227            crate::error::CreateGuideSampleErrorKind::InternalFailureError(inner) => {
228                Error::InternalFailureError(inner)
229            }
230            crate::error::CreateGuideSampleErrorKind::ThrottlingError(inner) => {
231                Error::ThrottlingError(inner)
232            }
233            crate::error::CreateGuideSampleErrorKind::ValidationError(inner) => {
234                Error::ValidationError(inner)
235            }
236            crate::error::CreateGuideSampleErrorKind::AccessDeniedError(inner) => {
237                Error::AccessDeniedError(inner)
238            }
239            crate::error::CreateGuideSampleErrorKind::ResponseTooLargeError(inner) => {
240                Error::ResponseTooLargeError(inner)
241            }
242            crate::error::CreateGuideSampleErrorKind::UnauthorizedError(inner) => {
243                Error::UnauthorizedError(inner)
244            }
245            crate::error::CreateGuideSampleErrorKind::ResourceConflictError(inner) => {
246                Error::ResourceConflictError(inner)
247            }
248            crate::error::CreateGuideSampleErrorKind::BadRequestError(inner) => {
249                Error::BadRequestError(inner)
250            }
251            crate::error::CreateGuideSampleErrorKind::ResourceNotFoundError(inner) => {
252                Error::ResourceNotFoundError(inner)
253            }
254            crate::error::CreateGuideSampleErrorKind::RequestTooLargeError(inner) => {
255                Error::RequestTooLargeError(inner)
256            }
257            crate::error::CreateGuideSampleErrorKind::Unhandled(inner) => {
258                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
259            }
260        }
261    }
262}
263impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGuideError, R>> for Error
264where
265    R: Send + Sync + std::fmt::Debug + 'static,
266{
267    fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteGuideError, R>) -> Self {
268        match err {
269            aws_smithy_http::result::SdkError::ServiceError(context) => {
270                Self::from(context.into_err())
271            }
272            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
273        }
274    }
275}
276impl From<crate::error::DeleteGuideError> for Error {
277    fn from(err: crate::error::DeleteGuideError) -> Self {
278        match err.kind {
279            crate::error::DeleteGuideErrorKind::InternalFailureError(inner) => {
280                Error::InternalFailureError(inner)
281            }
282            crate::error::DeleteGuideErrorKind::ThrottlingError(inner) => {
283                Error::ThrottlingError(inner)
284            }
285            crate::error::DeleteGuideErrorKind::ValidationError(inner) => {
286                Error::ValidationError(inner)
287            }
288            crate::error::DeleteGuideErrorKind::AccessDeniedError(inner) => {
289                Error::AccessDeniedError(inner)
290            }
291            crate::error::DeleteGuideErrorKind::UnauthorizedError(inner) => {
292                Error::UnauthorizedError(inner)
293            }
294            crate::error::DeleteGuideErrorKind::ResourceConflictError(inner) => {
295                Error::ResourceConflictError(inner)
296            }
297            crate::error::DeleteGuideErrorKind::ResourceNotFoundError(inner) => {
298                Error::ResourceNotFoundError(inner)
299            }
300            crate::error::DeleteGuideErrorKind::Unhandled(inner) => {
301                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
302            }
303        }
304    }
305}
306impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGuideAttachmentError, R>>
307    for Error
308where
309    R: Send + Sync + std::fmt::Debug + 'static,
310{
311    fn from(
312        err: aws_smithy_http::result::SdkError<crate::error::DeleteGuideAttachmentError, R>,
313    ) -> Self {
314        match err {
315            aws_smithy_http::result::SdkError::ServiceError(context) => {
316                Self::from(context.into_err())
317            }
318            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
319        }
320    }
321}
322impl From<crate::error::DeleteGuideAttachmentError> for Error {
323    fn from(err: crate::error::DeleteGuideAttachmentError) -> Self {
324        match err.kind {
325            crate::error::DeleteGuideAttachmentErrorKind::InternalFailureError(inner) => {
326                Error::InternalFailureError(inner)
327            }
328            crate::error::DeleteGuideAttachmentErrorKind::ThrottlingError(inner) => {
329                Error::ThrottlingError(inner)
330            }
331            crate::error::DeleteGuideAttachmentErrorKind::ValidationError(inner) => {
332                Error::ValidationError(inner)
333            }
334            crate::error::DeleteGuideAttachmentErrorKind::AccessDeniedError(inner) => {
335                Error::AccessDeniedError(inner)
336            }
337            crate::error::DeleteGuideAttachmentErrorKind::UnauthorizedError(inner) => {
338                Error::UnauthorizedError(inner)
339            }
340            crate::error::DeleteGuideAttachmentErrorKind::ResourceConflictError(inner) => {
341                Error::ResourceConflictError(inner)
342            }
343            crate::error::DeleteGuideAttachmentErrorKind::BadRequestError(inner) => {
344                Error::BadRequestError(inner)
345            }
346            crate::error::DeleteGuideAttachmentErrorKind::ResourceNotFoundError(inner) => {
347                Error::ResourceNotFoundError(inner)
348            }
349            crate::error::DeleteGuideAttachmentErrorKind::Unhandled(inner) => {
350                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
351            }
352        }
353    }
354}
355impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGuideSampleError, R>> for Error
356where
357    R: Send + Sync + std::fmt::Debug + 'static,
358{
359    fn from(
360        err: aws_smithy_http::result::SdkError<crate::error::DeleteGuideSampleError, R>,
361    ) -> Self {
362        match err {
363            aws_smithy_http::result::SdkError::ServiceError(context) => {
364                Self::from(context.into_err())
365            }
366            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
367        }
368    }
369}
370impl From<crate::error::DeleteGuideSampleError> for Error {
371    fn from(err: crate::error::DeleteGuideSampleError) -> Self {
372        match err.kind {
373            crate::error::DeleteGuideSampleErrorKind::InternalFailureError(inner) => {
374                Error::InternalFailureError(inner)
375            }
376            crate::error::DeleteGuideSampleErrorKind::ThrottlingError(inner) => {
377                Error::ThrottlingError(inner)
378            }
379            crate::error::DeleteGuideSampleErrorKind::ValidationError(inner) => {
380                Error::ValidationError(inner)
381            }
382            crate::error::DeleteGuideSampleErrorKind::AccessDeniedError(inner) => {
383                Error::AccessDeniedError(inner)
384            }
385            crate::error::DeleteGuideSampleErrorKind::UnauthorizedError(inner) => {
386                Error::UnauthorizedError(inner)
387            }
388            crate::error::DeleteGuideSampleErrorKind::ResourceConflictError(inner) => {
389                Error::ResourceConflictError(inner)
390            }
391            crate::error::DeleteGuideSampleErrorKind::BadRequestError(inner) => {
392                Error::BadRequestError(inner)
393            }
394            crate::error::DeleteGuideSampleErrorKind::ResourceNotFoundError(inner) => {
395                Error::ResourceNotFoundError(inner)
396            }
397            crate::error::DeleteGuideSampleErrorKind::Unhandled(inner) => {
398                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
399            }
400        }
401    }
402}
403impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetAccountConfigError, R>> for Error
404where
405    R: Send + Sync + std::fmt::Debug + 'static,
406{
407    fn from(
408        err: aws_smithy_http::result::SdkError<crate::error::GetAccountConfigError, R>,
409    ) -> Self {
410        match err {
411            aws_smithy_http::result::SdkError::ServiceError(context) => {
412                Self::from(context.into_err())
413            }
414            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
415        }
416    }
417}
418impl From<crate::error::GetAccountConfigError> for Error {
419    fn from(err: crate::error::GetAccountConfigError) -> Self {
420        match err.kind {
421            crate::error::GetAccountConfigErrorKind::InternalFailureError(inner) => {
422                Error::InternalFailureError(inner)
423            }
424            crate::error::GetAccountConfigErrorKind::ThrottlingError(inner) => {
425                Error::ThrottlingError(inner)
426            }
427            crate::error::GetAccountConfigErrorKind::ValidationError(inner) => {
428                Error::ValidationError(inner)
429            }
430            crate::error::GetAccountConfigErrorKind::AccessDeniedError(inner) => {
431                Error::AccessDeniedError(inner)
432            }
433            crate::error::GetAccountConfigErrorKind::UnauthorizedError(inner) => {
434                Error::UnauthorizedError(inner)
435            }
436            crate::error::GetAccountConfigErrorKind::ResourceNotFoundError(inner) => {
437                Error::ResourceNotFoundError(inner)
438            }
439            crate::error::GetAccountConfigErrorKind::RequestTooLargeError(inner) => {
440                Error::RequestTooLargeError(inner)
441            }
442            crate::error::GetAccountConfigErrorKind::Unhandled(inner) => {
443                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
444            }
445        }
446    }
447}
448impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetGuideError, R>> for Error
449where
450    R: Send + Sync + std::fmt::Debug + 'static,
451{
452    fn from(err: aws_smithy_http::result::SdkError<crate::error::GetGuideError, R>) -> Self {
453        match err {
454            aws_smithy_http::result::SdkError::ServiceError(context) => {
455                Self::from(context.into_err())
456            }
457            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
458        }
459    }
460}
461impl From<crate::error::GetGuideError> for Error {
462    fn from(err: crate::error::GetGuideError) -> Self {
463        match err.kind {
464            crate::error::GetGuideErrorKind::InternalFailureError(inner) => {
465                Error::InternalFailureError(inner)
466            }
467            crate::error::GetGuideErrorKind::ThrottlingError(inner) => {
468                Error::ThrottlingError(inner)
469            }
470            crate::error::GetGuideErrorKind::ValidationError(inner) => {
471                Error::ValidationError(inner)
472            }
473            crate::error::GetGuideErrorKind::AccessDeniedError(inner) => {
474                Error::AccessDeniedError(inner)
475            }
476            crate::error::GetGuideErrorKind::UnauthorizedError(inner) => {
477                Error::UnauthorizedError(inner)
478            }
479            crate::error::GetGuideErrorKind::ResourceNotFoundError(inner) => {
480                Error::ResourceNotFoundError(inner)
481            }
482            crate::error::GetGuideErrorKind::Unhandled(inner) => {
483                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
484            }
485        }
486    }
487}
488impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetGuidesNetworkError, R>> for Error
489where
490    R: Send + Sync + std::fmt::Debug + 'static,
491{
492    fn from(
493        err: aws_smithy_http::result::SdkError<crate::error::GetGuidesNetworkError, R>,
494    ) -> Self {
495        match err {
496            aws_smithy_http::result::SdkError::ServiceError(context) => {
497                Self::from(context.into_err())
498            }
499            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
500        }
501    }
502}
503impl From<crate::error::GetGuidesNetworkError> for Error {
504    fn from(err: crate::error::GetGuidesNetworkError) -> Self {
505        match err.kind {
506            crate::error::GetGuidesNetworkErrorKind::InternalFailureError(inner) => {
507                Error::InternalFailureError(inner)
508            }
509            crate::error::GetGuidesNetworkErrorKind::ThrottlingError(inner) => {
510                Error::ThrottlingError(inner)
511            }
512            crate::error::GetGuidesNetworkErrorKind::ValidationError(inner) => {
513                Error::ValidationError(inner)
514            }
515            crate::error::GetGuidesNetworkErrorKind::AccessDeniedError(inner) => {
516                Error::AccessDeniedError(inner)
517            }
518            crate::error::GetGuidesNetworkErrorKind::UnauthorizedError(inner) => {
519                Error::UnauthorizedError(inner)
520            }
521            crate::error::GetGuidesNetworkErrorKind::ResourceNotFoundError(inner) => {
522                Error::ResourceNotFoundError(inner)
523            }
524            crate::error::GetGuidesNetworkErrorKind::Unhandled(inner) => {
525                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
526            }
527        }
528    }
529}
530impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPublicAccountConfigError, R>>
531    for Error
532where
533    R: Send + Sync + std::fmt::Debug + 'static,
534{
535    fn from(
536        err: aws_smithy_http::result::SdkError<crate::error::GetPublicAccountConfigError, R>,
537    ) -> Self {
538        match err {
539            aws_smithy_http::result::SdkError::ServiceError(context) => {
540                Self::from(context.into_err())
541            }
542            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
543        }
544    }
545}
546impl From<crate::error::GetPublicAccountConfigError> for Error {
547    fn from(err: crate::error::GetPublicAccountConfigError) -> Self {
548        match err.kind {
549            crate::error::GetPublicAccountConfigErrorKind::InternalFailureError(inner) => {
550                Error::InternalFailureError(inner)
551            }
552            crate::error::GetPublicAccountConfigErrorKind::ThrottlingError(inner) => {
553                Error::ThrottlingError(inner)
554            }
555            crate::error::GetPublicAccountConfigErrorKind::ValidationError(inner) => {
556                Error::ValidationError(inner)
557            }
558            crate::error::GetPublicAccountConfigErrorKind::AccessDeniedError(inner) => {
559                Error::AccessDeniedError(inner)
560            }
561            crate::error::GetPublicAccountConfigErrorKind::UnauthorizedError(inner) => {
562                Error::UnauthorizedError(inner)
563            }
564            crate::error::GetPublicAccountConfigErrorKind::ResourceNotFoundError(inner) => {
565                Error::ResourceNotFoundError(inner)
566            }
567            crate::error::GetPublicAccountConfigErrorKind::RequestTooLargeError(inner) => {
568                Error::RequestTooLargeError(inner)
569            }
570            crate::error::GetPublicAccountConfigErrorKind::Unhandled(inner) => {
571                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
572            }
573        }
574    }
575}
576impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPublicGuideError, R>> for Error
577where
578    R: Send + Sync + std::fmt::Debug + 'static,
579{
580    fn from(err: aws_smithy_http::result::SdkError<crate::error::GetPublicGuideError, R>) -> Self {
581        match err {
582            aws_smithy_http::result::SdkError::ServiceError(context) => {
583                Self::from(context.into_err())
584            }
585            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
586        }
587    }
588}
589impl From<crate::error::GetPublicGuideError> for Error {
590    fn from(err: crate::error::GetPublicGuideError) -> Self {
591        match err.kind {
592            crate::error::GetPublicGuideErrorKind::InternalFailureError(inner) => {
593                Error::InternalFailureError(inner)
594            }
595            crate::error::GetPublicGuideErrorKind::ThrottlingError(inner) => {
596                Error::ThrottlingError(inner)
597            }
598            crate::error::GetPublicGuideErrorKind::ValidationError(inner) => {
599                Error::ValidationError(inner)
600            }
601            crate::error::GetPublicGuideErrorKind::ResourceNotFoundError(inner) => {
602                Error::ResourceNotFoundError(inner)
603            }
604            crate::error::GetPublicGuideErrorKind::RequestTooLargeError(inner) => {
605                Error::RequestTooLargeError(inner)
606            }
607            crate::error::GetPublicGuideErrorKind::Unhandled(inner) => {
608                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
609            }
610        }
611    }
612}
613impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPublicSharedGuideError, R>>
614    for Error
615where
616    R: Send + Sync + std::fmt::Debug + 'static,
617{
618    fn from(
619        err: aws_smithy_http::result::SdkError<crate::error::GetPublicSharedGuideError, R>,
620    ) -> Self {
621        match err {
622            aws_smithy_http::result::SdkError::ServiceError(context) => {
623                Self::from(context.into_err())
624            }
625            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
626        }
627    }
628}
629impl From<crate::error::GetPublicSharedGuideError> for Error {
630    fn from(err: crate::error::GetPublicSharedGuideError) -> Self {
631        match err.kind {
632            crate::error::GetPublicSharedGuideErrorKind::InternalFailureError(inner) => {
633                Error::InternalFailureError(inner)
634            }
635            crate::error::GetPublicSharedGuideErrorKind::ThrottlingError(inner) => {
636                Error::ThrottlingError(inner)
637            }
638            crate::error::GetPublicSharedGuideErrorKind::ValidationError(inner) => {
639                Error::ValidationError(inner)
640            }
641            crate::error::GetPublicSharedGuideErrorKind::ResourceNotFoundError(inner) => {
642                Error::ResourceNotFoundError(inner)
643            }
644            crate::error::GetPublicSharedGuideErrorKind::RequestTooLargeError(inner) => {
645                Error::RequestTooLargeError(inner)
646            }
647            crate::error::GetPublicSharedGuideErrorKind::Unhandled(inner) => {
648                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
649            }
650        }
651    }
652}
653impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12TransactionSetMetadataError, R>>
654    for Error
655where
656    R: Send + Sync + std::fmt::Debug + 'static,
657{
658    fn from(
659        err: aws_smithy_http::result::SdkError<crate::error::GetX12TransactionSetMetadataError, R>,
660    ) -> Self {
661        match err {
662            aws_smithy_http::result::SdkError::ServiceError(context) => {
663                Self::from(context.into_err())
664            }
665            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
666        }
667    }
668}
669impl From<crate::error::GetX12TransactionSetMetadataError> for Error {
670    fn from(err: crate::error::GetX12TransactionSetMetadataError) -> Self {
671        match err.kind {
672            crate::error::GetX12TransactionSetMetadataErrorKind::InternalFailureError(inner) => {
673                Error::InternalFailureError(inner)
674            }
675            crate::error::GetX12TransactionSetMetadataErrorKind::ThrottlingError(inner) => {
676                Error::ThrottlingError(inner)
677            }
678            crate::error::GetX12TransactionSetMetadataErrorKind::ValidationError(inner) => {
679                Error::ValidationError(inner)
680            }
681            crate::error::GetX12TransactionSetMetadataErrorKind::AccessDeniedError(inner) => {
682                Error::AccessDeniedError(inner)
683            }
684            crate::error::GetX12TransactionSetMetadataErrorKind::UnauthorizedError(inner) => {
685                Error::UnauthorizedError(inner)
686            }
687            crate::error::GetX12TransactionSetMetadataErrorKind::BadRequestError(inner) => {
688                Error::BadRequestError(inner)
689            }
690            crate::error::GetX12TransactionSetMetadataErrorKind::ResourceNotFoundError(inner) => {
691                Error::ResourceNotFoundError(inner)
692            }
693            crate::error::GetX12TransactionSetMetadataErrorKind::Unhandled(inner) => {
694                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
695            }
696        }
697    }
698}
699impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListAllPublicGuidesError, R>> for Error
700where
701    R: Send + Sync + std::fmt::Debug + 'static,
702{
703    fn from(
704        err: aws_smithy_http::result::SdkError<crate::error::ListAllPublicGuidesError, R>,
705    ) -> Self {
706        match err {
707            aws_smithy_http::result::SdkError::ServiceError(context) => {
708                Self::from(context.into_err())
709            }
710            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
711        }
712    }
713}
714impl From<crate::error::ListAllPublicGuidesError> for Error {
715    fn from(err: crate::error::ListAllPublicGuidesError) -> Self {
716        match err.kind {
717            crate::error::ListAllPublicGuidesErrorKind::InternalFailureError(inner) => {
718                Error::InternalFailureError(inner)
719            }
720            crate::error::ListAllPublicGuidesErrorKind::ThrottlingError(inner) => {
721                Error::ThrottlingError(inner)
722            }
723            crate::error::ListAllPublicGuidesErrorKind::ValidationError(inner) => {
724                Error::ValidationError(inner)
725            }
726            crate::error::ListAllPublicGuidesErrorKind::BadRequestError(inner) => {
727                Error::BadRequestError(inner)
728            }
729            crate::error::ListAllPublicGuidesErrorKind::ResourceNotFoundError(inner) => {
730                Error::ResourceNotFoundError(inner)
731            }
732            crate::error::ListAllPublicGuidesErrorKind::RequestTooLargeError(inner) => {
733                Error::RequestTooLargeError(inner)
734            }
735            crate::error::ListAllPublicGuidesErrorKind::Unhandled(inner) => {
736                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
737            }
738        }
739    }
740}
741impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGuideAttachmentsError, R>>
742    for Error
743where
744    R: Send + Sync + std::fmt::Debug + 'static,
745{
746    fn from(
747        err: aws_smithy_http::result::SdkError<crate::error::ListGuideAttachmentsError, R>,
748    ) -> Self {
749        match err {
750            aws_smithy_http::result::SdkError::ServiceError(context) => {
751                Self::from(context.into_err())
752            }
753            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
754        }
755    }
756}
757impl From<crate::error::ListGuideAttachmentsError> for Error {
758    fn from(err: crate::error::ListGuideAttachmentsError) -> Self {
759        match err.kind {
760            crate::error::ListGuideAttachmentsErrorKind::InternalFailureError(inner) => {
761                Error::InternalFailureError(inner)
762            }
763            crate::error::ListGuideAttachmentsErrorKind::ThrottlingError(inner) => {
764                Error::ThrottlingError(inner)
765            }
766            crate::error::ListGuideAttachmentsErrorKind::ValidationError(inner) => {
767                Error::ValidationError(inner)
768            }
769            crate::error::ListGuideAttachmentsErrorKind::AccessDeniedError(inner) => {
770                Error::AccessDeniedError(inner)
771            }
772            crate::error::ListGuideAttachmentsErrorKind::UnauthorizedError(inner) => {
773                Error::UnauthorizedError(inner)
774            }
775            crate::error::ListGuideAttachmentsErrorKind::ResourceNotFoundError(inner) => {
776                Error::ResourceNotFoundError(inner)
777            }
778            crate::error::ListGuideAttachmentsErrorKind::Unhandled(inner) => {
779                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
780            }
781        }
782    }
783}
784impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGuidesError, R>> for Error
785where
786    R: Send + Sync + std::fmt::Debug + 'static,
787{
788    fn from(err: aws_smithy_http::result::SdkError<crate::error::ListGuidesError, R>) -> Self {
789        match err {
790            aws_smithy_http::result::SdkError::ServiceError(context) => {
791                Self::from(context.into_err())
792            }
793            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
794        }
795    }
796}
797impl From<crate::error::ListGuidesError> for Error {
798    fn from(err: crate::error::ListGuidesError) -> Self {
799        match err.kind {
800            crate::error::ListGuidesErrorKind::InternalFailureError(inner) => {
801                Error::InternalFailureError(inner)
802            }
803            crate::error::ListGuidesErrorKind::ThrottlingError(inner) => {
804                Error::ThrottlingError(inner)
805            }
806            crate::error::ListGuidesErrorKind::ValidationError(inner) => {
807                Error::ValidationError(inner)
808            }
809            crate::error::ListGuidesErrorKind::AccessDeniedError(inner) => {
810                Error::AccessDeniedError(inner)
811            }
812            crate::error::ListGuidesErrorKind::UnauthorizedError(inner) => {
813                Error::UnauthorizedError(inner)
814            }
815            crate::error::ListGuidesErrorKind::BadRequestError(inner) => {
816                Error::BadRequestError(inner)
817            }
818            crate::error::ListGuidesErrorKind::Unhandled(inner) => {
819                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
820            }
821        }
822    }
823}
824impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGuideSamplesError, R>> for Error
825where
826    R: Send + Sync + std::fmt::Debug + 'static,
827{
828    fn from(
829        err: aws_smithy_http::result::SdkError<crate::error::ListGuideSamplesError, R>,
830    ) -> Self {
831        match err {
832            aws_smithy_http::result::SdkError::ServiceError(context) => {
833                Self::from(context.into_err())
834            }
835            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
836        }
837    }
838}
839impl From<crate::error::ListGuideSamplesError> for Error {
840    fn from(err: crate::error::ListGuideSamplesError) -> Self {
841        match err.kind {
842            crate::error::ListGuideSamplesErrorKind::InternalFailureError(inner) => {
843                Error::InternalFailureError(inner)
844            }
845            crate::error::ListGuideSamplesErrorKind::ThrottlingError(inner) => {
846                Error::ThrottlingError(inner)
847            }
848            crate::error::ListGuideSamplesErrorKind::ValidationError(inner) => {
849                Error::ValidationError(inner)
850            }
851            crate::error::ListGuideSamplesErrorKind::AccessDeniedError(inner) => {
852                Error::AccessDeniedError(inner)
853            }
854            crate::error::ListGuideSamplesErrorKind::UnauthorizedError(inner) => {
855                Error::UnauthorizedError(inner)
856            }
857            crate::error::ListGuideSamplesErrorKind::ResourceNotFoundError(inner) => {
858                Error::ResourceNotFoundError(inner)
859            }
860            crate::error::ListGuideSamplesErrorKind::Unhandled(inner) => {
861                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
862            }
863        }
864    }
865}
866impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPublicGuideAttachmentsError, R>>
867    for Error
868where
869    R: Send + Sync + std::fmt::Debug + 'static,
870{
871    fn from(
872        err: aws_smithy_http::result::SdkError<crate::error::ListPublicGuideAttachmentsError, R>,
873    ) -> Self {
874        match err {
875            aws_smithy_http::result::SdkError::ServiceError(context) => {
876                Self::from(context.into_err())
877            }
878            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
879        }
880    }
881}
882impl From<crate::error::ListPublicGuideAttachmentsError> for Error {
883    fn from(err: crate::error::ListPublicGuideAttachmentsError) -> Self {
884        match err.kind {
885            crate::error::ListPublicGuideAttachmentsErrorKind::InternalFailureError(inner) => {
886                Error::InternalFailureError(inner)
887            }
888            crate::error::ListPublicGuideAttachmentsErrorKind::ThrottlingError(inner) => {
889                Error::ThrottlingError(inner)
890            }
891            crate::error::ListPublicGuideAttachmentsErrorKind::ValidationError(inner) => {
892                Error::ValidationError(inner)
893            }
894            crate::error::ListPublicGuideAttachmentsErrorKind::AccessDeniedError(inner) => {
895                Error::AccessDeniedError(inner)
896            }
897            crate::error::ListPublicGuideAttachmentsErrorKind::UnauthorizedError(inner) => {
898                Error::UnauthorizedError(inner)
899            }
900            crate::error::ListPublicGuideAttachmentsErrorKind::ResourceNotFoundError(inner) => {
901                Error::ResourceNotFoundError(inner)
902            }
903            crate::error::ListPublicGuideAttachmentsErrorKind::Unhandled(inner) => {
904                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
905            }
906        }
907    }
908}
909impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPublicGuidesError, R>> for Error
910where
911    R: Send + Sync + std::fmt::Debug + 'static,
912{
913    fn from(
914        err: aws_smithy_http::result::SdkError<crate::error::ListPublicGuidesError, R>,
915    ) -> Self {
916        match err {
917            aws_smithy_http::result::SdkError::ServiceError(context) => {
918                Self::from(context.into_err())
919            }
920            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
921        }
922    }
923}
924impl From<crate::error::ListPublicGuidesError> for Error {
925    fn from(err: crate::error::ListPublicGuidesError) -> Self {
926        match err.kind {
927            crate::error::ListPublicGuidesErrorKind::InternalFailureError(inner) => {
928                Error::InternalFailureError(inner)
929            }
930            crate::error::ListPublicGuidesErrorKind::ThrottlingError(inner) => {
931                Error::ThrottlingError(inner)
932            }
933            crate::error::ListPublicGuidesErrorKind::ValidationError(inner) => {
934                Error::ValidationError(inner)
935            }
936            crate::error::ListPublicGuidesErrorKind::BadRequestError(inner) => {
937                Error::BadRequestError(inner)
938            }
939            crate::error::ListPublicGuidesErrorKind::ResourceNotFoundError(inner) => {
940                Error::ResourceNotFoundError(inner)
941            }
942            crate::error::ListPublicGuidesErrorKind::RequestTooLargeError(inner) => {
943                Error::RequestTooLargeError(inner)
944            }
945            crate::error::ListPublicGuidesErrorKind::Unhandled(inner) => {
946                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
947            }
948        }
949    }
950}
951impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPublicGuideSamplesError, R>>
952    for Error
953where
954    R: Send + Sync + std::fmt::Debug + 'static,
955{
956    fn from(
957        err: aws_smithy_http::result::SdkError<crate::error::ListPublicGuideSamplesError, R>,
958    ) -> Self {
959        match err {
960            aws_smithy_http::result::SdkError::ServiceError(context) => {
961                Self::from(context.into_err())
962            }
963            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
964        }
965    }
966}
967impl From<crate::error::ListPublicGuideSamplesError> for Error {
968    fn from(err: crate::error::ListPublicGuideSamplesError) -> Self {
969        match err.kind {
970            crate::error::ListPublicGuideSamplesErrorKind::InternalFailureError(inner) => {
971                Error::InternalFailureError(inner)
972            }
973            crate::error::ListPublicGuideSamplesErrorKind::ThrottlingError(inner) => {
974                Error::ThrottlingError(inner)
975            }
976            crate::error::ListPublicGuideSamplesErrorKind::ValidationError(inner) => {
977                Error::ValidationError(inner)
978            }
979            crate::error::ListPublicGuideSamplesErrorKind::AccessDeniedError(inner) => {
980                Error::AccessDeniedError(inner)
981            }
982            crate::error::ListPublicGuideSamplesErrorKind::UnauthorizedError(inner) => {
983                Error::UnauthorizedError(inner)
984            }
985            crate::error::ListPublicGuideSamplesErrorKind::ResourceNotFoundError(inner) => {
986                Error::ResourceNotFoundError(inner)
987            }
988            crate::error::ListPublicGuideSamplesErrorKind::Unhandled(inner) => {
989                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
990            }
991        }
992    }
993}
994impl<R>
995    From<aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideAttachmentsError, R>>
996    for Error
997where
998    R: Send + Sync + std::fmt::Debug + 'static,
999{
1000    fn from(
1001        err: aws_smithy_http::result::SdkError<
1002            crate::error::ListPublicSharedGuideAttachmentsError,
1003            R,
1004        >,
1005    ) -> Self {
1006        match err {
1007            aws_smithy_http::result::SdkError::ServiceError(context) => {
1008                Self::from(context.into_err())
1009            }
1010            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1011        }
1012    }
1013}
1014impl From<crate::error::ListPublicSharedGuideAttachmentsError> for Error {
1015    fn from(err: crate::error::ListPublicSharedGuideAttachmentsError) -> Self {
1016        match err.kind {
1017            crate::error::ListPublicSharedGuideAttachmentsErrorKind::InternalFailureError(
1018                inner,
1019            ) => Error::InternalFailureError(inner),
1020            crate::error::ListPublicSharedGuideAttachmentsErrorKind::ThrottlingError(inner) => {
1021                Error::ThrottlingError(inner)
1022            }
1023            crate::error::ListPublicSharedGuideAttachmentsErrorKind::ValidationError(inner) => {
1024                Error::ValidationError(inner)
1025            }
1026            crate::error::ListPublicSharedGuideAttachmentsErrorKind::AccessDeniedError(inner) => {
1027                Error::AccessDeniedError(inner)
1028            }
1029            crate::error::ListPublicSharedGuideAttachmentsErrorKind::UnauthorizedError(inner) => {
1030                Error::UnauthorizedError(inner)
1031            }
1032            crate::error::ListPublicSharedGuideAttachmentsErrorKind::ResourceNotFoundError(
1033                inner,
1034            ) => Error::ResourceNotFoundError(inner),
1035            crate::error::ListPublicSharedGuideAttachmentsErrorKind::Unhandled(inner) => {
1036                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1037            }
1038        }
1039    }
1040}
1041impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideSamplesError, R>>
1042    for Error
1043where
1044    R: Send + Sync + std::fmt::Debug + 'static,
1045{
1046    fn from(
1047        err: aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideSamplesError, R>,
1048    ) -> Self {
1049        match err {
1050            aws_smithy_http::result::SdkError::ServiceError(context) => {
1051                Self::from(context.into_err())
1052            }
1053            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1054        }
1055    }
1056}
1057impl From<crate::error::ListPublicSharedGuideSamplesError> for Error {
1058    fn from(err: crate::error::ListPublicSharedGuideSamplesError) -> Self {
1059        match err.kind {
1060            crate::error::ListPublicSharedGuideSamplesErrorKind::InternalFailureError(inner) => {
1061                Error::InternalFailureError(inner)
1062            }
1063            crate::error::ListPublicSharedGuideSamplesErrorKind::ThrottlingError(inner) => {
1064                Error::ThrottlingError(inner)
1065            }
1066            crate::error::ListPublicSharedGuideSamplesErrorKind::ValidationError(inner) => {
1067                Error::ValidationError(inner)
1068            }
1069            crate::error::ListPublicSharedGuideSamplesErrorKind::AccessDeniedError(inner) => {
1070                Error::AccessDeniedError(inner)
1071            }
1072            crate::error::ListPublicSharedGuideSamplesErrorKind::UnauthorizedError(inner) => {
1073                Error::UnauthorizedError(inner)
1074            }
1075            crate::error::ListPublicSharedGuideSamplesErrorKind::ResourceNotFoundError(inner) => {
1076                Error::ResourceNotFoundError(inner)
1077            }
1078            crate::error::ListPublicSharedGuideSamplesErrorKind::Unhandled(inner) => {
1079                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1080            }
1081        }
1082    }
1083}
1084impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListX12TransactionSetsError, R>>
1085    for Error
1086where
1087    R: Send + Sync + std::fmt::Debug + 'static,
1088{
1089    fn from(
1090        err: aws_smithy_http::result::SdkError<crate::error::ListX12TransactionSetsError, R>,
1091    ) -> Self {
1092        match err {
1093            aws_smithy_http::result::SdkError::ServiceError(context) => {
1094                Self::from(context.into_err())
1095            }
1096            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1097        }
1098    }
1099}
1100impl From<crate::error::ListX12TransactionSetsError> for Error {
1101    fn from(err: crate::error::ListX12TransactionSetsError) -> Self {
1102        match err.kind {
1103            crate::error::ListX12TransactionSetsErrorKind::InternalFailureError(inner) => {
1104                Error::InternalFailureError(inner)
1105            }
1106            crate::error::ListX12TransactionSetsErrorKind::ThrottlingError(inner) => {
1107                Error::ThrottlingError(inner)
1108            }
1109            crate::error::ListX12TransactionSetsErrorKind::ValidationError(inner) => {
1110                Error::ValidationError(inner)
1111            }
1112            crate::error::ListX12TransactionSetsErrorKind::AccessDeniedError(inner) => {
1113                Error::AccessDeniedError(inner)
1114            }
1115            crate::error::ListX12TransactionSetsErrorKind::UnauthorizedError(inner) => {
1116                Error::UnauthorizedError(inner)
1117            }
1118            crate::error::ListX12TransactionSetsErrorKind::BadRequestError(inner) => {
1119                Error::BadRequestError(inner)
1120            }
1121            crate::error::ListX12TransactionSetsErrorKind::ResourceNotFoundError(inner) => {
1122                Error::ResourceNotFoundError(inner)
1123            }
1124            crate::error::ListX12TransactionSetsErrorKind::Unhandled(inner) => {
1125                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1126            }
1127        }
1128    }
1129}
1130impl<R> From<aws_smithy_http::result::SdkError<crate::error::PublishGuideError, R>> for Error
1131where
1132    R: Send + Sync + std::fmt::Debug + 'static,
1133{
1134    fn from(err: aws_smithy_http::result::SdkError<crate::error::PublishGuideError, R>) -> Self {
1135        match err {
1136            aws_smithy_http::result::SdkError::ServiceError(context) => {
1137                Self::from(context.into_err())
1138            }
1139            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1140        }
1141    }
1142}
1143impl From<crate::error::PublishGuideError> for Error {
1144    fn from(err: crate::error::PublishGuideError) -> Self {
1145        match err.kind {
1146            crate::error::PublishGuideErrorKind::InternalFailureError(inner) => {
1147                Error::InternalFailureError(inner)
1148            }
1149            crate::error::PublishGuideErrorKind::ThrottlingError(inner) => {
1150                Error::ThrottlingError(inner)
1151            }
1152            crate::error::PublishGuideErrorKind::ValidationError(inner) => {
1153                Error::ValidationError(inner)
1154            }
1155            crate::error::PublishGuideErrorKind::AccessDeniedError(inner) => {
1156                Error::AccessDeniedError(inner)
1157            }
1158            crate::error::PublishGuideErrorKind::UnauthorizedError(inner) => {
1159                Error::UnauthorizedError(inner)
1160            }
1161            crate::error::PublishGuideErrorKind::ResourceConflictError(inner) => {
1162                Error::ResourceConflictError(inner)
1163            }
1164            crate::error::PublishGuideErrorKind::BadRequestError(inner) => {
1165                Error::BadRequestError(inner)
1166            }
1167            crate::error::PublishGuideErrorKind::ResourceNotFoundError(inner) => {
1168                Error::ResourceNotFoundError(inner)
1169            }
1170            crate::error::PublishGuideErrorKind::Unhandled(inner) => {
1171                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1172            }
1173        }
1174    }
1175}
1176impl<R> From<aws_smithy_http::result::SdkError<crate::error::RevertGuideError, R>> for Error
1177where
1178    R: Send + Sync + std::fmt::Debug + 'static,
1179{
1180    fn from(err: aws_smithy_http::result::SdkError<crate::error::RevertGuideError, R>) -> Self {
1181        match err {
1182            aws_smithy_http::result::SdkError::ServiceError(context) => {
1183                Self::from(context.into_err())
1184            }
1185            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1186        }
1187    }
1188}
1189impl From<crate::error::RevertGuideError> for Error {
1190    fn from(err: crate::error::RevertGuideError) -> Self {
1191        match err.kind {
1192            crate::error::RevertGuideErrorKind::InternalFailureError(inner) => {
1193                Error::InternalFailureError(inner)
1194            }
1195            crate::error::RevertGuideErrorKind::ThrottlingError(inner) => {
1196                Error::ThrottlingError(inner)
1197            }
1198            crate::error::RevertGuideErrorKind::ValidationError(inner) => {
1199                Error::ValidationError(inner)
1200            }
1201            crate::error::RevertGuideErrorKind::AccessDeniedError(inner) => {
1202                Error::AccessDeniedError(inner)
1203            }
1204            crate::error::RevertGuideErrorKind::UnauthorizedError(inner) => {
1205                Error::UnauthorizedError(inner)
1206            }
1207            crate::error::RevertGuideErrorKind::ResourceConflictError(inner) => {
1208                Error::ResourceConflictError(inner)
1209            }
1210            crate::error::RevertGuideErrorKind::BadRequestError(inner) => {
1211                Error::BadRequestError(inner)
1212            }
1213            crate::error::RevertGuideErrorKind::ResourceNotFoundError(inner) => {
1214                Error::ResourceNotFoundError(inner)
1215            }
1216            crate::error::RevertGuideErrorKind::Unhandled(inner) => {
1217                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1218            }
1219        }
1220    }
1221}
1222impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateAccountConfigError, R>> for Error
1223where
1224    R: Send + Sync + std::fmt::Debug + 'static,
1225{
1226    fn from(
1227        err: aws_smithy_http::result::SdkError<crate::error::UpdateAccountConfigError, R>,
1228    ) -> Self {
1229        match err {
1230            aws_smithy_http::result::SdkError::ServiceError(context) => {
1231                Self::from(context.into_err())
1232            }
1233            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1234        }
1235    }
1236}
1237impl From<crate::error::UpdateAccountConfigError> for Error {
1238    fn from(err: crate::error::UpdateAccountConfigError) -> Self {
1239        match err.kind {
1240            crate::error::UpdateAccountConfigErrorKind::InternalFailureError(inner) => {
1241                Error::InternalFailureError(inner)
1242            }
1243            crate::error::UpdateAccountConfigErrorKind::ThrottlingError(inner) => {
1244                Error::ThrottlingError(inner)
1245            }
1246            crate::error::UpdateAccountConfigErrorKind::ValidationError(inner) => {
1247                Error::ValidationError(inner)
1248            }
1249            crate::error::UpdateAccountConfigErrorKind::AccessDeniedError(inner) => {
1250                Error::AccessDeniedError(inner)
1251            }
1252            crate::error::UpdateAccountConfigErrorKind::UnauthorizedError(inner) => {
1253                Error::UnauthorizedError(inner)
1254            }
1255            crate::error::UpdateAccountConfigErrorKind::ResourceConflictError(inner) => {
1256                Error::ResourceConflictError(inner)
1257            }
1258            crate::error::UpdateAccountConfigErrorKind::BadRequestError(inner) => {
1259                Error::BadRequestError(inner)
1260            }
1261            crate::error::UpdateAccountConfigErrorKind::ResourceNotFoundError(inner) => {
1262                Error::ResourceNotFoundError(inner)
1263            }
1264            crate::error::UpdateAccountConfigErrorKind::RequestTooLargeError(inner) => {
1265                Error::RequestTooLargeError(inner)
1266            }
1267            crate::error::UpdateAccountConfigErrorKind::Unhandled(inner) => {
1268                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1269            }
1270        }
1271    }
1272}
1273impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGuideError, R>> for Error
1274where
1275    R: Send + Sync + std::fmt::Debug + 'static,
1276{
1277    fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateGuideError, R>) -> Self {
1278        match err {
1279            aws_smithy_http::result::SdkError::ServiceError(context) => {
1280                Self::from(context.into_err())
1281            }
1282            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1283        }
1284    }
1285}
1286impl From<crate::error::UpdateGuideError> for Error {
1287    fn from(err: crate::error::UpdateGuideError) -> Self {
1288        match err.kind {
1289            crate::error::UpdateGuideErrorKind::InternalFailureError(inner) => {
1290                Error::InternalFailureError(inner)
1291            }
1292            crate::error::UpdateGuideErrorKind::ThrottlingError(inner) => {
1293                Error::ThrottlingError(inner)
1294            }
1295            crate::error::UpdateGuideErrorKind::ValidationError(inner) => {
1296                Error::ValidationError(inner)
1297            }
1298            crate::error::UpdateGuideErrorKind::AccessDeniedError(inner) => {
1299                Error::AccessDeniedError(inner)
1300            }
1301            crate::error::UpdateGuideErrorKind::UnauthorizedError(inner) => {
1302                Error::UnauthorizedError(inner)
1303            }
1304            crate::error::UpdateGuideErrorKind::ResourceConflictError(inner) => {
1305                Error::ResourceConflictError(inner)
1306            }
1307            crate::error::UpdateGuideErrorKind::BadRequestError(inner) => {
1308                Error::BadRequestError(inner)
1309            }
1310            crate::error::UpdateGuideErrorKind::ResourceNotFoundError(inner) => {
1311                Error::ResourceNotFoundError(inner)
1312            }
1313            crate::error::UpdateGuideErrorKind::RequestTooLargeError(inner) => {
1314                Error::RequestTooLargeError(inner)
1315            }
1316            crate::error::UpdateGuideErrorKind::Unhandled(inner) => {
1317                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1318            }
1319        }
1320    }
1321}
1322impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGuideAttachmentError, R>>
1323    for Error
1324where
1325    R: Send + Sync + std::fmt::Debug + 'static,
1326{
1327    fn from(
1328        err: aws_smithy_http::result::SdkError<crate::error::UpdateGuideAttachmentError, R>,
1329    ) -> Self {
1330        match err {
1331            aws_smithy_http::result::SdkError::ServiceError(context) => {
1332                Self::from(context.into_err())
1333            }
1334            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1335        }
1336    }
1337}
1338impl From<crate::error::UpdateGuideAttachmentError> for Error {
1339    fn from(err: crate::error::UpdateGuideAttachmentError) -> Self {
1340        match err.kind {
1341            crate::error::UpdateGuideAttachmentErrorKind::InternalFailureError(inner) => {
1342                Error::InternalFailureError(inner)
1343            }
1344            crate::error::UpdateGuideAttachmentErrorKind::ThrottlingError(inner) => {
1345                Error::ThrottlingError(inner)
1346            }
1347            crate::error::UpdateGuideAttachmentErrorKind::ValidationError(inner) => {
1348                Error::ValidationError(inner)
1349            }
1350            crate::error::UpdateGuideAttachmentErrorKind::AccessDeniedError(inner) => {
1351                Error::AccessDeniedError(inner)
1352            }
1353            crate::error::UpdateGuideAttachmentErrorKind::UnauthorizedError(inner) => {
1354                Error::UnauthorizedError(inner)
1355            }
1356            crate::error::UpdateGuideAttachmentErrorKind::ResourceConflictError(inner) => {
1357                Error::ResourceConflictError(inner)
1358            }
1359            crate::error::UpdateGuideAttachmentErrorKind::BadRequestError(inner) => {
1360                Error::BadRequestError(inner)
1361            }
1362            crate::error::UpdateGuideAttachmentErrorKind::ResourceNotFoundError(inner) => {
1363                Error::ResourceNotFoundError(inner)
1364            }
1365            crate::error::UpdateGuideAttachmentErrorKind::RequestTooLargeError(inner) => {
1366                Error::RequestTooLargeError(inner)
1367            }
1368            crate::error::UpdateGuideAttachmentErrorKind::Unhandled(inner) => {
1369                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1370            }
1371        }
1372    }
1373}
1374impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGuideSampleError, R>> for Error
1375where
1376    R: Send + Sync + std::fmt::Debug + 'static,
1377{
1378    fn from(
1379        err: aws_smithy_http::result::SdkError<crate::error::UpdateGuideSampleError, R>,
1380    ) -> Self {
1381        match err {
1382            aws_smithy_http::result::SdkError::ServiceError(context) => {
1383                Self::from(context.into_err())
1384            }
1385            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1386        }
1387    }
1388}
1389impl From<crate::error::UpdateGuideSampleError> for Error {
1390    fn from(err: crate::error::UpdateGuideSampleError) -> Self {
1391        match err.kind {
1392            crate::error::UpdateGuideSampleErrorKind::InternalFailureError(inner) => {
1393                Error::InternalFailureError(inner)
1394            }
1395            crate::error::UpdateGuideSampleErrorKind::ThrottlingError(inner) => {
1396                Error::ThrottlingError(inner)
1397            }
1398            crate::error::UpdateGuideSampleErrorKind::ValidationError(inner) => {
1399                Error::ValidationError(inner)
1400            }
1401            crate::error::UpdateGuideSampleErrorKind::AccessDeniedError(inner) => {
1402                Error::AccessDeniedError(inner)
1403            }
1404            crate::error::UpdateGuideSampleErrorKind::UnauthorizedError(inner) => {
1405                Error::UnauthorizedError(inner)
1406            }
1407            crate::error::UpdateGuideSampleErrorKind::ResourceConflictError(inner) => {
1408                Error::ResourceConflictError(inner)
1409            }
1410            crate::error::UpdateGuideSampleErrorKind::BadRequestError(inner) => {
1411                Error::BadRequestError(inner)
1412            }
1413            crate::error::UpdateGuideSampleErrorKind::ResourceNotFoundError(inner) => {
1414                Error::ResourceNotFoundError(inner)
1415            }
1416            crate::error::UpdateGuideSampleErrorKind::RequestTooLargeError(inner) => {
1417                Error::RequestTooLargeError(inner)
1418            }
1419            crate::error::UpdateGuideSampleErrorKind::Unhandled(inner) => {
1420                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1421            }
1422        }
1423    }
1424}
1425impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateShareConfigError, R>> for Error
1426where
1427    R: Send + Sync + std::fmt::Debug + 'static,
1428{
1429    fn from(
1430        err: aws_smithy_http::result::SdkError<crate::error::UpdateShareConfigError, R>,
1431    ) -> Self {
1432        match err {
1433            aws_smithy_http::result::SdkError::ServiceError(context) => {
1434                Self::from(context.into_err())
1435            }
1436            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
1437        }
1438    }
1439}
1440impl From<crate::error::UpdateShareConfigError> for Error {
1441    fn from(err: crate::error::UpdateShareConfigError) -> Self {
1442        match err.kind {
1443            crate::error::UpdateShareConfigErrorKind::InternalFailureError(inner) => {
1444                Error::InternalFailureError(inner)
1445            }
1446            crate::error::UpdateShareConfigErrorKind::ThrottlingError(inner) => {
1447                Error::ThrottlingError(inner)
1448            }
1449            crate::error::UpdateShareConfigErrorKind::ValidationError(inner) => {
1450                Error::ValidationError(inner)
1451            }
1452            crate::error::UpdateShareConfigErrorKind::AccessDeniedError(inner) => {
1453                Error::AccessDeniedError(inner)
1454            }
1455            crate::error::UpdateShareConfigErrorKind::UnauthorizedError(inner) => {
1456                Error::UnauthorizedError(inner)
1457            }
1458            crate::error::UpdateShareConfigErrorKind::ResourceConflictError(inner) => {
1459                Error::ResourceConflictError(inner)
1460            }
1461            crate::error::UpdateShareConfigErrorKind::BadRequestError(inner) => {
1462                Error::BadRequestError(inner)
1463            }
1464            crate::error::UpdateShareConfigErrorKind::ResourceNotFoundError(inner) => {
1465                Error::ResourceNotFoundError(inner)
1466            }
1467            crate::error::UpdateShareConfigErrorKind::RequestTooLargeError(inner) => {
1468                Error::RequestTooLargeError(inner)
1469            }
1470            crate::error::UpdateShareConfigErrorKind::Unhandled(inner) => {
1471                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
1472            }
1473        }
1474    }
1475}
1476impl std::error::Error for Error {}