Skip to main content

aws_sdk_bedrockagentcore/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An exception thrown when attempting to create a resource with an identifier that already exists.</p>
11    DuplicateIdException(crate::types::error::DuplicateIdException),
12    /// <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
13    InternalServerException(crate::types::error::InternalServerException),
14    /// <p>The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.</p>
15    InvalidInputException(crate::types::error::InvalidInputException),
16    /// <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
17    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
18    /// <p>The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
19    RetryableConflictException(crate::types::error::RetryableConflictException),
20    /// <p>The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.</p>
21    RuntimeClientError(crate::types::error::RuntimeClientError),
22    /// <p>The service encountered an internal error. Try your request again later.</p>
23    ServiceException(crate::types::error::ServiceException),
24    /// <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
25    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
26    /// <p>The request was denied due to request throttling. Reduce the frequency of requests and try again.</p>
27    ThrottledException(crate::types::error::ThrottledException),
28    /// <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
29    ThrottlingException(crate::types::error::ThrottlingException),
30    /// <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
31    UnauthorizedException(crate::types::error::UnauthorizedException),
32    /// <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
33    ValidationException(crate::types::error::ValidationException),
34    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
35    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
36    variable wildcard pattern and check `.code()`:
37     \
38    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
39     \
40    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
41    Unhandled(crate::error::sealed_unhandled::Unhandled),
42}
43impl ::std::fmt::Display for Error {
44    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
45        match self {
46            Error::AccessDeniedException(inner) => inner.fmt(f),
47            Error::ConflictException(inner) => inner.fmt(f),
48            Error::DuplicateIdException(inner) => inner.fmt(f),
49            Error::InternalServerException(inner) => inner.fmt(f),
50            Error::InvalidInputException(inner) => inner.fmt(f),
51            Error::ResourceNotFoundException(inner) => inner.fmt(f),
52            Error::RetryableConflictException(inner) => inner.fmt(f),
53            Error::RuntimeClientError(inner) => inner.fmt(f),
54            Error::ServiceException(inner) => inner.fmt(f),
55            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
56            Error::ThrottledException(inner) => inner.fmt(f),
57            Error::ThrottlingException(inner) => inner.fmt(f),
58            Error::UnauthorizedException(inner) => inner.fmt(f),
59            Error::ValidationException(inner) => inner.fmt(f),
60            Error::Unhandled(_) => {
61                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
62                    write!(f, "unhandled error ({code})")
63                } else {
64                    f.write_str("unhandled error")
65                }
66            }
67        }
68    }
69}
70impl From<::aws_smithy_types::error::operation::BuildError> for Error {
71    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
72        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
73            source: value.into(),
74            meta: ::std::default::Default::default(),
75        })
76    }
77}
78impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
79    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
80        match self {
81            Self::AccessDeniedException(inner) => inner.meta(),
82            Self::ConflictException(inner) => inner.meta(),
83            Self::DuplicateIdException(inner) => inner.meta(),
84            Self::InternalServerException(inner) => inner.meta(),
85            Self::InvalidInputException(inner) => inner.meta(),
86            Self::ResourceNotFoundException(inner) => inner.meta(),
87            Self::RetryableConflictException(inner) => inner.meta(),
88            Self::RuntimeClientError(inner) => inner.meta(),
89            Self::ServiceException(inner) => inner.meta(),
90            Self::ServiceQuotaExceededException(inner) => inner.meta(),
91            Self::ThrottledException(inner) => inner.meta(),
92            Self::ThrottlingException(inner) => inner.meta(),
93            Self::UnauthorizedException(inner) => inner.meta(),
94            Self::ValidationException(inner) => inner.meta(),
95            Self::Unhandled(inner) => &inner.meta,
96        }
97    }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError, R>>
100    for Error
101where
102    R: Send + Sync + std::fmt::Debug + 'static,
103{
104    fn from(
105        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError, R>,
106    ) -> Self {
107        match err {
108            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111                source: err.into(),
112            }),
113        }
114    }
115}
116impl From<crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError> for Error {
117    fn from(err: crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError) -> Self {
118        match err {
119            crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError::AccessDeniedException(inner) => {
120                Error::AccessDeniedException(inner)
121            }
122            crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError::ResourceNotFoundException(inner) => {
123                Error::ResourceNotFoundException(inner)
124            }
125            crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError::ServiceException(inner) => Error::ServiceException(inner),
126            crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError::ServiceQuotaExceededException(inner) => {
127                Error::ServiceQuotaExceededException(inner)
128            }
129            crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError::ThrottledException(inner) => {
130                Error::ThrottledException(inner)
131            }
132            crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError::ValidationException(inner) => {
133                Error::ValidationException(inner)
134            }
135            crate::operation::batch_create_memory_records::BatchCreateMemoryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
136        }
137    }
138}
139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError, R>>
140    for Error
141where
142    R: Send + Sync + std::fmt::Debug + 'static,
143{
144    fn from(
145        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError, R>,
146    ) -> Self {
147        match err {
148            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
149            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
150                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
151                source: err.into(),
152            }),
153        }
154    }
155}
156impl From<crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError> for Error {
157    fn from(err: crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError) -> Self {
158        match err {
159            crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError::AccessDeniedException(inner) => {
160                Error::AccessDeniedException(inner)
161            }
162            crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError::ResourceNotFoundException(inner) => {
163                Error::ResourceNotFoundException(inner)
164            }
165            crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError::ServiceException(inner) => Error::ServiceException(inner),
166            crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError::ServiceQuotaExceededException(inner) => {
167                Error::ServiceQuotaExceededException(inner)
168            }
169            crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError::ThrottledException(inner) => {
170                Error::ThrottledException(inner)
171            }
172            crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError::ValidationException(inner) => {
173                Error::ValidationException(inner)
174            }
175            crate::operation::batch_delete_memory_records::BatchDeleteMemoryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
176        }
177    }
178}
179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError, R>>
180    for Error
181where
182    R: Send + Sync + std::fmt::Debug + 'static,
183{
184    fn from(
185        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError, R>,
186    ) -> Self {
187        match err {
188            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
189            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
190                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
191                source: err.into(),
192            }),
193        }
194    }
195}
196impl From<crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError> for Error {
197    fn from(err: crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError) -> Self {
198        match err {
199            crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError::AccessDeniedException(inner) => {
200                Error::AccessDeniedException(inner)
201            }
202            crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError::ResourceNotFoundException(inner) => {
203                Error::ResourceNotFoundException(inner)
204            }
205            crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError::ServiceException(inner) => Error::ServiceException(inner),
206            crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError::ServiceQuotaExceededException(inner) => {
207                Error::ServiceQuotaExceededException(inner)
208            }
209            crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError::ThrottledException(inner) => {
210                Error::ThrottledException(inner)
211            }
212            crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError::ValidationException(inner) => {
213                Error::ValidationException(inner)
214            }
215            crate::operation::batch_update_memory_records::BatchUpdateMemoryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
216        }
217    }
218}
219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError, R>>
220    for Error
221where
222    R: Send + Sync + std::fmt::Debug + 'static,
223{
224    fn from(
225        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError, R>,
226    ) -> Self {
227        match err {
228            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
229            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
230                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
231                source: err.into(),
232            }),
233        }
234    }
235}
236impl From<crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError> for Error {
237    fn from(err: crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError) -> Self {
238        match err {
239            crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError::AccessDeniedException(inner) => {
240                Error::AccessDeniedException(inner)
241            }
242            crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError::InternalServerException(inner) => {
243                Error::InternalServerException(inner)
244            }
245            crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError::ResourceNotFoundException(inner) => {
246                Error::ResourceNotFoundException(inner)
247            }
248            crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError::ThrottlingException(inner) => {
249                Error::ThrottlingException(inner)
250            }
251            crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError::UnauthorizedException(inner) => {
252                Error::UnauthorizedException(inner)
253            }
254            crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError::ValidationException(inner) => {
255                Error::ValidationException(inner)
256            }
257            crate::operation::complete_resource_token_auth::CompleteResourceTokenAuthError::Unhandled(inner) => Error::Unhandled(inner),
258        }
259    }
260}
261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ab_test::CreateABTestError, R>> for Error
262where
263    R: Send + Sync + std::fmt::Debug + 'static,
264{
265    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ab_test::CreateABTestError, R>) -> Self {
266        match err {
267            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
268            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
269                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
270                source: err.into(),
271            }),
272        }
273    }
274}
275impl From<crate::operation::create_ab_test::CreateABTestError> for Error {
276    fn from(err: crate::operation::create_ab_test::CreateABTestError) -> Self {
277        match err {
278            crate::operation::create_ab_test::CreateABTestError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
279            crate::operation::create_ab_test::CreateABTestError::ConflictException(inner) => Error::ConflictException(inner),
280            crate::operation::create_ab_test::CreateABTestError::InternalServerException(inner) => Error::InternalServerException(inner),
281            crate::operation::create_ab_test::CreateABTestError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
282            crate::operation::create_ab_test::CreateABTestError::ThrottlingException(inner) => Error::ThrottlingException(inner),
283            crate::operation::create_ab_test::CreateABTestError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
284            crate::operation::create_ab_test::CreateABTestError::ValidationException(inner) => Error::ValidationException(inner),
285            crate::operation::create_ab_test::CreateABTestError::Unhandled(inner) => Error::Unhandled(inner),
286        }
287    }
288}
289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event::CreateEventError, R>> for Error
290where
291    R: Send + Sync + std::fmt::Debug + 'static,
292{
293    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event::CreateEventError, R>) -> Self {
294        match err {
295            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
296            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
297                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
298                source: err.into(),
299            }),
300        }
301    }
302}
303impl From<crate::operation::create_event::CreateEventError> for Error {
304    fn from(err: crate::operation::create_event::CreateEventError) -> Self {
305        match err {
306            crate::operation::create_event::CreateEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
307            crate::operation::create_event::CreateEventError::InvalidInputException(inner) => Error::InvalidInputException(inner),
308            crate::operation::create_event::CreateEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
309            crate::operation::create_event::CreateEventError::RetryableConflictException(inner) => Error::RetryableConflictException(inner),
310            crate::operation::create_event::CreateEventError::ServiceException(inner) => Error::ServiceException(inner),
311            crate::operation::create_event::CreateEventError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
312            crate::operation::create_event::CreateEventError::ThrottledException(inner) => Error::ThrottledException(inner),
313            crate::operation::create_event::CreateEventError::ValidationException(inner) => Error::ValidationException(inner),
314            crate::operation::create_event::CreateEventError::Unhandled(inner) => Error::Unhandled(inner),
315        }
316    }
317}
318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_instrument::CreatePaymentInstrumentError, R>>
319    for Error
320where
321    R: Send + Sync + std::fmt::Debug + 'static,
322{
323    fn from(
324        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_instrument::CreatePaymentInstrumentError, R>,
325    ) -> Self {
326        match err {
327            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
328            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
329                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
330                source: err.into(),
331            }),
332        }
333    }
334}
335impl From<crate::operation::create_payment_instrument::CreatePaymentInstrumentError> for Error {
336    fn from(err: crate::operation::create_payment_instrument::CreatePaymentInstrumentError) -> Self {
337        match err {
338            crate::operation::create_payment_instrument::CreatePaymentInstrumentError::AccessDeniedException(inner) => {
339                Error::AccessDeniedException(inner)
340            }
341            crate::operation::create_payment_instrument::CreatePaymentInstrumentError::ConflictException(inner) => Error::ConflictException(inner),
342            crate::operation::create_payment_instrument::CreatePaymentInstrumentError::InternalServerException(inner) => {
343                Error::InternalServerException(inner)
344            }
345            crate::operation::create_payment_instrument::CreatePaymentInstrumentError::ServiceQuotaExceededException(inner) => {
346                Error::ServiceQuotaExceededException(inner)
347            }
348            crate::operation::create_payment_instrument::CreatePaymentInstrumentError::ThrottlingException(inner) => {
349                Error::ThrottlingException(inner)
350            }
351            crate::operation::create_payment_instrument::CreatePaymentInstrumentError::ValidationException(inner) => {
352                Error::ValidationException(inner)
353            }
354            crate::operation::create_payment_instrument::CreatePaymentInstrumentError::Unhandled(inner) => Error::Unhandled(inner),
355        }
356    }
357}
358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_session::CreatePaymentSessionError, R>> for Error
359where
360    R: Send + Sync + std::fmt::Debug + 'static,
361{
362    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_session::CreatePaymentSessionError, R>) -> Self {
363        match err {
364            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
365            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
366                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
367                source: err.into(),
368            }),
369        }
370    }
371}
372impl From<crate::operation::create_payment_session::CreatePaymentSessionError> for Error {
373    fn from(err: crate::operation::create_payment_session::CreatePaymentSessionError) -> Self {
374        match err {
375            crate::operation::create_payment_session::CreatePaymentSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
376            crate::operation::create_payment_session::CreatePaymentSessionError::ConflictException(inner) => Error::ConflictException(inner),
377            crate::operation::create_payment_session::CreatePaymentSessionError::InternalServerException(inner) => {
378                Error::InternalServerException(inner)
379            }
380            crate::operation::create_payment_session::CreatePaymentSessionError::ServiceQuotaExceededException(inner) => {
381                Error::ServiceQuotaExceededException(inner)
382            }
383            crate::operation::create_payment_session::CreatePaymentSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
384            crate::operation::create_payment_session::CreatePaymentSessionError::ValidationException(inner) => Error::ValidationException(inner),
385            crate::operation::create_payment_session::CreatePaymentSessionError::Unhandled(inner) => Error::Unhandled(inner),
386        }
387    }
388}
389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ab_test::DeleteABTestError, R>> for Error
390where
391    R: Send + Sync + std::fmt::Debug + 'static,
392{
393    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ab_test::DeleteABTestError, R>) -> Self {
394        match err {
395            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
396            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
397                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
398                source: err.into(),
399            }),
400        }
401    }
402}
403impl From<crate::operation::delete_ab_test::DeleteABTestError> for Error {
404    fn from(err: crate::operation::delete_ab_test::DeleteABTestError) -> Self {
405        match err {
406            crate::operation::delete_ab_test::DeleteABTestError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
407            crate::operation::delete_ab_test::DeleteABTestError::ConflictException(inner) => Error::ConflictException(inner),
408            crate::operation::delete_ab_test::DeleteABTestError::InternalServerException(inner) => Error::InternalServerException(inner),
409            crate::operation::delete_ab_test::DeleteABTestError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
410            crate::operation::delete_ab_test::DeleteABTestError::ThrottlingException(inner) => Error::ThrottlingException(inner),
411            crate::operation::delete_ab_test::DeleteABTestError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
412            crate::operation::delete_ab_test::DeleteABTestError::ValidationException(inner) => Error::ValidationException(inner),
413            crate::operation::delete_ab_test::DeleteABTestError::Unhandled(inner) => Error::Unhandled(inner),
414        }
415    }
416}
417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError, R>> for Error
418where
419    R: Send + Sync + std::fmt::Debug + 'static,
420{
421    fn from(
422        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError, R>,
423    ) -> Self {
424        match err {
425            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
426            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
427                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
428                source: err.into(),
429            }),
430        }
431    }
432}
433impl From<crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError> for Error {
434    fn from(err: crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError) -> Self {
435        match err {
436            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::AccessDeniedException(inner) => {
437                Error::AccessDeniedException(inner)
438            }
439            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::ConflictException(inner) => Error::ConflictException(inner),
440            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::InternalServerException(inner) => {
441                Error::InternalServerException(inner)
442            }
443            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::ResourceNotFoundException(inner) => {
444                Error::ResourceNotFoundException(inner)
445            }
446            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
447            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::UnauthorizedException(inner) => {
448                Error::UnauthorizedException(inner)
449            }
450            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::ValidationException(inner) => Error::ValidationException(inner),
451            crate::operation::delete_batch_evaluation::DeleteBatchEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
452        }
453    }
454}
455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event::DeleteEventError, R>> for Error
456where
457    R: Send + Sync + std::fmt::Debug + 'static,
458{
459    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event::DeleteEventError, R>) -> Self {
460        match err {
461            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
462            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
463                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
464                source: err.into(),
465            }),
466        }
467    }
468}
469impl From<crate::operation::delete_event::DeleteEventError> for Error {
470    fn from(err: crate::operation::delete_event::DeleteEventError) -> Self {
471        match err {
472            crate::operation::delete_event::DeleteEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
473            crate::operation::delete_event::DeleteEventError::InvalidInputException(inner) => Error::InvalidInputException(inner),
474            crate::operation::delete_event::DeleteEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
475            crate::operation::delete_event::DeleteEventError::ServiceException(inner) => Error::ServiceException(inner),
476            crate::operation::delete_event::DeleteEventError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
477            crate::operation::delete_event::DeleteEventError::ThrottledException(inner) => Error::ThrottledException(inner),
478            crate::operation::delete_event::DeleteEventError::ValidationException(inner) => Error::ValidationException(inner),
479            crate::operation::delete_event::DeleteEventError::Unhandled(inner) => Error::Unhandled(inner),
480        }
481    }
482}
483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_memory_record::DeleteMemoryRecordError, R>> for Error
484where
485    R: Send + Sync + std::fmt::Debug + 'static,
486{
487    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_memory_record::DeleteMemoryRecordError, R>) -> Self {
488        match err {
489            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
490            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
491                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
492                source: err.into(),
493            }),
494        }
495    }
496}
497impl From<crate::operation::delete_memory_record::DeleteMemoryRecordError> for Error {
498    fn from(err: crate::operation::delete_memory_record::DeleteMemoryRecordError) -> Self {
499        match err {
500            crate::operation::delete_memory_record::DeleteMemoryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
501            crate::operation::delete_memory_record::DeleteMemoryRecordError::InvalidInputException(inner) => Error::InvalidInputException(inner),
502            crate::operation::delete_memory_record::DeleteMemoryRecordError::ResourceNotFoundException(inner) => {
503                Error::ResourceNotFoundException(inner)
504            }
505            crate::operation::delete_memory_record::DeleteMemoryRecordError::ServiceException(inner) => Error::ServiceException(inner),
506            crate::operation::delete_memory_record::DeleteMemoryRecordError::ServiceQuotaExceededException(inner) => {
507                Error::ServiceQuotaExceededException(inner)
508            }
509            crate::operation::delete_memory_record::DeleteMemoryRecordError::ThrottledException(inner) => Error::ThrottledException(inner),
510            crate::operation::delete_memory_record::DeleteMemoryRecordError::ValidationException(inner) => Error::ValidationException(inner),
511            crate::operation::delete_memory_record::DeleteMemoryRecordError::Unhandled(inner) => Error::Unhandled(inner),
512        }
513    }
514}
515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_instrument::DeletePaymentInstrumentError, R>>
516    for Error
517where
518    R: Send + Sync + std::fmt::Debug + 'static,
519{
520    fn from(
521        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_instrument::DeletePaymentInstrumentError, R>,
522    ) -> Self {
523        match err {
524            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
525            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
526                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
527                source: err.into(),
528            }),
529        }
530    }
531}
532impl From<crate::operation::delete_payment_instrument::DeletePaymentInstrumentError> for Error {
533    fn from(err: crate::operation::delete_payment_instrument::DeletePaymentInstrumentError) -> Self {
534        match err {
535            crate::operation::delete_payment_instrument::DeletePaymentInstrumentError::AccessDeniedException(inner) => {
536                Error::AccessDeniedException(inner)
537            }
538            crate::operation::delete_payment_instrument::DeletePaymentInstrumentError::InternalServerException(inner) => {
539                Error::InternalServerException(inner)
540            }
541            crate::operation::delete_payment_instrument::DeletePaymentInstrumentError::ResourceNotFoundException(inner) => {
542                Error::ResourceNotFoundException(inner)
543            }
544            crate::operation::delete_payment_instrument::DeletePaymentInstrumentError::ThrottlingException(inner) => {
545                Error::ThrottlingException(inner)
546            }
547            crate::operation::delete_payment_instrument::DeletePaymentInstrumentError::ValidationException(inner) => {
548                Error::ValidationException(inner)
549            }
550            crate::operation::delete_payment_instrument::DeletePaymentInstrumentError::Unhandled(inner) => Error::Unhandled(inner),
551        }
552    }
553}
554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_session::DeletePaymentSessionError, R>> for Error
555where
556    R: Send + Sync + std::fmt::Debug + 'static,
557{
558    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_session::DeletePaymentSessionError, R>) -> Self {
559        match err {
560            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
561            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
562                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
563                source: err.into(),
564            }),
565        }
566    }
567}
568impl From<crate::operation::delete_payment_session::DeletePaymentSessionError> for Error {
569    fn from(err: crate::operation::delete_payment_session::DeletePaymentSessionError) -> Self {
570        match err {
571            crate::operation::delete_payment_session::DeletePaymentSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
572            crate::operation::delete_payment_session::DeletePaymentSessionError::InternalServerException(inner) => {
573                Error::InternalServerException(inner)
574            }
575            crate::operation::delete_payment_session::DeletePaymentSessionError::ResourceNotFoundException(inner) => {
576                Error::ResourceNotFoundException(inner)
577            }
578            crate::operation::delete_payment_session::DeletePaymentSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
579            crate::operation::delete_payment_session::DeletePaymentSessionError::ValidationException(inner) => Error::ValidationException(inner),
580            crate::operation::delete_payment_session::DeletePaymentSessionError::Unhandled(inner) => Error::Unhandled(inner),
581        }
582    }
583}
584impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_recommendation::DeleteRecommendationError, R>> for Error
585where
586    R: Send + Sync + std::fmt::Debug + 'static,
587{
588    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_recommendation::DeleteRecommendationError, R>) -> Self {
589        match err {
590            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
591            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
592                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
593                source: err.into(),
594            }),
595        }
596    }
597}
598impl From<crate::operation::delete_recommendation::DeleteRecommendationError> for Error {
599    fn from(err: crate::operation::delete_recommendation::DeleteRecommendationError) -> Self {
600        match err {
601            crate::operation::delete_recommendation::DeleteRecommendationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
602            crate::operation::delete_recommendation::DeleteRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
603            crate::operation::delete_recommendation::DeleteRecommendationError::InternalServerException(inner) => {
604                Error::InternalServerException(inner)
605            }
606            crate::operation::delete_recommendation::DeleteRecommendationError::ResourceNotFoundException(inner) => {
607                Error::ResourceNotFoundException(inner)
608            }
609            crate::operation::delete_recommendation::DeleteRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
610            crate::operation::delete_recommendation::DeleteRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
611            crate::operation::delete_recommendation::DeleteRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
612        }
613    }
614}
615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate::EvaluateError, 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::evaluate::EvaluateError, 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::evaluate::EvaluateError> for Error {
630    fn from(err: crate::operation::evaluate::EvaluateError) -> Self {
631        match err {
632            crate::operation::evaluate::EvaluateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
633            crate::operation::evaluate::EvaluateError::ConflictException(inner) => Error::ConflictException(inner),
634            crate::operation::evaluate::EvaluateError::DuplicateIdException(inner) => Error::DuplicateIdException(inner),
635            crate::operation::evaluate::EvaluateError::InternalServerException(inner) => Error::InternalServerException(inner),
636            crate::operation::evaluate::EvaluateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
637            crate::operation::evaluate::EvaluateError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
638            crate::operation::evaluate::EvaluateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
639            crate::operation::evaluate::EvaluateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
640            crate::operation::evaluate::EvaluateError::ValidationException(inner) => Error::ValidationException(inner),
641            crate::operation::evaluate::EvaluateError::Unhandled(inner) => Error::Unhandled(inner),
642        }
643    }
644}
645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ab_test::GetABTestError, R>> for Error
646where
647    R: Send + Sync + std::fmt::Debug + 'static,
648{
649    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ab_test::GetABTestError, R>) -> Self {
650        match err {
651            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
652            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
653                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
654                source: err.into(),
655            }),
656        }
657    }
658}
659impl From<crate::operation::get_ab_test::GetABTestError> for Error {
660    fn from(err: crate::operation::get_ab_test::GetABTestError) -> Self {
661        match err {
662            crate::operation::get_ab_test::GetABTestError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
663            crate::operation::get_ab_test::GetABTestError::InternalServerException(inner) => Error::InternalServerException(inner),
664            crate::operation::get_ab_test::GetABTestError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
665            crate::operation::get_ab_test::GetABTestError::ThrottlingException(inner) => Error::ThrottlingException(inner),
666            crate::operation::get_ab_test::GetABTestError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
667            crate::operation::get_ab_test::GetABTestError::ValidationException(inner) => Error::ValidationException(inner),
668            crate::operation::get_ab_test::GetABTestError::Unhandled(inner) => Error::Unhandled(inner),
669        }
670    }
671}
672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_card::GetAgentCardError, R>> for Error
673where
674    R: Send + Sync + std::fmt::Debug + 'static,
675{
676    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_card::GetAgentCardError, R>) -> Self {
677        match err {
678            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
679            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
680                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
681                source: err.into(),
682            }),
683        }
684    }
685}
686impl From<crate::operation::get_agent_card::GetAgentCardError> for Error {
687    fn from(err: crate::operation::get_agent_card::GetAgentCardError) -> Self {
688        match err {
689            crate::operation::get_agent_card::GetAgentCardError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
690            crate::operation::get_agent_card::GetAgentCardError::InternalServerException(inner) => Error::InternalServerException(inner),
691            crate::operation::get_agent_card::GetAgentCardError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
692            crate::operation::get_agent_card::GetAgentCardError::RetryableConflictException(inner) => Error::RetryableConflictException(inner),
693            crate::operation::get_agent_card::GetAgentCardError::RuntimeClientError(inner) => Error::RuntimeClientError(inner),
694            crate::operation::get_agent_card::GetAgentCardError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
695            crate::operation::get_agent_card::GetAgentCardError::ThrottlingException(inner) => Error::ThrottlingException(inner),
696            crate::operation::get_agent_card::GetAgentCardError::ValidationException(inner) => Error::ValidationException(inner),
697            crate::operation::get_agent_card::GetAgentCardError::Unhandled(inner) => Error::Unhandled(inner),
698        }
699    }
700}
701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_batch_evaluation::GetBatchEvaluationError, R>> for Error
702where
703    R: Send + Sync + std::fmt::Debug + 'static,
704{
705    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_batch_evaluation::GetBatchEvaluationError, R>) -> Self {
706        match err {
707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
710                source: err.into(),
711            }),
712        }
713    }
714}
715impl From<crate::operation::get_batch_evaluation::GetBatchEvaluationError> for Error {
716    fn from(err: crate::operation::get_batch_evaluation::GetBatchEvaluationError) -> Self {
717        match err {
718            crate::operation::get_batch_evaluation::GetBatchEvaluationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
719            crate::operation::get_batch_evaluation::GetBatchEvaluationError::InternalServerException(inner) => Error::InternalServerException(inner),
720            crate::operation::get_batch_evaluation::GetBatchEvaluationError::ResourceNotFoundException(inner) => {
721                Error::ResourceNotFoundException(inner)
722            }
723            crate::operation::get_batch_evaluation::GetBatchEvaluationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
724            crate::operation::get_batch_evaluation::GetBatchEvaluationError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
725            crate::operation::get_batch_evaluation::GetBatchEvaluationError::ValidationException(inner) => Error::ValidationException(inner),
726            crate::operation::get_batch_evaluation::GetBatchEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
727        }
728    }
729}
730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_session::GetBrowserSessionError, R>> for Error
731where
732    R: Send + Sync + std::fmt::Debug + 'static,
733{
734    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_session::GetBrowserSessionError, R>) -> Self {
735        match err {
736            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
737            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
738                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
739                source: err.into(),
740            }),
741        }
742    }
743}
744impl From<crate::operation::get_browser_session::GetBrowserSessionError> for Error {
745    fn from(err: crate::operation::get_browser_session::GetBrowserSessionError) -> Self {
746        match err {
747            crate::operation::get_browser_session::GetBrowserSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
748            crate::operation::get_browser_session::GetBrowserSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
749            crate::operation::get_browser_session::GetBrowserSessionError::ResourceNotFoundException(inner) => {
750                Error::ResourceNotFoundException(inner)
751            }
752            crate::operation::get_browser_session::GetBrowserSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
753            crate::operation::get_browser_session::GetBrowserSessionError::ValidationException(inner) => Error::ValidationException(inner),
754            crate::operation::get_browser_session::GetBrowserSessionError::Unhandled(inner) => Error::Unhandled(inner),
755        }
756    }
757}
758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError, R>>
759    for Error
760where
761    R: Send + Sync + std::fmt::Debug + 'static,
762{
763    fn from(
764        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError, R>,
765    ) -> Self {
766        match err {
767            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
768            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
769                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
770                source: err.into(),
771            }),
772        }
773    }
774}
775impl From<crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError> for Error {
776    fn from(err: crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError) -> Self {
777        match err {
778            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::AccessDeniedException(inner) => {
779                Error::AccessDeniedException(inner)
780            }
781            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::InternalServerException(inner) => {
782                Error::InternalServerException(inner)
783            }
784            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::ResourceNotFoundException(inner) => {
785                Error::ResourceNotFoundException(inner)
786            }
787            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::ThrottlingException(inner) => {
788                Error::ThrottlingException(inner)
789            }
790            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::ValidationException(inner) => {
791                Error::ValidationException(inner)
792            }
793            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::Unhandled(inner) => Error::Unhandled(inner),
794        }
795    }
796}
797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event::GetEventError, R>> for Error
798where
799    R: Send + Sync + std::fmt::Debug + 'static,
800{
801    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event::GetEventError, R>) -> Self {
802        match err {
803            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
804            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
805                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
806                source: err.into(),
807            }),
808        }
809    }
810}
811impl From<crate::operation::get_event::GetEventError> for Error {
812    fn from(err: crate::operation::get_event::GetEventError) -> Self {
813        match err {
814            crate::operation::get_event::GetEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
815            crate::operation::get_event::GetEventError::InvalidInputException(inner) => Error::InvalidInputException(inner),
816            crate::operation::get_event::GetEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
817            crate::operation::get_event::GetEventError::ServiceException(inner) => Error::ServiceException(inner),
818            crate::operation::get_event::GetEventError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
819            crate::operation::get_event::GetEventError::ThrottledException(inner) => Error::ThrottledException(inner),
820            crate::operation::get_event::GetEventError::ValidationException(inner) => Error::ValidationException(inner),
821            crate::operation::get_event::GetEventError::Unhandled(inner) => Error::Unhandled(inner),
822        }
823    }
824}
825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_memory_record::GetMemoryRecordError, R>> for Error
826where
827    R: Send + Sync + std::fmt::Debug + 'static,
828{
829    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_memory_record::GetMemoryRecordError, R>) -> Self {
830        match err {
831            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
832            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
833                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
834                source: err.into(),
835            }),
836        }
837    }
838}
839impl From<crate::operation::get_memory_record::GetMemoryRecordError> for Error {
840    fn from(err: crate::operation::get_memory_record::GetMemoryRecordError) -> Self {
841        match err {
842            crate::operation::get_memory_record::GetMemoryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
843            crate::operation::get_memory_record::GetMemoryRecordError::InvalidInputException(inner) => Error::InvalidInputException(inner),
844            crate::operation::get_memory_record::GetMemoryRecordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
845            crate::operation::get_memory_record::GetMemoryRecordError::ServiceException(inner) => Error::ServiceException(inner),
846            crate::operation::get_memory_record::GetMemoryRecordError::ServiceQuotaExceededException(inner) => {
847                Error::ServiceQuotaExceededException(inner)
848            }
849            crate::operation::get_memory_record::GetMemoryRecordError::ThrottledException(inner) => Error::ThrottledException(inner),
850            crate::operation::get_memory_record::GetMemoryRecordError::ValidationException(inner) => Error::ValidationException(inner),
851            crate::operation::get_memory_record::GetMemoryRecordError::Unhandled(inner) => Error::Unhandled(inner),
852        }
853    }
854}
855impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_instrument::GetPaymentInstrumentError, R>> for Error
856where
857    R: Send + Sync + std::fmt::Debug + 'static,
858{
859    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_instrument::GetPaymentInstrumentError, R>) -> Self {
860        match err {
861            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
862            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
863                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
864                source: err.into(),
865            }),
866        }
867    }
868}
869impl From<crate::operation::get_payment_instrument::GetPaymentInstrumentError> for Error {
870    fn from(err: crate::operation::get_payment_instrument::GetPaymentInstrumentError) -> Self {
871        match err {
872            crate::operation::get_payment_instrument::GetPaymentInstrumentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
873            crate::operation::get_payment_instrument::GetPaymentInstrumentError::InternalServerException(inner) => {
874                Error::InternalServerException(inner)
875            }
876            crate::operation::get_payment_instrument::GetPaymentInstrumentError::ResourceNotFoundException(inner) => {
877                Error::ResourceNotFoundException(inner)
878            }
879            crate::operation::get_payment_instrument::GetPaymentInstrumentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
880            crate::operation::get_payment_instrument::GetPaymentInstrumentError::ValidationException(inner) => Error::ValidationException(inner),
881            crate::operation::get_payment_instrument::GetPaymentInstrumentError::Unhandled(inner) => Error::Unhandled(inner),
882        }
883    }
884}
885impl<R>
886    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError, R>>
887    for Error
888where
889    R: Send + Sync + std::fmt::Debug + 'static,
890{
891    fn from(
892        err: ::aws_smithy_runtime_api::client::result::SdkError<
893            crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError,
894            R,
895        >,
896    ) -> Self {
897        match err {
898            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
899            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
900                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
901                source: err.into(),
902            }),
903        }
904    }
905}
906impl From<crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError> for Error {
907    fn from(err: crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError) -> Self {
908        match err {
909            crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError::AccessDeniedException(inner) => {
910                Error::AccessDeniedException(inner)
911            }
912            crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError::InternalServerException(inner) => {
913                Error::InternalServerException(inner)
914            }
915            crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError::ResourceNotFoundException(inner) => {
916                Error::ResourceNotFoundException(inner)
917            }
918            crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError::ThrottlingException(inner) => {
919                Error::ThrottlingException(inner)
920            }
921            crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError::ValidationException(inner) => {
922                Error::ValidationException(inner)
923            }
924            crate::operation::get_payment_instrument_balance::GetPaymentInstrumentBalanceError::Unhandled(inner) => Error::Unhandled(inner),
925        }
926    }
927}
928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_session::GetPaymentSessionError, R>> for Error
929where
930    R: Send + Sync + std::fmt::Debug + 'static,
931{
932    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_session::GetPaymentSessionError, R>) -> Self {
933        match err {
934            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
935            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
936                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
937                source: err.into(),
938            }),
939        }
940    }
941}
942impl From<crate::operation::get_payment_session::GetPaymentSessionError> for Error {
943    fn from(err: crate::operation::get_payment_session::GetPaymentSessionError) -> Self {
944        match err {
945            crate::operation::get_payment_session::GetPaymentSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
946            crate::operation::get_payment_session::GetPaymentSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
947            crate::operation::get_payment_session::GetPaymentSessionError::ResourceNotFoundException(inner) => {
948                Error::ResourceNotFoundException(inner)
949            }
950            crate::operation::get_payment_session::GetPaymentSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
951            crate::operation::get_payment_session::GetPaymentSessionError::ValidationException(inner) => Error::ValidationException(inner),
952            crate::operation::get_payment_session::GetPaymentSessionError::Unhandled(inner) => Error::Unhandled(inner),
953        }
954    }
955}
956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recommendation::GetRecommendationError, R>> for Error
957where
958    R: Send + Sync + std::fmt::Debug + 'static,
959{
960    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recommendation::GetRecommendationError, R>) -> Self {
961        match err {
962            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
963            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
964                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
965                source: err.into(),
966            }),
967        }
968    }
969}
970impl From<crate::operation::get_recommendation::GetRecommendationError> for Error {
971    fn from(err: crate::operation::get_recommendation::GetRecommendationError) -> Self {
972        match err {
973            crate::operation::get_recommendation::GetRecommendationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
974            crate::operation::get_recommendation::GetRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
975            crate::operation::get_recommendation::GetRecommendationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
976            crate::operation::get_recommendation::GetRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
977            crate::operation::get_recommendation::GetRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
978            crate::operation::get_recommendation::GetRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
979        }
980    }
981}
982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_api_key::GetResourceApiKeyError, R>> for Error
983where
984    R: Send + Sync + std::fmt::Debug + 'static,
985{
986    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_api_key::GetResourceApiKeyError, R>) -> Self {
987        match err {
988            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
989            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
990                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
991                source: err.into(),
992            }),
993        }
994    }
995}
996impl From<crate::operation::get_resource_api_key::GetResourceApiKeyError> for Error {
997    fn from(err: crate::operation::get_resource_api_key::GetResourceApiKeyError) -> Self {
998        match err {
999            crate::operation::get_resource_api_key::GetResourceApiKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1000            crate::operation::get_resource_api_key::GetResourceApiKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
1001            crate::operation::get_resource_api_key::GetResourceApiKeyError::ResourceNotFoundException(inner) => {
1002                Error::ResourceNotFoundException(inner)
1003            }
1004            crate::operation::get_resource_api_key::GetResourceApiKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1005            crate::operation::get_resource_api_key::GetResourceApiKeyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1006            crate::operation::get_resource_api_key::GetResourceApiKeyError::ValidationException(inner) => Error::ValidationException(inner),
1007            crate::operation::get_resource_api_key::GetResourceApiKeyError::Unhandled(inner) => Error::Unhandled(inner),
1008        }
1009    }
1010}
1011impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError, R>>
1012    for Error
1013where
1014    R: Send + Sync + std::fmt::Debug + 'static,
1015{
1016    fn from(
1017        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError, R>,
1018    ) -> Self {
1019        match err {
1020            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1021            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1022                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1023                source: err.into(),
1024            }),
1025        }
1026    }
1027}
1028impl From<crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError> for Error {
1029    fn from(err: crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError) -> Self {
1030        match err {
1031            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::AccessDeniedException(inner) => {
1032                Error::AccessDeniedException(inner)
1033            }
1034            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::InternalServerException(inner) => {
1035                Error::InternalServerException(inner)
1036            }
1037            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::ResourceNotFoundException(inner) => {
1038                Error::ResourceNotFoundException(inner)
1039            }
1040            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1041            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::UnauthorizedException(inner) => {
1042                Error::UnauthorizedException(inner)
1043            }
1044            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::ValidationException(inner) => Error::ValidationException(inner),
1045            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::Unhandled(inner) => Error::Unhandled(inner),
1046        }
1047    }
1048}
1049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_payment_token::GetResourcePaymentTokenError, R>>
1050    for Error
1051where
1052    R: Send + Sync + std::fmt::Debug + 'static,
1053{
1054    fn from(
1055        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_payment_token::GetResourcePaymentTokenError, R>,
1056    ) -> Self {
1057        match err {
1058            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1059            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1060                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1061                source: err.into(),
1062            }),
1063        }
1064    }
1065}
1066impl From<crate::operation::get_resource_payment_token::GetResourcePaymentTokenError> for Error {
1067    fn from(err: crate::operation::get_resource_payment_token::GetResourcePaymentTokenError) -> Self {
1068        match err {
1069            crate::operation::get_resource_payment_token::GetResourcePaymentTokenError::AccessDeniedException(inner) => {
1070                Error::AccessDeniedException(inner)
1071            }
1072            crate::operation::get_resource_payment_token::GetResourcePaymentTokenError::InternalServerException(inner) => {
1073                Error::InternalServerException(inner)
1074            }
1075            crate::operation::get_resource_payment_token::GetResourcePaymentTokenError::ResourceNotFoundException(inner) => {
1076                Error::ResourceNotFoundException(inner)
1077            }
1078            crate::operation::get_resource_payment_token::GetResourcePaymentTokenError::ThrottlingException(inner) => {
1079                Error::ThrottlingException(inner)
1080            }
1081            crate::operation::get_resource_payment_token::GetResourcePaymentTokenError::UnauthorizedException(inner) => {
1082                Error::UnauthorizedException(inner)
1083            }
1084            crate::operation::get_resource_payment_token::GetResourcePaymentTokenError::ValidationException(inner) => {
1085                Error::ValidationException(inner)
1086            }
1087            crate::operation::get_resource_payment_token::GetResourcePaymentTokenError::Unhandled(inner) => Error::Unhandled(inner),
1088        }
1089    }
1090}
1091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_access_token::GetWorkloadAccessTokenError, R>>
1092    for Error
1093where
1094    R: Send + Sync + std::fmt::Debug + 'static,
1095{
1096    fn from(
1097        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_access_token::GetWorkloadAccessTokenError, R>,
1098    ) -> Self {
1099        match err {
1100            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1101            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1102                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1103                source: err.into(),
1104            }),
1105        }
1106    }
1107}
1108impl From<crate::operation::get_workload_access_token::GetWorkloadAccessTokenError> for Error {
1109    fn from(err: crate::operation::get_workload_access_token::GetWorkloadAccessTokenError) -> Self {
1110        match err {
1111            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::AccessDeniedException(inner) => {
1112                Error::AccessDeniedException(inner)
1113            }
1114            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::InternalServerException(inner) => {
1115                Error::InternalServerException(inner)
1116            }
1117            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::ResourceNotFoundException(inner) => {
1118                Error::ResourceNotFoundException(inner)
1119            }
1120            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1121            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::UnauthorizedException(inner) => {
1122                Error::UnauthorizedException(inner)
1123            }
1124            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
1125            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
1126        }
1127    }
1128}
1129impl<R>
1130    From<
1131        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError, R>,
1132    > for Error
1133where
1134    R: Send + Sync + std::fmt::Debug + 'static,
1135{
1136    fn from(
1137        err: ::aws_smithy_runtime_api::client::result::SdkError<
1138            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError,
1139            R,
1140        >,
1141    ) -> Self {
1142        match err {
1143            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1144            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1145                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1146                source: err.into(),
1147            }),
1148        }
1149    }
1150}
1151impl From<crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError> for Error {
1152    fn from(err: crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError) -> Self {
1153        match err {
1154            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::AccessDeniedException(inner) => {
1155                Error::AccessDeniedException(inner)
1156            }
1157            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::InternalServerException(inner) => {
1158                Error::InternalServerException(inner)
1159            }
1160            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::ResourceNotFoundException(inner) => {
1161                Error::ResourceNotFoundException(inner)
1162            }
1163            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::ThrottlingException(inner) => {
1164                Error::ThrottlingException(inner)
1165            }
1166            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::UnauthorizedException(inner) => {
1167                Error::UnauthorizedException(inner)
1168            }
1169            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::ValidationException(inner) => {
1170                Error::ValidationException(inner)
1171            }
1172            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::Unhandled(inner) => Error::Unhandled(inner),
1173        }
1174    }
1175}
1176impl<R>
1177    From<
1178        ::aws_smithy_runtime_api::client::result::SdkError<
1179            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError,
1180            R,
1181        >,
1182    > for Error
1183where
1184    R: Send + Sync + std::fmt::Debug + 'static,
1185{
1186    fn from(
1187        err: ::aws_smithy_runtime_api::client::result::SdkError<
1188            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError,
1189            R,
1190        >,
1191    ) -> Self {
1192        match err {
1193            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1194            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1195                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1196                source: err.into(),
1197            }),
1198        }
1199    }
1200}
1201impl From<crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError> for Error {
1202    fn from(err: crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError) -> Self {
1203        match err {
1204            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::AccessDeniedException(inner) => {
1205                Error::AccessDeniedException(inner)
1206            }
1207            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::InternalServerException(inner) => {
1208                Error::InternalServerException(inner)
1209            }
1210            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::ResourceNotFoundException(inner) => {
1211                Error::ResourceNotFoundException(inner)
1212            }
1213            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::ThrottlingException(inner) => {
1214                Error::ThrottlingException(inner)
1215            }
1216            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::UnauthorizedException(inner) => {
1217                Error::UnauthorizedException(inner)
1218            }
1219            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::ValidationException(inner) => {
1220                Error::ValidationException(inner)
1221            }
1222            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::Unhandled(inner) => {
1223                Error::Unhandled(inner)
1224            }
1225        }
1226    }
1227}
1228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError, R>> for Error
1229where
1230    R: Send + Sync + std::fmt::Debug + 'static,
1231{
1232    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError, R>) -> Self {
1233        match err {
1234            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1235            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1236                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1237                source: err.into(),
1238            }),
1239        }
1240    }
1241}
1242impl From<crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError> for Error {
1243    fn from(err: crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError) -> Self {
1244        match err {
1245            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1246            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::InternalServerException(inner) => Error::InternalServerException(inner),
1247            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ResourceNotFoundException(inner) => {
1248                Error::ResourceNotFoundException(inner)
1249            }
1250            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::RetryableConflictException(inner) => {
1251                Error::RetryableConflictException(inner)
1252            }
1253            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::RuntimeClientError(inner) => Error::RuntimeClientError(inner),
1254            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ServiceQuotaExceededException(inner) => {
1255                Error::ServiceQuotaExceededException(inner)
1256            }
1257            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1258            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ValidationException(inner) => Error::ValidationException(inner),
1259            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::Unhandled(inner) => Error::Unhandled(inner),
1260        }
1261    }
1262}
1263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError, R>>
1264    for Error
1265where
1266    R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268    fn from(
1269        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError, R>,
1270    ) -> Self {
1271        match err {
1272            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1273            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1274                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1275                source: err.into(),
1276            }),
1277        }
1278    }
1279}
1280impl From<crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError> for Error {
1281    fn from(err: crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError) -> Self {
1282        match err {
1283            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::AccessDeniedException(inner) => {
1284                Error::AccessDeniedException(inner)
1285            }
1286            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::InternalServerException(inner) => {
1287                Error::InternalServerException(inner)
1288            }
1289            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::ResourceNotFoundException(inner) => {
1290                Error::ResourceNotFoundException(inner)
1291            }
1292            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::RetryableConflictException(inner) => {
1293                Error::RetryableConflictException(inner)
1294            }
1295            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::RuntimeClientError(inner) => {
1296                Error::RuntimeClientError(inner)
1297            }
1298            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::ServiceQuotaExceededException(inner) => {
1299                Error::ServiceQuotaExceededException(inner)
1300            }
1301            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::ThrottlingException(inner) => {
1302                Error::ThrottlingException(inner)
1303            }
1304            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::ValidationException(inner) => {
1305                Error::ValidationException(inner)
1306            }
1307            crate::operation::invoke_agent_runtime_command::InvokeAgentRuntimeCommandError::Unhandled(inner) => Error::Unhandled(inner),
1308        }
1309    }
1310}
1311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_browser::InvokeBrowserError, R>> for Error
1312where
1313    R: Send + Sync + std::fmt::Debug + 'static,
1314{
1315    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_browser::InvokeBrowserError, R>) -> Self {
1316        match err {
1317            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1318            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1319                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1320                source: err.into(),
1321            }),
1322        }
1323    }
1324}
1325impl From<crate::operation::invoke_browser::InvokeBrowserError> for Error {
1326    fn from(err: crate::operation::invoke_browser::InvokeBrowserError) -> Self {
1327        match err {
1328            crate::operation::invoke_browser::InvokeBrowserError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1329            crate::operation::invoke_browser::InvokeBrowserError::InternalServerException(inner) => Error::InternalServerException(inner),
1330            crate::operation::invoke_browser::InvokeBrowserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1331            crate::operation::invoke_browser::InvokeBrowserError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1332            crate::operation::invoke_browser::InvokeBrowserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1333            crate::operation::invoke_browser::InvokeBrowserError::ValidationException(inner) => Error::ValidationException(inner),
1334            crate::operation::invoke_browser::InvokeBrowserError::Unhandled(inner) => Error::Unhandled(inner),
1335        }
1336    }
1337}
1338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError, R>> for Error
1339where
1340    R: Send + Sync + std::fmt::Debug + 'static,
1341{
1342    fn from(
1343        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError, R>,
1344    ) -> Self {
1345        match err {
1346            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1347            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1348                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1349                source: err.into(),
1350            }),
1351        }
1352    }
1353}
1354impl From<crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError> for Error {
1355    fn from(err: crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError) -> Self {
1356        match err {
1357            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::AccessDeniedException(inner) => {
1358                Error::AccessDeniedException(inner)
1359            }
1360            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ConflictException(inner) => Error::ConflictException(inner),
1361            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::InternalServerException(inner) => {
1362                Error::InternalServerException(inner)
1363            }
1364            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ResourceNotFoundException(inner) => {
1365                Error::ResourceNotFoundException(inner)
1366            }
1367            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ServiceQuotaExceededException(inner) => {
1368                Error::ServiceQuotaExceededException(inner)
1369            }
1370            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1371            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ValidationException(inner) => Error::ValidationException(inner),
1372            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::Unhandled(inner) => Error::Unhandled(inner),
1373        }
1374    }
1375}
1376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_harness::InvokeHarnessError, R>> for Error
1377where
1378    R: Send + Sync + std::fmt::Debug + 'static,
1379{
1380    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_harness::InvokeHarnessError, R>) -> Self {
1381        match err {
1382            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1383            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1384                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1385                source: err.into(),
1386            }),
1387        }
1388    }
1389}
1390impl From<crate::operation::invoke_harness::InvokeHarnessError> for Error {
1391    fn from(err: crate::operation::invoke_harness::InvokeHarnessError) -> Self {
1392        match err {
1393            crate::operation::invoke_harness::InvokeHarnessError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1394            crate::operation::invoke_harness::InvokeHarnessError::InternalServerException(inner) => Error::InternalServerException(inner),
1395            crate::operation::invoke_harness::InvokeHarnessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1396            crate::operation::invoke_harness::InvokeHarnessError::RuntimeClientError(inner) => Error::RuntimeClientError(inner),
1397            crate::operation::invoke_harness::InvokeHarnessError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1398            crate::operation::invoke_harness::InvokeHarnessError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1399            crate::operation::invoke_harness::InvokeHarnessError::ValidationException(inner) => Error::ValidationException(inner),
1400            crate::operation::invoke_harness::InvokeHarnessError::Unhandled(inner) => Error::Unhandled(inner),
1401        }
1402    }
1403}
1404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ab_tests::ListABTestsError, R>> for Error
1405where
1406    R: Send + Sync + std::fmt::Debug + 'static,
1407{
1408    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ab_tests::ListABTestsError, R>) -> Self {
1409        match err {
1410            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413                source: err.into(),
1414            }),
1415        }
1416    }
1417}
1418impl From<crate::operation::list_ab_tests::ListABTestsError> for Error {
1419    fn from(err: crate::operation::list_ab_tests::ListABTestsError) -> Self {
1420        match err {
1421            crate::operation::list_ab_tests::ListABTestsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1422            crate::operation::list_ab_tests::ListABTestsError::InternalServerException(inner) => Error::InternalServerException(inner),
1423            crate::operation::list_ab_tests::ListABTestsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1424            crate::operation::list_ab_tests::ListABTestsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1425            crate::operation::list_ab_tests::ListABTestsError::ValidationException(inner) => Error::ValidationException(inner),
1426            crate::operation::list_ab_tests::ListABTestsError::Unhandled(inner) => Error::Unhandled(inner),
1427        }
1428    }
1429}
1430impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actors::ListActorsError, R>> for Error
1431where
1432    R: Send + Sync + std::fmt::Debug + 'static,
1433{
1434    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actors::ListActorsError, R>) -> Self {
1435        match err {
1436            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1437            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1438                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1439                source: err.into(),
1440            }),
1441        }
1442    }
1443}
1444impl From<crate::operation::list_actors::ListActorsError> for Error {
1445    fn from(err: crate::operation::list_actors::ListActorsError) -> Self {
1446        match err {
1447            crate::operation::list_actors::ListActorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1448            crate::operation::list_actors::ListActorsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1449            crate::operation::list_actors::ListActorsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1450            crate::operation::list_actors::ListActorsError::ServiceException(inner) => Error::ServiceException(inner),
1451            crate::operation::list_actors::ListActorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1452            crate::operation::list_actors::ListActorsError::ThrottledException(inner) => Error::ThrottledException(inner),
1453            crate::operation::list_actors::ListActorsError::ValidationException(inner) => Error::ValidationException(inner),
1454            crate::operation::list_actors::ListActorsError::Unhandled(inner) => Error::Unhandled(inner),
1455        }
1456    }
1457}
1458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_batch_evaluations::ListBatchEvaluationsError, R>> for Error
1459where
1460    R: Send + Sync + std::fmt::Debug + 'static,
1461{
1462    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_batch_evaluations::ListBatchEvaluationsError, R>) -> Self {
1463        match err {
1464            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1465            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1466                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1467                source: err.into(),
1468            }),
1469        }
1470    }
1471}
1472impl From<crate::operation::list_batch_evaluations::ListBatchEvaluationsError> for Error {
1473    fn from(err: crate::operation::list_batch_evaluations::ListBatchEvaluationsError) -> Self {
1474        match err {
1475            crate::operation::list_batch_evaluations::ListBatchEvaluationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1476            crate::operation::list_batch_evaluations::ListBatchEvaluationsError::InternalServerException(inner) => {
1477                Error::InternalServerException(inner)
1478            }
1479            crate::operation::list_batch_evaluations::ListBatchEvaluationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1480            crate::operation::list_batch_evaluations::ListBatchEvaluationsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1481            crate::operation::list_batch_evaluations::ListBatchEvaluationsError::ValidationException(inner) => Error::ValidationException(inner),
1482            crate::operation::list_batch_evaluations::ListBatchEvaluationsError::Unhandled(inner) => Error::Unhandled(inner),
1483        }
1484    }
1485}
1486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_sessions::ListBrowserSessionsError, R>> for Error
1487where
1488    R: Send + Sync + std::fmt::Debug + 'static,
1489{
1490    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_sessions::ListBrowserSessionsError, R>) -> Self {
1491        match err {
1492            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1493            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1494                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1495                source: err.into(),
1496            }),
1497        }
1498    }
1499}
1500impl From<crate::operation::list_browser_sessions::ListBrowserSessionsError> for Error {
1501    fn from(err: crate::operation::list_browser_sessions::ListBrowserSessionsError) -> Self {
1502        match err {
1503            crate::operation::list_browser_sessions::ListBrowserSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1504            crate::operation::list_browser_sessions::ListBrowserSessionsError::InternalServerException(inner) => {
1505                Error::InternalServerException(inner)
1506            }
1507            crate::operation::list_browser_sessions::ListBrowserSessionsError::ResourceNotFoundException(inner) => {
1508                Error::ResourceNotFoundException(inner)
1509            }
1510            crate::operation::list_browser_sessions::ListBrowserSessionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1511            crate::operation::list_browser_sessions::ListBrowserSessionsError::ValidationException(inner) => Error::ValidationException(inner),
1512            crate::operation::list_browser_sessions::ListBrowserSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1513        }
1514    }
1515}
1516impl<R>
1517    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError, R>>
1518    for Error
1519where
1520    R: Send + Sync + std::fmt::Debug + 'static,
1521{
1522    fn from(
1523        err: ::aws_smithy_runtime_api::client::result::SdkError<
1524            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError,
1525            R,
1526        >,
1527    ) -> Self {
1528        match err {
1529            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1530            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1531                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1532                source: err.into(),
1533            }),
1534        }
1535    }
1536}
1537impl From<crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError> for Error {
1538    fn from(err: crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError) -> Self {
1539        match err {
1540            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::AccessDeniedException(inner) => {
1541                Error::AccessDeniedException(inner)
1542            }
1543            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::InternalServerException(inner) => {
1544                Error::InternalServerException(inner)
1545            }
1546            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::ResourceNotFoundException(inner) => {
1547                Error::ResourceNotFoundException(inner)
1548            }
1549            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::ThrottlingException(inner) => {
1550                Error::ThrottlingException(inner)
1551            }
1552            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::ValidationException(inner) => {
1553                Error::ValidationException(inner)
1554            }
1555            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1556        }
1557    }
1558}
1559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_events::ListEventsError, R>> for Error
1560where
1561    R: Send + Sync + std::fmt::Debug + 'static,
1562{
1563    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_events::ListEventsError, R>) -> Self {
1564        match err {
1565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1568                source: err.into(),
1569            }),
1570        }
1571    }
1572}
1573impl From<crate::operation::list_events::ListEventsError> for Error {
1574    fn from(err: crate::operation::list_events::ListEventsError) -> Self {
1575        match err {
1576            crate::operation::list_events::ListEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1577            crate::operation::list_events::ListEventsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1578            crate::operation::list_events::ListEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1579            crate::operation::list_events::ListEventsError::ServiceException(inner) => Error::ServiceException(inner),
1580            crate::operation::list_events::ListEventsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1581            crate::operation::list_events::ListEventsError::ThrottledException(inner) => Error::ThrottledException(inner),
1582            crate::operation::list_events::ListEventsError::ValidationException(inner) => Error::ValidationException(inner),
1583            crate::operation::list_events::ListEventsError::Unhandled(inner) => Error::Unhandled(inner),
1584        }
1585    }
1586}
1587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError, R>>
1588    for Error
1589where
1590    R: Send + Sync + std::fmt::Debug + 'static,
1591{
1592    fn from(
1593        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError, R>,
1594    ) -> Self {
1595        match err {
1596            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1597            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1598                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1599                source: err.into(),
1600            }),
1601        }
1602    }
1603}
1604impl From<crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError> for Error {
1605    fn from(err: crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError) -> Self {
1606        match err {
1607            crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError::AccessDeniedException(inner) => {
1608                Error::AccessDeniedException(inner)
1609            }
1610            crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError::ResourceNotFoundException(inner) => {
1611                Error::ResourceNotFoundException(inner)
1612            }
1613            crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError::ServiceException(inner) => Error::ServiceException(inner),
1614            crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError::ServiceQuotaExceededException(inner) => {
1615                Error::ServiceQuotaExceededException(inner)
1616            }
1617            crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError::ThrottledException(inner) => {
1618                Error::ThrottledException(inner)
1619            }
1620            crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError::ValidationException(inner) => {
1621                Error::ValidationException(inner)
1622            }
1623            crate::operation::list_memory_extraction_jobs::ListMemoryExtractionJobsError::Unhandled(inner) => Error::Unhandled(inner),
1624        }
1625    }
1626}
1627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memory_records::ListMemoryRecordsError, R>> for Error
1628where
1629    R: Send + Sync + std::fmt::Debug + 'static,
1630{
1631    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memory_records::ListMemoryRecordsError, R>) -> Self {
1632        match err {
1633            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1634            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1635                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1636                source: err.into(),
1637            }),
1638        }
1639    }
1640}
1641impl From<crate::operation::list_memory_records::ListMemoryRecordsError> for Error {
1642    fn from(err: crate::operation::list_memory_records::ListMemoryRecordsError) -> Self {
1643        match err {
1644            crate::operation::list_memory_records::ListMemoryRecordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1645            crate::operation::list_memory_records::ListMemoryRecordsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1646            crate::operation::list_memory_records::ListMemoryRecordsError::ResourceNotFoundException(inner) => {
1647                Error::ResourceNotFoundException(inner)
1648            }
1649            crate::operation::list_memory_records::ListMemoryRecordsError::ServiceException(inner) => Error::ServiceException(inner),
1650            crate::operation::list_memory_records::ListMemoryRecordsError::ServiceQuotaExceededException(inner) => {
1651                Error::ServiceQuotaExceededException(inner)
1652            }
1653            crate::operation::list_memory_records::ListMemoryRecordsError::ThrottledException(inner) => Error::ThrottledException(inner),
1654            crate::operation::list_memory_records::ListMemoryRecordsError::ValidationException(inner) => Error::ValidationException(inner),
1655            crate::operation::list_memory_records::ListMemoryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
1656        }
1657    }
1658}
1659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_instruments::ListPaymentInstrumentsError, R>> for Error
1660where
1661    R: Send + Sync + std::fmt::Debug + 'static,
1662{
1663    fn from(
1664        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_instruments::ListPaymentInstrumentsError, R>,
1665    ) -> Self {
1666        match err {
1667            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1668            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1669                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1670                source: err.into(),
1671            }),
1672        }
1673    }
1674}
1675impl From<crate::operation::list_payment_instruments::ListPaymentInstrumentsError> for Error {
1676    fn from(err: crate::operation::list_payment_instruments::ListPaymentInstrumentsError) -> Self {
1677        match err {
1678            crate::operation::list_payment_instruments::ListPaymentInstrumentsError::AccessDeniedException(inner) => {
1679                Error::AccessDeniedException(inner)
1680            }
1681            crate::operation::list_payment_instruments::ListPaymentInstrumentsError::InternalServerException(inner) => {
1682                Error::InternalServerException(inner)
1683            }
1684            crate::operation::list_payment_instruments::ListPaymentInstrumentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1685            crate::operation::list_payment_instruments::ListPaymentInstrumentsError::ValidationException(inner) => Error::ValidationException(inner),
1686            crate::operation::list_payment_instruments::ListPaymentInstrumentsError::Unhandled(inner) => Error::Unhandled(inner),
1687        }
1688    }
1689}
1690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_sessions::ListPaymentSessionsError, R>> for Error
1691where
1692    R: Send + Sync + std::fmt::Debug + 'static,
1693{
1694    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_sessions::ListPaymentSessionsError, R>) -> 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::list_payment_sessions::ListPaymentSessionsError> for Error {
1705    fn from(err: crate::operation::list_payment_sessions::ListPaymentSessionsError) -> Self {
1706        match err {
1707            crate::operation::list_payment_sessions::ListPaymentSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1708            crate::operation::list_payment_sessions::ListPaymentSessionsError::InternalServerException(inner) => {
1709                Error::InternalServerException(inner)
1710            }
1711            crate::operation::list_payment_sessions::ListPaymentSessionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1712            crate::operation::list_payment_sessions::ListPaymentSessionsError::ValidationException(inner) => Error::ValidationException(inner),
1713            crate::operation::list_payment_sessions::ListPaymentSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1714        }
1715    }
1716}
1717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>> for Error
1718where
1719    R: Send + Sync + std::fmt::Debug + 'static,
1720{
1721    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>) -> Self {
1722        match err {
1723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1726                source: err.into(),
1727            }),
1728        }
1729    }
1730}
1731impl From<crate::operation::list_recommendations::ListRecommendationsError> for Error {
1732    fn from(err: crate::operation::list_recommendations::ListRecommendationsError) -> Self {
1733        match err {
1734            crate::operation::list_recommendations::ListRecommendationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1735            crate::operation::list_recommendations::ListRecommendationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1736            crate::operation::list_recommendations::ListRecommendationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1737            crate::operation::list_recommendations::ListRecommendationsError::ValidationException(inner) => Error::ValidationException(inner),
1738            crate::operation::list_recommendations::ListRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
1739        }
1740    }
1741}
1742impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>> for Error
1743where
1744    R: Send + Sync + std::fmt::Debug + 'static,
1745{
1746    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>) -> Self {
1747        match err {
1748            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1749            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1750                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1751                source: err.into(),
1752            }),
1753        }
1754    }
1755}
1756impl From<crate::operation::list_sessions::ListSessionsError> for Error {
1757    fn from(err: crate::operation::list_sessions::ListSessionsError) -> Self {
1758        match err {
1759            crate::operation::list_sessions::ListSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1760            crate::operation::list_sessions::ListSessionsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1761            crate::operation::list_sessions::ListSessionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1762            crate::operation::list_sessions::ListSessionsError::ServiceException(inner) => Error::ServiceException(inner),
1763            crate::operation::list_sessions::ListSessionsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1764            crate::operation::list_sessions::ListSessionsError::ThrottledException(inner) => Error::ThrottledException(inner),
1765            crate::operation::list_sessions::ListSessionsError::ValidationException(inner) => Error::ValidationException(inner),
1766            crate::operation::list_sessions::ListSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1767        }
1768    }
1769}
1770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::process_payment::ProcessPaymentError, R>> for Error
1771where
1772    R: Send + Sync + std::fmt::Debug + 'static,
1773{
1774    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::process_payment::ProcessPaymentError, R>) -> Self {
1775        match err {
1776            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1777            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1778                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1779                source: err.into(),
1780            }),
1781        }
1782    }
1783}
1784impl From<crate::operation::process_payment::ProcessPaymentError> for Error {
1785    fn from(err: crate::operation::process_payment::ProcessPaymentError) -> Self {
1786        match err {
1787            crate::operation::process_payment::ProcessPaymentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1788            crate::operation::process_payment::ProcessPaymentError::ConflictException(inner) => Error::ConflictException(inner),
1789            crate::operation::process_payment::ProcessPaymentError::InternalServerException(inner) => Error::InternalServerException(inner),
1790            crate::operation::process_payment::ProcessPaymentError::ServiceQuotaExceededException(inner) => {
1791                Error::ServiceQuotaExceededException(inner)
1792            }
1793            crate::operation::process_payment::ProcessPaymentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1794            crate::operation::process_payment::ProcessPaymentError::ValidationException(inner) => Error::ValidationException(inner),
1795            crate::operation::process_payment::ProcessPaymentError::Unhandled(inner) => Error::Unhandled(inner),
1796        }
1797    }
1798}
1799impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError, R>> for Error
1800where
1801    R: Send + Sync + std::fmt::Debug + 'static,
1802{
1803    fn from(
1804        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError, R>,
1805    ) -> Self {
1806        match err {
1807            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1808            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1809                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1810                source: err.into(),
1811            }),
1812        }
1813    }
1814}
1815impl From<crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError> for Error {
1816    fn from(err: crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError) -> Self {
1817        match err {
1818            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::AccessDeniedException(inner) => {
1819                Error::AccessDeniedException(inner)
1820            }
1821            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::InvalidInputException(inner) => {
1822                Error::InvalidInputException(inner)
1823            }
1824            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ResourceNotFoundException(inner) => {
1825                Error::ResourceNotFoundException(inner)
1826            }
1827            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ServiceException(inner) => Error::ServiceException(inner),
1828            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ServiceQuotaExceededException(inner) => {
1829                Error::ServiceQuotaExceededException(inner)
1830            }
1831            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ThrottledException(inner) => Error::ThrottledException(inner),
1832            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ValidationException(inner) => Error::ValidationException(inner),
1833            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
1834        }
1835    }
1836}
1837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError, R>>
1838    for Error
1839where
1840    R: Send + Sync + std::fmt::Debug + 'static,
1841{
1842    fn from(
1843        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError, R>,
1844    ) -> Self {
1845        match err {
1846            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1847            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1848                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1849                source: err.into(),
1850            }),
1851        }
1852    }
1853}
1854impl From<crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError> for Error {
1855    fn from(err: crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError) -> Self {
1856        match err {
1857            crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError::AccessDeniedException(inner) => {
1858                Error::AccessDeniedException(inner)
1859            }
1860            crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError::ConflictException(inner) => {
1861                Error::ConflictException(inner)
1862            }
1863            crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError::InternalServerException(inner) => {
1864                Error::InternalServerException(inner)
1865            }
1866            crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError::ResourceNotFoundException(inner) => {
1867                Error::ResourceNotFoundException(inner)
1868            }
1869            crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError::ThrottlingException(inner) => {
1870                Error::ThrottlingException(inner)
1871            }
1872            crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError::ValidationException(inner) => {
1873                Error::ValidationException(inner)
1874            }
1875            crate::operation::save_browser_session_profile::SaveBrowserSessionProfileError::Unhandled(inner) => Error::Unhandled(inner),
1876        }
1877    }
1878}
1879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_registry_records::SearchRegistryRecordsError, R>> for Error
1880where
1881    R: Send + Sync + std::fmt::Debug + 'static,
1882{
1883    fn from(
1884        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_registry_records::SearchRegistryRecordsError, R>,
1885    ) -> Self {
1886        match err {
1887            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1888            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1889                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1890                source: err.into(),
1891            }),
1892        }
1893    }
1894}
1895impl From<crate::operation::search_registry_records::SearchRegistryRecordsError> for Error {
1896    fn from(err: crate::operation::search_registry_records::SearchRegistryRecordsError) -> Self {
1897        match err {
1898            crate::operation::search_registry_records::SearchRegistryRecordsError::AccessDeniedException(inner) => {
1899                Error::AccessDeniedException(inner)
1900            }
1901            crate::operation::search_registry_records::SearchRegistryRecordsError::InternalServerException(inner) => {
1902                Error::InternalServerException(inner)
1903            }
1904            crate::operation::search_registry_records::SearchRegistryRecordsError::ResourceNotFoundException(inner) => {
1905                Error::ResourceNotFoundException(inner)
1906            }
1907            crate::operation::search_registry_records::SearchRegistryRecordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1908            crate::operation::search_registry_records::SearchRegistryRecordsError::UnauthorizedException(inner) => {
1909                Error::UnauthorizedException(inner)
1910            }
1911            crate::operation::search_registry_records::SearchRegistryRecordsError::ValidationException(inner) => Error::ValidationException(inner),
1912            crate::operation::search_registry_records::SearchRegistryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
1913        }
1914    }
1915}
1916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_batch_evaluation::StartBatchEvaluationError, R>> for Error
1917where
1918    R: Send + Sync + std::fmt::Debug + 'static,
1919{
1920    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_batch_evaluation::StartBatchEvaluationError, R>) -> Self {
1921        match err {
1922            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1923            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1924                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1925                source: err.into(),
1926            }),
1927        }
1928    }
1929}
1930impl From<crate::operation::start_batch_evaluation::StartBatchEvaluationError> for Error {
1931    fn from(err: crate::operation::start_batch_evaluation::StartBatchEvaluationError) -> Self {
1932        match err {
1933            crate::operation::start_batch_evaluation::StartBatchEvaluationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1934            crate::operation::start_batch_evaluation::StartBatchEvaluationError::ConflictException(inner) => Error::ConflictException(inner),
1935            crate::operation::start_batch_evaluation::StartBatchEvaluationError::InternalServerException(inner) => {
1936                Error::InternalServerException(inner)
1937            }
1938            crate::operation::start_batch_evaluation::StartBatchEvaluationError::ServiceQuotaExceededException(inner) => {
1939                Error::ServiceQuotaExceededException(inner)
1940            }
1941            crate::operation::start_batch_evaluation::StartBatchEvaluationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1942            crate::operation::start_batch_evaluation::StartBatchEvaluationError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1943            crate::operation::start_batch_evaluation::StartBatchEvaluationError::ValidationException(inner) => Error::ValidationException(inner),
1944            crate::operation::start_batch_evaluation::StartBatchEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
1945        }
1946    }
1947}
1948impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_browser_session::StartBrowserSessionError, R>> for Error
1949where
1950    R: Send + Sync + std::fmt::Debug + 'static,
1951{
1952    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_browser_session::StartBrowserSessionError, R>) -> Self {
1953        match err {
1954            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1955            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1956                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1957                source: err.into(),
1958            }),
1959        }
1960    }
1961}
1962impl From<crate::operation::start_browser_session::StartBrowserSessionError> for Error {
1963    fn from(err: crate::operation::start_browser_session::StartBrowserSessionError) -> Self {
1964        match err {
1965            crate::operation::start_browser_session::StartBrowserSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1966            crate::operation::start_browser_session::StartBrowserSessionError::ConflictException(inner) => Error::ConflictException(inner),
1967            crate::operation::start_browser_session::StartBrowserSessionError::InternalServerException(inner) => {
1968                Error::InternalServerException(inner)
1969            }
1970            crate::operation::start_browser_session::StartBrowserSessionError::ResourceNotFoundException(inner) => {
1971                Error::ResourceNotFoundException(inner)
1972            }
1973            crate::operation::start_browser_session::StartBrowserSessionError::ServiceQuotaExceededException(inner) => {
1974                Error::ServiceQuotaExceededException(inner)
1975            }
1976            crate::operation::start_browser_session::StartBrowserSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1977            crate::operation::start_browser_session::StartBrowserSessionError::ValidationException(inner) => Error::ValidationException(inner),
1978            crate::operation::start_browser_session::StartBrowserSessionError::Unhandled(inner) => Error::Unhandled(inner),
1979        }
1980    }
1981}
1982impl<R>
1983    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError, R>>
1984    for Error
1985where
1986    R: Send + Sync + std::fmt::Debug + 'static,
1987{
1988    fn from(
1989        err: ::aws_smithy_runtime_api::client::result::SdkError<
1990            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError,
1991            R,
1992        >,
1993    ) -> Self {
1994        match err {
1995            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1996            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1997                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1998                source: err.into(),
1999            }),
2000        }
2001    }
2002}
2003impl From<crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError> for Error {
2004    fn from(err: crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError) -> Self {
2005        match err {
2006            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::AccessDeniedException(inner) => {
2007                Error::AccessDeniedException(inner)
2008            }
2009            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ConflictException(inner) => {
2010                Error::ConflictException(inner)
2011            }
2012            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::InternalServerException(inner) => {
2013                Error::InternalServerException(inner)
2014            }
2015            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ResourceNotFoundException(inner) => {
2016                Error::ResourceNotFoundException(inner)
2017            }
2018            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ServiceQuotaExceededException(inner) => {
2019                Error::ServiceQuotaExceededException(inner)
2020            }
2021            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ThrottlingException(inner) => {
2022                Error::ThrottlingException(inner)
2023            }
2024            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ValidationException(inner) => {
2025                Error::ValidationException(inner)
2026            }
2027            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::Unhandled(inner) => Error::Unhandled(inner),
2028        }
2029    }
2030}
2031impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError, R>>
2032    for Error
2033where
2034    R: Send + Sync + std::fmt::Debug + 'static,
2035{
2036    fn from(
2037        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError, R>,
2038    ) -> Self {
2039        match err {
2040            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2041            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2042                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2043                source: err.into(),
2044            }),
2045        }
2046    }
2047}
2048impl From<crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError> for Error {
2049    fn from(err: crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError) -> Self {
2050        match err {
2051            crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError::AccessDeniedException(inner) => {
2052                Error::AccessDeniedException(inner)
2053            }
2054            crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError::ResourceNotFoundException(inner) => {
2055                Error::ResourceNotFoundException(inner)
2056            }
2057            crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError::ServiceException(inner) => Error::ServiceException(inner),
2058            crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError::ServiceQuotaExceededException(inner) => {
2059                Error::ServiceQuotaExceededException(inner)
2060            }
2061            crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError::ThrottledException(inner) => {
2062                Error::ThrottledException(inner)
2063            }
2064            crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError::ValidationException(inner) => {
2065                Error::ValidationException(inner)
2066            }
2067            crate::operation::start_memory_extraction_job::StartMemoryExtractionJobError::Unhandled(inner) => Error::Unhandled(inner),
2068        }
2069    }
2070}
2071impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_recommendation::StartRecommendationError, R>> for Error
2072where
2073    R: Send + Sync + std::fmt::Debug + 'static,
2074{
2075    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_recommendation::StartRecommendationError, R>) -> Self {
2076        match err {
2077            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2078            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2079                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2080                source: err.into(),
2081            }),
2082        }
2083    }
2084}
2085impl From<crate::operation::start_recommendation::StartRecommendationError> for Error {
2086    fn from(err: crate::operation::start_recommendation::StartRecommendationError) -> Self {
2087        match err {
2088            crate::operation::start_recommendation::StartRecommendationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2089            crate::operation::start_recommendation::StartRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
2090            crate::operation::start_recommendation::StartRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
2091            crate::operation::start_recommendation::StartRecommendationError::ServiceQuotaExceededException(inner) => {
2092                Error::ServiceQuotaExceededException(inner)
2093            }
2094            crate::operation::start_recommendation::StartRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2095            crate::operation::start_recommendation::StartRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
2096            crate::operation::start_recommendation::StartRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
2097        }
2098    }
2099}
2100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_batch_evaluation::StopBatchEvaluationError, R>> for Error
2101where
2102    R: Send + Sync + std::fmt::Debug + 'static,
2103{
2104    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_batch_evaluation::StopBatchEvaluationError, R>) -> Self {
2105        match err {
2106            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2107            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2108                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2109                source: err.into(),
2110            }),
2111        }
2112    }
2113}
2114impl From<crate::operation::stop_batch_evaluation::StopBatchEvaluationError> for Error {
2115    fn from(err: crate::operation::stop_batch_evaluation::StopBatchEvaluationError) -> Self {
2116        match err {
2117            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2118            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::ConflictException(inner) => Error::ConflictException(inner),
2119            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::InternalServerException(inner) => {
2120                Error::InternalServerException(inner)
2121            }
2122            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::ResourceNotFoundException(inner) => {
2123                Error::ResourceNotFoundException(inner)
2124            }
2125            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2126            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2127            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::ValidationException(inner) => Error::ValidationException(inner),
2128            crate::operation::stop_batch_evaluation::StopBatchEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
2129        }
2130    }
2131}
2132impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_browser_session::StopBrowserSessionError, R>> for Error
2133where
2134    R: Send + Sync + std::fmt::Debug + 'static,
2135{
2136    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_browser_session::StopBrowserSessionError, R>) -> Self {
2137        match err {
2138            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2139            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2140                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2141                source: err.into(),
2142            }),
2143        }
2144    }
2145}
2146impl From<crate::operation::stop_browser_session::StopBrowserSessionError> for Error {
2147    fn from(err: crate::operation::stop_browser_session::StopBrowserSessionError) -> Self {
2148        match err {
2149            crate::operation::stop_browser_session::StopBrowserSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2150            crate::operation::stop_browser_session::StopBrowserSessionError::ConflictException(inner) => Error::ConflictException(inner),
2151            crate::operation::stop_browser_session::StopBrowserSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
2152            crate::operation::stop_browser_session::StopBrowserSessionError::ResourceNotFoundException(inner) => {
2153                Error::ResourceNotFoundException(inner)
2154            }
2155            crate::operation::stop_browser_session::StopBrowserSessionError::ServiceQuotaExceededException(inner) => {
2156                Error::ServiceQuotaExceededException(inner)
2157            }
2158            crate::operation::stop_browser_session::StopBrowserSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2159            crate::operation::stop_browser_session::StopBrowserSessionError::ValidationException(inner) => Error::ValidationException(inner),
2160            crate::operation::stop_browser_session::StopBrowserSessionError::Unhandled(inner) => Error::Unhandled(inner),
2161        }
2162    }
2163}
2164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError, R>>
2165    for Error
2166where
2167    R: Send + Sync + std::fmt::Debug + 'static,
2168{
2169    fn from(
2170        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError, R>,
2171    ) -> Self {
2172        match err {
2173            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2174            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2175                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2176                source: err.into(),
2177            }),
2178        }
2179    }
2180}
2181impl From<crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError> for Error {
2182    fn from(err: crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError) -> Self {
2183        match err {
2184            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::AccessDeniedException(inner) => {
2185                Error::AccessDeniedException(inner)
2186            }
2187            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ConflictException(inner) => {
2188                Error::ConflictException(inner)
2189            }
2190            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::InternalServerException(inner) => {
2191                Error::InternalServerException(inner)
2192            }
2193            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ResourceNotFoundException(inner) => {
2194                Error::ResourceNotFoundException(inner)
2195            }
2196            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ServiceQuotaExceededException(inner) => {
2197                Error::ServiceQuotaExceededException(inner)
2198            }
2199            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ThrottlingException(inner) => {
2200                Error::ThrottlingException(inner)
2201            }
2202            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ValidationException(inner) => {
2203                Error::ValidationException(inner)
2204            }
2205            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::Unhandled(inner) => Error::Unhandled(inner),
2206        }
2207    }
2208}
2209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_runtime_session::StopRuntimeSessionError, R>> for Error
2210where
2211    R: Send + Sync + std::fmt::Debug + 'static,
2212{
2213    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_runtime_session::StopRuntimeSessionError, R>) -> Self {
2214        match err {
2215            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2216            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2217                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2218                source: err.into(),
2219            }),
2220        }
2221    }
2222}
2223impl From<crate::operation::stop_runtime_session::StopRuntimeSessionError> for Error {
2224    fn from(err: crate::operation::stop_runtime_session::StopRuntimeSessionError) -> Self {
2225        match err {
2226            crate::operation::stop_runtime_session::StopRuntimeSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2227            crate::operation::stop_runtime_session::StopRuntimeSessionError::ConflictException(inner) => Error::ConflictException(inner),
2228            crate::operation::stop_runtime_session::StopRuntimeSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
2229            crate::operation::stop_runtime_session::StopRuntimeSessionError::ResourceNotFoundException(inner) => {
2230                Error::ResourceNotFoundException(inner)
2231            }
2232            crate::operation::stop_runtime_session::StopRuntimeSessionError::RetryableConflictException(inner) => {
2233                Error::RetryableConflictException(inner)
2234            }
2235            crate::operation::stop_runtime_session::StopRuntimeSessionError::RuntimeClientError(inner) => Error::RuntimeClientError(inner),
2236            crate::operation::stop_runtime_session::StopRuntimeSessionError::ServiceQuotaExceededException(inner) => {
2237                Error::ServiceQuotaExceededException(inner)
2238            }
2239            crate::operation::stop_runtime_session::StopRuntimeSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2240            crate::operation::stop_runtime_session::StopRuntimeSessionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2241            crate::operation::stop_runtime_session::StopRuntimeSessionError::ValidationException(inner) => Error::ValidationException(inner),
2242            crate::operation::stop_runtime_session::StopRuntimeSessionError::Unhandled(inner) => Error::Unhandled(inner),
2243        }
2244    }
2245}
2246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ab_test::UpdateABTestError, R>> for Error
2247where
2248    R: Send + Sync + std::fmt::Debug + 'static,
2249{
2250    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ab_test::UpdateABTestError, R>) -> Self {
2251        match err {
2252            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2253            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2254                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2255                source: err.into(),
2256            }),
2257        }
2258    }
2259}
2260impl From<crate::operation::update_ab_test::UpdateABTestError> for Error {
2261    fn from(err: crate::operation::update_ab_test::UpdateABTestError) -> Self {
2262        match err {
2263            crate::operation::update_ab_test::UpdateABTestError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2264            crate::operation::update_ab_test::UpdateABTestError::ConflictException(inner) => Error::ConflictException(inner),
2265            crate::operation::update_ab_test::UpdateABTestError::InternalServerException(inner) => Error::InternalServerException(inner),
2266            crate::operation::update_ab_test::UpdateABTestError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2267            crate::operation::update_ab_test::UpdateABTestError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2268            crate::operation::update_ab_test::UpdateABTestError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2269            crate::operation::update_ab_test::UpdateABTestError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2270            crate::operation::update_ab_test::UpdateABTestError::ValidationException(inner) => Error::ValidationException(inner),
2271            crate::operation::update_ab_test::UpdateABTestError::Unhandled(inner) => Error::Unhandled(inner),
2272        }
2273    }
2274}
2275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_browser_stream::UpdateBrowserStreamError, R>> for Error
2276where
2277    R: Send + Sync + std::fmt::Debug + 'static,
2278{
2279    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_browser_stream::UpdateBrowserStreamError, R>) -> Self {
2280        match err {
2281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2284                source: err.into(),
2285            }),
2286        }
2287    }
2288}
2289impl From<crate::operation::update_browser_stream::UpdateBrowserStreamError> for Error {
2290    fn from(err: crate::operation::update_browser_stream::UpdateBrowserStreamError) -> Self {
2291        match err {
2292            crate::operation::update_browser_stream::UpdateBrowserStreamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2293            crate::operation::update_browser_stream::UpdateBrowserStreamError::ConflictException(inner) => Error::ConflictException(inner),
2294            crate::operation::update_browser_stream::UpdateBrowserStreamError::InternalServerException(inner) => {
2295                Error::InternalServerException(inner)
2296            }
2297            crate::operation::update_browser_stream::UpdateBrowserStreamError::ResourceNotFoundException(inner) => {
2298                Error::ResourceNotFoundException(inner)
2299            }
2300            crate::operation::update_browser_stream::UpdateBrowserStreamError::ServiceQuotaExceededException(inner) => {
2301                Error::ServiceQuotaExceededException(inner)
2302            }
2303            crate::operation::update_browser_stream::UpdateBrowserStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2304            crate::operation::update_browser_stream::UpdateBrowserStreamError::ValidationException(inner) => Error::ValidationException(inner),
2305            crate::operation::update_browser_stream::UpdateBrowserStreamError::Unhandled(inner) => Error::Unhandled(inner),
2306        }
2307    }
2308}
2309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::InvokeAgentRuntimeCommandStreamOutputError, R>> for Error
2310where
2311    R: Send + Sync + std::fmt::Debug + 'static,
2312{
2313    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::InvokeAgentRuntimeCommandStreamOutputError, R>) -> Self {
2314        match err {
2315            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2316            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2317                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2318                source: err.into(),
2319            }),
2320        }
2321    }
2322}
2323impl From<crate::types::error::InvokeAgentRuntimeCommandStreamOutputError> for Error {
2324    fn from(err: crate::types::error::InvokeAgentRuntimeCommandStreamOutputError) -> Self {
2325        match err {
2326            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2327            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::InternalServerException(inner) => Error::InternalServerException(inner),
2328            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::ResourceNotFoundException(inner) => {
2329                Error::ResourceNotFoundException(inner)
2330            }
2331            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::ServiceQuotaExceededException(inner) => {
2332                Error::ServiceQuotaExceededException(inner)
2333            }
2334            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2335            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::ValidationException(inner) => Error::ValidationException(inner),
2336            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::RuntimeClientError(inner) => Error::RuntimeClientError(inner),
2337            crate::types::error::InvokeAgentRuntimeCommandStreamOutputError::Unhandled(inner) => Error::Unhandled(inner),
2338        }
2339    }
2340}
2341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::CodeInterpreterStreamOutputError, R>> for Error
2342where
2343    R: Send + Sync + std::fmt::Debug + 'static,
2344{
2345    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::CodeInterpreterStreamOutputError, R>) -> Self {
2346        match err {
2347            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2348            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2349                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2350                source: err.into(),
2351            }),
2352        }
2353    }
2354}
2355impl From<crate::types::error::CodeInterpreterStreamOutputError> for Error {
2356    fn from(err: crate::types::error::CodeInterpreterStreamOutputError) -> Self {
2357        match err {
2358            crate::types::error::CodeInterpreterStreamOutputError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2359            crate::types::error::CodeInterpreterStreamOutputError::ConflictException(inner) => Error::ConflictException(inner),
2360            crate::types::error::CodeInterpreterStreamOutputError::InternalServerException(inner) => Error::InternalServerException(inner),
2361            crate::types::error::CodeInterpreterStreamOutputError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2362            crate::types::error::CodeInterpreterStreamOutputError::ServiceQuotaExceededException(inner) => {
2363                Error::ServiceQuotaExceededException(inner)
2364            }
2365            crate::types::error::CodeInterpreterStreamOutputError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2366            crate::types::error::CodeInterpreterStreamOutputError::ValidationException(inner) => Error::ValidationException(inner),
2367            crate::types::error::CodeInterpreterStreamOutputError::Unhandled(inner) => Error::Unhandled(inner),
2368        }
2369    }
2370}
2371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::InvokeHarnessStreamOutputError, R>> for Error
2372where
2373    R: Send + Sync + std::fmt::Debug + 'static,
2374{
2375    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::InvokeHarnessStreamOutputError, R>) -> Self {
2376        match err {
2377            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2378            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2379                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2380                source: err.into(),
2381            }),
2382        }
2383    }
2384}
2385impl From<crate::types::error::InvokeHarnessStreamOutputError> for Error {
2386    fn from(err: crate::types::error::InvokeHarnessStreamOutputError) -> Self {
2387        match err {
2388            crate::types::error::InvokeHarnessStreamOutputError::InternalServerException(inner) => Error::InternalServerException(inner),
2389            crate::types::error::InvokeHarnessStreamOutputError::ValidationException(inner) => Error::ValidationException(inner),
2390            crate::types::error::InvokeHarnessStreamOutputError::RuntimeClientError(inner) => Error::RuntimeClientError(inner),
2391            crate::types::error::InvokeHarnessStreamOutputError::Unhandled(inner) => Error::Unhandled(inner),
2392        }
2393    }
2394}
2395impl ::std::error::Error for Error {
2396    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2397        match self {
2398            Error::AccessDeniedException(inner) => inner.source(),
2399            Error::ConflictException(inner) => inner.source(),
2400            Error::DuplicateIdException(inner) => inner.source(),
2401            Error::InternalServerException(inner) => inner.source(),
2402            Error::InvalidInputException(inner) => inner.source(),
2403            Error::ResourceNotFoundException(inner) => inner.source(),
2404            Error::RetryableConflictException(inner) => inner.source(),
2405            Error::RuntimeClientError(inner) => inner.source(),
2406            Error::ServiceException(inner) => inner.source(),
2407            Error::ServiceQuotaExceededException(inner) => inner.source(),
2408            Error::ThrottledException(inner) => inner.source(),
2409            Error::ThrottlingException(inner) => inner.source(),
2410            Error::UnauthorizedException(inner) => inner.source(),
2411            Error::ValidationException(inner) => inner.source(),
2412            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2413        }
2414    }
2415}
2416impl ::aws_types::request_id::RequestId for Error {
2417    fn request_id(&self) -> Option<&str> {
2418        match self {
2419            Self::AccessDeniedException(e) => e.request_id(),
2420            Self::ConflictException(e) => e.request_id(),
2421            Self::DuplicateIdException(e) => e.request_id(),
2422            Self::InternalServerException(e) => e.request_id(),
2423            Self::InvalidInputException(e) => e.request_id(),
2424            Self::ResourceNotFoundException(e) => e.request_id(),
2425            Self::RetryableConflictException(e) => e.request_id(),
2426            Self::RuntimeClientError(e) => e.request_id(),
2427            Self::ServiceException(e) => e.request_id(),
2428            Self::ServiceQuotaExceededException(e) => e.request_id(),
2429            Self::ThrottledException(e) => e.request_id(),
2430            Self::ThrottlingException(e) => e.request_id(),
2431            Self::UnauthorizedException(e) => e.request_id(),
2432            Self::ValidationException(e) => e.request_id(),
2433            Self::Unhandled(e) => e.meta.request_id(),
2434        }
2435    }
2436}