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