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