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 InvalidRequestException(crate::types::error::InvalidRequestException),
16 LimitExceededException(crate::types::error::LimitExceededException),
18 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
20 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
22 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
24 ThrottlingException(crate::types::error::ThrottlingException),
26 UnauthorizedException(crate::types::error::UnauthorizedException),
28 ValidationException(crate::types::error::ValidationException),
30 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
32 variable wildcard pattern and check `.code()`:
33 \
34 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
35 \
36 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
37 Unhandled(crate::error::sealed_unhandled::Unhandled),
38}
39impl ::std::fmt::Display for Error {
40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41 match self {
42 Error::AccessDeniedException(inner) => inner.fmt(f),
43 Error::ConflictException(inner) => inner.fmt(f),
44 Error::InternalFailureException(inner) => inner.fmt(f),
45 Error::InternalServerException(inner) => inner.fmt(f),
46 Error::InvalidRequestException(inner) => inner.fmt(f),
47 Error::LimitExceededException(inner) => inner.fmt(f),
48 Error::ResourceNotFoundException(inner) => inner.fmt(f),
49 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
50 Error::ServiceUnavailableException(inner) => inner.fmt(f),
51 Error::ThrottlingException(inner) => inner.fmt(f),
52 Error::UnauthorizedException(inner) => inner.fmt(f),
53 Error::ValidationException(inner) => inner.fmt(f),
54 Error::Unhandled(_) => {
55 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
56 write!(f, "unhandled error ({code})")
57 } else {
58 f.write_str("unhandled error")
59 }
60 }
61 }
62 }
63}
64impl From<::aws_smithy_types::error::operation::BuildError> for Error {
65 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
66 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
67 source: value.into(),
68 meta: ::std::default::Default::default(),
69 })
70 }
71}
72impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
73 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
74 match self {
75 Self::AccessDeniedException(inner) => inner.meta(),
76 Self::ConflictException(inner) => inner.meta(),
77 Self::InternalFailureException(inner) => inner.meta(),
78 Self::InternalServerException(inner) => inner.meta(),
79 Self::InvalidRequestException(inner) => inner.meta(),
80 Self::LimitExceededException(inner) => inner.meta(),
81 Self::ResourceNotFoundException(inner) => inner.meta(),
82 Self::ServiceQuotaExceededException(inner) => inner.meta(),
83 Self::ServiceUnavailableException(inner) => inner.meta(),
84 Self::ThrottlingException(inner) => inner.meta(),
85 Self::UnauthorizedException(inner) => inner.meta(),
86 Self::ValidationException(inner) => inner.meta(),
87 Self::Unhandled(inner) => &inner.meta,
88 }
89 }
90}
91impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_account_association::CreateAccountAssociationError, R>>
92 for Error
93where
94 R: Send + Sync + std::fmt::Debug + 'static,
95{
96 fn from(
97 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_account_association::CreateAccountAssociationError, R>,
98 ) -> Self {
99 match err {
100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
103 source: err.into(),
104 }),
105 }
106 }
107}
108impl From<crate::operation::create_account_association::CreateAccountAssociationError> for Error {
109 fn from(err: crate::operation::create_account_association::CreateAccountAssociationError) -> Self {
110 match err {
111 crate::operation::create_account_association::CreateAccountAssociationError::AccessDeniedException(inner) => {
112 Error::AccessDeniedException(inner)
113 }
114 crate::operation::create_account_association::CreateAccountAssociationError::ConflictException(inner) => Error::ConflictException(inner),
115 crate::operation::create_account_association::CreateAccountAssociationError::InternalServerException(inner) => {
116 Error::InternalServerException(inner)
117 }
118 crate::operation::create_account_association::CreateAccountAssociationError::ResourceNotFoundException(inner) => {
119 Error::ResourceNotFoundException(inner)
120 }
121 crate::operation::create_account_association::CreateAccountAssociationError::ServiceUnavailableException(inner) => {
122 Error::ServiceUnavailableException(inner)
123 }
124 crate::operation::create_account_association::CreateAccountAssociationError::ThrottlingException(inner) => {
125 Error::ThrottlingException(inner)
126 }
127 crate::operation::create_account_association::CreateAccountAssociationError::UnauthorizedException(inner) => {
128 Error::UnauthorizedException(inner)
129 }
130 crate::operation::create_account_association::CreateAccountAssociationError::ValidationException(inner) => {
131 Error::ValidationException(inner)
132 }
133 crate::operation::create_account_association::CreateAccountAssociationError::Unhandled(inner) => Error::Unhandled(inner),
134 }
135 }
136}
137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cloud_connector::CreateCloudConnectorError, R>> for Error
138where
139 R: Send + Sync + std::fmt::Debug + 'static,
140{
141 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cloud_connector::CreateCloudConnectorError, R>) -> Self {
142 match err {
143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
146 source: err.into(),
147 }),
148 }
149 }
150}
151impl From<crate::operation::create_cloud_connector::CreateCloudConnectorError> for Error {
152 fn from(err: crate::operation::create_cloud_connector::CreateCloudConnectorError) -> Self {
153 match err {
154 crate::operation::create_cloud_connector::CreateCloudConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
155 crate::operation::create_cloud_connector::CreateCloudConnectorError::ConflictException(inner) => Error::ConflictException(inner),
156 crate::operation::create_cloud_connector::CreateCloudConnectorError::InternalServerException(inner) => {
157 Error::InternalServerException(inner)
158 }
159 crate::operation::create_cloud_connector::CreateCloudConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
160 crate::operation::create_cloud_connector::CreateCloudConnectorError::ValidationException(inner) => Error::ValidationException(inner),
161 crate::operation::create_cloud_connector::CreateCloudConnectorError::Unhandled(inner) => Error::Unhandled(inner),
162 }
163 }
164}
165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector_destination::CreateConnectorDestinationError, R>>
166 for Error
167where
168 R: Send + Sync + std::fmt::Debug + 'static,
169{
170 fn from(
171 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector_destination::CreateConnectorDestinationError, R>,
172 ) -> Self {
173 match err {
174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
177 source: err.into(),
178 }),
179 }
180 }
181}
182impl From<crate::operation::create_connector_destination::CreateConnectorDestinationError> for Error {
183 fn from(err: crate::operation::create_connector_destination::CreateConnectorDestinationError) -> Self {
184 match err {
185 crate::operation::create_connector_destination::CreateConnectorDestinationError::AccessDeniedException(inner) => {
186 Error::AccessDeniedException(inner)
187 }
188 crate::operation::create_connector_destination::CreateConnectorDestinationError::ConflictException(inner) => {
189 Error::ConflictException(inner)
190 }
191 crate::operation::create_connector_destination::CreateConnectorDestinationError::InternalServerException(inner) => {
192 Error::InternalServerException(inner)
193 }
194 crate::operation::create_connector_destination::CreateConnectorDestinationError::ResourceNotFoundException(inner) => {
195 Error::ResourceNotFoundException(inner)
196 }
197 crate::operation::create_connector_destination::CreateConnectorDestinationError::ThrottlingException(inner) => {
198 Error::ThrottlingException(inner)
199 }
200 crate::operation::create_connector_destination::CreateConnectorDestinationError::UnauthorizedException(inner) => {
201 Error::UnauthorizedException(inner)
202 }
203 crate::operation::create_connector_destination::CreateConnectorDestinationError::ValidationException(inner) => {
204 Error::ValidationException(inner)
205 }
206 crate::operation::create_connector_destination::CreateConnectorDestinationError::Unhandled(inner) => Error::Unhandled(inner),
207 }
208 }
209}
210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_credential_locker::CreateCredentialLockerError, R>> for Error
211where
212 R: Send + Sync + std::fmt::Debug + 'static,
213{
214 fn from(
215 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_credential_locker::CreateCredentialLockerError, R>,
216 ) -> Self {
217 match err {
218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
221 source: err.into(),
222 }),
223 }
224 }
225}
226impl From<crate::operation::create_credential_locker::CreateCredentialLockerError> for Error {
227 fn from(err: crate::operation::create_credential_locker::CreateCredentialLockerError) -> Self {
228 match err {
229 crate::operation::create_credential_locker::CreateCredentialLockerError::AccessDeniedException(inner) => {
230 Error::AccessDeniedException(inner)
231 }
232 crate::operation::create_credential_locker::CreateCredentialLockerError::ConflictException(inner) => Error::ConflictException(inner),
233 crate::operation::create_credential_locker::CreateCredentialLockerError::InternalServerException(inner) => {
234 Error::InternalServerException(inner)
235 }
236 crate::operation::create_credential_locker::CreateCredentialLockerError::ServiceQuotaExceededException(inner) => {
237 Error::ServiceQuotaExceededException(inner)
238 }
239 crate::operation::create_credential_locker::CreateCredentialLockerError::ServiceUnavailableException(inner) => {
240 Error::ServiceUnavailableException(inner)
241 }
242 crate::operation::create_credential_locker::CreateCredentialLockerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
243 crate::operation::create_credential_locker::CreateCredentialLockerError::ValidationException(inner) => Error::ValidationException(inner),
244 crate::operation::create_credential_locker::CreateCredentialLockerError::Unhandled(inner) => Error::Unhandled(inner),
245 }
246 }
247}
248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_destination::CreateDestinationError, R>> for Error
249where
250 R: Send + Sync + std::fmt::Debug + 'static,
251{
252 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_destination::CreateDestinationError, R>) -> Self {
253 match err {
254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257 source: err.into(),
258 }),
259 }
260 }
261}
262impl From<crate::operation::create_destination::CreateDestinationError> for Error {
263 fn from(err: crate::operation::create_destination::CreateDestinationError) -> Self {
264 match err {
265 crate::operation::create_destination::CreateDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
266 crate::operation::create_destination::CreateDestinationError::ConflictException(inner) => Error::ConflictException(inner),
267 crate::operation::create_destination::CreateDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
268 crate::operation::create_destination::CreateDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
269 crate::operation::create_destination::CreateDestinationError::ValidationException(inner) => Error::ValidationException(inner),
270 crate::operation::create_destination::CreateDestinationError::Unhandled(inner) => Error::Unhandled(inner),
271 }
272 }
273}
274impl<R>
275 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_log_configuration::CreateEventLogConfigurationError, R>>
276 for Error
277where
278 R: Send + Sync + std::fmt::Debug + 'static,
279{
280 fn from(
281 err: ::aws_smithy_runtime_api::client::result::SdkError<
282 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError,
283 R,
284 >,
285 ) -> Self {
286 match err {
287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
290 source: err.into(),
291 }),
292 }
293 }
294}
295impl From<crate::operation::create_event_log_configuration::CreateEventLogConfigurationError> for Error {
296 fn from(err: crate::operation::create_event_log_configuration::CreateEventLogConfigurationError) -> Self {
297 match err {
298 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError::AccessDeniedException(inner) => {
299 Error::AccessDeniedException(inner)
300 }
301 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError::ConflictException(inner) => {
302 Error::ConflictException(inner)
303 }
304 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError::InternalServerException(inner) => {
305 Error::InternalServerException(inner)
306 }
307 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError::ServiceQuotaExceededException(inner) => {
308 Error::ServiceQuotaExceededException(inner)
309 }
310 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError::ThrottlingException(inner) => {
311 Error::ThrottlingException(inner)
312 }
313 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError::ValidationException(inner) => {
314 Error::ValidationException(inner)
315 }
316 crate::operation::create_event_log_configuration::CreateEventLogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
317 }
318 }
319}
320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_thing::CreateManagedThingError, R>> for Error
321where
322 R: Send + Sync + std::fmt::Debug + 'static,
323{
324 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_managed_thing::CreateManagedThingError, R>) -> Self {
325 match err {
326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
329 source: err.into(),
330 }),
331 }
332 }
333}
334impl From<crate::operation::create_managed_thing::CreateManagedThingError> for Error {
335 fn from(err: crate::operation::create_managed_thing::CreateManagedThingError) -> Self {
336 match err {
337 crate::operation::create_managed_thing::CreateManagedThingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
338 crate::operation::create_managed_thing::CreateManagedThingError::ConflictException(inner) => Error::ConflictException(inner),
339 crate::operation::create_managed_thing::CreateManagedThingError::InternalServerException(inner) => Error::InternalServerException(inner),
340 crate::operation::create_managed_thing::CreateManagedThingError::ResourceNotFoundException(inner) => {
341 Error::ResourceNotFoundException(inner)
342 }
343 crate::operation::create_managed_thing::CreateManagedThingError::ServiceUnavailableException(inner) => {
344 Error::ServiceUnavailableException(inner)
345 }
346 crate::operation::create_managed_thing::CreateManagedThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
347 crate::operation::create_managed_thing::CreateManagedThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
348 crate::operation::create_managed_thing::CreateManagedThingError::ValidationException(inner) => Error::ValidationException(inner),
349 crate::operation::create_managed_thing::CreateManagedThingError::Unhandled(inner) => Error::Unhandled(inner),
350 }
351 }
352}
353impl<R>
354 From<
355 ::aws_smithy_runtime_api::client::result::SdkError<
356 crate::operation::create_notification_configuration::CreateNotificationConfigurationError,
357 R,
358 >,
359 > for Error
360where
361 R: Send + Sync + std::fmt::Debug + 'static,
362{
363 fn from(
364 err: ::aws_smithy_runtime_api::client::result::SdkError<
365 crate::operation::create_notification_configuration::CreateNotificationConfigurationError,
366 R,
367 >,
368 ) -> Self {
369 match err {
370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
373 source: err.into(),
374 }),
375 }
376 }
377}
378impl From<crate::operation::create_notification_configuration::CreateNotificationConfigurationError> for Error {
379 fn from(err: crate::operation::create_notification_configuration::CreateNotificationConfigurationError) -> Self {
380 match err {
381 crate::operation::create_notification_configuration::CreateNotificationConfigurationError::AccessDeniedException(inner) => {
382 Error::AccessDeniedException(inner)
383 }
384 crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ConflictException(inner) => {
385 Error::ConflictException(inner)
386 }
387 crate::operation::create_notification_configuration::CreateNotificationConfigurationError::InternalServerException(inner) => {
388 Error::InternalServerException(inner)
389 }
390 crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ThrottlingException(inner) => {
391 Error::ThrottlingException(inner)
392 }
393 crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ValidationException(inner) => {
394 Error::ValidationException(inner)
395 }
396 crate::operation::create_notification_configuration::CreateNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
397 }
398 }
399}
400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ota_task::CreateOtaTaskError, R>> for Error
401where
402 R: Send + Sync + std::fmt::Debug + 'static,
403{
404 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ota_task::CreateOtaTaskError, R>) -> Self {
405 match err {
406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
409 source: err.into(),
410 }),
411 }
412 }
413}
414impl From<crate::operation::create_ota_task::CreateOtaTaskError> for Error {
415 fn from(err: crate::operation::create_ota_task::CreateOtaTaskError) -> Self {
416 match err {
417 crate::operation::create_ota_task::CreateOtaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
418 crate::operation::create_ota_task::CreateOtaTaskError::ConflictException(inner) => Error::ConflictException(inner),
419 crate::operation::create_ota_task::CreateOtaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
420 crate::operation::create_ota_task::CreateOtaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
421 crate::operation::create_ota_task::CreateOtaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
422 crate::operation::create_ota_task::CreateOtaTaskError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
423 crate::operation::create_ota_task::CreateOtaTaskError::ValidationException(inner) => Error::ValidationException(inner),
424 crate::operation::create_ota_task::CreateOtaTaskError::Unhandled(inner) => Error::Unhandled(inner),
425 }
426 }
427}
428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError, R>>
429 for Error
430where
431 R: Send + Sync + std::fmt::Debug + 'static,
432{
433 fn from(
434 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError, R>,
435 ) -> Self {
436 match err {
437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
440 source: err.into(),
441 }),
442 }
443 }
444}
445impl From<crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError> for Error {
446 fn from(err: crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError) -> Self {
447 match err {
448 crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError::AccessDeniedException(inner) => {
449 Error::AccessDeniedException(inner)
450 }
451 crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError::ConflictException(inner) => {
452 Error::ConflictException(inner)
453 }
454 crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError::InternalServerException(inner) => {
455 Error::InternalServerException(inner)
456 }
457 crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError::ThrottlingException(inner) => {
458 Error::ThrottlingException(inner)
459 }
460 crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError::ValidationException(inner) => {
461 Error::ValidationException(inner)
462 }
463 crate::operation::create_ota_task_configuration::CreateOtaTaskConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
464 }
465 }
466}
467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_provisioning_profile::CreateProvisioningProfileError, R>>
468 for Error
469where
470 R: Send + Sync + std::fmt::Debug + 'static,
471{
472 fn from(
473 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_provisioning_profile::CreateProvisioningProfileError, R>,
474 ) -> Self {
475 match err {
476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
479 source: err.into(),
480 }),
481 }
482 }
483}
484impl From<crate::operation::create_provisioning_profile::CreateProvisioningProfileError> for Error {
485 fn from(err: crate::operation::create_provisioning_profile::CreateProvisioningProfileError) -> Self {
486 match err {
487 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::AccessDeniedException(inner) => {
488 Error::AccessDeniedException(inner)
489 }
490 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::ConflictException(inner) => {
491 Error::ConflictException(inner)
492 }
493 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::InternalServerException(inner) => {
494 Error::InternalServerException(inner)
495 }
496 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::ResourceNotFoundException(inner) => {
497 Error::ResourceNotFoundException(inner)
498 }
499 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::ServiceUnavailableException(inner) => {
500 Error::ServiceUnavailableException(inner)
501 }
502 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::ThrottlingException(inner) => {
503 Error::ThrottlingException(inner)
504 }
505 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::UnauthorizedException(inner) => {
506 Error::UnauthorizedException(inner)
507 }
508 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::ValidationException(inner) => {
509 Error::ValidationException(inner)
510 }
511 crate::operation::create_provisioning_profile::CreateProvisioningProfileError::Unhandled(inner) => Error::Unhandled(inner),
512 }
513 }
514}
515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_association::DeleteAccountAssociationError, R>>
516 for Error
517where
518 R: Send + Sync + std::fmt::Debug + 'static,
519{
520 fn from(
521 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_association::DeleteAccountAssociationError, R>,
522 ) -> Self {
523 match err {
524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
527 source: err.into(),
528 }),
529 }
530 }
531}
532impl From<crate::operation::delete_account_association::DeleteAccountAssociationError> for Error {
533 fn from(err: crate::operation::delete_account_association::DeleteAccountAssociationError) -> Self {
534 match err {
535 crate::operation::delete_account_association::DeleteAccountAssociationError::AccessDeniedException(inner) => {
536 Error::AccessDeniedException(inner)
537 }
538 crate::operation::delete_account_association::DeleteAccountAssociationError::InternalServerException(inner) => {
539 Error::InternalServerException(inner)
540 }
541 crate::operation::delete_account_association::DeleteAccountAssociationError::ResourceNotFoundException(inner) => {
542 Error::ResourceNotFoundException(inner)
543 }
544 crate::operation::delete_account_association::DeleteAccountAssociationError::ServiceUnavailableException(inner) => {
545 Error::ServiceUnavailableException(inner)
546 }
547 crate::operation::delete_account_association::DeleteAccountAssociationError::ThrottlingException(inner) => {
548 Error::ThrottlingException(inner)
549 }
550 crate::operation::delete_account_association::DeleteAccountAssociationError::ValidationException(inner) => {
551 Error::ValidationException(inner)
552 }
553 crate::operation::delete_account_association::DeleteAccountAssociationError::Unhandled(inner) => Error::Unhandled(inner),
554 }
555 }
556}
557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cloud_connector::DeleteCloudConnectorError, R>> for Error
558where
559 R: Send + Sync + std::fmt::Debug + 'static,
560{
561 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cloud_connector::DeleteCloudConnectorError, R>) -> Self {
562 match err {
563 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
564 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
565 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
566 source: err.into(),
567 }),
568 }
569 }
570}
571impl From<crate::operation::delete_cloud_connector::DeleteCloudConnectorError> for Error {
572 fn from(err: crate::operation::delete_cloud_connector::DeleteCloudConnectorError) -> Self {
573 match err {
574 crate::operation::delete_cloud_connector::DeleteCloudConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
575 crate::operation::delete_cloud_connector::DeleteCloudConnectorError::InternalServerException(inner) => {
576 Error::InternalServerException(inner)
577 }
578 crate::operation::delete_cloud_connector::DeleteCloudConnectorError::ResourceNotFoundException(inner) => {
579 Error::ResourceNotFoundException(inner)
580 }
581 crate::operation::delete_cloud_connector::DeleteCloudConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
582 crate::operation::delete_cloud_connector::DeleteCloudConnectorError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
583 crate::operation::delete_cloud_connector::DeleteCloudConnectorError::ValidationException(inner) => Error::ValidationException(inner),
584 crate::operation::delete_cloud_connector::DeleteCloudConnectorError::Unhandled(inner) => Error::Unhandled(inner),
585 }
586 }
587}
588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector_destination::DeleteConnectorDestinationError, R>>
589 for Error
590where
591 R: Send + Sync + std::fmt::Debug + 'static,
592{
593 fn from(
594 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector_destination::DeleteConnectorDestinationError, R>,
595 ) -> Self {
596 match err {
597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
600 source: err.into(),
601 }),
602 }
603 }
604}
605impl From<crate::operation::delete_connector_destination::DeleteConnectorDestinationError> for Error {
606 fn from(err: crate::operation::delete_connector_destination::DeleteConnectorDestinationError) -> Self {
607 match err {
608 crate::operation::delete_connector_destination::DeleteConnectorDestinationError::AccessDeniedException(inner) => {
609 Error::AccessDeniedException(inner)
610 }
611 crate::operation::delete_connector_destination::DeleteConnectorDestinationError::InternalServerException(inner) => {
612 Error::InternalServerException(inner)
613 }
614 crate::operation::delete_connector_destination::DeleteConnectorDestinationError::ResourceNotFoundException(inner) => {
615 Error::ResourceNotFoundException(inner)
616 }
617 crate::operation::delete_connector_destination::DeleteConnectorDestinationError::ThrottlingException(inner) => {
618 Error::ThrottlingException(inner)
619 }
620 crate::operation::delete_connector_destination::DeleteConnectorDestinationError::ValidationException(inner) => {
621 Error::ValidationException(inner)
622 }
623 crate::operation::delete_connector_destination::DeleteConnectorDestinationError::Unhandled(inner) => Error::Unhandled(inner),
624 }
625 }
626}
627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_credential_locker::DeleteCredentialLockerError, R>> for Error
628where
629 R: Send + Sync + std::fmt::Debug + 'static,
630{
631 fn from(
632 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_credential_locker::DeleteCredentialLockerError, R>,
633 ) -> Self {
634 match err {
635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
638 source: err.into(),
639 }),
640 }
641 }
642}
643impl From<crate::operation::delete_credential_locker::DeleteCredentialLockerError> for Error {
644 fn from(err: crate::operation::delete_credential_locker::DeleteCredentialLockerError) -> Self {
645 match err {
646 crate::operation::delete_credential_locker::DeleteCredentialLockerError::AccessDeniedException(inner) => {
647 Error::AccessDeniedException(inner)
648 }
649 crate::operation::delete_credential_locker::DeleteCredentialLockerError::InternalServerException(inner) => {
650 Error::InternalServerException(inner)
651 }
652 crate::operation::delete_credential_locker::DeleteCredentialLockerError::ResourceNotFoundException(inner) => {
653 Error::ResourceNotFoundException(inner)
654 }
655 crate::operation::delete_credential_locker::DeleteCredentialLockerError::ServiceUnavailableException(inner) => {
656 Error::ServiceUnavailableException(inner)
657 }
658 crate::operation::delete_credential_locker::DeleteCredentialLockerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
659 crate::operation::delete_credential_locker::DeleteCredentialLockerError::ValidationException(inner) => Error::ValidationException(inner),
660 crate::operation::delete_credential_locker::DeleteCredentialLockerError::Unhandled(inner) => Error::Unhandled(inner),
661 }
662 }
663}
664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>> for Error
665where
666 R: Send + Sync + std::fmt::Debug + 'static,
667{
668 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>) -> Self {
669 match err {
670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
673 source: err.into(),
674 }),
675 }
676 }
677}
678impl From<crate::operation::delete_destination::DeleteDestinationError> for Error {
679 fn from(err: crate::operation::delete_destination::DeleteDestinationError) -> Self {
680 match err {
681 crate::operation::delete_destination::DeleteDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
682 crate::operation::delete_destination::DeleteDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
683 crate::operation::delete_destination::DeleteDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
684 crate::operation::delete_destination::DeleteDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
685 crate::operation::delete_destination::DeleteDestinationError::ValidationException(inner) => Error::ValidationException(inner),
686 crate::operation::delete_destination::DeleteDestinationError::Unhandled(inner) => Error::Unhandled(inner),
687 }
688 }
689}
690impl<R>
691 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError, R>>
692 for Error
693where
694 R: Send + Sync + std::fmt::Debug + 'static,
695{
696 fn from(
697 err: ::aws_smithy_runtime_api::client::result::SdkError<
698 crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError,
699 R,
700 >,
701 ) -> Self {
702 match err {
703 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
704 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
705 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
706 source: err.into(),
707 }),
708 }
709 }
710}
711impl From<crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError> for Error {
712 fn from(err: crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError) -> Self {
713 match err {
714 crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError::AccessDeniedException(inner) => {
715 Error::AccessDeniedException(inner)
716 }
717 crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError::InternalServerException(inner) => {
718 Error::InternalServerException(inner)
719 }
720 crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError::ResourceNotFoundException(inner) => {
721 Error::ResourceNotFoundException(inner)
722 }
723 crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError::ThrottlingException(inner) => {
724 Error::ThrottlingException(inner)
725 }
726 crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError::ValidationException(inner) => {
727 Error::ValidationException(inner)
728 }
729 crate::operation::delete_event_log_configuration::DeleteEventLogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
730 }
731 }
732}
733impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_thing::DeleteManagedThingError, R>> for Error
734where
735 R: Send + Sync + std::fmt::Debug + 'static,
736{
737 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_managed_thing::DeleteManagedThingError, R>) -> Self {
738 match err {
739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
742 source: err.into(),
743 }),
744 }
745 }
746}
747impl From<crate::operation::delete_managed_thing::DeleteManagedThingError> for Error {
748 fn from(err: crate::operation::delete_managed_thing::DeleteManagedThingError) -> Self {
749 match err {
750 crate::operation::delete_managed_thing::DeleteManagedThingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
751 crate::operation::delete_managed_thing::DeleteManagedThingError::ConflictException(inner) => Error::ConflictException(inner),
752 crate::operation::delete_managed_thing::DeleteManagedThingError::InternalServerException(inner) => Error::InternalServerException(inner),
753 crate::operation::delete_managed_thing::DeleteManagedThingError::ResourceNotFoundException(inner) => {
754 Error::ResourceNotFoundException(inner)
755 }
756 crate::operation::delete_managed_thing::DeleteManagedThingError::ServiceUnavailableException(inner) => {
757 Error::ServiceUnavailableException(inner)
758 }
759 crate::operation::delete_managed_thing::DeleteManagedThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
760 crate::operation::delete_managed_thing::DeleteManagedThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
761 crate::operation::delete_managed_thing::DeleteManagedThingError::ValidationException(inner) => Error::ValidationException(inner),
762 crate::operation::delete_managed_thing::DeleteManagedThingError::Unhandled(inner) => Error::Unhandled(inner),
763 }
764 }
765}
766impl<R>
767 From<
768 ::aws_smithy_runtime_api::client::result::SdkError<
769 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
770 R,
771 >,
772 > for Error
773where
774 R: Send + Sync + std::fmt::Debug + 'static,
775{
776 fn from(
777 err: ::aws_smithy_runtime_api::client::result::SdkError<
778 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
779 R,
780 >,
781 ) -> Self {
782 match err {
783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
786 source: err.into(),
787 }),
788 }
789 }
790}
791impl From<crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError> for Error {
792 fn from(err: crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError) -> Self {
793 match err {
794 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::AccessDeniedException(inner) => {
795 Error::AccessDeniedException(inner)
796 }
797 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::InternalServerException(inner) => {
798 Error::InternalServerException(inner)
799 }
800 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ResourceNotFoundException(inner) => {
801 Error::ResourceNotFoundException(inner)
802 }
803 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ThrottlingException(inner) => {
804 Error::ThrottlingException(inner)
805 }
806 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ValidationException(inner) => {
807 Error::ValidationException(inner)
808 }
809 crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
810 }
811 }
812}
813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ota_task::DeleteOtaTaskError, R>> for Error
814where
815 R: Send + Sync + std::fmt::Debug + 'static,
816{
817 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ota_task::DeleteOtaTaskError, R>) -> Self {
818 match err {
819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
822 source: err.into(),
823 }),
824 }
825 }
826}
827impl From<crate::operation::delete_ota_task::DeleteOtaTaskError> for Error {
828 fn from(err: crate::operation::delete_ota_task::DeleteOtaTaskError) -> Self {
829 match err {
830 crate::operation::delete_ota_task::DeleteOtaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
831 crate::operation::delete_ota_task::DeleteOtaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
832 crate::operation::delete_ota_task::DeleteOtaTaskError::LimitExceededException(inner) => Error::LimitExceededException(inner),
833 crate::operation::delete_ota_task::DeleteOtaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
834 crate::operation::delete_ota_task::DeleteOtaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
835 crate::operation::delete_ota_task::DeleteOtaTaskError::ValidationException(inner) => Error::ValidationException(inner),
836 crate::operation::delete_ota_task::DeleteOtaTaskError::Unhandled(inner) => Error::Unhandled(inner),
837 }
838 }
839}
840impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError, R>>
841 for Error
842where
843 R: Send + Sync + std::fmt::Debug + 'static,
844{
845 fn from(
846 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError, R>,
847 ) -> Self {
848 match err {
849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
852 source: err.into(),
853 }),
854 }
855 }
856}
857impl From<crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError> for Error {
858 fn from(err: crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError) -> Self {
859 match err {
860 crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError::AccessDeniedException(inner) => {
861 Error::AccessDeniedException(inner)
862 }
863 crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError::InternalServerException(inner) => {
864 Error::InternalServerException(inner)
865 }
866 crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError::ResourceNotFoundException(inner) => {
867 Error::ResourceNotFoundException(inner)
868 }
869 crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError::ThrottlingException(inner) => {
870 Error::ThrottlingException(inner)
871 }
872 crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError::ValidationException(inner) => {
873 Error::ValidationException(inner)
874 }
875 crate::operation::delete_ota_task_configuration::DeleteOtaTaskConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
876 }
877 }
878}
879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError, R>>
880 for Error
881where
882 R: Send + Sync + std::fmt::Debug + 'static,
883{
884 fn from(
885 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError, R>,
886 ) -> Self {
887 match err {
888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
891 source: err.into(),
892 }),
893 }
894 }
895}
896impl From<crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError> for Error {
897 fn from(err: crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError) -> Self {
898 match err {
899 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::AccessDeniedException(inner) => {
900 Error::AccessDeniedException(inner)
901 }
902 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::ConflictException(inner) => {
903 Error::ConflictException(inner)
904 }
905 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::InternalServerException(inner) => {
906 Error::InternalServerException(inner)
907 }
908 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::ResourceNotFoundException(inner) => {
909 Error::ResourceNotFoundException(inner)
910 }
911 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::ServiceUnavailableException(inner) => {
912 Error::ServiceUnavailableException(inner)
913 }
914 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::ThrottlingException(inner) => {
915 Error::ThrottlingException(inner)
916 }
917 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::UnauthorizedException(inner) => {
918 Error::UnauthorizedException(inner)
919 }
920 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::ValidationException(inner) => {
921 Error::ValidationException(inner)
922 }
923 crate::operation::delete_provisioning_profile::DeleteProvisioningProfileError::Unhandled(inner) => Error::Unhandled(inner),
924 }
925 }
926}
927impl<R>
928 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_account_association::DeregisterAccountAssociationError, R>>
929 for Error
930where
931 R: Send + Sync + std::fmt::Debug + 'static,
932{
933 fn from(
934 err: ::aws_smithy_runtime_api::client::result::SdkError<
935 crate::operation::deregister_account_association::DeregisterAccountAssociationError,
936 R,
937 >,
938 ) -> Self {
939 match err {
940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
943 source: err.into(),
944 }),
945 }
946 }
947}
948impl From<crate::operation::deregister_account_association::DeregisterAccountAssociationError> for Error {
949 fn from(err: crate::operation::deregister_account_association::DeregisterAccountAssociationError) -> Self {
950 match err {
951 crate::operation::deregister_account_association::DeregisterAccountAssociationError::AccessDeniedException(inner) => {
952 Error::AccessDeniedException(inner)
953 }
954 crate::operation::deregister_account_association::DeregisterAccountAssociationError::ConflictException(inner) => {
955 Error::ConflictException(inner)
956 }
957 crate::operation::deregister_account_association::DeregisterAccountAssociationError::InternalServerException(inner) => {
958 Error::InternalServerException(inner)
959 }
960 crate::operation::deregister_account_association::DeregisterAccountAssociationError::ResourceNotFoundException(inner) => {
961 Error::ResourceNotFoundException(inner)
962 }
963 crate::operation::deregister_account_association::DeregisterAccountAssociationError::ThrottlingException(inner) => {
964 Error::ThrottlingException(inner)
965 }
966 crate::operation::deregister_account_association::DeregisterAccountAssociationError::ValidationException(inner) => {
967 Error::ValidationException(inner)
968 }
969 crate::operation::deregister_account_association::DeregisterAccountAssociationError::Unhandled(inner) => Error::Unhandled(inner),
970 }
971 }
972}
973impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_association::GetAccountAssociationError, R>> for Error
974where
975 R: Send + Sync + std::fmt::Debug + 'static,
976{
977 fn from(
978 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_association::GetAccountAssociationError, R>,
979 ) -> Self {
980 match err {
981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
984 source: err.into(),
985 }),
986 }
987 }
988}
989impl From<crate::operation::get_account_association::GetAccountAssociationError> for Error {
990 fn from(err: crate::operation::get_account_association::GetAccountAssociationError) -> Self {
991 match err {
992 crate::operation::get_account_association::GetAccountAssociationError::AccessDeniedException(inner) => {
993 Error::AccessDeniedException(inner)
994 }
995 crate::operation::get_account_association::GetAccountAssociationError::InternalServerException(inner) => {
996 Error::InternalServerException(inner)
997 }
998 crate::operation::get_account_association::GetAccountAssociationError::ResourceNotFoundException(inner) => {
999 Error::ResourceNotFoundException(inner)
1000 }
1001 crate::operation::get_account_association::GetAccountAssociationError::ServiceUnavailableException(inner) => {
1002 Error::ServiceUnavailableException(inner)
1003 }
1004 crate::operation::get_account_association::GetAccountAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1005 crate::operation::get_account_association::GetAccountAssociationError::ValidationException(inner) => Error::ValidationException(inner),
1006 crate::operation::get_account_association::GetAccountAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1007 }
1008 }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cloud_connector::GetCloudConnectorError, R>> for Error
1011where
1012 R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cloud_connector::GetCloudConnectorError, R>) -> Self {
1015 match err {
1016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1019 source: err.into(),
1020 }),
1021 }
1022 }
1023}
1024impl From<crate::operation::get_cloud_connector::GetCloudConnectorError> for Error {
1025 fn from(err: crate::operation::get_cloud_connector::GetCloudConnectorError) -> Self {
1026 match err {
1027 crate::operation::get_cloud_connector::GetCloudConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1028 crate::operation::get_cloud_connector::GetCloudConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
1029 crate::operation::get_cloud_connector::GetCloudConnectorError::ResourceNotFoundException(inner) => {
1030 Error::ResourceNotFoundException(inner)
1031 }
1032 crate::operation::get_cloud_connector::GetCloudConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1033 crate::operation::get_cloud_connector::GetCloudConnectorError::ValidationException(inner) => Error::ValidationException(inner),
1034 crate::operation::get_cloud_connector::GetCloudConnectorError::Unhandled(inner) => Error::Unhandled(inner),
1035 }
1036 }
1037}
1038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connector_destination::GetConnectorDestinationError, R>>
1039 for Error
1040where
1041 R: Send + Sync + std::fmt::Debug + 'static,
1042{
1043 fn from(
1044 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connector_destination::GetConnectorDestinationError, R>,
1045 ) -> Self {
1046 match err {
1047 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1048 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1049 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1050 source: err.into(),
1051 }),
1052 }
1053 }
1054}
1055impl From<crate::operation::get_connector_destination::GetConnectorDestinationError> for Error {
1056 fn from(err: crate::operation::get_connector_destination::GetConnectorDestinationError) -> Self {
1057 match err {
1058 crate::operation::get_connector_destination::GetConnectorDestinationError::AccessDeniedException(inner) => {
1059 Error::AccessDeniedException(inner)
1060 }
1061 crate::operation::get_connector_destination::GetConnectorDestinationError::InternalServerException(inner) => {
1062 Error::InternalServerException(inner)
1063 }
1064 crate::operation::get_connector_destination::GetConnectorDestinationError::ResourceNotFoundException(inner) => {
1065 Error::ResourceNotFoundException(inner)
1066 }
1067 crate::operation::get_connector_destination::GetConnectorDestinationError::ThrottlingException(inner) => {
1068 Error::ThrottlingException(inner)
1069 }
1070 crate::operation::get_connector_destination::GetConnectorDestinationError::ValidationException(inner) => {
1071 Error::ValidationException(inner)
1072 }
1073 crate::operation::get_connector_destination::GetConnectorDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1074 }
1075 }
1076}
1077impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_credential_locker::GetCredentialLockerError, R>> for Error
1078where
1079 R: Send + Sync + std::fmt::Debug + 'static,
1080{
1081 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_credential_locker::GetCredentialLockerError, R>) -> Self {
1082 match err {
1083 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1084 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1085 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1086 source: err.into(),
1087 }),
1088 }
1089 }
1090}
1091impl From<crate::operation::get_credential_locker::GetCredentialLockerError> for Error {
1092 fn from(err: crate::operation::get_credential_locker::GetCredentialLockerError) -> Self {
1093 match err {
1094 crate::operation::get_credential_locker::GetCredentialLockerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1095 crate::operation::get_credential_locker::GetCredentialLockerError::InternalServerException(inner) => {
1096 Error::InternalServerException(inner)
1097 }
1098 crate::operation::get_credential_locker::GetCredentialLockerError::ResourceNotFoundException(inner) => {
1099 Error::ResourceNotFoundException(inner)
1100 }
1101 crate::operation::get_credential_locker::GetCredentialLockerError::ServiceUnavailableException(inner) => {
1102 Error::ServiceUnavailableException(inner)
1103 }
1104 crate::operation::get_credential_locker::GetCredentialLockerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1105 crate::operation::get_credential_locker::GetCredentialLockerError::ValidationException(inner) => Error::ValidationException(inner),
1106 crate::operation::get_credential_locker::GetCredentialLockerError::Unhandled(inner) => Error::Unhandled(inner),
1107 }
1108 }
1109}
1110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_endpoint::GetCustomEndpointError, R>> for Error
1111where
1112 R: Send + Sync + std::fmt::Debug + 'static,
1113{
1114 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_endpoint::GetCustomEndpointError, R>) -> Self {
1115 match err {
1116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1119 source: err.into(),
1120 }),
1121 }
1122 }
1123}
1124impl From<crate::operation::get_custom_endpoint::GetCustomEndpointError> for Error {
1125 fn from(err: crate::operation::get_custom_endpoint::GetCustomEndpointError) -> Self {
1126 match err {
1127 crate::operation::get_custom_endpoint::GetCustomEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1128 crate::operation::get_custom_endpoint::GetCustomEndpointError::InternalServerException(inner) => Error::InternalServerException(inner),
1129 crate::operation::get_custom_endpoint::GetCustomEndpointError::ResourceNotFoundException(inner) => {
1130 Error::ResourceNotFoundException(inner)
1131 }
1132 crate::operation::get_custom_endpoint::GetCustomEndpointError::ServiceUnavailableException(inner) => {
1133 Error::ServiceUnavailableException(inner)
1134 }
1135 crate::operation::get_custom_endpoint::GetCustomEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1136 crate::operation::get_custom_endpoint::GetCustomEndpointError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1137 crate::operation::get_custom_endpoint::GetCustomEndpointError::ValidationException(inner) => Error::ValidationException(inner),
1138 crate::operation::get_custom_endpoint::GetCustomEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1139 }
1140 }
1141}
1142impl<R>
1143 From<
1144 ::aws_smithy_runtime_api::client::result::SdkError<
1145 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError,
1146 R,
1147 >,
1148 > for Error
1149where
1150 R: Send + Sync + std::fmt::Debug + 'static,
1151{
1152 fn from(
1153 err: ::aws_smithy_runtime_api::client::result::SdkError<
1154 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError,
1155 R,
1156 >,
1157 ) -> Self {
1158 match err {
1159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1162 source: err.into(),
1163 }),
1164 }
1165 }
1166}
1167impl From<crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError> for Error {
1168 fn from(err: crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError) -> Self {
1169 match err {
1170 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::AccessDeniedException(inner) => {
1171 Error::AccessDeniedException(inner)
1172 }
1173 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::InternalFailureException(inner) => {
1174 Error::InternalFailureException(inner)
1175 }
1176 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::ResourceNotFoundException(inner) => {
1177 Error::ResourceNotFoundException(inner)
1178 }
1179 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::ServiceUnavailableException(inner) => {
1180 Error::ServiceUnavailableException(inner)
1181 }
1182 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::ThrottlingException(inner) => {
1183 Error::ThrottlingException(inner)
1184 }
1185 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::UnauthorizedException(inner) => {
1186 Error::UnauthorizedException(inner)
1187 }
1188 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::ValidationException(inner) => {
1189 Error::ValidationException(inner)
1190 }
1191 crate::operation::get_default_encryption_configuration::GetDefaultEncryptionConfigurationError::Unhandled(inner) => {
1192 Error::Unhandled(inner)
1193 }
1194 }
1195 }
1196}
1197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_destination::GetDestinationError, R>> for Error
1198where
1199 R: Send + Sync + std::fmt::Debug + 'static,
1200{
1201 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_destination::GetDestinationError, R>) -> Self {
1202 match err {
1203 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1204 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1205 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1206 source: err.into(),
1207 }),
1208 }
1209 }
1210}
1211impl From<crate::operation::get_destination::GetDestinationError> for Error {
1212 fn from(err: crate::operation::get_destination::GetDestinationError) -> Self {
1213 match err {
1214 crate::operation::get_destination::GetDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1215 crate::operation::get_destination::GetDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
1216 crate::operation::get_destination::GetDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1217 crate::operation::get_destination::GetDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1218 crate::operation::get_destination::GetDestinationError::ValidationException(inner) => Error::ValidationException(inner),
1219 crate::operation::get_destination::GetDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1220 }
1221 }
1222}
1223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_discovery::GetDeviceDiscoveryError, R>> for Error
1224where
1225 R: Send + Sync + std::fmt::Debug + 'static,
1226{
1227 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_discovery::GetDeviceDiscoveryError, R>) -> Self {
1228 match err {
1229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1232 source: err.into(),
1233 }),
1234 }
1235 }
1236}
1237impl From<crate::operation::get_device_discovery::GetDeviceDiscoveryError> for Error {
1238 fn from(err: crate::operation::get_device_discovery::GetDeviceDiscoveryError) -> Self {
1239 match err {
1240 crate::operation::get_device_discovery::GetDeviceDiscoveryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1241 crate::operation::get_device_discovery::GetDeviceDiscoveryError::InternalServerException(inner) => Error::InternalServerException(inner),
1242 crate::operation::get_device_discovery::GetDeviceDiscoveryError::ResourceNotFoundException(inner) => {
1243 Error::ResourceNotFoundException(inner)
1244 }
1245 crate::operation::get_device_discovery::GetDeviceDiscoveryError::ServiceUnavailableException(inner) => {
1246 Error::ServiceUnavailableException(inner)
1247 }
1248 crate::operation::get_device_discovery::GetDeviceDiscoveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1249 crate::operation::get_device_discovery::GetDeviceDiscoveryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1250 crate::operation::get_device_discovery::GetDeviceDiscoveryError::ValidationException(inner) => Error::ValidationException(inner),
1251 crate::operation::get_device_discovery::GetDeviceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
1252 }
1253 }
1254}
1255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_log_configuration::GetEventLogConfigurationError, R>>
1256 for Error
1257where
1258 R: Send + Sync + std::fmt::Debug + 'static,
1259{
1260 fn from(
1261 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_log_configuration::GetEventLogConfigurationError, R>,
1262 ) -> Self {
1263 match err {
1264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1267 source: err.into(),
1268 }),
1269 }
1270 }
1271}
1272impl From<crate::operation::get_event_log_configuration::GetEventLogConfigurationError> for Error {
1273 fn from(err: crate::operation::get_event_log_configuration::GetEventLogConfigurationError) -> Self {
1274 match err {
1275 crate::operation::get_event_log_configuration::GetEventLogConfigurationError::AccessDeniedException(inner) => {
1276 Error::AccessDeniedException(inner)
1277 }
1278 crate::operation::get_event_log_configuration::GetEventLogConfigurationError::InternalServerException(inner) => {
1279 Error::InternalServerException(inner)
1280 }
1281 crate::operation::get_event_log_configuration::GetEventLogConfigurationError::ResourceNotFoundException(inner) => {
1282 Error::ResourceNotFoundException(inner)
1283 }
1284 crate::operation::get_event_log_configuration::GetEventLogConfigurationError::ThrottlingException(inner) => {
1285 Error::ThrottlingException(inner)
1286 }
1287 crate::operation::get_event_log_configuration::GetEventLogConfigurationError::ValidationException(inner) => {
1288 Error::ValidationException(inner)
1289 }
1290 crate::operation::get_event_log_configuration::GetEventLogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1291 }
1292 }
1293}
1294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hub_configuration::GetHubConfigurationError, R>> for Error
1295where
1296 R: Send + Sync + std::fmt::Debug + 'static,
1297{
1298 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hub_configuration::GetHubConfigurationError, R>) -> Self {
1299 match err {
1300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1303 source: err.into(),
1304 }),
1305 }
1306 }
1307}
1308impl From<crate::operation::get_hub_configuration::GetHubConfigurationError> for Error {
1309 fn from(err: crate::operation::get_hub_configuration::GetHubConfigurationError) -> Self {
1310 match err {
1311 crate::operation::get_hub_configuration::GetHubConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1312 crate::operation::get_hub_configuration::GetHubConfigurationError::InternalServerException(inner) => {
1313 Error::InternalServerException(inner)
1314 }
1315 crate::operation::get_hub_configuration::GetHubConfigurationError::ResourceNotFoundException(inner) => {
1316 Error::ResourceNotFoundException(inner)
1317 }
1318 crate::operation::get_hub_configuration::GetHubConfigurationError::ServiceUnavailableException(inner) => {
1319 Error::ServiceUnavailableException(inner)
1320 }
1321 crate::operation::get_hub_configuration::GetHubConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1322 crate::operation::get_hub_configuration::GetHubConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
1323 crate::operation::get_hub_configuration::GetHubConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1324 }
1325 }
1326}
1327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing::GetManagedThingError, R>> for Error
1328where
1329 R: Send + Sync + std::fmt::Debug + 'static,
1330{
1331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing::GetManagedThingError, R>) -> Self {
1332 match err {
1333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1336 source: err.into(),
1337 }),
1338 }
1339 }
1340}
1341impl From<crate::operation::get_managed_thing::GetManagedThingError> for Error {
1342 fn from(err: crate::operation::get_managed_thing::GetManagedThingError) -> Self {
1343 match err {
1344 crate::operation::get_managed_thing::GetManagedThingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1345 crate::operation::get_managed_thing::GetManagedThingError::InternalServerException(inner) => Error::InternalServerException(inner),
1346 crate::operation::get_managed_thing::GetManagedThingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1347 crate::operation::get_managed_thing::GetManagedThingError::ServiceUnavailableException(inner) => {
1348 Error::ServiceUnavailableException(inner)
1349 }
1350 crate::operation::get_managed_thing::GetManagedThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1351 crate::operation::get_managed_thing::GetManagedThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1352 crate::operation::get_managed_thing::GetManagedThingError::ValidationException(inner) => Error::ValidationException(inner),
1353 crate::operation::get_managed_thing::GetManagedThingError::Unhandled(inner) => Error::Unhandled(inner),
1354 }
1355 }
1356}
1357impl<R>
1358 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError, R>>
1359 for Error
1360where
1361 R: Send + Sync + std::fmt::Debug + 'static,
1362{
1363 fn from(
1364 err: ::aws_smithy_runtime_api::client::result::SdkError<
1365 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError,
1366 R,
1367 >,
1368 ) -> Self {
1369 match err {
1370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1373 source: err.into(),
1374 }),
1375 }
1376 }
1377}
1378impl From<crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError> for Error {
1379 fn from(err: crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError) -> Self {
1380 match err {
1381 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::AccessDeniedException(inner) => {
1382 Error::AccessDeniedException(inner)
1383 }
1384 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::InternalServerException(inner) => {
1385 Error::InternalServerException(inner)
1386 }
1387 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::ResourceNotFoundException(inner) => {
1388 Error::ResourceNotFoundException(inner)
1389 }
1390 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::ServiceUnavailableException(inner) => {
1391 Error::ServiceUnavailableException(inner)
1392 }
1393 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::ThrottlingException(inner) => {
1394 Error::ThrottlingException(inner)
1395 }
1396 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::UnauthorizedException(inner) => {
1397 Error::UnauthorizedException(inner)
1398 }
1399 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::ValidationException(inner) => {
1400 Error::ValidationException(inner)
1401 }
1402 crate::operation::get_managed_thing_capabilities::GetManagedThingCapabilitiesError::Unhandled(inner) => Error::Unhandled(inner),
1403 }
1404 }
1405}
1406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError, R>>
1407 for Error
1408where
1409 R: Send + Sync + std::fmt::Debug + 'static,
1410{
1411 fn from(
1412 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError, R>,
1413 ) -> Self {
1414 match err {
1415 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1416 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1417 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1418 source: err.into(),
1419 }),
1420 }
1421 }
1422}
1423impl From<crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError> for Error {
1424 fn from(err: crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError) -> Self {
1425 match err {
1426 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::AccessDeniedException(inner) => {
1427 Error::AccessDeniedException(inner)
1428 }
1429 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::InternalServerException(inner) => {
1430 Error::InternalServerException(inner)
1431 }
1432 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::ResourceNotFoundException(inner) => {
1433 Error::ResourceNotFoundException(inner)
1434 }
1435 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::ServiceUnavailableException(inner) => {
1436 Error::ServiceUnavailableException(inner)
1437 }
1438 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::ThrottlingException(inner) => {
1439 Error::ThrottlingException(inner)
1440 }
1441 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::UnauthorizedException(inner) => {
1442 Error::UnauthorizedException(inner)
1443 }
1444 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::ValidationException(inner) => {
1445 Error::ValidationException(inner)
1446 }
1447 crate::operation::get_managed_thing_certificate::GetManagedThingCertificateError::Unhandled(inner) => Error::Unhandled(inner),
1448 }
1449 }
1450}
1451impl<R>
1452 From<
1453 ::aws_smithy_runtime_api::client::result::SdkError<
1454 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError,
1455 R,
1456 >,
1457 > for Error
1458where
1459 R: Send + Sync + std::fmt::Debug + 'static,
1460{
1461 fn from(
1462 err: ::aws_smithy_runtime_api::client::result::SdkError<
1463 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError,
1464 R,
1465 >,
1466 ) -> Self {
1467 match err {
1468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1471 source: err.into(),
1472 }),
1473 }
1474 }
1475}
1476impl From<crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError> for Error {
1477 fn from(err: crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError) -> Self {
1478 match err {
1479 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::AccessDeniedException(inner) => {
1480 Error::AccessDeniedException(inner)
1481 }
1482 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::InternalServerException(inner) => {
1483 Error::InternalServerException(inner)
1484 }
1485 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::ResourceNotFoundException(inner) => {
1486 Error::ResourceNotFoundException(inner)
1487 }
1488 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::ServiceUnavailableException(inner) => {
1489 Error::ServiceUnavailableException(inner)
1490 }
1491 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::ThrottlingException(inner) => {
1492 Error::ThrottlingException(inner)
1493 }
1494 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::UnauthorizedException(inner) => {
1495 Error::UnauthorizedException(inner)
1496 }
1497 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::ValidationException(inner) => {
1498 Error::ValidationException(inner)
1499 }
1500 crate::operation::get_managed_thing_connectivity_data::GetManagedThingConnectivityDataError::Unhandled(inner) => Error::Unhandled(inner),
1501 }
1502 }
1503}
1504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError, R>>
1505 for Error
1506where
1507 R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509 fn from(
1510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError, R>,
1511 ) -> Self {
1512 match err {
1513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1516 source: err.into(),
1517 }),
1518 }
1519 }
1520}
1521impl From<crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError> for Error {
1522 fn from(err: crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError) -> Self {
1523 match err {
1524 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::AccessDeniedException(inner) => {
1525 Error::AccessDeniedException(inner)
1526 }
1527 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::InternalServerException(inner) => {
1528 Error::InternalServerException(inner)
1529 }
1530 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::ResourceNotFoundException(inner) => {
1531 Error::ResourceNotFoundException(inner)
1532 }
1533 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::ServiceUnavailableException(inner) => {
1534 Error::ServiceUnavailableException(inner)
1535 }
1536 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::ThrottlingException(inner) => {
1537 Error::ThrottlingException(inner)
1538 }
1539 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::UnauthorizedException(inner) => {
1540 Error::UnauthorizedException(inner)
1541 }
1542 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::ValidationException(inner) => {
1543 Error::ValidationException(inner)
1544 }
1545 crate::operation::get_managed_thing_meta_data::GetManagedThingMetaDataError::Unhandled(inner) => Error::Unhandled(inner),
1546 }
1547 }
1548}
1549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing_state::GetManagedThingStateError, R>> for Error
1550where
1551 R: Send + Sync + std::fmt::Debug + 'static,
1552{
1553 fn from(
1554 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_thing_state::GetManagedThingStateError, R>,
1555 ) -> Self {
1556 match err {
1557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1560 source: err.into(),
1561 }),
1562 }
1563 }
1564}
1565impl From<crate::operation::get_managed_thing_state::GetManagedThingStateError> for Error {
1566 fn from(err: crate::operation::get_managed_thing_state::GetManagedThingStateError) -> Self {
1567 match err {
1568 crate::operation::get_managed_thing_state::GetManagedThingStateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1569 crate::operation::get_managed_thing_state::GetManagedThingStateError::InternalFailureException(inner) => {
1570 Error::InternalFailureException(inner)
1571 }
1572 crate::operation::get_managed_thing_state::GetManagedThingStateError::ResourceNotFoundException(inner) => {
1573 Error::ResourceNotFoundException(inner)
1574 }
1575 crate::operation::get_managed_thing_state::GetManagedThingStateError::ServiceUnavailableException(inner) => {
1576 Error::ServiceUnavailableException(inner)
1577 }
1578 crate::operation::get_managed_thing_state::GetManagedThingStateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1579 crate::operation::get_managed_thing_state::GetManagedThingStateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1580 crate::operation::get_managed_thing_state::GetManagedThingStateError::ValidationException(inner) => Error::ValidationException(inner),
1581 crate::operation::get_managed_thing_state::GetManagedThingStateError::Unhandled(inner) => Error::Unhandled(inner),
1582 }
1583 }
1584}
1585impl<R>
1586 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notification_configuration::GetNotificationConfigurationError, R>>
1587 for Error
1588where
1589 R: Send + Sync + std::fmt::Debug + 'static,
1590{
1591 fn from(
1592 err: ::aws_smithy_runtime_api::client::result::SdkError<
1593 crate::operation::get_notification_configuration::GetNotificationConfigurationError,
1594 R,
1595 >,
1596 ) -> Self {
1597 match err {
1598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1601 source: err.into(),
1602 }),
1603 }
1604 }
1605}
1606impl From<crate::operation::get_notification_configuration::GetNotificationConfigurationError> for Error {
1607 fn from(err: crate::operation::get_notification_configuration::GetNotificationConfigurationError) -> Self {
1608 match err {
1609 crate::operation::get_notification_configuration::GetNotificationConfigurationError::AccessDeniedException(inner) => {
1610 Error::AccessDeniedException(inner)
1611 }
1612 crate::operation::get_notification_configuration::GetNotificationConfigurationError::InternalServerException(inner) => {
1613 Error::InternalServerException(inner)
1614 }
1615 crate::operation::get_notification_configuration::GetNotificationConfigurationError::ResourceNotFoundException(inner) => {
1616 Error::ResourceNotFoundException(inner)
1617 }
1618 crate::operation::get_notification_configuration::GetNotificationConfigurationError::ThrottlingException(inner) => {
1619 Error::ThrottlingException(inner)
1620 }
1621 crate::operation::get_notification_configuration::GetNotificationConfigurationError::ValidationException(inner) => {
1622 Error::ValidationException(inner)
1623 }
1624 crate::operation::get_notification_configuration::GetNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1625 }
1626 }
1627}
1628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ota_task::GetOtaTaskError, R>> for Error
1629where
1630 R: Send + Sync + std::fmt::Debug + 'static,
1631{
1632 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ota_task::GetOtaTaskError, R>) -> Self {
1633 match err {
1634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1637 source: err.into(),
1638 }),
1639 }
1640 }
1641}
1642impl From<crate::operation::get_ota_task::GetOtaTaskError> for Error {
1643 fn from(err: crate::operation::get_ota_task::GetOtaTaskError) -> Self {
1644 match err {
1645 crate::operation::get_ota_task::GetOtaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1646 crate::operation::get_ota_task::GetOtaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
1647 crate::operation::get_ota_task::GetOtaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1648 crate::operation::get_ota_task::GetOtaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1649 crate::operation::get_ota_task::GetOtaTaskError::ValidationException(inner) => Error::ValidationException(inner),
1650 crate::operation::get_ota_task::GetOtaTaskError::Unhandled(inner) => Error::Unhandled(inner),
1651 }
1652 }
1653}
1654impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError, R>>
1655 for Error
1656where
1657 R: Send + Sync + std::fmt::Debug + 'static,
1658{
1659 fn from(
1660 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError, R>,
1661 ) -> Self {
1662 match err {
1663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1666 source: err.into(),
1667 }),
1668 }
1669 }
1670}
1671impl From<crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError> for Error {
1672 fn from(err: crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError) -> Self {
1673 match err {
1674 crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError::AccessDeniedException(inner) => {
1675 Error::AccessDeniedException(inner)
1676 }
1677 crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError::InternalServerException(inner) => {
1678 Error::InternalServerException(inner)
1679 }
1680 crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError::ResourceNotFoundException(inner) => {
1681 Error::ResourceNotFoundException(inner)
1682 }
1683 crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError::ThrottlingException(inner) => {
1684 Error::ThrottlingException(inner)
1685 }
1686 crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError::ValidationException(inner) => {
1687 Error::ValidationException(inner)
1688 }
1689 crate::operation::get_ota_task_configuration::GetOtaTaskConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1690 }
1691 }
1692}
1693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_provisioning_profile::GetProvisioningProfileError, R>> for Error
1694where
1695 R: Send + Sync + std::fmt::Debug + 'static,
1696{
1697 fn from(
1698 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_provisioning_profile::GetProvisioningProfileError, R>,
1699 ) -> Self {
1700 match err {
1701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1704 source: err.into(),
1705 }),
1706 }
1707 }
1708}
1709impl From<crate::operation::get_provisioning_profile::GetProvisioningProfileError> for Error {
1710 fn from(err: crate::operation::get_provisioning_profile::GetProvisioningProfileError) -> Self {
1711 match err {
1712 crate::operation::get_provisioning_profile::GetProvisioningProfileError::AccessDeniedException(inner) => {
1713 Error::AccessDeniedException(inner)
1714 }
1715 crate::operation::get_provisioning_profile::GetProvisioningProfileError::InternalServerException(inner) => {
1716 Error::InternalServerException(inner)
1717 }
1718 crate::operation::get_provisioning_profile::GetProvisioningProfileError::ResourceNotFoundException(inner) => {
1719 Error::ResourceNotFoundException(inner)
1720 }
1721 crate::operation::get_provisioning_profile::GetProvisioningProfileError::ServiceUnavailableException(inner) => {
1722 Error::ServiceUnavailableException(inner)
1723 }
1724 crate::operation::get_provisioning_profile::GetProvisioningProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1725 crate::operation::get_provisioning_profile::GetProvisioningProfileError::UnauthorizedException(inner) => {
1726 Error::UnauthorizedException(inner)
1727 }
1728 crate::operation::get_provisioning_profile::GetProvisioningProfileError::ValidationException(inner) => Error::ValidationException(inner),
1729 crate::operation::get_provisioning_profile::GetProvisioningProfileError::Unhandled(inner) => Error::Unhandled(inner),
1730 }
1731 }
1732}
1733impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError, R>>
1734 for Error
1735where
1736 R: Send + Sync + std::fmt::Debug + 'static,
1737{
1738 fn from(
1739 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError, R>,
1740 ) -> Self {
1741 match err {
1742 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1743 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1744 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1745 source: err.into(),
1746 }),
1747 }
1748 }
1749}
1750impl From<crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError> for Error {
1751 fn from(err: crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError) -> Self {
1752 match err {
1753 crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError::AccessDeniedException(inner) => {
1754 Error::AccessDeniedException(inner)
1755 }
1756 crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError::InternalServerException(inner) => {
1757 Error::InternalServerException(inner)
1758 }
1759 crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError::ResourceNotFoundException(inner) => {
1760 Error::ResourceNotFoundException(inner)
1761 }
1762 crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError::ThrottlingException(inner) => {
1763 Error::ThrottlingException(inner)
1764 }
1765 crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError::ValidationException(inner) => {
1766 Error::ValidationException(inner)
1767 }
1768 crate::operation::get_runtime_log_configuration::GetRuntimeLogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1769 }
1770 }
1771}
1772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_schema_version::GetSchemaVersionError, R>> for Error
1773where
1774 R: Send + Sync + std::fmt::Debug + 'static,
1775{
1776 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_schema_version::GetSchemaVersionError, R>) -> Self {
1777 match err {
1778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1781 source: err.into(),
1782 }),
1783 }
1784 }
1785}
1786impl From<crate::operation::get_schema_version::GetSchemaVersionError> for Error {
1787 fn from(err: crate::operation::get_schema_version::GetSchemaVersionError) -> Self {
1788 match err {
1789 crate::operation::get_schema_version::GetSchemaVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1790 crate::operation::get_schema_version::GetSchemaVersionError::ConflictException(inner) => Error::ConflictException(inner),
1791 crate::operation::get_schema_version::GetSchemaVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
1792 crate::operation::get_schema_version::GetSchemaVersionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1793 crate::operation::get_schema_version::GetSchemaVersionError::ServiceUnavailableException(inner) => {
1794 Error::ServiceUnavailableException(inner)
1795 }
1796 crate::operation::get_schema_version::GetSchemaVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1797 crate::operation::get_schema_version::GetSchemaVersionError::ValidationException(inner) => Error::ValidationException(inner),
1798 crate::operation::get_schema_version::GetSchemaVersionError::Unhandled(inner) => Error::Unhandled(inner),
1799 }
1800 }
1801}
1802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_associations::ListAccountAssociationsError, R>>
1803 for Error
1804where
1805 R: Send + Sync + std::fmt::Debug + 'static,
1806{
1807 fn from(
1808 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_associations::ListAccountAssociationsError, R>,
1809 ) -> Self {
1810 match err {
1811 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1812 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1813 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1814 source: err.into(),
1815 }),
1816 }
1817 }
1818}
1819impl From<crate::operation::list_account_associations::ListAccountAssociationsError> for Error {
1820 fn from(err: crate::operation::list_account_associations::ListAccountAssociationsError) -> Self {
1821 match err {
1822 crate::operation::list_account_associations::ListAccountAssociationsError::AccessDeniedException(inner) => {
1823 Error::AccessDeniedException(inner)
1824 }
1825 crate::operation::list_account_associations::ListAccountAssociationsError::InternalServerException(inner) => {
1826 Error::InternalServerException(inner)
1827 }
1828 crate::operation::list_account_associations::ListAccountAssociationsError::ServiceUnavailableException(inner) => {
1829 Error::ServiceUnavailableException(inner)
1830 }
1831 crate::operation::list_account_associations::ListAccountAssociationsError::ThrottlingException(inner) => {
1832 Error::ThrottlingException(inner)
1833 }
1834 crate::operation::list_account_associations::ListAccountAssociationsError::ValidationException(inner) => {
1835 Error::ValidationException(inner)
1836 }
1837 crate::operation::list_account_associations::ListAccountAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1838 }
1839 }
1840}
1841impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cloud_connectors::ListCloudConnectorsError, R>> for Error
1842where
1843 R: Send + Sync + std::fmt::Debug + 'static,
1844{
1845 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cloud_connectors::ListCloudConnectorsError, R>) -> Self {
1846 match err {
1847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1850 source: err.into(),
1851 }),
1852 }
1853 }
1854}
1855impl From<crate::operation::list_cloud_connectors::ListCloudConnectorsError> for Error {
1856 fn from(err: crate::operation::list_cloud_connectors::ListCloudConnectorsError) -> Self {
1857 match err {
1858 crate::operation::list_cloud_connectors::ListCloudConnectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1859 crate::operation::list_cloud_connectors::ListCloudConnectorsError::InternalServerException(inner) => {
1860 Error::InternalServerException(inner)
1861 }
1862 crate::operation::list_cloud_connectors::ListCloudConnectorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1863 crate::operation::list_cloud_connectors::ListCloudConnectorsError::ValidationException(inner) => Error::ValidationException(inner),
1864 crate::operation::list_cloud_connectors::ListCloudConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
1865 }
1866 }
1867}
1868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connector_destinations::ListConnectorDestinationsError, R>>
1869 for Error
1870where
1871 R: Send + Sync + std::fmt::Debug + 'static,
1872{
1873 fn from(
1874 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connector_destinations::ListConnectorDestinationsError, R>,
1875 ) -> Self {
1876 match err {
1877 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1878 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1879 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1880 source: err.into(),
1881 }),
1882 }
1883 }
1884}
1885impl From<crate::operation::list_connector_destinations::ListConnectorDestinationsError> for Error {
1886 fn from(err: crate::operation::list_connector_destinations::ListConnectorDestinationsError) -> Self {
1887 match err {
1888 crate::operation::list_connector_destinations::ListConnectorDestinationsError::AccessDeniedException(inner) => {
1889 Error::AccessDeniedException(inner)
1890 }
1891 crate::operation::list_connector_destinations::ListConnectorDestinationsError::InternalServerException(inner) => {
1892 Error::InternalServerException(inner)
1893 }
1894 crate::operation::list_connector_destinations::ListConnectorDestinationsError::ThrottlingException(inner) => {
1895 Error::ThrottlingException(inner)
1896 }
1897 crate::operation::list_connector_destinations::ListConnectorDestinationsError::ValidationException(inner) => {
1898 Error::ValidationException(inner)
1899 }
1900 crate::operation::list_connector_destinations::ListConnectorDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1901 }
1902 }
1903}
1904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_credential_lockers::ListCredentialLockersError, R>> for Error
1905where
1906 R: Send + Sync + std::fmt::Debug + 'static,
1907{
1908 fn from(
1909 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_credential_lockers::ListCredentialLockersError, R>,
1910 ) -> Self {
1911 match err {
1912 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1913 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1914 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1915 source: err.into(),
1916 }),
1917 }
1918 }
1919}
1920impl From<crate::operation::list_credential_lockers::ListCredentialLockersError> for Error {
1921 fn from(err: crate::operation::list_credential_lockers::ListCredentialLockersError) -> Self {
1922 match err {
1923 crate::operation::list_credential_lockers::ListCredentialLockersError::AccessDeniedException(inner) => {
1924 Error::AccessDeniedException(inner)
1925 }
1926 crate::operation::list_credential_lockers::ListCredentialLockersError::InternalServerException(inner) => {
1927 Error::InternalServerException(inner)
1928 }
1929 crate::operation::list_credential_lockers::ListCredentialLockersError::ServiceUnavailableException(inner) => {
1930 Error::ServiceUnavailableException(inner)
1931 }
1932 crate::operation::list_credential_lockers::ListCredentialLockersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1933 crate::operation::list_credential_lockers::ListCredentialLockersError::ValidationException(inner) => Error::ValidationException(inner),
1934 crate::operation::list_credential_lockers::ListCredentialLockersError::Unhandled(inner) => Error::Unhandled(inner),
1935 }
1936 }
1937}
1938impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_destinations::ListDestinationsError, R>> for Error
1939where
1940 R: Send + Sync + std::fmt::Debug + 'static,
1941{
1942 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_destinations::ListDestinationsError, R>) -> Self {
1943 match err {
1944 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1945 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1946 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1947 source: err.into(),
1948 }),
1949 }
1950 }
1951}
1952impl From<crate::operation::list_destinations::ListDestinationsError> for Error {
1953 fn from(err: crate::operation::list_destinations::ListDestinationsError) -> Self {
1954 match err {
1955 crate::operation::list_destinations::ListDestinationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1956 crate::operation::list_destinations::ListDestinationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1957 crate::operation::list_destinations::ListDestinationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1958 crate::operation::list_destinations::ListDestinationsError::ValidationException(inner) => Error::ValidationException(inner),
1959 crate::operation::list_destinations::ListDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1960 }
1961 }
1962}
1963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_discoveries::ListDeviceDiscoveriesError, R>> for Error
1964where
1965 R: Send + Sync + std::fmt::Debug + 'static,
1966{
1967 fn from(
1968 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_discoveries::ListDeviceDiscoveriesError, R>,
1969 ) -> Self {
1970 match err {
1971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1974 source: err.into(),
1975 }),
1976 }
1977 }
1978}
1979impl From<crate::operation::list_device_discoveries::ListDeviceDiscoveriesError> for Error {
1980 fn from(err: crate::operation::list_device_discoveries::ListDeviceDiscoveriesError) -> Self {
1981 match err {
1982 crate::operation::list_device_discoveries::ListDeviceDiscoveriesError::AccessDeniedException(inner) => {
1983 Error::AccessDeniedException(inner)
1984 }
1985 crate::operation::list_device_discoveries::ListDeviceDiscoveriesError::InternalServerException(inner) => {
1986 Error::InternalServerException(inner)
1987 }
1988 crate::operation::list_device_discoveries::ListDeviceDiscoveriesError::ServiceUnavailableException(inner) => {
1989 Error::ServiceUnavailableException(inner)
1990 }
1991 crate::operation::list_device_discoveries::ListDeviceDiscoveriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1992 crate::operation::list_device_discoveries::ListDeviceDiscoveriesError::UnauthorizedException(inner) => {
1993 Error::UnauthorizedException(inner)
1994 }
1995 crate::operation::list_device_discoveries::ListDeviceDiscoveriesError::ValidationException(inner) => Error::ValidationException(inner),
1996 crate::operation::list_device_discoveries::ListDeviceDiscoveriesError::Unhandled(inner) => Error::Unhandled(inner),
1997 }
1998 }
1999}
2000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_devices::ListDiscoveredDevicesError, R>> for Error
2001where
2002 R: Send + Sync + std::fmt::Debug + 'static,
2003{
2004 fn from(
2005 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_devices::ListDiscoveredDevicesError, R>,
2006 ) -> Self {
2007 match err {
2008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2011 source: err.into(),
2012 }),
2013 }
2014 }
2015}
2016impl From<crate::operation::list_discovered_devices::ListDiscoveredDevicesError> for Error {
2017 fn from(err: crate::operation::list_discovered_devices::ListDiscoveredDevicesError) -> Self {
2018 match err {
2019 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::AccessDeniedException(inner) => {
2020 Error::AccessDeniedException(inner)
2021 }
2022 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::InternalServerException(inner) => {
2023 Error::InternalServerException(inner)
2024 }
2025 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::ResourceNotFoundException(inner) => {
2026 Error::ResourceNotFoundException(inner)
2027 }
2028 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::ServiceUnavailableException(inner) => {
2029 Error::ServiceUnavailableException(inner)
2030 }
2031 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2032 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::UnauthorizedException(inner) => {
2033 Error::UnauthorizedException(inner)
2034 }
2035 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::ValidationException(inner) => Error::ValidationException(inner),
2036 crate::operation::list_discovered_devices::ListDiscoveredDevicesError::Unhandled(inner) => Error::Unhandled(inner),
2037 }
2038 }
2039}
2040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_log_configurations::ListEventLogConfigurationsError, R>>
2041 for Error
2042where
2043 R: Send + Sync + std::fmt::Debug + 'static,
2044{
2045 fn from(
2046 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_log_configurations::ListEventLogConfigurationsError, R>,
2047 ) -> Self {
2048 match err {
2049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2052 source: err.into(),
2053 }),
2054 }
2055 }
2056}
2057impl From<crate::operation::list_event_log_configurations::ListEventLogConfigurationsError> for Error {
2058 fn from(err: crate::operation::list_event_log_configurations::ListEventLogConfigurationsError) -> Self {
2059 match err {
2060 crate::operation::list_event_log_configurations::ListEventLogConfigurationsError::AccessDeniedException(inner) => {
2061 Error::AccessDeniedException(inner)
2062 }
2063 crate::operation::list_event_log_configurations::ListEventLogConfigurationsError::InternalServerException(inner) => {
2064 Error::InternalServerException(inner)
2065 }
2066 crate::operation::list_event_log_configurations::ListEventLogConfigurationsError::ThrottlingException(inner) => {
2067 Error::ThrottlingException(inner)
2068 }
2069 crate::operation::list_event_log_configurations::ListEventLogConfigurationsError::ValidationException(inner) => {
2070 Error::ValidationException(inner)
2071 }
2072 crate::operation::list_event_log_configurations::ListEventLogConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
2073 }
2074 }
2075}
2076impl<R>
2077 From<
2078 ::aws_smithy_runtime_api::client::result::SdkError<
2079 crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError,
2080 R,
2081 >,
2082 > for Error
2083where
2084 R: Send + Sync + std::fmt::Debug + 'static,
2085{
2086 fn from(
2087 err: ::aws_smithy_runtime_api::client::result::SdkError<
2088 crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError,
2089 R,
2090 >,
2091 ) -> Self {
2092 match err {
2093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2096 source: err.into(),
2097 }),
2098 }
2099 }
2100}
2101impl From<crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError> for Error {
2102 fn from(err: crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError) -> Self {
2103 match err {
2104 crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError::AccessDeniedException(inner) => {
2105 Error::AccessDeniedException(inner)
2106 }
2107 crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError::InternalServerException(inner) => {
2108 Error::InternalServerException(inner)
2109 }
2110 crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError::ThrottlingException(inner) => {
2111 Error::ThrottlingException(inner)
2112 }
2113 crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError::ValidationException(inner) => {
2114 Error::ValidationException(inner)
2115 }
2116 crate::operation::list_managed_thing_account_associations::ListManagedThingAccountAssociationsError::Unhandled(inner) => {
2117 Error::Unhandled(inner)
2118 }
2119 }
2120 }
2121}
2122impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_things::ListManagedThingsError, R>> for Error
2123where
2124 R: Send + Sync + std::fmt::Debug + 'static,
2125{
2126 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_things::ListManagedThingsError, R>) -> Self {
2127 match err {
2128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2131 source: err.into(),
2132 }),
2133 }
2134 }
2135}
2136impl From<crate::operation::list_managed_things::ListManagedThingsError> for Error {
2137 fn from(err: crate::operation::list_managed_things::ListManagedThingsError) -> Self {
2138 match err {
2139 crate::operation::list_managed_things::ListManagedThingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2140 crate::operation::list_managed_things::ListManagedThingsError::InternalServerException(inner) => Error::InternalServerException(inner),
2141 crate::operation::list_managed_things::ListManagedThingsError::ServiceUnavailableException(inner) => {
2142 Error::ServiceUnavailableException(inner)
2143 }
2144 crate::operation::list_managed_things::ListManagedThingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2145 crate::operation::list_managed_things::ListManagedThingsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2146 crate::operation::list_managed_things::ListManagedThingsError::ValidationException(inner) => Error::ValidationException(inner),
2147 crate::operation::list_managed_things::ListManagedThingsError::Unhandled(inner) => Error::Unhandled(inner),
2148 }
2149 }
2150}
2151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError, R>>
2152 for Error
2153where
2154 R: Send + Sync + std::fmt::Debug + 'static,
2155{
2156 fn from(
2157 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError, R>,
2158 ) -> Self {
2159 match err {
2160 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2161 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2162 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2163 source: err.into(),
2164 }),
2165 }
2166 }
2167}
2168impl From<crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError> for Error {
2169 fn from(err: crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError) -> Self {
2170 match err {
2171 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::AccessDeniedException(inner) => {
2172 Error::AccessDeniedException(inner)
2173 }
2174 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::InternalServerException(inner) => {
2175 Error::InternalServerException(inner)
2176 }
2177 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::ResourceNotFoundException(inner) => {
2178 Error::ResourceNotFoundException(inner)
2179 }
2180 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::ServiceUnavailableException(inner) => {
2181 Error::ServiceUnavailableException(inner)
2182 }
2183 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::ThrottlingException(inner) => {
2184 Error::ThrottlingException(inner)
2185 }
2186 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::UnauthorizedException(inner) => {
2187 Error::UnauthorizedException(inner)
2188 }
2189 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::ValidationException(inner) => {
2190 Error::ValidationException(inner)
2191 }
2192 crate::operation::list_managed_thing_schemas::ListManagedThingSchemasError::Unhandled(inner) => Error::Unhandled(inner),
2193 }
2194 }
2195}
2196impl<R>
2197 From<
2198 ::aws_smithy_runtime_api::client::result::SdkError<
2199 crate::operation::list_notification_configurations::ListNotificationConfigurationsError,
2200 R,
2201 >,
2202 > for Error
2203where
2204 R: Send + Sync + std::fmt::Debug + 'static,
2205{
2206 fn from(
2207 err: ::aws_smithy_runtime_api::client::result::SdkError<
2208 crate::operation::list_notification_configurations::ListNotificationConfigurationsError,
2209 R,
2210 >,
2211 ) -> Self {
2212 match err {
2213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2216 source: err.into(),
2217 }),
2218 }
2219 }
2220}
2221impl From<crate::operation::list_notification_configurations::ListNotificationConfigurationsError> for Error {
2222 fn from(err: crate::operation::list_notification_configurations::ListNotificationConfigurationsError) -> Self {
2223 match err {
2224 crate::operation::list_notification_configurations::ListNotificationConfigurationsError::AccessDeniedException(inner) => {
2225 Error::AccessDeniedException(inner)
2226 }
2227 crate::operation::list_notification_configurations::ListNotificationConfigurationsError::InternalServerException(inner) => {
2228 Error::InternalServerException(inner)
2229 }
2230 crate::operation::list_notification_configurations::ListNotificationConfigurationsError::ThrottlingException(inner) => {
2231 Error::ThrottlingException(inner)
2232 }
2233 crate::operation::list_notification_configurations::ListNotificationConfigurationsError::ValidationException(inner) => {
2234 Error::ValidationException(inner)
2235 }
2236 crate::operation::list_notification_configurations::ListNotificationConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
2237 }
2238 }
2239}
2240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError, R>>
2241 for Error
2242where
2243 R: Send + Sync + std::fmt::Debug + 'static,
2244{
2245 fn from(
2246 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError, R>,
2247 ) -> Self {
2248 match err {
2249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2252 source: err.into(),
2253 }),
2254 }
2255 }
2256}
2257impl From<crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError> for Error {
2258 fn from(err: crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError) -> Self {
2259 match err {
2260 crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError::AccessDeniedException(inner) => {
2261 Error::AccessDeniedException(inner)
2262 }
2263 crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError::InternalServerException(inner) => {
2264 Error::InternalServerException(inner)
2265 }
2266 crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError::ThrottlingException(inner) => {
2267 Error::ThrottlingException(inner)
2268 }
2269 crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError::ValidationException(inner) => {
2270 Error::ValidationException(inner)
2271 }
2272 crate::operation::list_ota_task_configurations::ListOtaTaskConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
2273 }
2274 }
2275}
2276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError, R>> for Error
2277where
2278 R: Send + Sync + std::fmt::Debug + 'static,
2279{
2280 fn from(
2281 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError, R>,
2282 ) -> Self {
2283 match err {
2284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2287 source: err.into(),
2288 }),
2289 }
2290 }
2291}
2292impl From<crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError> for Error {
2293 fn from(err: crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError) -> Self {
2294 match err {
2295 crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError::AccessDeniedException(inner) => {
2296 Error::AccessDeniedException(inner)
2297 }
2298 crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError::InternalServerException(inner) => {
2299 Error::InternalServerException(inner)
2300 }
2301 crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError::ResourceNotFoundException(inner) => {
2302 Error::ResourceNotFoundException(inner)
2303 }
2304 crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2305 crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
2306 crate::operation::list_ota_task_executions::ListOtaTaskExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
2307 }
2308 }
2309}
2310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_tasks::ListOtaTasksError, R>> for Error
2311where
2312 R: Send + Sync + std::fmt::Debug + 'static,
2313{
2314 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_tasks::ListOtaTasksError, R>) -> Self {
2315 match err {
2316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2319 source: err.into(),
2320 }),
2321 }
2322 }
2323}
2324impl From<crate::operation::list_ota_tasks::ListOtaTasksError> for Error {
2325 fn from(err: crate::operation::list_ota_tasks::ListOtaTasksError) -> Self {
2326 match err {
2327 crate::operation::list_ota_tasks::ListOtaTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2328 crate::operation::list_ota_tasks::ListOtaTasksError::InternalServerException(inner) => Error::InternalServerException(inner),
2329 crate::operation::list_ota_tasks::ListOtaTasksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2330 crate::operation::list_ota_tasks::ListOtaTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2331 crate::operation::list_ota_tasks::ListOtaTasksError::ValidationException(inner) => Error::ValidationException(inner),
2332 crate::operation::list_ota_tasks::ListOtaTasksError::Unhandled(inner) => Error::Unhandled(inner),
2333 }
2334 }
2335}
2336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_provisioning_profiles::ListProvisioningProfilesError, R>>
2337 for Error
2338where
2339 R: Send + Sync + std::fmt::Debug + 'static,
2340{
2341 fn from(
2342 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_provisioning_profiles::ListProvisioningProfilesError, R>,
2343 ) -> Self {
2344 match err {
2345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2348 source: err.into(),
2349 }),
2350 }
2351 }
2352}
2353impl From<crate::operation::list_provisioning_profiles::ListProvisioningProfilesError> for Error {
2354 fn from(err: crate::operation::list_provisioning_profiles::ListProvisioningProfilesError) -> Self {
2355 match err {
2356 crate::operation::list_provisioning_profiles::ListProvisioningProfilesError::AccessDeniedException(inner) => {
2357 Error::AccessDeniedException(inner)
2358 }
2359 crate::operation::list_provisioning_profiles::ListProvisioningProfilesError::InternalServerException(inner) => {
2360 Error::InternalServerException(inner)
2361 }
2362 crate::operation::list_provisioning_profiles::ListProvisioningProfilesError::ServiceUnavailableException(inner) => {
2363 Error::ServiceUnavailableException(inner)
2364 }
2365 crate::operation::list_provisioning_profiles::ListProvisioningProfilesError::ThrottlingException(inner) => {
2366 Error::ThrottlingException(inner)
2367 }
2368 crate::operation::list_provisioning_profiles::ListProvisioningProfilesError::UnauthorizedException(inner) => {
2369 Error::UnauthorizedException(inner)
2370 }
2371 crate::operation::list_provisioning_profiles::ListProvisioningProfilesError::ValidationException(inner) => {
2372 Error::ValidationException(inner)
2373 }
2374 crate::operation::list_provisioning_profiles::ListProvisioningProfilesError::Unhandled(inner) => Error::Unhandled(inner),
2375 }
2376 }
2377}
2378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_schema_versions::ListSchemaVersionsError, R>> for Error
2379where
2380 R: Send + Sync + std::fmt::Debug + 'static,
2381{
2382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_schema_versions::ListSchemaVersionsError, R>) -> Self {
2383 match err {
2384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2387 source: err.into(),
2388 }),
2389 }
2390 }
2391}
2392impl From<crate::operation::list_schema_versions::ListSchemaVersionsError> for Error {
2393 fn from(err: crate::operation::list_schema_versions::ListSchemaVersionsError) -> Self {
2394 match err {
2395 crate::operation::list_schema_versions::ListSchemaVersionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2396 crate::operation::list_schema_versions::ListSchemaVersionsError::ConflictException(inner) => Error::ConflictException(inner),
2397 crate::operation::list_schema_versions::ListSchemaVersionsError::InternalServerException(inner) => Error::InternalServerException(inner),
2398 crate::operation::list_schema_versions::ListSchemaVersionsError::ServiceUnavailableException(inner) => {
2399 Error::ServiceUnavailableException(inner)
2400 }
2401 crate::operation::list_schema_versions::ListSchemaVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2402 crate::operation::list_schema_versions::ListSchemaVersionsError::ValidationException(inner) => Error::ValidationException(inner),
2403 crate::operation::list_schema_versions::ListSchemaVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2404 }
2405 }
2406}
2407impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2408where
2409 R: Send + Sync + std::fmt::Debug + 'static,
2410{
2411 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2412 match err {
2413 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2414 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2415 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2416 source: err.into(),
2417 }),
2418 }
2419 }
2420}
2421impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2422 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2423 match err {
2424 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
2425 Error::InvalidRequestException(inner)
2426 }
2427 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2428 Error::ResourceNotFoundException(inner)
2429 }
2430 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2431 crate::operation::list_tags_for_resource::ListTagsForResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2432 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2433 }
2434 }
2435}
2436impl<R>
2437 From<
2438 ::aws_smithy_runtime_api::client::result::SdkError<
2439 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError,
2440 R,
2441 >,
2442 > for Error
2443where
2444 R: Send + Sync + std::fmt::Debug + 'static,
2445{
2446 fn from(
2447 err: ::aws_smithy_runtime_api::client::result::SdkError<
2448 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError,
2449 R,
2450 >,
2451 ) -> Self {
2452 match err {
2453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2456 source: err.into(),
2457 }),
2458 }
2459 }
2460}
2461impl From<crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError> for Error {
2462 fn from(err: crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError) -> Self {
2463 match err {
2464 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::AccessDeniedException(inner) => {
2465 Error::AccessDeniedException(inner)
2466 }
2467 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::InternalFailureException(inner) => {
2468 Error::InternalFailureException(inner)
2469 }
2470 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::ResourceNotFoundException(inner) => {
2471 Error::ResourceNotFoundException(inner)
2472 }
2473 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::ServiceUnavailableException(inner) => {
2474 Error::ServiceUnavailableException(inner)
2475 }
2476 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::ThrottlingException(inner) => {
2477 Error::ThrottlingException(inner)
2478 }
2479 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::UnauthorizedException(inner) => {
2480 Error::UnauthorizedException(inner)
2481 }
2482 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::ValidationException(inner) => {
2483 Error::ValidationException(inner)
2484 }
2485 crate::operation::put_default_encryption_configuration::PutDefaultEncryptionConfigurationError::Unhandled(inner) => {
2486 Error::Unhandled(inner)
2487 }
2488 }
2489 }
2490}
2491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_hub_configuration::PutHubConfigurationError, R>> for Error
2492where
2493 R: Send + Sync + std::fmt::Debug + 'static,
2494{
2495 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_hub_configuration::PutHubConfigurationError, R>) -> Self {
2496 match err {
2497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2500 source: err.into(),
2501 }),
2502 }
2503 }
2504}
2505impl From<crate::operation::put_hub_configuration::PutHubConfigurationError> for Error {
2506 fn from(err: crate::operation::put_hub_configuration::PutHubConfigurationError) -> Self {
2507 match err {
2508 crate::operation::put_hub_configuration::PutHubConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2509 crate::operation::put_hub_configuration::PutHubConfigurationError::InternalServerException(inner) => {
2510 Error::InternalServerException(inner)
2511 }
2512 crate::operation::put_hub_configuration::PutHubConfigurationError::ResourceNotFoundException(inner) => {
2513 Error::ResourceNotFoundException(inner)
2514 }
2515 crate::operation::put_hub_configuration::PutHubConfigurationError::ServiceUnavailableException(inner) => {
2516 Error::ServiceUnavailableException(inner)
2517 }
2518 crate::operation::put_hub_configuration::PutHubConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2519 crate::operation::put_hub_configuration::PutHubConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
2520 crate::operation::put_hub_configuration::PutHubConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2521 }
2522 }
2523}
2524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError, R>>
2525 for Error
2526where
2527 R: Send + Sync + std::fmt::Debug + 'static,
2528{
2529 fn from(
2530 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError, R>,
2531 ) -> Self {
2532 match err {
2533 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2534 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2535 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2536 source: err.into(),
2537 }),
2538 }
2539 }
2540}
2541impl From<crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError> for Error {
2542 fn from(err: crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError) -> Self {
2543 match err {
2544 crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError::AccessDeniedException(inner) => {
2545 Error::AccessDeniedException(inner)
2546 }
2547 crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError::InternalServerException(inner) => {
2548 Error::InternalServerException(inner)
2549 }
2550 crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError::ResourceNotFoundException(inner) => {
2551 Error::ResourceNotFoundException(inner)
2552 }
2553 crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError::ThrottlingException(inner) => {
2554 Error::ThrottlingException(inner)
2555 }
2556 crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError::ValidationException(inner) => {
2557 Error::ValidationException(inner)
2558 }
2559 crate::operation::put_runtime_log_configuration::PutRuntimeLogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2560 }
2561 }
2562}
2563impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_account_association::RegisterAccountAssociationError, R>>
2564 for Error
2565where
2566 R: Send + Sync + std::fmt::Debug + 'static,
2567{
2568 fn from(
2569 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_account_association::RegisterAccountAssociationError, R>,
2570 ) -> Self {
2571 match err {
2572 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2573 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2574 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2575 source: err.into(),
2576 }),
2577 }
2578 }
2579}
2580impl From<crate::operation::register_account_association::RegisterAccountAssociationError> for Error {
2581 fn from(err: crate::operation::register_account_association::RegisterAccountAssociationError) -> Self {
2582 match err {
2583 crate::operation::register_account_association::RegisterAccountAssociationError::AccessDeniedException(inner) => {
2584 Error::AccessDeniedException(inner)
2585 }
2586 crate::operation::register_account_association::RegisterAccountAssociationError::ConflictException(inner) => {
2587 Error::ConflictException(inner)
2588 }
2589 crate::operation::register_account_association::RegisterAccountAssociationError::InternalServerException(inner) => {
2590 Error::InternalServerException(inner)
2591 }
2592 crate::operation::register_account_association::RegisterAccountAssociationError::ResourceNotFoundException(inner) => {
2593 Error::ResourceNotFoundException(inner)
2594 }
2595 crate::operation::register_account_association::RegisterAccountAssociationError::ThrottlingException(inner) => {
2596 Error::ThrottlingException(inner)
2597 }
2598 crate::operation::register_account_association::RegisterAccountAssociationError::ValidationException(inner) => {
2599 Error::ValidationException(inner)
2600 }
2601 crate::operation::register_account_association::RegisterAccountAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2602 }
2603 }
2604}
2605impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_custom_endpoint::RegisterCustomEndpointError, R>> for Error
2606where
2607 R: Send + Sync + std::fmt::Debug + 'static,
2608{
2609 fn from(
2610 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_custom_endpoint::RegisterCustomEndpointError, R>,
2611 ) -> Self {
2612 match err {
2613 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2614 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2615 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2616 source: err.into(),
2617 }),
2618 }
2619 }
2620}
2621impl From<crate::operation::register_custom_endpoint::RegisterCustomEndpointError> for Error {
2622 fn from(err: crate::operation::register_custom_endpoint::RegisterCustomEndpointError) -> Self {
2623 match err {
2624 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::AccessDeniedException(inner) => {
2625 Error::AccessDeniedException(inner)
2626 }
2627 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::ConflictException(inner) => Error::ConflictException(inner),
2628 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::InternalServerException(inner) => {
2629 Error::InternalServerException(inner)
2630 }
2631 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::ServiceUnavailableException(inner) => {
2632 Error::ServiceUnavailableException(inner)
2633 }
2634 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2635 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::UnauthorizedException(inner) => {
2636 Error::UnauthorizedException(inner)
2637 }
2638 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::ValidationException(inner) => Error::ValidationException(inner),
2639 crate::operation::register_custom_endpoint::RegisterCustomEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2640 }
2641 }
2642}
2643impl<R>
2644 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError, R>>
2645 for Error
2646where
2647 R: Send + Sync + std::fmt::Debug + 'static,
2648{
2649 fn from(
2650 err: ::aws_smithy_runtime_api::client::result::SdkError<
2651 crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError,
2652 R,
2653 >,
2654 ) -> Self {
2655 match err {
2656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2659 source: err.into(),
2660 }),
2661 }
2662 }
2663}
2664impl From<crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError> for Error {
2665 fn from(err: crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError) -> Self {
2666 match err {
2667 crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError::AccessDeniedException(inner) => {
2668 Error::AccessDeniedException(inner)
2669 }
2670 crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError::InternalServerException(inner) => {
2671 Error::InternalServerException(inner)
2672 }
2673 crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError::ResourceNotFoundException(inner) => {
2674 Error::ResourceNotFoundException(inner)
2675 }
2676 crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError::ThrottlingException(inner) => {
2677 Error::ThrottlingException(inner)
2678 }
2679 crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError::ValidationException(inner) => {
2680 Error::ValidationException(inner)
2681 }
2682 crate::operation::reset_runtime_log_configuration::ResetRuntimeLogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2683 }
2684 }
2685}
2686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_connector_event::SendConnectorEventError, R>> for Error
2687where
2688 R: Send + Sync + std::fmt::Debug + 'static,
2689{
2690 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_connector_event::SendConnectorEventError, R>) -> Self {
2691 match err {
2692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2695 source: err.into(),
2696 }),
2697 }
2698 }
2699}
2700impl From<crate::operation::send_connector_event::SendConnectorEventError> for Error {
2701 fn from(err: crate::operation::send_connector_event::SendConnectorEventError) -> Self {
2702 match err {
2703 crate::operation::send_connector_event::SendConnectorEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2704 crate::operation::send_connector_event::SendConnectorEventError::InternalServerException(inner) => Error::InternalServerException(inner),
2705 crate::operation::send_connector_event::SendConnectorEventError::ResourceNotFoundException(inner) => {
2706 Error::ResourceNotFoundException(inner)
2707 }
2708 crate::operation::send_connector_event::SendConnectorEventError::ServiceUnavailableException(inner) => {
2709 Error::ServiceUnavailableException(inner)
2710 }
2711 crate::operation::send_connector_event::SendConnectorEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2712 crate::operation::send_connector_event::SendConnectorEventError::ValidationException(inner) => Error::ValidationException(inner),
2713 crate::operation::send_connector_event::SendConnectorEventError::Unhandled(inner) => Error::Unhandled(inner),
2714 }
2715 }
2716}
2717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_managed_thing_command::SendManagedThingCommandError, R>>
2718 for Error
2719where
2720 R: Send + Sync + std::fmt::Debug + 'static,
2721{
2722 fn from(
2723 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_managed_thing_command::SendManagedThingCommandError, R>,
2724 ) -> Self {
2725 match err {
2726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2729 source: err.into(),
2730 }),
2731 }
2732 }
2733}
2734impl From<crate::operation::send_managed_thing_command::SendManagedThingCommandError> for Error {
2735 fn from(err: crate::operation::send_managed_thing_command::SendManagedThingCommandError) -> Self {
2736 match err {
2737 crate::operation::send_managed_thing_command::SendManagedThingCommandError::AccessDeniedException(inner) => {
2738 Error::AccessDeniedException(inner)
2739 }
2740 crate::operation::send_managed_thing_command::SendManagedThingCommandError::InternalServerException(inner) => {
2741 Error::InternalServerException(inner)
2742 }
2743 crate::operation::send_managed_thing_command::SendManagedThingCommandError::ResourceNotFoundException(inner) => {
2744 Error::ResourceNotFoundException(inner)
2745 }
2746 crate::operation::send_managed_thing_command::SendManagedThingCommandError::ServiceUnavailableException(inner) => {
2747 Error::ServiceUnavailableException(inner)
2748 }
2749 crate::operation::send_managed_thing_command::SendManagedThingCommandError::ThrottlingException(inner) => {
2750 Error::ThrottlingException(inner)
2751 }
2752 crate::operation::send_managed_thing_command::SendManagedThingCommandError::UnauthorizedException(inner) => {
2753 Error::UnauthorizedException(inner)
2754 }
2755 crate::operation::send_managed_thing_command::SendManagedThingCommandError::ValidationException(inner) => {
2756 Error::ValidationException(inner)
2757 }
2758 crate::operation::send_managed_thing_command::SendManagedThingCommandError::Unhandled(inner) => Error::Unhandled(inner),
2759 }
2760 }
2761}
2762impl<R>
2763 From<
2764 ::aws_smithy_runtime_api::client::result::SdkError<
2765 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError,
2766 R,
2767 >,
2768 > for Error
2769where
2770 R: Send + Sync + std::fmt::Debug + 'static,
2771{
2772 fn from(
2773 err: ::aws_smithy_runtime_api::client::result::SdkError<
2774 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError,
2775 R,
2776 >,
2777 ) -> Self {
2778 match err {
2779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2782 source: err.into(),
2783 }),
2784 }
2785 }
2786}
2787impl From<crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError> for Error {
2788 fn from(err: crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError) -> Self {
2789 match err {
2790 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::AccessDeniedException(inner) => {
2791 Error::AccessDeniedException(inner)
2792 }
2793 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::ConflictException(inner) => {
2794 Error::ConflictException(inner)
2795 }
2796 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::InternalServerException(inner) => {
2797 Error::InternalServerException(inner)
2798 }
2799 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::ResourceNotFoundException(inner) => {
2800 Error::ResourceNotFoundException(inner)
2801 }
2802 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::ServiceUnavailableException(inner) => {
2803 Error::ServiceUnavailableException(inner)
2804 }
2805 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::ThrottlingException(inner) => {
2806 Error::ThrottlingException(inner)
2807 }
2808 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::ValidationException(inner) => {
2809 Error::ValidationException(inner)
2810 }
2811 crate::operation::start_account_association_refresh::StartAccountAssociationRefreshError::Unhandled(inner) => Error::Unhandled(inner),
2812 }
2813 }
2814}
2815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_device_discovery::StartDeviceDiscoveryError, R>> for Error
2816where
2817 R: Send + Sync + std::fmt::Debug + 'static,
2818{
2819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_device_discovery::StartDeviceDiscoveryError, R>) -> Self {
2820 match err {
2821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2824 source: err.into(),
2825 }),
2826 }
2827 }
2828}
2829impl From<crate::operation::start_device_discovery::StartDeviceDiscoveryError> for Error {
2830 fn from(err: crate::operation::start_device_discovery::StartDeviceDiscoveryError) -> Self {
2831 match err {
2832 crate::operation::start_device_discovery::StartDeviceDiscoveryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2833 crate::operation::start_device_discovery::StartDeviceDiscoveryError::ConflictException(inner) => Error::ConflictException(inner),
2834 crate::operation::start_device_discovery::StartDeviceDiscoveryError::InternalServerException(inner) => {
2835 Error::InternalServerException(inner)
2836 }
2837 crate::operation::start_device_discovery::StartDeviceDiscoveryError::ResourceNotFoundException(inner) => {
2838 Error::ResourceNotFoundException(inner)
2839 }
2840 crate::operation::start_device_discovery::StartDeviceDiscoveryError::ServiceUnavailableException(inner) => {
2841 Error::ServiceUnavailableException(inner)
2842 }
2843 crate::operation::start_device_discovery::StartDeviceDiscoveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2844 crate::operation::start_device_discovery::StartDeviceDiscoveryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2845 crate::operation::start_device_discovery::StartDeviceDiscoveryError::ValidationException(inner) => Error::ValidationException(inner),
2846 crate::operation::start_device_discovery::StartDeviceDiscoveryError::Unhandled(inner) => Error::Unhandled(inner),
2847 }
2848 }
2849}
2850impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2851where
2852 R: Send + Sync + std::fmt::Debug + 'static,
2853{
2854 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2855 match err {
2856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2859 source: err.into(),
2860 }),
2861 }
2862 }
2863}
2864impl From<crate::operation::tag_resource::TagResourceError> for Error {
2865 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2866 match err {
2867 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2868 crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2869 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2870 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2871 crate::operation::tag_resource::TagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2872 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2873 }
2874 }
2875}
2876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2877where
2878 R: Send + Sync + std::fmt::Debug + 'static,
2879{
2880 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2881 match err {
2882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2885 source: err.into(),
2886 }),
2887 }
2888 }
2889}
2890impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2891 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2892 match err {
2893 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2894 crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2895 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2896 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2897 crate::operation::untag_resource::UntagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2898 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2899 }
2900 }
2901}
2902impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_association::UpdateAccountAssociationError, R>>
2903 for Error
2904where
2905 R: Send + Sync + std::fmt::Debug + 'static,
2906{
2907 fn from(
2908 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_association::UpdateAccountAssociationError, R>,
2909 ) -> Self {
2910 match err {
2911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2914 source: err.into(),
2915 }),
2916 }
2917 }
2918}
2919impl From<crate::operation::update_account_association::UpdateAccountAssociationError> for Error {
2920 fn from(err: crate::operation::update_account_association::UpdateAccountAssociationError) -> Self {
2921 match err {
2922 crate::operation::update_account_association::UpdateAccountAssociationError::AccessDeniedException(inner) => {
2923 Error::AccessDeniedException(inner)
2924 }
2925 crate::operation::update_account_association::UpdateAccountAssociationError::ConflictException(inner) => Error::ConflictException(inner),
2926 crate::operation::update_account_association::UpdateAccountAssociationError::InternalServerException(inner) => {
2927 Error::InternalServerException(inner)
2928 }
2929 crate::operation::update_account_association::UpdateAccountAssociationError::ResourceNotFoundException(inner) => {
2930 Error::ResourceNotFoundException(inner)
2931 }
2932 crate::operation::update_account_association::UpdateAccountAssociationError::ServiceUnavailableException(inner) => {
2933 Error::ServiceUnavailableException(inner)
2934 }
2935 crate::operation::update_account_association::UpdateAccountAssociationError::ThrottlingException(inner) => {
2936 Error::ThrottlingException(inner)
2937 }
2938 crate::operation::update_account_association::UpdateAccountAssociationError::ValidationException(inner) => {
2939 Error::ValidationException(inner)
2940 }
2941 crate::operation::update_account_association::UpdateAccountAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2942 }
2943 }
2944}
2945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cloud_connector::UpdateCloudConnectorError, R>> for Error
2946where
2947 R: Send + Sync + std::fmt::Debug + 'static,
2948{
2949 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cloud_connector::UpdateCloudConnectorError, R>) -> Self {
2950 match err {
2951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2954 source: err.into(),
2955 }),
2956 }
2957 }
2958}
2959impl From<crate::operation::update_cloud_connector::UpdateCloudConnectorError> for Error {
2960 fn from(err: crate::operation::update_cloud_connector::UpdateCloudConnectorError) -> Self {
2961 match err {
2962 crate::operation::update_cloud_connector::UpdateCloudConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2963 crate::operation::update_cloud_connector::UpdateCloudConnectorError::InternalServerException(inner) => {
2964 Error::InternalServerException(inner)
2965 }
2966 crate::operation::update_cloud_connector::UpdateCloudConnectorError::ResourceNotFoundException(inner) => {
2967 Error::ResourceNotFoundException(inner)
2968 }
2969 crate::operation::update_cloud_connector::UpdateCloudConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2970 crate::operation::update_cloud_connector::UpdateCloudConnectorError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2971 crate::operation::update_cloud_connector::UpdateCloudConnectorError::ValidationException(inner) => Error::ValidationException(inner),
2972 crate::operation::update_cloud_connector::UpdateCloudConnectorError::Unhandled(inner) => Error::Unhandled(inner),
2973 }
2974 }
2975}
2976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector_destination::UpdateConnectorDestinationError, R>>
2977 for Error
2978where
2979 R: Send + Sync + std::fmt::Debug + 'static,
2980{
2981 fn from(
2982 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector_destination::UpdateConnectorDestinationError, R>,
2983 ) -> Self {
2984 match err {
2985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2988 source: err.into(),
2989 }),
2990 }
2991 }
2992}
2993impl From<crate::operation::update_connector_destination::UpdateConnectorDestinationError> for Error {
2994 fn from(err: crate::operation::update_connector_destination::UpdateConnectorDestinationError) -> Self {
2995 match err {
2996 crate::operation::update_connector_destination::UpdateConnectorDestinationError::AccessDeniedException(inner) => {
2997 Error::AccessDeniedException(inner)
2998 }
2999 crate::operation::update_connector_destination::UpdateConnectorDestinationError::InternalServerException(inner) => {
3000 Error::InternalServerException(inner)
3001 }
3002 crate::operation::update_connector_destination::UpdateConnectorDestinationError::ResourceNotFoundException(inner) => {
3003 Error::ResourceNotFoundException(inner)
3004 }
3005 crate::operation::update_connector_destination::UpdateConnectorDestinationError::ThrottlingException(inner) => {
3006 Error::ThrottlingException(inner)
3007 }
3008 crate::operation::update_connector_destination::UpdateConnectorDestinationError::ValidationException(inner) => {
3009 Error::ValidationException(inner)
3010 }
3011 crate::operation::update_connector_destination::UpdateConnectorDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3012 }
3013 }
3014}
3015impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_destination::UpdateDestinationError, R>> for Error
3016where
3017 R: Send + Sync + std::fmt::Debug + 'static,
3018{
3019 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_destination::UpdateDestinationError, R>) -> Self {
3020 match err {
3021 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3022 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3023 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3024 source: err.into(),
3025 }),
3026 }
3027 }
3028}
3029impl From<crate::operation::update_destination::UpdateDestinationError> for Error {
3030 fn from(err: crate::operation::update_destination::UpdateDestinationError) -> Self {
3031 match err {
3032 crate::operation::update_destination::UpdateDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3033 crate::operation::update_destination::UpdateDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
3034 crate::operation::update_destination::UpdateDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3035 crate::operation::update_destination::UpdateDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3036 crate::operation::update_destination::UpdateDestinationError::ValidationException(inner) => Error::ValidationException(inner),
3037 crate::operation::update_destination::UpdateDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3038 }
3039 }
3040}
3041impl<R>
3042 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError, R>>
3043 for Error
3044where
3045 R: Send + Sync + std::fmt::Debug + 'static,
3046{
3047 fn from(
3048 err: ::aws_smithy_runtime_api::client::result::SdkError<
3049 crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError,
3050 R,
3051 >,
3052 ) -> Self {
3053 match err {
3054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3057 source: err.into(),
3058 }),
3059 }
3060 }
3061}
3062impl From<crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError> for Error {
3063 fn from(err: crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError) -> Self {
3064 match err {
3065 crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError::AccessDeniedException(inner) => {
3066 Error::AccessDeniedException(inner)
3067 }
3068 crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError::InternalServerException(inner) => {
3069 Error::InternalServerException(inner)
3070 }
3071 crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError::ResourceNotFoundException(inner) => {
3072 Error::ResourceNotFoundException(inner)
3073 }
3074 crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError::ThrottlingException(inner) => {
3075 Error::ThrottlingException(inner)
3076 }
3077 crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError::ValidationException(inner) => {
3078 Error::ValidationException(inner)
3079 }
3080 crate::operation::update_event_log_configuration::UpdateEventLogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3081 }
3082 }
3083}
3084impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_managed_thing::UpdateManagedThingError, R>> for Error
3085where
3086 R: Send + Sync + std::fmt::Debug + 'static,
3087{
3088 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_managed_thing::UpdateManagedThingError, R>) -> Self {
3089 match err {
3090 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3091 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3092 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3093 source: err.into(),
3094 }),
3095 }
3096 }
3097}
3098impl From<crate::operation::update_managed_thing::UpdateManagedThingError> for Error {
3099 fn from(err: crate::operation::update_managed_thing::UpdateManagedThingError) -> Self {
3100 match err {
3101 crate::operation::update_managed_thing::UpdateManagedThingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3102 crate::operation::update_managed_thing::UpdateManagedThingError::ConflictException(inner) => Error::ConflictException(inner),
3103 crate::operation::update_managed_thing::UpdateManagedThingError::InternalServerException(inner) => Error::InternalServerException(inner),
3104 crate::operation::update_managed_thing::UpdateManagedThingError::ResourceNotFoundException(inner) => {
3105 Error::ResourceNotFoundException(inner)
3106 }
3107 crate::operation::update_managed_thing::UpdateManagedThingError::ServiceUnavailableException(inner) => {
3108 Error::ServiceUnavailableException(inner)
3109 }
3110 crate::operation::update_managed_thing::UpdateManagedThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3111 crate::operation::update_managed_thing::UpdateManagedThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3112 crate::operation::update_managed_thing::UpdateManagedThingError::ValidationException(inner) => Error::ValidationException(inner),
3113 crate::operation::update_managed_thing::UpdateManagedThingError::Unhandled(inner) => Error::Unhandled(inner),
3114 }
3115 }
3116}
3117impl<R>
3118 From<
3119 ::aws_smithy_runtime_api::client::result::SdkError<
3120 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError,
3121 R,
3122 >,
3123 > for Error
3124where
3125 R: Send + Sync + std::fmt::Debug + 'static,
3126{
3127 fn from(
3128 err: ::aws_smithy_runtime_api::client::result::SdkError<
3129 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError,
3130 R,
3131 >,
3132 ) -> Self {
3133 match err {
3134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3137 source: err.into(),
3138 }),
3139 }
3140 }
3141}
3142impl From<crate::operation::update_notification_configuration::UpdateNotificationConfigurationError> for Error {
3143 fn from(err: crate::operation::update_notification_configuration::UpdateNotificationConfigurationError) -> Self {
3144 match err {
3145 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::AccessDeniedException(inner) => {
3146 Error::AccessDeniedException(inner)
3147 }
3148 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::InternalServerException(inner) => {
3149 Error::InternalServerException(inner)
3150 }
3151 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ResourceNotFoundException(inner) => {
3152 Error::ResourceNotFoundException(inner)
3153 }
3154 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ThrottlingException(inner) => {
3155 Error::ThrottlingException(inner)
3156 }
3157 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ValidationException(inner) => {
3158 Error::ValidationException(inner)
3159 }
3160 crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3161 }
3162 }
3163}
3164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ota_task::UpdateOtaTaskError, R>> for Error
3165where
3166 R: Send + Sync + std::fmt::Debug + 'static,
3167{
3168 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ota_task::UpdateOtaTaskError, R>) -> Self {
3169 match err {
3170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3173 source: err.into(),
3174 }),
3175 }
3176 }
3177}
3178impl From<crate::operation::update_ota_task::UpdateOtaTaskError> for Error {
3179 fn from(err: crate::operation::update_ota_task::UpdateOtaTaskError) -> Self {
3180 match err {
3181 crate::operation::update_ota_task::UpdateOtaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3182 crate::operation::update_ota_task::UpdateOtaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
3183 crate::operation::update_ota_task::UpdateOtaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3184 crate::operation::update_ota_task::UpdateOtaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3185 crate::operation::update_ota_task::UpdateOtaTaskError::ValidationException(inner) => Error::ValidationException(inner),
3186 crate::operation::update_ota_task::UpdateOtaTaskError::Unhandled(inner) => Error::Unhandled(inner),
3187 }
3188 }
3189}
3190impl ::std::error::Error for Error {
3191 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3192 match self {
3193 Error::AccessDeniedException(inner) => inner.source(),
3194 Error::ConflictException(inner) => inner.source(),
3195 Error::InternalFailureException(inner) => inner.source(),
3196 Error::InternalServerException(inner) => inner.source(),
3197 Error::InvalidRequestException(inner) => inner.source(),
3198 Error::LimitExceededException(inner) => inner.source(),
3199 Error::ResourceNotFoundException(inner) => inner.source(),
3200 Error::ServiceQuotaExceededException(inner) => inner.source(),
3201 Error::ServiceUnavailableException(inner) => inner.source(),
3202 Error::ThrottlingException(inner) => inner.source(),
3203 Error::UnauthorizedException(inner) => inner.source(),
3204 Error::ValidationException(inner) => inner.source(),
3205 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3206 }
3207 }
3208}
3209impl ::aws_types::request_id::RequestId for Error {
3210 fn request_id(&self) -> Option<&str> {
3211 match self {
3212 Self::AccessDeniedException(e) => e.request_id(),
3213 Self::ConflictException(e) => e.request_id(),
3214 Self::InternalFailureException(e) => e.request_id(),
3215 Self::InternalServerException(e) => e.request_id(),
3216 Self::InvalidRequestException(e) => e.request_id(),
3217 Self::LimitExceededException(e) => e.request_id(),
3218 Self::ResourceNotFoundException(e) => e.request_id(),
3219 Self::ServiceQuotaExceededException(e) => e.request_id(),
3220 Self::ServiceUnavailableException(e) => e.request_id(),
3221 Self::ThrottlingException(e) => e.request_id(),
3222 Self::UnauthorizedException(e) => e.request_id(),
3223 Self::ValidationException(e) => e.request_id(),
3224 Self::Unhandled(e) => e.meta.request_id(),
3225 }
3226 }
3227}