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