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>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>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.</p>
13    InvalidInputException(crate::types::error::InvalidInputException),
14    /// <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>
15    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16    /// <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>
17    RuntimeClientError(crate::types::error::RuntimeClientError),
18    /// <p>The service encountered an internal error. Try your request again later.</p>
19    ServiceException(crate::types::error::ServiceException),
20    /// <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>
21    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
22    /// <p>The request was denied due to request throttling. Reduce the frequency of requests and try again.</p>
23    ThrottledException(crate::types::error::ThrottledException),
24    /// <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>
25    ThrottlingException(crate::types::error::ThrottlingException),
26    /// <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
27    UnauthorizedException(crate::types::error::UnauthorizedException),
28    /// <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>
29    ValidationException(crate::types::error::ValidationException),
30    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
31    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
32    variable wildcard pattern and check `.code()`:
33     \
34    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
35     \
36    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
37    Unhandled(crate::error::sealed_unhandled::Unhandled),
38}
39impl ::std::fmt::Display for Error {
40    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41        match self {
42            Error::AccessDeniedException(inner) => inner.fmt(f),
43            Error::ConflictException(inner) => inner.fmt(f),
44            Error::InternalServerException(inner) => inner.fmt(f),
45            Error::InvalidInputException(inner) => inner.fmt(f),
46            Error::ResourceNotFoundException(inner) => inner.fmt(f),
47            Error::RuntimeClientError(inner) => inner.fmt(f),
48            Error::ServiceException(inner) => inner.fmt(f),
49            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
50            Error::ThrottledException(inner) => inner.fmt(f),
51            Error::ThrottlingException(inner) => inner.fmt(f),
52            Error::UnauthorizedException(inner) => inner.fmt(f),
53            Error::ValidationException(inner) => inner.fmt(f),
54            Error::Unhandled(_) => {
55                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
56                    write!(f, "unhandled error ({code})")
57                } else {
58                    f.write_str("unhandled error")
59                }
60            }
61        }
62    }
63}
64impl From<::aws_smithy_types::error::operation::BuildError> for Error {
65    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
66        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
67            source: value.into(),
68            meta: ::std::default::Default::default(),
69        })
70    }
71}
72impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
73    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
74        match self {
75            Self::AccessDeniedException(inner) => inner.meta(),
76            Self::ConflictException(inner) => inner.meta(),
77            Self::InternalServerException(inner) => inner.meta(),
78            Self::InvalidInputException(inner) => inner.meta(),
79            Self::ResourceNotFoundException(inner) => inner.meta(),
80            Self::RuntimeClientError(inner) => inner.meta(),
81            Self::ServiceException(inner) => inner.meta(),
82            Self::ServiceQuotaExceededException(inner) => inner.meta(),
83            Self::ThrottledException(inner) => inner.meta(),
84            Self::ThrottlingException(inner) => inner.meta(),
85            Self::UnauthorizedException(inner) => inner.meta(),
86            Self::ValidationException(inner) => inner.meta(),
87            Self::Unhandled(inner) => &inner.meta,
88        }
89    }
90}
91impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event::CreateEventError, R>> for Error
92where
93    R: Send + Sync + std::fmt::Debug + 'static,
94{
95    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event::CreateEventError, R>) -> Self {
96        match err {
97            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
98            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
99                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
100                source: err.into(),
101            }),
102        }
103    }
104}
105impl From<crate::operation::create_event::CreateEventError> for Error {
106    fn from(err: crate::operation::create_event::CreateEventError) -> Self {
107        match err {
108            crate::operation::create_event::CreateEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
109            crate::operation::create_event::CreateEventError::InvalidInputException(inner) => Error::InvalidInputException(inner),
110            crate::operation::create_event::CreateEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
111            crate::operation::create_event::CreateEventError::ServiceException(inner) => Error::ServiceException(inner),
112            crate::operation::create_event::CreateEventError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
113            crate::operation::create_event::CreateEventError::ThrottledException(inner) => Error::ThrottledException(inner),
114            crate::operation::create_event::CreateEventError::ValidationException(inner) => Error::ValidationException(inner),
115            crate::operation::create_event::CreateEventError::Unhandled(inner) => Error::Unhandled(inner),
116        }
117    }
118}
119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event::DeleteEventError, R>> for Error
120where
121    R: Send + Sync + std::fmt::Debug + 'static,
122{
123    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event::DeleteEventError, R>) -> Self {
124        match err {
125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
128                source: err.into(),
129            }),
130        }
131    }
132}
133impl From<crate::operation::delete_event::DeleteEventError> for Error {
134    fn from(err: crate::operation::delete_event::DeleteEventError) -> Self {
135        match err {
136            crate::operation::delete_event::DeleteEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
137            crate::operation::delete_event::DeleteEventError::InvalidInputException(inner) => Error::InvalidInputException(inner),
138            crate::operation::delete_event::DeleteEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
139            crate::operation::delete_event::DeleteEventError::ServiceException(inner) => Error::ServiceException(inner),
140            crate::operation::delete_event::DeleteEventError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
141            crate::operation::delete_event::DeleteEventError::ThrottledException(inner) => Error::ThrottledException(inner),
142            crate::operation::delete_event::DeleteEventError::ValidationException(inner) => Error::ValidationException(inner),
143            crate::operation::delete_event::DeleteEventError::Unhandled(inner) => Error::Unhandled(inner),
144        }
145    }
146}
147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_memory_record::DeleteMemoryRecordError, R>> for Error
148where
149    R: Send + Sync + std::fmt::Debug + 'static,
150{
151    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_memory_record::DeleteMemoryRecordError, R>) -> Self {
152        match err {
153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
156                source: err.into(),
157            }),
158        }
159    }
160}
161impl From<crate::operation::delete_memory_record::DeleteMemoryRecordError> for Error {
162    fn from(err: crate::operation::delete_memory_record::DeleteMemoryRecordError) -> Self {
163        match err {
164            crate::operation::delete_memory_record::DeleteMemoryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
165            crate::operation::delete_memory_record::DeleteMemoryRecordError::InvalidInputException(inner) => Error::InvalidInputException(inner),
166            crate::operation::delete_memory_record::DeleteMemoryRecordError::ResourceNotFoundException(inner) => {
167                Error::ResourceNotFoundException(inner)
168            }
169            crate::operation::delete_memory_record::DeleteMemoryRecordError::ServiceException(inner) => Error::ServiceException(inner),
170            crate::operation::delete_memory_record::DeleteMemoryRecordError::ServiceQuotaExceededException(inner) => {
171                Error::ServiceQuotaExceededException(inner)
172            }
173            crate::operation::delete_memory_record::DeleteMemoryRecordError::ThrottledException(inner) => Error::ThrottledException(inner),
174            crate::operation::delete_memory_record::DeleteMemoryRecordError::ValidationException(inner) => Error::ValidationException(inner),
175            crate::operation::delete_memory_record::DeleteMemoryRecordError::Unhandled(inner) => Error::Unhandled(inner),
176        }
177    }
178}
179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_session::GetBrowserSessionError, R>> for Error
180where
181    R: Send + Sync + std::fmt::Debug + 'static,
182{
183    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_session::GetBrowserSessionError, R>) -> Self {
184        match err {
185            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188                source: err.into(),
189            }),
190        }
191    }
192}
193impl From<crate::operation::get_browser_session::GetBrowserSessionError> for Error {
194    fn from(err: crate::operation::get_browser_session::GetBrowserSessionError) -> Self {
195        match err {
196            crate::operation::get_browser_session::GetBrowserSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
197            crate::operation::get_browser_session::GetBrowserSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
198            crate::operation::get_browser_session::GetBrowserSessionError::ResourceNotFoundException(inner) => {
199                Error::ResourceNotFoundException(inner)
200            }
201            crate::operation::get_browser_session::GetBrowserSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
202            crate::operation::get_browser_session::GetBrowserSessionError::ValidationException(inner) => Error::ValidationException(inner),
203            crate::operation::get_browser_session::GetBrowserSessionError::Unhandled(inner) => Error::Unhandled(inner),
204        }
205    }
206}
207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError, R>>
208    for Error
209where
210    R: Send + Sync + std::fmt::Debug + 'static,
211{
212    fn from(
213        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError, R>,
214    ) -> Self {
215        match err {
216            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
217            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
218                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
219                source: err.into(),
220            }),
221        }
222    }
223}
224impl From<crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError> for Error {
225    fn from(err: crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError) -> Self {
226        match err {
227            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::AccessDeniedException(inner) => {
228                Error::AccessDeniedException(inner)
229            }
230            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::InternalServerException(inner) => {
231                Error::InternalServerException(inner)
232            }
233            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::ResourceNotFoundException(inner) => {
234                Error::ResourceNotFoundException(inner)
235            }
236            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::ThrottlingException(inner) => {
237                Error::ThrottlingException(inner)
238            }
239            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::ValidationException(inner) => {
240                Error::ValidationException(inner)
241            }
242            crate::operation::get_code_interpreter_session::GetCodeInterpreterSessionError::Unhandled(inner) => Error::Unhandled(inner),
243        }
244    }
245}
246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event::GetEventError, R>> for Error
247where
248    R: Send + Sync + std::fmt::Debug + 'static,
249{
250    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event::GetEventError, R>) -> Self {
251        match err {
252            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
253            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
254                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
255                source: err.into(),
256            }),
257        }
258    }
259}
260impl From<crate::operation::get_event::GetEventError> for Error {
261    fn from(err: crate::operation::get_event::GetEventError) -> Self {
262        match err {
263            crate::operation::get_event::GetEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
264            crate::operation::get_event::GetEventError::InvalidInputException(inner) => Error::InvalidInputException(inner),
265            crate::operation::get_event::GetEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
266            crate::operation::get_event::GetEventError::ServiceException(inner) => Error::ServiceException(inner),
267            crate::operation::get_event::GetEventError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
268            crate::operation::get_event::GetEventError::ThrottledException(inner) => Error::ThrottledException(inner),
269            crate::operation::get_event::GetEventError::ValidationException(inner) => Error::ValidationException(inner),
270            crate::operation::get_event::GetEventError::Unhandled(inner) => Error::Unhandled(inner),
271        }
272    }
273}
274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_memory_record::GetMemoryRecordError, R>> for Error
275where
276    R: Send + Sync + std::fmt::Debug + 'static,
277{
278    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_memory_record::GetMemoryRecordError, R>) -> Self {
279        match err {
280            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
281            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
282                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
283                source: err.into(),
284            }),
285        }
286    }
287}
288impl From<crate::operation::get_memory_record::GetMemoryRecordError> for Error {
289    fn from(err: crate::operation::get_memory_record::GetMemoryRecordError) -> Self {
290        match err {
291            crate::operation::get_memory_record::GetMemoryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
292            crate::operation::get_memory_record::GetMemoryRecordError::InvalidInputException(inner) => Error::InvalidInputException(inner),
293            crate::operation::get_memory_record::GetMemoryRecordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
294            crate::operation::get_memory_record::GetMemoryRecordError::ServiceException(inner) => Error::ServiceException(inner),
295            crate::operation::get_memory_record::GetMemoryRecordError::ServiceQuotaExceededException(inner) => {
296                Error::ServiceQuotaExceededException(inner)
297            }
298            crate::operation::get_memory_record::GetMemoryRecordError::ThrottledException(inner) => Error::ThrottledException(inner),
299            crate::operation::get_memory_record::GetMemoryRecordError::ValidationException(inner) => Error::ValidationException(inner),
300            crate::operation::get_memory_record::GetMemoryRecordError::Unhandled(inner) => Error::Unhandled(inner),
301        }
302    }
303}
304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_api_key::GetResourceApiKeyError, R>> for Error
305where
306    R: Send + Sync + std::fmt::Debug + 'static,
307{
308    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_api_key::GetResourceApiKeyError, R>) -> Self {
309        match err {
310            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
311            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
312                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
313                source: err.into(),
314            }),
315        }
316    }
317}
318impl From<crate::operation::get_resource_api_key::GetResourceApiKeyError> for Error {
319    fn from(err: crate::operation::get_resource_api_key::GetResourceApiKeyError) -> Self {
320        match err {
321            crate::operation::get_resource_api_key::GetResourceApiKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
322            crate::operation::get_resource_api_key::GetResourceApiKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
323            crate::operation::get_resource_api_key::GetResourceApiKeyError::ResourceNotFoundException(inner) => {
324                Error::ResourceNotFoundException(inner)
325            }
326            crate::operation::get_resource_api_key::GetResourceApiKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
327            crate::operation::get_resource_api_key::GetResourceApiKeyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
328            crate::operation::get_resource_api_key::GetResourceApiKeyError::ValidationException(inner) => Error::ValidationException(inner),
329            crate::operation::get_resource_api_key::GetResourceApiKeyError::Unhandled(inner) => Error::Unhandled(inner),
330        }
331    }
332}
333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError, R>>
334    for Error
335where
336    R: Send + Sync + std::fmt::Debug + 'static,
337{
338    fn from(
339        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError, R>,
340    ) -> Self {
341        match err {
342            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
343            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
344                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
345                source: err.into(),
346            }),
347        }
348    }
349}
350impl From<crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError> for Error {
351    fn from(err: crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError) -> Self {
352        match err {
353            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::AccessDeniedException(inner) => {
354                Error::AccessDeniedException(inner)
355            }
356            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::InternalServerException(inner) => {
357                Error::InternalServerException(inner)
358            }
359            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::ResourceNotFoundException(inner) => {
360                Error::ResourceNotFoundException(inner)
361            }
362            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
363            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::UnauthorizedException(inner) => {
364                Error::UnauthorizedException(inner)
365            }
366            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::ValidationException(inner) => Error::ValidationException(inner),
367            crate::operation::get_resource_oauth2_token::GetResourceOauth2TokenError::Unhandled(inner) => Error::Unhandled(inner),
368        }
369    }
370}
371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_access_token::GetWorkloadAccessTokenError, R>>
372    for Error
373where
374    R: Send + Sync + std::fmt::Debug + 'static,
375{
376    fn from(
377        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_access_token::GetWorkloadAccessTokenError, R>,
378    ) -> Self {
379        match err {
380            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
381            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
382                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
383                source: err.into(),
384            }),
385        }
386    }
387}
388impl From<crate::operation::get_workload_access_token::GetWorkloadAccessTokenError> for Error {
389    fn from(err: crate::operation::get_workload_access_token::GetWorkloadAccessTokenError) -> Self {
390        match err {
391            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::AccessDeniedException(inner) => {
392                Error::AccessDeniedException(inner)
393            }
394            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::InternalServerException(inner) => {
395                Error::InternalServerException(inner)
396            }
397            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::ResourceNotFoundException(inner) => {
398                Error::ResourceNotFoundException(inner)
399            }
400            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
401            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::UnauthorizedException(inner) => {
402                Error::UnauthorizedException(inner)
403            }
404            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
405            crate::operation::get_workload_access_token::GetWorkloadAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
406        }
407    }
408}
409impl<R>
410    From<
411        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError, R>,
412    > for Error
413where
414    R: Send + Sync + std::fmt::Debug + 'static,
415{
416    fn from(
417        err: ::aws_smithy_runtime_api::client::result::SdkError<
418            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError,
419            R,
420        >,
421    ) -> Self {
422        match err {
423            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
424            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
425                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
426                source: err.into(),
427            }),
428        }
429    }
430}
431impl From<crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError> for Error {
432    fn from(err: crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError) -> Self {
433        match err {
434            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::AccessDeniedException(inner) => {
435                Error::AccessDeniedException(inner)
436            }
437            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::InternalServerException(inner) => {
438                Error::InternalServerException(inner)
439            }
440            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::ResourceNotFoundException(inner) => {
441                Error::ResourceNotFoundException(inner)
442            }
443            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::ThrottlingException(inner) => {
444                Error::ThrottlingException(inner)
445            }
446            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::UnauthorizedException(inner) => {
447                Error::UnauthorizedException(inner)
448            }
449            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::ValidationException(inner) => {
450                Error::ValidationException(inner)
451            }
452            crate::operation::get_workload_access_token_for_jwt::GetWorkloadAccessTokenForJWTError::Unhandled(inner) => Error::Unhandled(inner),
453        }
454    }
455}
456impl<R>
457    From<
458        ::aws_smithy_runtime_api::client::result::SdkError<
459            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError,
460            R,
461        >,
462    > for Error
463where
464    R: Send + Sync + std::fmt::Debug + 'static,
465{
466    fn from(
467        err: ::aws_smithy_runtime_api::client::result::SdkError<
468            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError,
469            R,
470        >,
471    ) -> Self {
472        match err {
473            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
474            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
475                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
476                source: err.into(),
477            }),
478        }
479    }
480}
481impl From<crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError> for Error {
482    fn from(err: crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError) -> Self {
483        match err {
484            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::AccessDeniedException(inner) => {
485                Error::AccessDeniedException(inner)
486            }
487            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::InternalServerException(inner) => {
488                Error::InternalServerException(inner)
489            }
490            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::ResourceNotFoundException(inner) => {
491                Error::ResourceNotFoundException(inner)
492            }
493            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::ThrottlingException(inner) => {
494                Error::ThrottlingException(inner)
495            }
496            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::UnauthorizedException(inner) => {
497                Error::UnauthorizedException(inner)
498            }
499            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::ValidationException(inner) => {
500                Error::ValidationException(inner)
501            }
502            crate::operation::get_workload_access_token_for_user_id::GetWorkloadAccessTokenForUserIdError::Unhandled(inner) => {
503                Error::Unhandled(inner)
504            }
505        }
506    }
507}
508impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError, R>> for Error
509where
510    R: Send + Sync + std::fmt::Debug + 'static,
511{
512    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError, R>) -> Self {
513        match err {
514            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
515            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
516                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
517                source: err.into(),
518            }),
519        }
520    }
521}
522impl From<crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError> for Error {
523    fn from(err: crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError) -> Self {
524        match err {
525            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
526            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::InternalServerException(inner) => Error::InternalServerException(inner),
527            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ResourceNotFoundException(inner) => {
528                Error::ResourceNotFoundException(inner)
529            }
530            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::RuntimeClientError(inner) => Error::RuntimeClientError(inner),
531            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ServiceQuotaExceededException(inner) => {
532                Error::ServiceQuotaExceededException(inner)
533            }
534            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
535            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::ValidationException(inner) => Error::ValidationException(inner),
536            crate::operation::invoke_agent_runtime::InvokeAgentRuntimeError::Unhandled(inner) => Error::Unhandled(inner),
537        }
538    }
539}
540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError, R>> for Error
541where
542    R: Send + Sync + std::fmt::Debug + 'static,
543{
544    fn from(
545        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError, R>,
546    ) -> Self {
547        match err {
548            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551                source: err.into(),
552            }),
553        }
554    }
555}
556impl From<crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError> for Error {
557    fn from(err: crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError) -> Self {
558        match err {
559            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ValidationException(inner) => Error::ValidationException(inner),
560            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ResourceNotFoundException(inner) => {
561                Error::ResourceNotFoundException(inner)
562            }
563            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::AccessDeniedException(inner) => {
564                Error::AccessDeniedException(inner)
565            }
566            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ServiceQuotaExceededException(inner) => {
567                Error::ServiceQuotaExceededException(inner)
568            }
569            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ConflictException(inner) => Error::ConflictException(inner),
570            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::InternalServerException(inner) => {
571                Error::InternalServerException(inner)
572            }
573            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
574            crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError::Unhandled(inner) => Error::Unhandled(inner),
575        }
576    }
577}
578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actors::ListActorsError, R>> for Error
579where
580    R: Send + Sync + std::fmt::Debug + 'static,
581{
582    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actors::ListActorsError, R>) -> Self {
583        match err {
584            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
585            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
586                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
587                source: err.into(),
588            }),
589        }
590    }
591}
592impl From<crate::operation::list_actors::ListActorsError> for Error {
593    fn from(err: crate::operation::list_actors::ListActorsError) -> Self {
594        match err {
595            crate::operation::list_actors::ListActorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
596            crate::operation::list_actors::ListActorsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
597            crate::operation::list_actors::ListActorsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
598            crate::operation::list_actors::ListActorsError::ServiceException(inner) => Error::ServiceException(inner),
599            crate::operation::list_actors::ListActorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
600            crate::operation::list_actors::ListActorsError::ThrottledException(inner) => Error::ThrottledException(inner),
601            crate::operation::list_actors::ListActorsError::ValidationException(inner) => Error::ValidationException(inner),
602            crate::operation::list_actors::ListActorsError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_sessions::ListBrowserSessionsError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_sessions::ListBrowserSessionsError, R>) -> Self {
611        match err {
612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615                source: err.into(),
616            }),
617        }
618    }
619}
620impl From<crate::operation::list_browser_sessions::ListBrowserSessionsError> for Error {
621    fn from(err: crate::operation::list_browser_sessions::ListBrowserSessionsError) -> Self {
622        match err {
623            crate::operation::list_browser_sessions::ListBrowserSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
624            crate::operation::list_browser_sessions::ListBrowserSessionsError::InternalServerException(inner) => {
625                Error::InternalServerException(inner)
626            }
627            crate::operation::list_browser_sessions::ListBrowserSessionsError::ResourceNotFoundException(inner) => {
628                Error::ResourceNotFoundException(inner)
629            }
630            crate::operation::list_browser_sessions::ListBrowserSessionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
631            crate::operation::list_browser_sessions::ListBrowserSessionsError::ValidationException(inner) => Error::ValidationException(inner),
632            crate::operation::list_browser_sessions::ListBrowserSessionsError::Unhandled(inner) => Error::Unhandled(inner),
633        }
634    }
635}
636impl<R>
637    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError, R>>
638    for Error
639where
640    R: Send + Sync + std::fmt::Debug + 'static,
641{
642    fn from(
643        err: ::aws_smithy_runtime_api::client::result::SdkError<
644            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError,
645            R,
646        >,
647    ) -> Self {
648        match err {
649            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
650            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
651                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
652                source: err.into(),
653            }),
654        }
655    }
656}
657impl From<crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError> for Error {
658    fn from(err: crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError) -> Self {
659        match err {
660            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::AccessDeniedException(inner) => {
661                Error::AccessDeniedException(inner)
662            }
663            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::InternalServerException(inner) => {
664                Error::InternalServerException(inner)
665            }
666            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::ResourceNotFoundException(inner) => {
667                Error::ResourceNotFoundException(inner)
668            }
669            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::ThrottlingException(inner) => {
670                Error::ThrottlingException(inner)
671            }
672            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::ValidationException(inner) => {
673                Error::ValidationException(inner)
674            }
675            crate::operation::list_code_interpreter_sessions::ListCodeInterpreterSessionsError::Unhandled(inner) => Error::Unhandled(inner),
676        }
677    }
678}
679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_events::ListEventsError, R>> for Error
680where
681    R: Send + Sync + std::fmt::Debug + 'static,
682{
683    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_events::ListEventsError, R>) -> Self {
684        match err {
685            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
686            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
687                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
688                source: err.into(),
689            }),
690        }
691    }
692}
693impl From<crate::operation::list_events::ListEventsError> for Error {
694    fn from(err: crate::operation::list_events::ListEventsError) -> Self {
695        match err {
696            crate::operation::list_events::ListEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
697            crate::operation::list_events::ListEventsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
698            crate::operation::list_events::ListEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
699            crate::operation::list_events::ListEventsError::ServiceException(inner) => Error::ServiceException(inner),
700            crate::operation::list_events::ListEventsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
701            crate::operation::list_events::ListEventsError::ThrottledException(inner) => Error::ThrottledException(inner),
702            crate::operation::list_events::ListEventsError::ValidationException(inner) => Error::ValidationException(inner),
703            crate::operation::list_events::ListEventsError::Unhandled(inner) => Error::Unhandled(inner),
704        }
705    }
706}
707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memory_records::ListMemoryRecordsError, R>> for Error
708where
709    R: Send + Sync + std::fmt::Debug + 'static,
710{
711    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memory_records::ListMemoryRecordsError, R>) -> Self {
712        match err {
713            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716                source: err.into(),
717            }),
718        }
719    }
720}
721impl From<crate::operation::list_memory_records::ListMemoryRecordsError> for Error {
722    fn from(err: crate::operation::list_memory_records::ListMemoryRecordsError) -> Self {
723        match err {
724            crate::operation::list_memory_records::ListMemoryRecordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
725            crate::operation::list_memory_records::ListMemoryRecordsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
726            crate::operation::list_memory_records::ListMemoryRecordsError::ResourceNotFoundException(inner) => {
727                Error::ResourceNotFoundException(inner)
728            }
729            crate::operation::list_memory_records::ListMemoryRecordsError::ServiceException(inner) => Error::ServiceException(inner),
730            crate::operation::list_memory_records::ListMemoryRecordsError::ServiceQuotaExceededException(inner) => {
731                Error::ServiceQuotaExceededException(inner)
732            }
733            crate::operation::list_memory_records::ListMemoryRecordsError::ThrottledException(inner) => Error::ThrottledException(inner),
734            crate::operation::list_memory_records::ListMemoryRecordsError::ValidationException(inner) => Error::ValidationException(inner),
735            crate::operation::list_memory_records::ListMemoryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
736        }
737    }
738}
739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>> for Error
740where
741    R: Send + Sync + std::fmt::Debug + 'static,
742{
743    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>) -> Self {
744        match err {
745            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
746            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
747                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
748                source: err.into(),
749            }),
750        }
751    }
752}
753impl From<crate::operation::list_sessions::ListSessionsError> for Error {
754    fn from(err: crate::operation::list_sessions::ListSessionsError) -> Self {
755        match err {
756            crate::operation::list_sessions::ListSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
757            crate::operation::list_sessions::ListSessionsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
758            crate::operation::list_sessions::ListSessionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
759            crate::operation::list_sessions::ListSessionsError::ServiceException(inner) => Error::ServiceException(inner),
760            crate::operation::list_sessions::ListSessionsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
761            crate::operation::list_sessions::ListSessionsError::ThrottledException(inner) => Error::ThrottledException(inner),
762            crate::operation::list_sessions::ListSessionsError::ValidationException(inner) => Error::ValidationException(inner),
763            crate::operation::list_sessions::ListSessionsError::Unhandled(inner) => Error::Unhandled(inner),
764        }
765    }
766}
767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError, R>> for Error
768where
769    R: Send + Sync + std::fmt::Debug + 'static,
770{
771    fn from(
772        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError, R>,
773    ) -> Self {
774        match err {
775            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
776            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
777                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
778                source: err.into(),
779            }),
780        }
781    }
782}
783impl From<crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError> for Error {
784    fn from(err: crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError) -> Self {
785        match err {
786            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::AccessDeniedException(inner) => {
787                Error::AccessDeniedException(inner)
788            }
789            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::InvalidInputException(inner) => {
790                Error::InvalidInputException(inner)
791            }
792            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ResourceNotFoundException(inner) => {
793                Error::ResourceNotFoundException(inner)
794            }
795            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ServiceException(inner) => Error::ServiceException(inner),
796            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ServiceQuotaExceededException(inner) => {
797                Error::ServiceQuotaExceededException(inner)
798            }
799            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ThrottledException(inner) => Error::ThrottledException(inner),
800            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::ValidationException(inner) => Error::ValidationException(inner),
801            crate::operation::retrieve_memory_records::RetrieveMemoryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
802        }
803    }
804}
805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_browser_session::StartBrowserSessionError, R>> for Error
806where
807    R: Send + Sync + std::fmt::Debug + 'static,
808{
809    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_browser_session::StartBrowserSessionError, R>) -> Self {
810        match err {
811            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
812            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
813                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
814                source: err.into(),
815            }),
816        }
817    }
818}
819impl From<crate::operation::start_browser_session::StartBrowserSessionError> for Error {
820    fn from(err: crate::operation::start_browser_session::StartBrowserSessionError) -> Self {
821        match err {
822            crate::operation::start_browser_session::StartBrowserSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
823            crate::operation::start_browser_session::StartBrowserSessionError::ConflictException(inner) => Error::ConflictException(inner),
824            crate::operation::start_browser_session::StartBrowserSessionError::InternalServerException(inner) => {
825                Error::InternalServerException(inner)
826            }
827            crate::operation::start_browser_session::StartBrowserSessionError::ResourceNotFoundException(inner) => {
828                Error::ResourceNotFoundException(inner)
829            }
830            crate::operation::start_browser_session::StartBrowserSessionError::ServiceQuotaExceededException(inner) => {
831                Error::ServiceQuotaExceededException(inner)
832            }
833            crate::operation::start_browser_session::StartBrowserSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
834            crate::operation::start_browser_session::StartBrowserSessionError::ValidationException(inner) => Error::ValidationException(inner),
835            crate::operation::start_browser_session::StartBrowserSessionError::Unhandled(inner) => Error::Unhandled(inner),
836        }
837    }
838}
839impl<R>
840    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError, R>>
841    for Error
842where
843    R: Send + Sync + std::fmt::Debug + 'static,
844{
845    fn from(
846        err: ::aws_smithy_runtime_api::client::result::SdkError<
847            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError,
848            R,
849        >,
850    ) -> Self {
851        match err {
852            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
853            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
854                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
855                source: err.into(),
856            }),
857        }
858    }
859}
860impl From<crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError> for Error {
861    fn from(err: crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError) -> Self {
862        match err {
863            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::AccessDeniedException(inner) => {
864                Error::AccessDeniedException(inner)
865            }
866            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ConflictException(inner) => {
867                Error::ConflictException(inner)
868            }
869            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::InternalServerException(inner) => {
870                Error::InternalServerException(inner)
871            }
872            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ResourceNotFoundException(inner) => {
873                Error::ResourceNotFoundException(inner)
874            }
875            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ServiceQuotaExceededException(inner) => {
876                Error::ServiceQuotaExceededException(inner)
877            }
878            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ThrottlingException(inner) => {
879                Error::ThrottlingException(inner)
880            }
881            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::ValidationException(inner) => {
882                Error::ValidationException(inner)
883            }
884            crate::operation::start_code_interpreter_session::StartCodeInterpreterSessionError::Unhandled(inner) => Error::Unhandled(inner),
885        }
886    }
887}
888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_browser_session::StopBrowserSessionError, R>> for Error
889where
890    R: Send + Sync + std::fmt::Debug + 'static,
891{
892    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_browser_session::StopBrowserSessionError, R>) -> Self {
893        match err {
894            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
895            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
896                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
897                source: err.into(),
898            }),
899        }
900    }
901}
902impl From<crate::operation::stop_browser_session::StopBrowserSessionError> for Error {
903    fn from(err: crate::operation::stop_browser_session::StopBrowserSessionError) -> Self {
904        match err {
905            crate::operation::stop_browser_session::StopBrowserSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
906            crate::operation::stop_browser_session::StopBrowserSessionError::ConflictException(inner) => Error::ConflictException(inner),
907            crate::operation::stop_browser_session::StopBrowserSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
908            crate::operation::stop_browser_session::StopBrowserSessionError::ResourceNotFoundException(inner) => {
909                Error::ResourceNotFoundException(inner)
910            }
911            crate::operation::stop_browser_session::StopBrowserSessionError::ServiceQuotaExceededException(inner) => {
912                Error::ServiceQuotaExceededException(inner)
913            }
914            crate::operation::stop_browser_session::StopBrowserSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
915            crate::operation::stop_browser_session::StopBrowserSessionError::ValidationException(inner) => Error::ValidationException(inner),
916            crate::operation::stop_browser_session::StopBrowserSessionError::Unhandled(inner) => Error::Unhandled(inner),
917        }
918    }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError, R>>
921    for Error
922where
923    R: Send + Sync + std::fmt::Debug + 'static,
924{
925    fn from(
926        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError, R>,
927    ) -> Self {
928        match err {
929            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
930            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
931                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
932                source: err.into(),
933            }),
934        }
935    }
936}
937impl From<crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError> for Error {
938    fn from(err: crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError) -> Self {
939        match err {
940            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::AccessDeniedException(inner) => {
941                Error::AccessDeniedException(inner)
942            }
943            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ConflictException(inner) => {
944                Error::ConflictException(inner)
945            }
946            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::InternalServerException(inner) => {
947                Error::InternalServerException(inner)
948            }
949            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ResourceNotFoundException(inner) => {
950                Error::ResourceNotFoundException(inner)
951            }
952            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ServiceQuotaExceededException(inner) => {
953                Error::ServiceQuotaExceededException(inner)
954            }
955            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ThrottlingException(inner) => {
956                Error::ThrottlingException(inner)
957            }
958            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::ValidationException(inner) => {
959                Error::ValidationException(inner)
960            }
961            crate::operation::stop_code_interpreter_session::StopCodeInterpreterSessionError::Unhandled(inner) => Error::Unhandled(inner),
962        }
963    }
964}
965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_browser_stream::UpdateBrowserStreamError, R>> for Error
966where
967    R: Send + Sync + std::fmt::Debug + 'static,
968{
969    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_browser_stream::UpdateBrowserStreamError, R>) -> Self {
970        match err {
971            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
972            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
973                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
974                source: err.into(),
975            }),
976        }
977    }
978}
979impl From<crate::operation::update_browser_stream::UpdateBrowserStreamError> for Error {
980    fn from(err: crate::operation::update_browser_stream::UpdateBrowserStreamError) -> Self {
981        match err {
982            crate::operation::update_browser_stream::UpdateBrowserStreamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
983            crate::operation::update_browser_stream::UpdateBrowserStreamError::ConflictException(inner) => Error::ConflictException(inner),
984            crate::operation::update_browser_stream::UpdateBrowserStreamError::InternalServerException(inner) => {
985                Error::InternalServerException(inner)
986            }
987            crate::operation::update_browser_stream::UpdateBrowserStreamError::ResourceNotFoundException(inner) => {
988                Error::ResourceNotFoundException(inner)
989            }
990            crate::operation::update_browser_stream::UpdateBrowserStreamError::ServiceQuotaExceededException(inner) => {
991                Error::ServiceQuotaExceededException(inner)
992            }
993            crate::operation::update_browser_stream::UpdateBrowserStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
994            crate::operation::update_browser_stream::UpdateBrowserStreamError::ValidationException(inner) => Error::ValidationException(inner),
995            crate::operation::update_browser_stream::UpdateBrowserStreamError::Unhandled(inner) => Error::Unhandled(inner),
996        }
997    }
998}
999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::CodeInterpreterStreamOutputError, R>> for Error
1000where
1001    R: Send + Sync + std::fmt::Debug + 'static,
1002{
1003    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::CodeInterpreterStreamOutputError, R>) -> Self {
1004        match err {
1005            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1006            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1007                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1008                source: err.into(),
1009            }),
1010        }
1011    }
1012}
1013impl From<crate::types::error::CodeInterpreterStreamOutputError> for Error {
1014    fn from(err: crate::types::error::CodeInterpreterStreamOutputError) -> Self {
1015        match err {
1016            crate::types::error::CodeInterpreterStreamOutputError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1017            crate::types::error::CodeInterpreterStreamOutputError::ConflictException(inner) => Error::ConflictException(inner),
1018            crate::types::error::CodeInterpreterStreamOutputError::InternalServerException(inner) => Error::InternalServerException(inner),
1019            crate::types::error::CodeInterpreterStreamOutputError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1020            crate::types::error::CodeInterpreterStreamOutputError::ServiceQuotaExceededException(inner) => {
1021                Error::ServiceQuotaExceededException(inner)
1022            }
1023            crate::types::error::CodeInterpreterStreamOutputError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1024            crate::types::error::CodeInterpreterStreamOutputError::ValidationException(inner) => Error::ValidationException(inner),
1025            crate::types::error::CodeInterpreterStreamOutputError::Unhandled(inner) => Error::Unhandled(inner),
1026        }
1027    }
1028}
1029impl ::std::error::Error for Error {
1030    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1031        match self {
1032            Error::AccessDeniedException(inner) => inner.source(),
1033            Error::ConflictException(inner) => inner.source(),
1034            Error::InternalServerException(inner) => inner.source(),
1035            Error::InvalidInputException(inner) => inner.source(),
1036            Error::ResourceNotFoundException(inner) => inner.source(),
1037            Error::RuntimeClientError(inner) => inner.source(),
1038            Error::ServiceException(inner) => inner.source(),
1039            Error::ServiceQuotaExceededException(inner) => inner.source(),
1040            Error::ThrottledException(inner) => inner.source(),
1041            Error::ThrottlingException(inner) => inner.source(),
1042            Error::UnauthorizedException(inner) => inner.source(),
1043            Error::ValidationException(inner) => inner.source(),
1044            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1045        }
1046    }
1047}
1048impl ::aws_types::request_id::RequestId for Error {
1049    fn request_id(&self) -> Option<&str> {
1050        match self {
1051            Self::AccessDeniedException(e) => e.request_id(),
1052            Self::ConflictException(e) => e.request_id(),
1053            Self::InternalServerException(e) => e.request_id(),
1054            Self::InvalidInputException(e) => e.request_id(),
1055            Self::ResourceNotFoundException(e) => e.request_id(),
1056            Self::RuntimeClientError(e) => e.request_id(),
1057            Self::ServiceException(e) => e.request_id(),
1058            Self::ServiceQuotaExceededException(e) => e.request_id(),
1059            Self::ThrottledException(e) => e.request_id(),
1060            Self::ThrottlingException(e) => e.request_id(),
1061            Self::UnauthorizedException(e) => e.request_id(),
1062            Self::ValidationException(e) => e.request_id(),
1063            Self::Unhandled(e) => e.meta.request_id(),
1064        }
1065    }
1066}