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