1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerException(crate::types::error::InternalServerException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ThrottlingException(crate::types::error::ThrottlingException),
16 TooManyTagsException(crate::types::error::TooManyTagsException),
18 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::AccessDeniedException(inner) => inner.fmt(f),
33 Error::ConflictException(inner) => inner.fmt(f),
34 Error::InternalServerException(inner) => inner.fmt(f),
35 Error::ResourceNotFoundException(inner) => inner.fmt(f),
36 Error::ThrottlingException(inner) => inner.fmt(f),
37 Error::TooManyTagsException(inner) => inner.fmt(f),
38 Error::ValidationException(inner) => inner.fmt(f),
39 Error::Unhandled(_) => {
40 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41 write!(f, "unhandled error ({code})")
42 } else {
43 f.write_str("unhandled error")
44 }
45 }
46 }
47 }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52 source: value.into(),
53 meta: ::std::default::Default::default(),
54 })
55 }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59 match self {
60 Self::AccessDeniedException(inner) => inner.meta(),
61 Self::ConflictException(inner) => inner.meta(),
62 Self::InternalServerException(inner) => inner.meta(),
63 Self::ResourceNotFoundException(inner) => inner.meta(),
64 Self::ThrottlingException(inner) => inner.meta(),
65 Self::TooManyTagsException(inner) => inner.meta(),
66 Self::ValidationException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R>
72 From<
73 ::aws_smithy_runtime_api::client::result::SdkError<
74 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError,
75 R,
76 >,
77 > for Error
78where
79 R: Send + Sync + std::fmt::Debug + 'static,
80{
81 fn from(
82 err: ::aws_smithy_runtime_api::client::result::SdkError<
83 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError,
84 R,
85 >,
86 ) -> Self {
87 match err {
88 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
89 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
90 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
91 source: err.into(),
92 }),
93 }
94 }
95}
96impl From<crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError> for Error {
97 fn from(err: crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError) -> Self {
98 match err {
99 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError::AccessDeniedException(
100 inner,
101 ) => Error::AccessDeniedException(inner),
102 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError::ConflictException(inner) => {
103 Error::ConflictException(inner)
104 }
105 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError::InternalServerException(
106 inner,
107 ) => Error::InternalServerException(inner),
108 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError::ResourceNotFoundException(
109 inner,
110 ) => Error::ResourceNotFoundException(inner),
111 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError::ThrottlingException(inner) => {
112 Error::ThrottlingException(inner)
113 }
114 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError::ValidationException(inner) => {
115 Error::ValidationException(inner)
116 }
117 crate::operation::associate_aws_account_with_partner_account::AssociateAwsAccountWithPartnerAccountError::Unhandled(inner) => {
118 Error::Unhandled(inner)
119 }
120 }
121 }
122}
123impl<R>
124 From<
125 ::aws_smithy_runtime_api::client::result::SdkError<
126 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError,
127 R,
128 >,
129 > for Error
130where
131 R: Send + Sync + std::fmt::Debug + 'static,
132{
133 fn from(
134 err: ::aws_smithy_runtime_api::client::result::SdkError<
135 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError,
136 R,
137 >,
138 ) -> Self {
139 match err {
140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
143 source: err.into(),
144 }),
145 }
146 }
147}
148impl From<crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError> for Error {
149 fn from(err: crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError) -> Self {
150 match err {
151 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError::AccessDeniedException(inner) => {
152 Error::AccessDeniedException(inner)
153 }
154 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError::ConflictException(inner) => {
155 Error::ConflictException(inner)
156 }
157 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError::InternalServerException(
158 inner,
159 ) => Error::InternalServerException(inner),
160 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError::ResourceNotFoundException(
161 inner,
162 ) => Error::ResourceNotFoundException(inner),
163 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError::ThrottlingException(inner) => {
164 Error::ThrottlingException(inner)
165 }
166 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError::ValidationException(inner) => {
167 Error::ValidationException(inner)
168 }
169 crate::operation::associate_multicast_group_with_fuota_task::AssociateMulticastGroupWithFuotaTaskError::Unhandled(inner) => {
170 Error::Unhandled(inner)
171 }
172 }
173 }
174}
175impl<R>
176 From<
177 ::aws_smithy_runtime_api::client::result::SdkError<
178 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError,
179 R,
180 >,
181 > for Error
182where
183 R: Send + Sync + std::fmt::Debug + 'static,
184{
185 fn from(
186 err: ::aws_smithy_runtime_api::client::result::SdkError<
187 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError,
188 R,
189 >,
190 ) -> Self {
191 match err {
192 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
193 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
194 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
195 source: err.into(),
196 }),
197 }
198 }
199}
200impl From<crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError> for Error {
201 fn from(err: crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError) -> Self {
202 match err {
203 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError::AccessDeniedException(inner) => {
204 Error::AccessDeniedException(inner)
205 }
206 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError::ConflictException(inner) => {
207 Error::ConflictException(inner)
208 }
209 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError::InternalServerException(
210 inner,
211 ) => Error::InternalServerException(inner),
212 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError::ResourceNotFoundException(
213 inner,
214 ) => Error::ResourceNotFoundException(inner),
215 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError::ThrottlingException(inner) => {
216 Error::ThrottlingException(inner)
217 }
218 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError::ValidationException(inner) => {
219 Error::ValidationException(inner)
220 }
221 crate::operation::associate_wireless_device_with_fuota_task::AssociateWirelessDeviceWithFuotaTaskError::Unhandled(inner) => {
222 Error::Unhandled(inner)
223 }
224 }
225 }
226}
227impl<R>
228 From<
229 ::aws_smithy_runtime_api::client::result::SdkError<
230 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError,
231 R,
232 >,
233 > for Error
234where
235 R: Send + Sync + std::fmt::Debug + 'static,
236{
237 fn from(
238 err: ::aws_smithy_runtime_api::client::result::SdkError<
239 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError,
240 R,
241 >,
242 ) -> Self {
243 match err {
244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
247 source: err.into(),
248 }),
249 }
250 }
251}
252impl From<crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError> for Error {
253 fn from(err: crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError) -> Self {
254 match err {
255 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
256 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError::ConflictException(inner) => Error::ConflictException(inner),
257 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
258 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
259 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
260 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
261 crate::operation::associate_wireless_device_with_multicast_group::AssociateWirelessDeviceWithMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
262 }
263 }
264}
265impl<R>
266 From<
267 ::aws_smithy_runtime_api::client::result::SdkError<
268 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError,
269 R,
270 >,
271 > for Error
272where
273 R: Send + Sync + std::fmt::Debug + 'static,
274{
275 fn from(
276 err: ::aws_smithy_runtime_api::client::result::SdkError<
277 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError,
278 R,
279 >,
280 ) -> Self {
281 match err {
282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
285 source: err.into(),
286 }),
287 }
288 }
289}
290impl From<crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError> for Error {
291 fn from(err: crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError) -> Self {
292 match err {
293 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError::AccessDeniedException(inner) => {
294 Error::AccessDeniedException(inner)
295 }
296 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError::ConflictException(inner) => {
297 Error::ConflictException(inner)
298 }
299 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError::InternalServerException(inner) => {
300 Error::InternalServerException(inner)
301 }
302 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError::ResourceNotFoundException(inner) => {
303 Error::ResourceNotFoundException(inner)
304 }
305 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError::ThrottlingException(inner) => {
306 Error::ThrottlingException(inner)
307 }
308 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError::ValidationException(inner) => {
309 Error::ValidationException(inner)
310 }
311 crate::operation::associate_wireless_device_with_thing::AssociateWirelessDeviceWithThingError::Unhandled(inner) => {
312 Error::Unhandled(inner)
313 }
314 }
315 }
316}
317impl<R>
318 From<
319 ::aws_smithy_runtime_api::client::result::SdkError<
320 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError,
321 R,
322 >,
323 > for Error
324where
325 R: Send + Sync + std::fmt::Debug + 'static,
326{
327 fn from(
328 err: ::aws_smithy_runtime_api::client::result::SdkError<
329 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError,
330 R,
331 >,
332 ) -> Self {
333 match err {
334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
337 source: err.into(),
338 }),
339 }
340 }
341}
342impl From<crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError> for Error {
343 fn from(err: crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError) -> Self {
344 match err {
345 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
346 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError::ConflictException(inner) => Error::ConflictException(inner),
347 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError::InternalServerException(inner) => Error::InternalServerException(inner),
348 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
349 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
350 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError::ValidationException(inner) => Error::ValidationException(inner),
351 crate::operation::associate_wireless_gateway_with_certificate::AssociateWirelessGatewayWithCertificateError::Unhandled(inner) => Error::Unhandled(inner),
352 }
353 }
354}
355impl<R>
356 From<
357 ::aws_smithy_runtime_api::client::result::SdkError<
358 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError,
359 R,
360 >,
361 > for Error
362where
363 R: Send + Sync + std::fmt::Debug + 'static,
364{
365 fn from(
366 err: ::aws_smithy_runtime_api::client::result::SdkError<
367 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError,
368 R,
369 >,
370 ) -> Self {
371 match err {
372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
375 source: err.into(),
376 }),
377 }
378 }
379}
380impl From<crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError> for Error {
381 fn from(err: crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError) -> Self {
382 match err {
383 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError::AccessDeniedException(inner) => {
384 Error::AccessDeniedException(inner)
385 }
386 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError::ConflictException(inner) => {
387 Error::ConflictException(inner)
388 }
389 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError::InternalServerException(inner) => {
390 Error::InternalServerException(inner)
391 }
392 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError::ResourceNotFoundException(inner) => {
393 Error::ResourceNotFoundException(inner)
394 }
395 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError::ThrottlingException(inner) => {
396 Error::ThrottlingException(inner)
397 }
398 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError::ValidationException(inner) => {
399 Error::ValidationException(inner)
400 }
401 crate::operation::associate_wireless_gateway_with_thing::AssociateWirelessGatewayWithThingError::Unhandled(inner) => {
402 Error::Unhandled(inner)
403 }
404 }
405 }
406}
407impl<R>
408 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError, R>>
409 for Error
410where
411 R: Send + Sync + std::fmt::Debug + 'static,
412{
413 fn from(
414 err: ::aws_smithy_runtime_api::client::result::SdkError<
415 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError,
416 R,
417 >,
418 ) -> Self {
419 match err {
420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
423 source: err.into(),
424 }),
425 }
426 }
427}
428impl From<crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError> for Error {
429 fn from(err: crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError) -> Self {
430 match err {
431 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError::AccessDeniedException(inner) => {
432 Error::AccessDeniedException(inner)
433 }
434 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError::ConflictException(inner) => {
435 Error::ConflictException(inner)
436 }
437 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError::InternalServerException(inner) => {
438 Error::InternalServerException(inner)
439 }
440 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError::ResourceNotFoundException(inner) => {
441 Error::ResourceNotFoundException(inner)
442 }
443 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError::ThrottlingException(inner) => {
444 Error::ThrottlingException(inner)
445 }
446 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError::ValidationException(inner) => {
447 Error::ValidationException(inner)
448 }
449 crate::operation::cancel_multicast_group_session::CancelMulticastGroupSessionError::Unhandled(inner) => Error::Unhandled(inner),
450 }
451 }
452}
453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_destination::CreateDestinationError, R>> for Error
454where
455 R: Send + Sync + std::fmt::Debug + 'static,
456{
457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_destination::CreateDestinationError, R>) -> Self {
458 match err {
459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
462 source: err.into(),
463 }),
464 }
465 }
466}
467impl From<crate::operation::create_destination::CreateDestinationError> for Error {
468 fn from(err: crate::operation::create_destination::CreateDestinationError) -> Self {
469 match err {
470 crate::operation::create_destination::CreateDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
471 crate::operation::create_destination::CreateDestinationError::ConflictException(inner) => Error::ConflictException(inner),
472 crate::operation::create_destination::CreateDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
473 crate::operation::create_destination::CreateDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
474 crate::operation::create_destination::CreateDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
475 crate::operation::create_destination::CreateDestinationError::ValidationException(inner) => Error::ValidationException(inner),
476 crate::operation::create_destination::CreateDestinationError::Unhandled(inner) => Error::Unhandled(inner),
477 }
478 }
479}
480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_profile::CreateDeviceProfileError, R>> for Error
481where
482 R: Send + Sync + std::fmt::Debug + 'static,
483{
484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_profile::CreateDeviceProfileError, R>) -> Self {
485 match err {
486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
489 source: err.into(),
490 }),
491 }
492 }
493}
494impl From<crate::operation::create_device_profile::CreateDeviceProfileError> for Error {
495 fn from(err: crate::operation::create_device_profile::CreateDeviceProfileError) -> Self {
496 match err {
497 crate::operation::create_device_profile::CreateDeviceProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
498 crate::operation::create_device_profile::CreateDeviceProfileError::ConflictException(inner) => Error::ConflictException(inner),
499 crate::operation::create_device_profile::CreateDeviceProfileError::InternalServerException(inner) => {
500 Error::InternalServerException(inner)
501 }
502 crate::operation::create_device_profile::CreateDeviceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
503 crate::operation::create_device_profile::CreateDeviceProfileError::ValidationException(inner) => Error::ValidationException(inner),
504 crate::operation::create_device_profile::CreateDeviceProfileError::Unhandled(inner) => Error::Unhandled(inner),
505 }
506 }
507}
508impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fuota_task::CreateFuotaTaskError, R>> for Error
509where
510 R: Send + Sync + std::fmt::Debug + 'static,
511{
512 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fuota_task::CreateFuotaTaskError, R>) -> Self {
513 match err {
514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
517 source: err.into(),
518 }),
519 }
520 }
521}
522impl From<crate::operation::create_fuota_task::CreateFuotaTaskError> for Error {
523 fn from(err: crate::operation::create_fuota_task::CreateFuotaTaskError) -> Self {
524 match err {
525 crate::operation::create_fuota_task::CreateFuotaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
526 crate::operation::create_fuota_task::CreateFuotaTaskError::ConflictException(inner) => Error::ConflictException(inner),
527 crate::operation::create_fuota_task::CreateFuotaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
528 crate::operation::create_fuota_task::CreateFuotaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
529 crate::operation::create_fuota_task::CreateFuotaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
530 crate::operation::create_fuota_task::CreateFuotaTaskError::ValidationException(inner) => Error::ValidationException(inner),
531 crate::operation::create_fuota_task::CreateFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
532 }
533 }
534}
535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_multicast_group::CreateMulticastGroupError, R>> for Error
536where
537 R: Send + Sync + std::fmt::Debug + 'static,
538{
539 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_multicast_group::CreateMulticastGroupError, R>) -> Self {
540 match err {
541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
544 source: err.into(),
545 }),
546 }
547 }
548}
549impl From<crate::operation::create_multicast_group::CreateMulticastGroupError> for Error {
550 fn from(err: crate::operation::create_multicast_group::CreateMulticastGroupError) -> Self {
551 match err {
552 crate::operation::create_multicast_group::CreateMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
553 crate::operation::create_multicast_group::CreateMulticastGroupError::ConflictException(inner) => Error::ConflictException(inner),
554 crate::operation::create_multicast_group::CreateMulticastGroupError::InternalServerException(inner) => {
555 Error::InternalServerException(inner)
556 }
557 crate::operation::create_multicast_group::CreateMulticastGroupError::ResourceNotFoundException(inner) => {
558 Error::ResourceNotFoundException(inner)
559 }
560 crate::operation::create_multicast_group::CreateMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
561 crate::operation::create_multicast_group::CreateMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
562 crate::operation::create_multicast_group::CreateMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
563 }
564 }
565}
566impl<R>
567 From<
568 ::aws_smithy_runtime_api::client::result::SdkError<
569 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError,
570 R,
571 >,
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<
578 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError,
579 R,
580 >,
581 ) -> Self {
582 match err {
583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586 source: err.into(),
587 }),
588 }
589 }
590}
591impl From<crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError> for Error {
592 fn from(err: crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError) -> Self {
593 match err {
594 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError::AccessDeniedException(inner) => {
595 Error::AccessDeniedException(inner)
596 }
597 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError::ConflictException(inner) => {
598 Error::ConflictException(inner)
599 }
600 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError::InternalServerException(inner) => {
601 Error::InternalServerException(inner)
602 }
603 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError::ResourceNotFoundException(inner) => {
604 Error::ResourceNotFoundException(inner)
605 }
606 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError::ThrottlingException(inner) => {
607 Error::ThrottlingException(inner)
608 }
609 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError::ValidationException(inner) => {
610 Error::ValidationException(inner)
611 }
612 crate::operation::create_network_analyzer_configuration::CreateNetworkAnalyzerConfigurationError::Unhandled(inner) => {
613 Error::Unhandled(inner)
614 }
615 }
616 }
617}
618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_profile::CreateServiceProfileError, R>> for Error
619where
620 R: Send + Sync + std::fmt::Debug + 'static,
621{
622 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_profile::CreateServiceProfileError, R>) -> Self {
623 match err {
624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
627 source: err.into(),
628 }),
629 }
630 }
631}
632impl From<crate::operation::create_service_profile::CreateServiceProfileError> for Error {
633 fn from(err: crate::operation::create_service_profile::CreateServiceProfileError) -> Self {
634 match err {
635 crate::operation::create_service_profile::CreateServiceProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
636 crate::operation::create_service_profile::CreateServiceProfileError::ConflictException(inner) => Error::ConflictException(inner),
637 crate::operation::create_service_profile::CreateServiceProfileError::InternalServerException(inner) => {
638 Error::InternalServerException(inner)
639 }
640 crate::operation::create_service_profile::CreateServiceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
641 crate::operation::create_service_profile::CreateServiceProfileError::ValidationException(inner) => Error::ValidationException(inner),
642 crate::operation::create_service_profile::CreateServiceProfileError::Unhandled(inner) => Error::Unhandled(inner),
643 }
644 }
645}
646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wireless_device::CreateWirelessDeviceError, R>> for Error
647where
648 R: Send + Sync + std::fmt::Debug + 'static,
649{
650 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wireless_device::CreateWirelessDeviceError, R>) -> Self {
651 match err {
652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
655 source: err.into(),
656 }),
657 }
658 }
659}
660impl From<crate::operation::create_wireless_device::CreateWirelessDeviceError> for Error {
661 fn from(err: crate::operation::create_wireless_device::CreateWirelessDeviceError) -> Self {
662 match err {
663 crate::operation::create_wireless_device::CreateWirelessDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
664 crate::operation::create_wireless_device::CreateWirelessDeviceError::ConflictException(inner) => Error::ConflictException(inner),
665 crate::operation::create_wireless_device::CreateWirelessDeviceError::InternalServerException(inner) => {
666 Error::InternalServerException(inner)
667 }
668 crate::operation::create_wireless_device::CreateWirelessDeviceError::ResourceNotFoundException(inner) => {
669 Error::ResourceNotFoundException(inner)
670 }
671 crate::operation::create_wireless_device::CreateWirelessDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
672 crate::operation::create_wireless_device::CreateWirelessDeviceError::ValidationException(inner) => Error::ValidationException(inner),
673 crate::operation::create_wireless_device::CreateWirelessDeviceError::Unhandled(inner) => Error::Unhandled(inner),
674 }
675 }
676}
677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wireless_gateway::CreateWirelessGatewayError, R>> for Error
678where
679 R: Send + Sync + std::fmt::Debug + 'static,
680{
681 fn from(
682 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wireless_gateway::CreateWirelessGatewayError, R>,
683 ) -> Self {
684 match err {
685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
688 source: err.into(),
689 }),
690 }
691 }
692}
693impl From<crate::operation::create_wireless_gateway::CreateWirelessGatewayError> for Error {
694 fn from(err: crate::operation::create_wireless_gateway::CreateWirelessGatewayError) -> Self {
695 match err {
696 crate::operation::create_wireless_gateway::CreateWirelessGatewayError::AccessDeniedException(inner) => {
697 Error::AccessDeniedException(inner)
698 }
699 crate::operation::create_wireless_gateway::CreateWirelessGatewayError::ConflictException(inner) => Error::ConflictException(inner),
700 crate::operation::create_wireless_gateway::CreateWirelessGatewayError::InternalServerException(inner) => {
701 Error::InternalServerException(inner)
702 }
703 crate::operation::create_wireless_gateway::CreateWirelessGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
704 crate::operation::create_wireless_gateway::CreateWirelessGatewayError::ValidationException(inner) => Error::ValidationException(inner),
705 crate::operation::create_wireless_gateway::CreateWirelessGatewayError::Unhandled(inner) => Error::Unhandled(inner),
706 }
707 }
708}
709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError, R>>
710 for Error
711where
712 R: Send + Sync + std::fmt::Debug + 'static,
713{
714 fn from(
715 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError, R>,
716 ) -> Self {
717 match err {
718 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
719 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
720 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
721 source: err.into(),
722 }),
723 }
724 }
725}
726impl From<crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError> for Error {
727 fn from(err: crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError) -> Self {
728 match err {
729 crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError::AccessDeniedException(inner) => {
730 Error::AccessDeniedException(inner)
731 }
732 crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError::ConflictException(inner) => {
733 Error::ConflictException(inner)
734 }
735 crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError::InternalServerException(inner) => {
736 Error::InternalServerException(inner)
737 }
738 crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError::ResourceNotFoundException(inner) => {
739 Error::ResourceNotFoundException(inner)
740 }
741 crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError::ThrottlingException(inner) => {
742 Error::ThrottlingException(inner)
743 }
744 crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError::ValidationException(inner) => {
745 Error::ValidationException(inner)
746 }
747 crate::operation::create_wireless_gateway_task::CreateWirelessGatewayTaskError::Unhandled(inner) => Error::Unhandled(inner),
748 }
749 }
750}
751impl<R>
752 From<
753 ::aws_smithy_runtime_api::client::result::SdkError<
754 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError,
755 R,
756 >,
757 > for Error
758where
759 R: Send + Sync + std::fmt::Debug + 'static,
760{
761 fn from(
762 err: ::aws_smithy_runtime_api::client::result::SdkError<
763 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError,
764 R,
765 >,
766 ) -> Self {
767 match err {
768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
771 source: err.into(),
772 }),
773 }
774 }
775}
776impl From<crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError> for Error {
777 fn from(err: crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError) -> Self {
778 match err {
779 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError::AccessDeniedException(inner) => {
780 Error::AccessDeniedException(inner)
781 }
782 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError::ConflictException(inner) => {
783 Error::ConflictException(inner)
784 }
785 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError::InternalServerException(inner) => {
786 Error::InternalServerException(inner)
787 }
788 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError::ResourceNotFoundException(inner) => {
789 Error::ResourceNotFoundException(inner)
790 }
791 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError::ThrottlingException(inner) => {
792 Error::ThrottlingException(inner)
793 }
794 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError::ValidationException(inner) => {
795 Error::ValidationException(inner)
796 }
797 crate::operation::create_wireless_gateway_task_definition::CreateWirelessGatewayTaskDefinitionError::Unhandled(inner) => {
798 Error::Unhandled(inner)
799 }
800 }
801 }
802}
803impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>> for Error
804where
805 R: Send + Sync + std::fmt::Debug + 'static,
806{
807 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>) -> Self {
808 match err {
809 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
810 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
811 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
812 source: err.into(),
813 }),
814 }
815 }
816}
817impl From<crate::operation::delete_destination::DeleteDestinationError> for Error {
818 fn from(err: crate::operation::delete_destination::DeleteDestinationError) -> Self {
819 match err {
820 crate::operation::delete_destination::DeleteDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
821 crate::operation::delete_destination::DeleteDestinationError::ConflictException(inner) => Error::ConflictException(inner),
822 crate::operation::delete_destination::DeleteDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
823 crate::operation::delete_destination::DeleteDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
824 crate::operation::delete_destination::DeleteDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
825 crate::operation::delete_destination::DeleteDestinationError::ValidationException(inner) => Error::ValidationException(inner),
826 crate::operation::delete_destination::DeleteDestinationError::Unhandled(inner) => Error::Unhandled(inner),
827 }
828 }
829}
830impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_profile::DeleteDeviceProfileError, R>> for Error
831where
832 R: Send + Sync + std::fmt::Debug + 'static,
833{
834 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_profile::DeleteDeviceProfileError, R>) -> Self {
835 match err {
836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
839 source: err.into(),
840 }),
841 }
842 }
843}
844impl From<crate::operation::delete_device_profile::DeleteDeviceProfileError> for Error {
845 fn from(err: crate::operation::delete_device_profile::DeleteDeviceProfileError) -> Self {
846 match err {
847 crate::operation::delete_device_profile::DeleteDeviceProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
848 crate::operation::delete_device_profile::DeleteDeviceProfileError::ConflictException(inner) => Error::ConflictException(inner),
849 crate::operation::delete_device_profile::DeleteDeviceProfileError::InternalServerException(inner) => {
850 Error::InternalServerException(inner)
851 }
852 crate::operation::delete_device_profile::DeleteDeviceProfileError::ResourceNotFoundException(inner) => {
853 Error::ResourceNotFoundException(inner)
854 }
855 crate::operation::delete_device_profile::DeleteDeviceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
856 crate::operation::delete_device_profile::DeleteDeviceProfileError::ValidationException(inner) => Error::ValidationException(inner),
857 crate::operation::delete_device_profile::DeleteDeviceProfileError::Unhandled(inner) => Error::Unhandled(inner),
858 }
859 }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fuota_task::DeleteFuotaTaskError, R>> for Error
862where
863 R: Send + Sync + std::fmt::Debug + 'static,
864{
865 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fuota_task::DeleteFuotaTaskError, R>) -> Self {
866 match err {
867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870 source: err.into(),
871 }),
872 }
873 }
874}
875impl From<crate::operation::delete_fuota_task::DeleteFuotaTaskError> for Error {
876 fn from(err: crate::operation::delete_fuota_task::DeleteFuotaTaskError) -> Self {
877 match err {
878 crate::operation::delete_fuota_task::DeleteFuotaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
879 crate::operation::delete_fuota_task::DeleteFuotaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
880 crate::operation::delete_fuota_task::DeleteFuotaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
881 crate::operation::delete_fuota_task::DeleteFuotaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
882 crate::operation::delete_fuota_task::DeleteFuotaTaskError::ValidationException(inner) => Error::ValidationException(inner),
883 crate::operation::delete_fuota_task::DeleteFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
884 }
885 }
886}
887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_multicast_group::DeleteMulticastGroupError, R>> for Error
888where
889 R: Send + Sync + std::fmt::Debug + 'static,
890{
891 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_multicast_group::DeleteMulticastGroupError, R>) -> Self {
892 match err {
893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
896 source: err.into(),
897 }),
898 }
899 }
900}
901impl From<crate::operation::delete_multicast_group::DeleteMulticastGroupError> for Error {
902 fn from(err: crate::operation::delete_multicast_group::DeleteMulticastGroupError) -> Self {
903 match err {
904 crate::operation::delete_multicast_group::DeleteMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
905 crate::operation::delete_multicast_group::DeleteMulticastGroupError::ConflictException(inner) => Error::ConflictException(inner),
906 crate::operation::delete_multicast_group::DeleteMulticastGroupError::InternalServerException(inner) => {
907 Error::InternalServerException(inner)
908 }
909 crate::operation::delete_multicast_group::DeleteMulticastGroupError::ResourceNotFoundException(inner) => {
910 Error::ResourceNotFoundException(inner)
911 }
912 crate::operation::delete_multicast_group::DeleteMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
913 crate::operation::delete_multicast_group::DeleteMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
914 crate::operation::delete_multicast_group::DeleteMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
915 }
916 }
917}
918impl<R>
919 From<
920 ::aws_smithy_runtime_api::client::result::SdkError<
921 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError,
922 R,
923 >,
924 > for Error
925where
926 R: Send + Sync + std::fmt::Debug + 'static,
927{
928 fn from(
929 err: ::aws_smithy_runtime_api::client::result::SdkError<
930 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError,
931 R,
932 >,
933 ) -> Self {
934 match err {
935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938 source: err.into(),
939 }),
940 }
941 }
942}
943impl From<crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError> for Error {
944 fn from(err: crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError) -> Self {
945 match err {
946 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError::AccessDeniedException(inner) => {
947 Error::AccessDeniedException(inner)
948 }
949 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError::ConflictException(inner) => {
950 Error::ConflictException(inner)
951 }
952 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError::InternalServerException(inner) => {
953 Error::InternalServerException(inner)
954 }
955 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError::ResourceNotFoundException(inner) => {
956 Error::ResourceNotFoundException(inner)
957 }
958 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError::ThrottlingException(inner) => {
959 Error::ThrottlingException(inner)
960 }
961 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError::ValidationException(inner) => {
962 Error::ValidationException(inner)
963 }
964 crate::operation::delete_network_analyzer_configuration::DeleteNetworkAnalyzerConfigurationError::Unhandled(inner) => {
965 Error::Unhandled(inner)
966 }
967 }
968 }
969}
970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queued_messages::DeleteQueuedMessagesError, R>> for Error
971where
972 R: Send + Sync + std::fmt::Debug + 'static,
973{
974 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queued_messages::DeleteQueuedMessagesError, R>) -> Self {
975 match err {
976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
979 source: err.into(),
980 }),
981 }
982 }
983}
984impl From<crate::operation::delete_queued_messages::DeleteQueuedMessagesError> for Error {
985 fn from(err: crate::operation::delete_queued_messages::DeleteQueuedMessagesError) -> Self {
986 match err {
987 crate::operation::delete_queued_messages::DeleteQueuedMessagesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
988 crate::operation::delete_queued_messages::DeleteQueuedMessagesError::InternalServerException(inner) => {
989 Error::InternalServerException(inner)
990 }
991 crate::operation::delete_queued_messages::DeleteQueuedMessagesError::ResourceNotFoundException(inner) => {
992 Error::ResourceNotFoundException(inner)
993 }
994 crate::operation::delete_queued_messages::DeleteQueuedMessagesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
995 crate::operation::delete_queued_messages::DeleteQueuedMessagesError::ValidationException(inner) => Error::ValidationException(inner),
996 crate::operation::delete_queued_messages::DeleteQueuedMessagesError::Unhandled(inner) => Error::Unhandled(inner),
997 }
998 }
999}
1000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_profile::DeleteServiceProfileError, R>> for Error
1001where
1002 R: Send + Sync + std::fmt::Debug + 'static,
1003{
1004 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_profile::DeleteServiceProfileError, R>) -> Self {
1005 match err {
1006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1009 source: err.into(),
1010 }),
1011 }
1012 }
1013}
1014impl From<crate::operation::delete_service_profile::DeleteServiceProfileError> for Error {
1015 fn from(err: crate::operation::delete_service_profile::DeleteServiceProfileError) -> Self {
1016 match err {
1017 crate::operation::delete_service_profile::DeleteServiceProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1018 crate::operation::delete_service_profile::DeleteServiceProfileError::ConflictException(inner) => Error::ConflictException(inner),
1019 crate::operation::delete_service_profile::DeleteServiceProfileError::InternalServerException(inner) => {
1020 Error::InternalServerException(inner)
1021 }
1022 crate::operation::delete_service_profile::DeleteServiceProfileError::ResourceNotFoundException(inner) => {
1023 Error::ResourceNotFoundException(inner)
1024 }
1025 crate::operation::delete_service_profile::DeleteServiceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1026 crate::operation::delete_service_profile::DeleteServiceProfileError::ValidationException(inner) => Error::ValidationException(inner),
1027 crate::operation::delete_service_profile::DeleteServiceProfileError::Unhandled(inner) => Error::Unhandled(inner),
1028 }
1029 }
1030}
1031impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wireless_device::DeleteWirelessDeviceError, R>> for Error
1032where
1033 R: Send + Sync + std::fmt::Debug + 'static,
1034{
1035 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wireless_device::DeleteWirelessDeviceError, R>) -> Self {
1036 match err {
1037 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1038 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1039 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1040 source: err.into(),
1041 }),
1042 }
1043 }
1044}
1045impl From<crate::operation::delete_wireless_device::DeleteWirelessDeviceError> for Error {
1046 fn from(err: crate::operation::delete_wireless_device::DeleteWirelessDeviceError) -> Self {
1047 match err {
1048 crate::operation::delete_wireless_device::DeleteWirelessDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1049 crate::operation::delete_wireless_device::DeleteWirelessDeviceError::InternalServerException(inner) => {
1050 Error::InternalServerException(inner)
1051 }
1052 crate::operation::delete_wireless_device::DeleteWirelessDeviceError::ResourceNotFoundException(inner) => {
1053 Error::ResourceNotFoundException(inner)
1054 }
1055 crate::operation::delete_wireless_device::DeleteWirelessDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1056 crate::operation::delete_wireless_device::DeleteWirelessDeviceError::ValidationException(inner) => Error::ValidationException(inner),
1057 crate::operation::delete_wireless_device::DeleteWirelessDeviceError::Unhandled(inner) => Error::Unhandled(inner),
1058 }
1059 }
1060}
1061impl<R>
1062 From<
1063 ::aws_smithy_runtime_api::client::result::SdkError<
1064 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError,
1065 R,
1066 >,
1067 > for Error
1068where
1069 R: Send + Sync + std::fmt::Debug + 'static,
1070{
1071 fn from(
1072 err: ::aws_smithy_runtime_api::client::result::SdkError<
1073 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError,
1074 R,
1075 >,
1076 ) -> Self {
1077 match err {
1078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1081 source: err.into(),
1082 }),
1083 }
1084 }
1085}
1086impl From<crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError> for Error {
1087 fn from(err: crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError) -> Self {
1088 match err {
1089 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError::AccessDeniedException(inner) => {
1090 Error::AccessDeniedException(inner)
1091 }
1092 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError::ConflictException(inner) => {
1093 Error::ConflictException(inner)
1094 }
1095 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError::InternalServerException(inner) => {
1096 Error::InternalServerException(inner)
1097 }
1098 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError::ResourceNotFoundException(inner) => {
1099 Error::ResourceNotFoundException(inner)
1100 }
1101 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError::ThrottlingException(inner) => {
1102 Error::ThrottlingException(inner)
1103 }
1104 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError::ValidationException(inner) => {
1105 Error::ValidationException(inner)
1106 }
1107 crate::operation::delete_wireless_device_import_task::DeleteWirelessDeviceImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
1108 }
1109 }
1110}
1111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError, R>> for Error
1112where
1113 R: Send + Sync + std::fmt::Debug + 'static,
1114{
1115 fn from(
1116 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError, R>,
1117 ) -> Self {
1118 match err {
1119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1122 source: err.into(),
1123 }),
1124 }
1125 }
1126}
1127impl From<crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError> for Error {
1128 fn from(err: crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError) -> Self {
1129 match err {
1130 crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError::AccessDeniedException(inner) => {
1131 Error::AccessDeniedException(inner)
1132 }
1133 crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError::InternalServerException(inner) => {
1134 Error::InternalServerException(inner)
1135 }
1136 crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError::ResourceNotFoundException(inner) => {
1137 Error::ResourceNotFoundException(inner)
1138 }
1139 crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1140 crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError::ValidationException(inner) => Error::ValidationException(inner),
1141 crate::operation::delete_wireless_gateway::DeleteWirelessGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1142 }
1143 }
1144}
1145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError, R>>
1146 for Error
1147where
1148 R: Send + Sync + std::fmt::Debug + 'static,
1149{
1150 fn from(
1151 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError, R>,
1152 ) -> Self {
1153 match err {
1154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1157 source: err.into(),
1158 }),
1159 }
1160 }
1161}
1162impl From<crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError> for Error {
1163 fn from(err: crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError) -> Self {
1164 match err {
1165 crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError::AccessDeniedException(inner) => {
1166 Error::AccessDeniedException(inner)
1167 }
1168 crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError::InternalServerException(inner) => {
1169 Error::InternalServerException(inner)
1170 }
1171 crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError::ResourceNotFoundException(inner) => {
1172 Error::ResourceNotFoundException(inner)
1173 }
1174 crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError::ThrottlingException(inner) => {
1175 Error::ThrottlingException(inner)
1176 }
1177 crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError::ValidationException(inner) => {
1178 Error::ValidationException(inner)
1179 }
1180 crate::operation::delete_wireless_gateway_task::DeleteWirelessGatewayTaskError::Unhandled(inner) => Error::Unhandled(inner),
1181 }
1182 }
1183}
1184impl<R>
1185 From<
1186 ::aws_smithy_runtime_api::client::result::SdkError<
1187 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError,
1188 R,
1189 >,
1190 > for Error
1191where
1192 R: Send + Sync + std::fmt::Debug + 'static,
1193{
1194 fn from(
1195 err: ::aws_smithy_runtime_api::client::result::SdkError<
1196 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError,
1197 R,
1198 >,
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::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError> for Error {
1210 fn from(err: crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError) -> Self {
1211 match err {
1212 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError::AccessDeniedException(inner) => {
1213 Error::AccessDeniedException(inner)
1214 }
1215 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError::InternalServerException(inner) => {
1216 Error::InternalServerException(inner)
1217 }
1218 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError::ResourceNotFoundException(inner) => {
1219 Error::ResourceNotFoundException(inner)
1220 }
1221 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError::ThrottlingException(inner) => {
1222 Error::ThrottlingException(inner)
1223 }
1224 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError::ValidationException(inner) => {
1225 Error::ValidationException(inner)
1226 }
1227 crate::operation::delete_wireless_gateway_task_definition::DeleteWirelessGatewayTaskDefinitionError::Unhandled(inner) => {
1228 Error::Unhandled(inner)
1229 }
1230 }
1231 }
1232}
1233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError, R>>
1234 for Error
1235where
1236 R: Send + Sync + std::fmt::Debug + 'static,
1237{
1238 fn from(
1239 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError, R>,
1240 ) -> Self {
1241 match err {
1242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1245 source: err.into(),
1246 }),
1247 }
1248 }
1249}
1250impl From<crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError> for Error {
1251 fn from(err: crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError) -> Self {
1252 match err {
1253 crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError::InternalServerException(inner) => {
1254 Error::InternalServerException(inner)
1255 }
1256 crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError::ResourceNotFoundException(inner) => {
1257 Error::ResourceNotFoundException(inner)
1258 }
1259 crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError::ThrottlingException(inner) => {
1260 Error::ThrottlingException(inner)
1261 }
1262 crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError::ValidationException(inner) => {
1263 Error::ValidationException(inner)
1264 }
1265 crate::operation::deregister_wireless_device::DeregisterWirelessDeviceError::Unhandled(inner) => Error::Unhandled(inner),
1266 }
1267 }
1268}
1269impl<R>
1270 From<
1271 ::aws_smithy_runtime_api::client::result::SdkError<
1272 crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError,
1273 R,
1274 >,
1275 > for Error
1276where
1277 R: Send + Sync + std::fmt::Debug + 'static,
1278{
1279 fn from(
1280 err: ::aws_smithy_runtime_api::client::result::SdkError<
1281 crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError,
1282 R,
1283 >,
1284 ) -> Self {
1285 match err {
1286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1289 source: err.into(),
1290 }),
1291 }
1292 }
1293}
1294impl From<crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError> for Error {
1295 fn from(err: crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError) -> Self {
1296 match err {
1297 crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError::InternalServerException(inner) => Error::InternalServerException(inner),
1298 crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1299 crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1300 crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError::ValidationException(inner) => Error::ValidationException(inner),
1301 crate::operation::disassociate_aws_account_from_partner_account::DisassociateAwsAccountFromPartnerAccountError::Unhandled(inner) => Error::Unhandled(inner),
1302 }
1303 }
1304}
1305impl<R>
1306 From<
1307 ::aws_smithy_runtime_api::client::result::SdkError<
1308 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError,
1309 R,
1310 >,
1311 > for Error
1312where
1313 R: Send + Sync + std::fmt::Debug + 'static,
1314{
1315 fn from(
1316 err: ::aws_smithy_runtime_api::client::result::SdkError<
1317 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError,
1318 R,
1319 >,
1320 ) -> Self {
1321 match err {
1322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1325 source: err.into(),
1326 }),
1327 }
1328 }
1329}
1330impl From<crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError> for Error {
1331 fn from(err: crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError) -> Self {
1332 match err {
1333 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1334 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError::ConflictException(inner) => Error::ConflictException(inner),
1335 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
1336 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1337 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError::ValidationException(inner) => Error::ValidationException(inner),
1338 crate::operation::disassociate_multicast_group_from_fuota_task::DisassociateMulticastGroupFromFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
1339 }
1340 }
1341}
1342impl<R>
1343 From<
1344 ::aws_smithy_runtime_api::client::result::SdkError<
1345 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError,
1346 R,
1347 >,
1348 > for Error
1349where
1350 R: Send + Sync + std::fmt::Debug + 'static,
1351{
1352 fn from(
1353 err: ::aws_smithy_runtime_api::client::result::SdkError<
1354 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError,
1355 R,
1356 >,
1357 ) -> Self {
1358 match err {
1359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1362 source: err.into(),
1363 }),
1364 }
1365 }
1366}
1367impl From<crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError> for Error {
1368 fn from(err: crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError) -> Self {
1369 match err {
1370 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1371 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError::ConflictException(inner) => Error::ConflictException(inner),
1372 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
1373 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1374 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1375 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError::ValidationException(inner) => Error::ValidationException(inner),
1376 crate::operation::disassociate_wireless_device_from_fuota_task::DisassociateWirelessDeviceFromFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
1377 }
1378 }
1379}
1380impl<R>
1381 From<
1382 ::aws_smithy_runtime_api::client::result::SdkError<
1383 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError,
1384 R,
1385 >,
1386 > for Error
1387where
1388 R: Send + Sync + std::fmt::Debug + 'static,
1389{
1390 fn from(
1391 err: ::aws_smithy_runtime_api::client::result::SdkError<
1392 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError,
1393 R,
1394 >,
1395 ) -> Self {
1396 match err {
1397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1400 source: err.into(),
1401 }),
1402 }
1403 }
1404}
1405impl From<crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError> for Error {
1406 fn from(err: crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError) -> Self {
1407 match err {
1408 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1409 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
1410 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1411 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1412 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
1413 crate::operation::disassociate_wireless_device_from_multicast_group::DisassociateWirelessDeviceFromMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
1414 }
1415 }
1416}
1417impl<R>
1418 From<
1419 ::aws_smithy_runtime_api::client::result::SdkError<
1420 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError,
1421 R,
1422 >,
1423 > for Error
1424where
1425 R: Send + Sync + std::fmt::Debug + 'static,
1426{
1427 fn from(
1428 err: ::aws_smithy_runtime_api::client::result::SdkError<
1429 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError,
1430 R,
1431 >,
1432 ) -> Self {
1433 match err {
1434 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1435 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1436 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1437 source: err.into(),
1438 }),
1439 }
1440 }
1441}
1442impl From<crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError> for Error {
1443 fn from(err: crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError) -> Self {
1444 match err {
1445 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError::AccessDeniedException(inner) => {
1446 Error::AccessDeniedException(inner)
1447 }
1448 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError::ConflictException(inner) => {
1449 Error::ConflictException(inner)
1450 }
1451 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError::InternalServerException(inner) => {
1452 Error::InternalServerException(inner)
1453 }
1454 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError::ResourceNotFoundException(inner) => {
1455 Error::ResourceNotFoundException(inner)
1456 }
1457 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError::ThrottlingException(inner) => {
1458 Error::ThrottlingException(inner)
1459 }
1460 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError::ValidationException(inner) => {
1461 Error::ValidationException(inner)
1462 }
1463 crate::operation::disassociate_wireless_device_from_thing::DisassociateWirelessDeviceFromThingError::Unhandled(inner) => {
1464 Error::Unhandled(inner)
1465 }
1466 }
1467 }
1468}
1469impl<R>
1470 From<
1471 ::aws_smithy_runtime_api::client::result::SdkError<
1472 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError,
1473 R,
1474 >,
1475 > for Error
1476where
1477 R: Send + Sync + std::fmt::Debug + 'static,
1478{
1479 fn from(
1480 err: ::aws_smithy_runtime_api::client::result::SdkError<
1481 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError,
1482 R,
1483 >,
1484 ) -> Self {
1485 match err {
1486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1489 source: err.into(),
1490 }),
1491 }
1492 }
1493}
1494impl From<crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError> for Error {
1495 fn from(err: crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError) -> Self {
1496 match err {
1497 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1498 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError::InternalServerException(inner) => Error::InternalServerException(inner),
1499 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1500 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1501 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError::ValidationException(inner) => Error::ValidationException(inner),
1502 crate::operation::disassociate_wireless_gateway_from_certificate::DisassociateWirelessGatewayFromCertificateError::Unhandled(inner) => Error::Unhandled(inner),
1503 }
1504 }
1505}
1506impl<R>
1507 From<
1508 ::aws_smithy_runtime_api::client::result::SdkError<
1509 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError,
1510 R,
1511 >,
1512 > for Error
1513where
1514 R: Send + Sync + std::fmt::Debug + 'static,
1515{
1516 fn from(
1517 err: ::aws_smithy_runtime_api::client::result::SdkError<
1518 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError,
1519 R,
1520 >,
1521 ) -> Self {
1522 match err {
1523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1526 source: err.into(),
1527 }),
1528 }
1529 }
1530}
1531impl From<crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError> for Error {
1532 fn from(err: crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError) -> Self {
1533 match err {
1534 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError::AccessDeniedException(inner) => {
1535 Error::AccessDeniedException(inner)
1536 }
1537 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError::ConflictException(inner) => {
1538 Error::ConflictException(inner)
1539 }
1540 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError::InternalServerException(inner) => {
1541 Error::InternalServerException(inner)
1542 }
1543 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError::ResourceNotFoundException(
1544 inner,
1545 ) => Error::ResourceNotFoundException(inner),
1546 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError::ThrottlingException(inner) => {
1547 Error::ThrottlingException(inner)
1548 }
1549 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError::ValidationException(inner) => {
1550 Error::ValidationException(inner)
1551 }
1552 crate::operation::disassociate_wireless_gateway_from_thing::DisassociateWirelessGatewayFromThingError::Unhandled(inner) => {
1553 Error::Unhandled(inner)
1554 }
1555 }
1556 }
1557}
1558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_destination::GetDestinationError, R>> for Error
1559where
1560 R: Send + Sync + std::fmt::Debug + 'static,
1561{
1562 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_destination::GetDestinationError, R>) -> Self {
1563 match err {
1564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1567 source: err.into(),
1568 }),
1569 }
1570 }
1571}
1572impl From<crate::operation::get_destination::GetDestinationError> for Error {
1573 fn from(err: crate::operation::get_destination::GetDestinationError) -> Self {
1574 match err {
1575 crate::operation::get_destination::GetDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1576 crate::operation::get_destination::GetDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
1577 crate::operation::get_destination::GetDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1578 crate::operation::get_destination::GetDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1579 crate::operation::get_destination::GetDestinationError::ValidationException(inner) => Error::ValidationException(inner),
1580 crate::operation::get_destination::GetDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1581 }
1582 }
1583}
1584impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_profile::GetDeviceProfileError, R>> for Error
1585where
1586 R: Send + Sync + std::fmt::Debug + 'static,
1587{
1588 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_profile::GetDeviceProfileError, R>) -> Self {
1589 match err {
1590 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1591 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1592 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1593 source: err.into(),
1594 }),
1595 }
1596 }
1597}
1598impl From<crate::operation::get_device_profile::GetDeviceProfileError> for Error {
1599 fn from(err: crate::operation::get_device_profile::GetDeviceProfileError) -> Self {
1600 match err {
1601 crate::operation::get_device_profile::GetDeviceProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1602 crate::operation::get_device_profile::GetDeviceProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
1603 crate::operation::get_device_profile::GetDeviceProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1604 crate::operation::get_device_profile::GetDeviceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1605 crate::operation::get_device_profile::GetDeviceProfileError::ValidationException(inner) => Error::ValidationException(inner),
1606 crate::operation::get_device_profile::GetDeviceProfileError::Unhandled(inner) => Error::Unhandled(inner),
1607 }
1608 }
1609}
1610impl<R>
1611 From<
1612 ::aws_smithy_runtime_api::client::result::SdkError<
1613 crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError,
1614 R,
1615 >,
1616 > for Error
1617where
1618 R: Send + Sync + std::fmt::Debug + 'static,
1619{
1620 fn from(
1621 err: ::aws_smithy_runtime_api::client::result::SdkError<
1622 crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError,
1623 R,
1624 >,
1625 ) -> Self {
1626 match err {
1627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1630 source: err.into(),
1631 }),
1632 }
1633 }
1634}
1635impl From<crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError> for Error {
1636 fn from(err: crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError) -> Self {
1637 match err {
1638 crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError::AccessDeniedException(inner) => {
1639 Error::AccessDeniedException(inner)
1640 }
1641 crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError::InternalServerException(
1642 inner,
1643 ) => Error::InternalServerException(inner),
1644 crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError::ThrottlingException(inner) => {
1645 Error::ThrottlingException(inner)
1646 }
1647 crate::operation::get_event_configuration_by_resource_types::GetEventConfigurationByResourceTypesError::Unhandled(inner) => {
1648 Error::Unhandled(inner)
1649 }
1650 }
1651 }
1652}
1653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_fuota_task::GetFuotaTaskError, R>> for Error
1654where
1655 R: Send + Sync + std::fmt::Debug + 'static,
1656{
1657 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_fuota_task::GetFuotaTaskError, R>) -> 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::get_fuota_task::GetFuotaTaskError> for Error {
1668 fn from(err: crate::operation::get_fuota_task::GetFuotaTaskError) -> Self {
1669 match err {
1670 crate::operation::get_fuota_task::GetFuotaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1671 crate::operation::get_fuota_task::GetFuotaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
1672 crate::operation::get_fuota_task::GetFuotaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1673 crate::operation::get_fuota_task::GetFuotaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1674 crate::operation::get_fuota_task::GetFuotaTaskError::ValidationException(inner) => Error::ValidationException(inner),
1675 crate::operation::get_fuota_task::GetFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
1676 }
1677 }
1678}
1679impl<R>
1680 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError, R>>
1681 for Error
1682where
1683 R: Send + Sync + std::fmt::Debug + 'static,
1684{
1685 fn from(
1686 err: ::aws_smithy_runtime_api::client::result::SdkError<
1687 crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError,
1688 R,
1689 >,
1690 ) -> Self {
1691 match err {
1692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1695 source: err.into(),
1696 }),
1697 }
1698 }
1699}
1700impl From<crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError> for Error {
1701 fn from(err: crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError) -> Self {
1702 match err {
1703 crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError::AccessDeniedException(inner) => {
1704 Error::AccessDeniedException(inner)
1705 }
1706 crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError::InternalServerException(inner) => {
1707 Error::InternalServerException(inner)
1708 }
1709 crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError::ResourceNotFoundException(inner) => {
1710 Error::ResourceNotFoundException(inner)
1711 }
1712 crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError::ThrottlingException(inner) => {
1713 Error::ThrottlingException(inner)
1714 }
1715 crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError::ValidationException(inner) => {
1716 Error::ValidationException(inner)
1717 }
1718 crate::operation::get_log_levels_by_resource_types::GetLogLevelsByResourceTypesError::Unhandled(inner) => Error::Unhandled(inner),
1719 }
1720 }
1721}
1722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_configuration::GetMetricConfigurationError, R>> for Error
1723where
1724 R: Send + Sync + std::fmt::Debug + 'static,
1725{
1726 fn from(
1727 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_configuration::GetMetricConfigurationError, R>,
1728 ) -> Self {
1729 match err {
1730 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1731 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1732 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1733 source: err.into(),
1734 }),
1735 }
1736 }
1737}
1738impl From<crate::operation::get_metric_configuration::GetMetricConfigurationError> for Error {
1739 fn from(err: crate::operation::get_metric_configuration::GetMetricConfigurationError) -> Self {
1740 match err {
1741 crate::operation::get_metric_configuration::GetMetricConfigurationError::AccessDeniedException(inner) => {
1742 Error::AccessDeniedException(inner)
1743 }
1744 crate::operation::get_metric_configuration::GetMetricConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
1745 crate::operation::get_metric_configuration::GetMetricConfigurationError::InternalServerException(inner) => {
1746 Error::InternalServerException(inner)
1747 }
1748 crate::operation::get_metric_configuration::GetMetricConfigurationError::ResourceNotFoundException(inner) => {
1749 Error::ResourceNotFoundException(inner)
1750 }
1751 crate::operation::get_metric_configuration::GetMetricConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1752 crate::operation::get_metric_configuration::GetMetricConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
1753 crate::operation::get_metric_configuration::GetMetricConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1754 }
1755 }
1756}
1757impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metrics::GetMetricsError, 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::get_metrics::GetMetricsError, 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::get_metrics::GetMetricsError> for Error {
1772 fn from(err: crate::operation::get_metrics::GetMetricsError) -> Self {
1773 match err {
1774 crate::operation::get_metrics::GetMetricsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1775 crate::operation::get_metrics::GetMetricsError::ConflictException(inner) => Error::ConflictException(inner),
1776 crate::operation::get_metrics::GetMetricsError::InternalServerException(inner) => Error::InternalServerException(inner),
1777 crate::operation::get_metrics::GetMetricsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1778 crate::operation::get_metrics::GetMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1779 crate::operation::get_metrics::GetMetricsError::ValidationException(inner) => Error::ValidationException(inner),
1780 crate::operation::get_metrics::GetMetricsError::Unhandled(inner) => Error::Unhandled(inner),
1781 }
1782 }
1783}
1784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_multicast_group::GetMulticastGroupError, R>> for Error
1785where
1786 R: Send + Sync + std::fmt::Debug + 'static,
1787{
1788 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_multicast_group::GetMulticastGroupError, R>) -> Self {
1789 match err {
1790 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1791 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1792 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1793 source: err.into(),
1794 }),
1795 }
1796 }
1797}
1798impl From<crate::operation::get_multicast_group::GetMulticastGroupError> for Error {
1799 fn from(err: crate::operation::get_multicast_group::GetMulticastGroupError) -> Self {
1800 match err {
1801 crate::operation::get_multicast_group::GetMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1802 crate::operation::get_multicast_group::GetMulticastGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
1803 crate::operation::get_multicast_group::GetMulticastGroupError::ResourceNotFoundException(inner) => {
1804 Error::ResourceNotFoundException(inner)
1805 }
1806 crate::operation::get_multicast_group::GetMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1807 crate::operation::get_multicast_group::GetMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
1808 crate::operation::get_multicast_group::GetMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
1809 }
1810 }
1811}
1812impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_multicast_group_session::GetMulticastGroupSessionError, R>>
1813 for Error
1814where
1815 R: Send + Sync + std::fmt::Debug + 'static,
1816{
1817 fn from(
1818 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_multicast_group_session::GetMulticastGroupSessionError, R>,
1819 ) -> Self {
1820 match err {
1821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1824 source: err.into(),
1825 }),
1826 }
1827 }
1828}
1829impl From<crate::operation::get_multicast_group_session::GetMulticastGroupSessionError> for Error {
1830 fn from(err: crate::operation::get_multicast_group_session::GetMulticastGroupSessionError) -> Self {
1831 match err {
1832 crate::operation::get_multicast_group_session::GetMulticastGroupSessionError::AccessDeniedException(inner) => {
1833 Error::AccessDeniedException(inner)
1834 }
1835 crate::operation::get_multicast_group_session::GetMulticastGroupSessionError::InternalServerException(inner) => {
1836 Error::InternalServerException(inner)
1837 }
1838 crate::operation::get_multicast_group_session::GetMulticastGroupSessionError::ResourceNotFoundException(inner) => {
1839 Error::ResourceNotFoundException(inner)
1840 }
1841 crate::operation::get_multicast_group_session::GetMulticastGroupSessionError::ThrottlingException(inner) => {
1842 Error::ThrottlingException(inner)
1843 }
1844 crate::operation::get_multicast_group_session::GetMulticastGroupSessionError::ValidationException(inner) => {
1845 Error::ValidationException(inner)
1846 }
1847 crate::operation::get_multicast_group_session::GetMulticastGroupSessionError::Unhandled(inner) => Error::Unhandled(inner),
1848 }
1849 }
1850}
1851impl<R>
1852 From<
1853 ::aws_smithy_runtime_api::client::result::SdkError<
1854 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError,
1855 R,
1856 >,
1857 > for Error
1858where
1859 R: Send + Sync + std::fmt::Debug + 'static,
1860{
1861 fn from(
1862 err: ::aws_smithy_runtime_api::client::result::SdkError<
1863 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError,
1864 R,
1865 >,
1866 ) -> Self {
1867 match err {
1868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1871 source: err.into(),
1872 }),
1873 }
1874 }
1875}
1876impl From<crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError> for Error {
1877 fn from(err: crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError) -> Self {
1878 match err {
1879 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError::AccessDeniedException(inner) => {
1880 Error::AccessDeniedException(inner)
1881 }
1882 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError::InternalServerException(inner) => {
1883 Error::InternalServerException(inner)
1884 }
1885 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError::ResourceNotFoundException(inner) => {
1886 Error::ResourceNotFoundException(inner)
1887 }
1888 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError::ThrottlingException(inner) => {
1889 Error::ThrottlingException(inner)
1890 }
1891 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError::ValidationException(inner) => {
1892 Error::ValidationException(inner)
1893 }
1894 crate::operation::get_network_analyzer_configuration::GetNetworkAnalyzerConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1895 }
1896 }
1897}
1898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_partner_account::GetPartnerAccountError, R>> for Error
1899where
1900 R: Send + Sync + std::fmt::Debug + 'static,
1901{
1902 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_partner_account::GetPartnerAccountError, R>) -> Self {
1903 match err {
1904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1907 source: err.into(),
1908 }),
1909 }
1910 }
1911}
1912impl From<crate::operation::get_partner_account::GetPartnerAccountError> for Error {
1913 fn from(err: crate::operation::get_partner_account::GetPartnerAccountError) -> Self {
1914 match err {
1915 crate::operation::get_partner_account::GetPartnerAccountError::InternalServerException(inner) => Error::InternalServerException(inner),
1916 crate::operation::get_partner_account::GetPartnerAccountError::ResourceNotFoundException(inner) => {
1917 Error::ResourceNotFoundException(inner)
1918 }
1919 crate::operation::get_partner_account::GetPartnerAccountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1920 crate::operation::get_partner_account::GetPartnerAccountError::ValidationException(inner) => Error::ValidationException(inner),
1921 crate::operation::get_partner_account::GetPartnerAccountError::Unhandled(inner) => Error::Unhandled(inner),
1922 }
1923 }
1924}
1925impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_position::GetPositionError, R>> for Error
1926where
1927 R: Send + Sync + std::fmt::Debug + 'static,
1928{
1929 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_position::GetPositionError, R>) -> Self {
1930 match err {
1931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1934 source: err.into(),
1935 }),
1936 }
1937 }
1938}
1939impl From<crate::operation::get_position::GetPositionError> for Error {
1940 fn from(err: crate::operation::get_position::GetPositionError) -> Self {
1941 match err {
1942 crate::operation::get_position::GetPositionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1943 crate::operation::get_position::GetPositionError::InternalServerException(inner) => Error::InternalServerException(inner),
1944 crate::operation::get_position::GetPositionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1945 crate::operation::get_position::GetPositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1946 crate::operation::get_position::GetPositionError::ValidationException(inner) => Error::ValidationException(inner),
1947 crate::operation::get_position::GetPositionError::Unhandled(inner) => Error::Unhandled(inner),
1948 }
1949 }
1950}
1951impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_position_configuration::GetPositionConfigurationError, R>>
1952 for Error
1953where
1954 R: Send + Sync + std::fmt::Debug + 'static,
1955{
1956 fn from(
1957 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_position_configuration::GetPositionConfigurationError, R>,
1958 ) -> Self {
1959 match err {
1960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1963 source: err.into(),
1964 }),
1965 }
1966 }
1967}
1968impl From<crate::operation::get_position_configuration::GetPositionConfigurationError> for Error {
1969 fn from(err: crate::operation::get_position_configuration::GetPositionConfigurationError) -> Self {
1970 match err {
1971 crate::operation::get_position_configuration::GetPositionConfigurationError::AccessDeniedException(inner) => {
1972 Error::AccessDeniedException(inner)
1973 }
1974 crate::operation::get_position_configuration::GetPositionConfigurationError::InternalServerException(inner) => {
1975 Error::InternalServerException(inner)
1976 }
1977 crate::operation::get_position_configuration::GetPositionConfigurationError::ResourceNotFoundException(inner) => {
1978 Error::ResourceNotFoundException(inner)
1979 }
1980 crate::operation::get_position_configuration::GetPositionConfigurationError::ThrottlingException(inner) => {
1981 Error::ThrottlingException(inner)
1982 }
1983 crate::operation::get_position_configuration::GetPositionConfigurationError::ValidationException(inner) => {
1984 Error::ValidationException(inner)
1985 }
1986 crate::operation::get_position_configuration::GetPositionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1987 }
1988 }
1989}
1990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_position_estimate::GetPositionEstimateError, R>> for Error
1991where
1992 R: Send + Sync + std::fmt::Debug + 'static,
1993{
1994 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_position_estimate::GetPositionEstimateError, R>) -> Self {
1995 match err {
1996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1999 source: err.into(),
2000 }),
2001 }
2002 }
2003}
2004impl From<crate::operation::get_position_estimate::GetPositionEstimateError> for Error {
2005 fn from(err: crate::operation::get_position_estimate::GetPositionEstimateError) -> Self {
2006 match err {
2007 crate::operation::get_position_estimate::GetPositionEstimateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2008 crate::operation::get_position_estimate::GetPositionEstimateError::InternalServerException(inner) => {
2009 Error::InternalServerException(inner)
2010 }
2011 crate::operation::get_position_estimate::GetPositionEstimateError::ResourceNotFoundException(inner) => {
2012 Error::ResourceNotFoundException(inner)
2013 }
2014 crate::operation::get_position_estimate::GetPositionEstimateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2015 crate::operation::get_position_estimate::GetPositionEstimateError::ValidationException(inner) => Error::ValidationException(inner),
2016 crate::operation::get_position_estimate::GetPositionEstimateError::Unhandled(inner) => Error::Unhandled(inner),
2017 }
2018 }
2019}
2020impl<R>
2021 From<
2022 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError, R>,
2023 > for Error
2024where
2025 R: Send + Sync + std::fmt::Debug + 'static,
2026{
2027 fn from(
2028 err: ::aws_smithy_runtime_api::client::result::SdkError<
2029 crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError,
2030 R,
2031 >,
2032 ) -> Self {
2033 match err {
2034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2037 source: err.into(),
2038 }),
2039 }
2040 }
2041}
2042impl From<crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError> for Error {
2043 fn from(err: crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError) -> Self {
2044 match err {
2045 crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError::AccessDeniedException(inner) => {
2046 Error::AccessDeniedException(inner)
2047 }
2048 crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError::InternalServerException(inner) => {
2049 Error::InternalServerException(inner)
2050 }
2051 crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError::ResourceNotFoundException(inner) => {
2052 Error::ResourceNotFoundException(inner)
2053 }
2054 crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError::ThrottlingException(inner) => {
2055 Error::ThrottlingException(inner)
2056 }
2057 crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError::ValidationException(inner) => {
2058 Error::ValidationException(inner)
2059 }
2060 crate::operation::get_resource_event_configuration::GetResourceEventConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2061 }
2062 }
2063}
2064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_log_level::GetResourceLogLevelError, R>> for Error
2065where
2066 R: Send + Sync + std::fmt::Debug + 'static,
2067{
2068 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_log_level::GetResourceLogLevelError, R>) -> Self {
2069 match err {
2070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2073 source: err.into(),
2074 }),
2075 }
2076 }
2077}
2078impl From<crate::operation::get_resource_log_level::GetResourceLogLevelError> for Error {
2079 fn from(err: crate::operation::get_resource_log_level::GetResourceLogLevelError) -> Self {
2080 match err {
2081 crate::operation::get_resource_log_level::GetResourceLogLevelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2082 crate::operation::get_resource_log_level::GetResourceLogLevelError::InternalServerException(inner) => {
2083 Error::InternalServerException(inner)
2084 }
2085 crate::operation::get_resource_log_level::GetResourceLogLevelError::ResourceNotFoundException(inner) => {
2086 Error::ResourceNotFoundException(inner)
2087 }
2088 crate::operation::get_resource_log_level::GetResourceLogLevelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2089 crate::operation::get_resource_log_level::GetResourceLogLevelError::ValidationException(inner) => Error::ValidationException(inner),
2090 crate::operation::get_resource_log_level::GetResourceLogLevelError::Unhandled(inner) => Error::Unhandled(inner),
2091 }
2092 }
2093}
2094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_position::GetResourcePositionError, R>> for Error
2095where
2096 R: Send + Sync + std::fmt::Debug + 'static,
2097{
2098 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_position::GetResourcePositionError, R>) -> Self {
2099 match err {
2100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2103 source: err.into(),
2104 }),
2105 }
2106 }
2107}
2108impl From<crate::operation::get_resource_position::GetResourcePositionError> for Error {
2109 fn from(err: crate::operation::get_resource_position::GetResourcePositionError) -> Self {
2110 match err {
2111 crate::operation::get_resource_position::GetResourcePositionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2112 crate::operation::get_resource_position::GetResourcePositionError::InternalServerException(inner) => {
2113 Error::InternalServerException(inner)
2114 }
2115 crate::operation::get_resource_position::GetResourcePositionError::ResourceNotFoundException(inner) => {
2116 Error::ResourceNotFoundException(inner)
2117 }
2118 crate::operation::get_resource_position::GetResourcePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2119 crate::operation::get_resource_position::GetResourcePositionError::ValidationException(inner) => Error::ValidationException(inner),
2120 crate::operation::get_resource_position::GetResourcePositionError::Unhandled(inner) => Error::Unhandled(inner),
2121 }
2122 }
2123}
2124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_endpoint::GetServiceEndpointError, R>> for Error
2125where
2126 R: Send + Sync + std::fmt::Debug + 'static,
2127{
2128 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_endpoint::GetServiceEndpointError, R>) -> Self {
2129 match err {
2130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2133 source: err.into(),
2134 }),
2135 }
2136 }
2137}
2138impl From<crate::operation::get_service_endpoint::GetServiceEndpointError> for Error {
2139 fn from(err: crate::operation::get_service_endpoint::GetServiceEndpointError) -> Self {
2140 match err {
2141 crate::operation::get_service_endpoint::GetServiceEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2142 crate::operation::get_service_endpoint::GetServiceEndpointError::InternalServerException(inner) => Error::InternalServerException(inner),
2143 crate::operation::get_service_endpoint::GetServiceEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2144 crate::operation::get_service_endpoint::GetServiceEndpointError::ValidationException(inner) => Error::ValidationException(inner),
2145 crate::operation::get_service_endpoint::GetServiceEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2146 }
2147 }
2148}
2149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_profile::GetServiceProfileError, R>> for Error
2150where
2151 R: Send + Sync + std::fmt::Debug + 'static,
2152{
2153 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_profile::GetServiceProfileError, R>) -> Self {
2154 match err {
2155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2158 source: err.into(),
2159 }),
2160 }
2161 }
2162}
2163impl From<crate::operation::get_service_profile::GetServiceProfileError> for Error {
2164 fn from(err: crate::operation::get_service_profile::GetServiceProfileError) -> Self {
2165 match err {
2166 crate::operation::get_service_profile::GetServiceProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2167 crate::operation::get_service_profile::GetServiceProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
2168 crate::operation::get_service_profile::GetServiceProfileError::ResourceNotFoundException(inner) => {
2169 Error::ResourceNotFoundException(inner)
2170 }
2171 crate::operation::get_service_profile::GetServiceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2172 crate::operation::get_service_profile::GetServiceProfileError::ValidationException(inner) => Error::ValidationException(inner),
2173 crate::operation::get_service_profile::GetServiceProfileError::Unhandled(inner) => Error::Unhandled(inner),
2174 }
2175 }
2176}
2177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_device::GetWirelessDeviceError, R>> for Error
2178where
2179 R: Send + Sync + std::fmt::Debug + 'static,
2180{
2181 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_device::GetWirelessDeviceError, R>) -> Self {
2182 match err {
2183 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2184 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2185 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2186 source: err.into(),
2187 }),
2188 }
2189 }
2190}
2191impl From<crate::operation::get_wireless_device::GetWirelessDeviceError> for Error {
2192 fn from(err: crate::operation::get_wireless_device::GetWirelessDeviceError) -> Self {
2193 match err {
2194 crate::operation::get_wireless_device::GetWirelessDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2195 crate::operation::get_wireless_device::GetWirelessDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
2196 crate::operation::get_wireless_device::GetWirelessDeviceError::ResourceNotFoundException(inner) => {
2197 Error::ResourceNotFoundException(inner)
2198 }
2199 crate::operation::get_wireless_device::GetWirelessDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2200 crate::operation::get_wireless_device::GetWirelessDeviceError::ValidationException(inner) => Error::ValidationException(inner),
2201 crate::operation::get_wireless_device::GetWirelessDeviceError::Unhandled(inner) => Error::Unhandled(inner),
2202 }
2203 }
2204}
2205impl<R>
2206 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError, R>>
2207 for Error
2208where
2209 R: Send + Sync + std::fmt::Debug + 'static,
2210{
2211 fn from(
2212 err: ::aws_smithy_runtime_api::client::result::SdkError<
2213 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError,
2214 R,
2215 >,
2216 ) -> Self {
2217 match err {
2218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2221 source: err.into(),
2222 }),
2223 }
2224 }
2225}
2226impl From<crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError> for Error {
2227 fn from(err: crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError) -> Self {
2228 match err {
2229 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError::AccessDeniedException(inner) => {
2230 Error::AccessDeniedException(inner)
2231 }
2232 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError::ConflictException(inner) => {
2233 Error::ConflictException(inner)
2234 }
2235 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError::InternalServerException(inner) => {
2236 Error::InternalServerException(inner)
2237 }
2238 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError::ResourceNotFoundException(inner) => {
2239 Error::ResourceNotFoundException(inner)
2240 }
2241 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError::ThrottlingException(inner) => {
2242 Error::ThrottlingException(inner)
2243 }
2244 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError::ValidationException(inner) => {
2245 Error::ValidationException(inner)
2246 }
2247 crate::operation::get_wireless_device_import_task::GetWirelessDeviceImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
2248 }
2249 }
2250}
2251impl<R>
2252 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError, R>>
2253 for Error
2254where
2255 R: Send + Sync + std::fmt::Debug + 'static,
2256{
2257 fn from(
2258 err: ::aws_smithy_runtime_api::client::result::SdkError<
2259 crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError,
2260 R,
2261 >,
2262 ) -> Self {
2263 match err {
2264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2267 source: err.into(),
2268 }),
2269 }
2270 }
2271}
2272impl From<crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError> for Error {
2273 fn from(err: crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError) -> Self {
2274 match err {
2275 crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError::AccessDeniedException(inner) => {
2276 Error::AccessDeniedException(inner)
2277 }
2278 crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError::InternalServerException(inner) => {
2279 Error::InternalServerException(inner)
2280 }
2281 crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError::ResourceNotFoundException(inner) => {
2282 Error::ResourceNotFoundException(inner)
2283 }
2284 crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError::ThrottlingException(inner) => {
2285 Error::ThrottlingException(inner)
2286 }
2287 crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError::ValidationException(inner) => {
2288 Error::ValidationException(inner)
2289 }
2290 crate::operation::get_wireless_device_statistics::GetWirelessDeviceStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
2291 }
2292 }
2293}
2294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_gateway::GetWirelessGatewayError, R>> for Error
2295where
2296 R: Send + Sync + std::fmt::Debug + 'static,
2297{
2298 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_gateway::GetWirelessGatewayError, R>) -> Self {
2299 match err {
2300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2303 source: err.into(),
2304 }),
2305 }
2306 }
2307}
2308impl From<crate::operation::get_wireless_gateway::GetWirelessGatewayError> for Error {
2309 fn from(err: crate::operation::get_wireless_gateway::GetWirelessGatewayError) -> Self {
2310 match err {
2311 crate::operation::get_wireless_gateway::GetWirelessGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2312 crate::operation::get_wireless_gateway::GetWirelessGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
2313 crate::operation::get_wireless_gateway::GetWirelessGatewayError::ResourceNotFoundException(inner) => {
2314 Error::ResourceNotFoundException(inner)
2315 }
2316 crate::operation::get_wireless_gateway::GetWirelessGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2317 crate::operation::get_wireless_gateway::GetWirelessGatewayError::ValidationException(inner) => Error::ValidationException(inner),
2318 crate::operation::get_wireless_gateway::GetWirelessGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2319 }
2320 }
2321}
2322impl<R>
2323 From<
2324 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError, R>,
2325 > for Error
2326where
2327 R: Send + Sync + std::fmt::Debug + 'static,
2328{
2329 fn from(
2330 err: ::aws_smithy_runtime_api::client::result::SdkError<
2331 crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError,
2332 R,
2333 >,
2334 ) -> Self {
2335 match err {
2336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2339 source: err.into(),
2340 }),
2341 }
2342 }
2343}
2344impl From<crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError> for Error {
2345 fn from(err: crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError) -> Self {
2346 match err {
2347 crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError::AccessDeniedException(inner) => {
2348 Error::AccessDeniedException(inner)
2349 }
2350 crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError::InternalServerException(inner) => {
2351 Error::InternalServerException(inner)
2352 }
2353 crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError::ResourceNotFoundException(inner) => {
2354 Error::ResourceNotFoundException(inner)
2355 }
2356 crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError::ThrottlingException(inner) => {
2357 Error::ThrottlingException(inner)
2358 }
2359 crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError::ValidationException(inner) => {
2360 Error::ValidationException(inner)
2361 }
2362 crate::operation::get_wireless_gateway_certificate::GetWirelessGatewayCertificateError::Unhandled(inner) => Error::Unhandled(inner),
2363 }
2364 }
2365}
2366impl<R>
2367 From<
2368 ::aws_smithy_runtime_api::client::result::SdkError<
2369 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError,
2370 R,
2371 >,
2372 > for Error
2373where
2374 R: Send + Sync + std::fmt::Debug + 'static,
2375{
2376 fn from(
2377 err: ::aws_smithy_runtime_api::client::result::SdkError<
2378 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError,
2379 R,
2380 >,
2381 ) -> Self {
2382 match err {
2383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2386 source: err.into(),
2387 }),
2388 }
2389 }
2390}
2391impl From<crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError> for Error {
2392 fn from(err: crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError) -> Self {
2393 match err {
2394 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError::AccessDeniedException(inner) => {
2395 Error::AccessDeniedException(inner)
2396 }
2397 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError::InternalServerException(
2398 inner,
2399 ) => Error::InternalServerException(inner),
2400 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError::ResourceNotFoundException(
2401 inner,
2402 ) => Error::ResourceNotFoundException(inner),
2403 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError::ThrottlingException(inner) => {
2404 Error::ThrottlingException(inner)
2405 }
2406 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError::ValidationException(inner) => {
2407 Error::ValidationException(inner)
2408 }
2409 crate::operation::get_wireless_gateway_firmware_information::GetWirelessGatewayFirmwareInformationError::Unhandled(inner) => {
2410 Error::Unhandled(inner)
2411 }
2412 }
2413 }
2414}
2415impl<R>
2416 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError, R>>
2417 for Error
2418where
2419 R: Send + Sync + std::fmt::Debug + 'static,
2420{
2421 fn from(
2422 err: ::aws_smithy_runtime_api::client::result::SdkError<
2423 crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError,
2424 R,
2425 >,
2426 ) -> Self {
2427 match err {
2428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2431 source: err.into(),
2432 }),
2433 }
2434 }
2435}
2436impl From<crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError> for Error {
2437 fn from(err: crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError) -> Self {
2438 match err {
2439 crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError::AccessDeniedException(inner) => {
2440 Error::AccessDeniedException(inner)
2441 }
2442 crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError::InternalServerException(inner) => {
2443 Error::InternalServerException(inner)
2444 }
2445 crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError::ResourceNotFoundException(inner) => {
2446 Error::ResourceNotFoundException(inner)
2447 }
2448 crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError::ThrottlingException(inner) => {
2449 Error::ThrottlingException(inner)
2450 }
2451 crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError::ValidationException(inner) => {
2452 Error::ValidationException(inner)
2453 }
2454 crate::operation::get_wireless_gateway_statistics::GetWirelessGatewayStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
2455 }
2456 }
2457}
2458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError, R>>
2459 for Error
2460where
2461 R: Send + Sync + std::fmt::Debug + 'static,
2462{
2463 fn from(
2464 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError, R>,
2465 ) -> Self {
2466 match err {
2467 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2468 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2469 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2470 source: err.into(),
2471 }),
2472 }
2473 }
2474}
2475impl From<crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError> for Error {
2476 fn from(err: crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError) -> Self {
2477 match err {
2478 crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError::AccessDeniedException(inner) => {
2479 Error::AccessDeniedException(inner)
2480 }
2481 crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError::InternalServerException(inner) => {
2482 Error::InternalServerException(inner)
2483 }
2484 crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError::ResourceNotFoundException(inner) => {
2485 Error::ResourceNotFoundException(inner)
2486 }
2487 crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2488 crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError::ValidationException(inner) => Error::ValidationException(inner),
2489 crate::operation::get_wireless_gateway_task::GetWirelessGatewayTaskError::Unhandled(inner) => Error::Unhandled(inner),
2490 }
2491 }
2492}
2493impl<R>
2494 From<
2495 ::aws_smithy_runtime_api::client::result::SdkError<
2496 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError,
2497 R,
2498 >,
2499 > for Error
2500where
2501 R: Send + Sync + std::fmt::Debug + 'static,
2502{
2503 fn from(
2504 err: ::aws_smithy_runtime_api::client::result::SdkError<
2505 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError,
2506 R,
2507 >,
2508 ) -> Self {
2509 match err {
2510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2513 source: err.into(),
2514 }),
2515 }
2516 }
2517}
2518impl From<crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError> for Error {
2519 fn from(err: crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError) -> Self {
2520 match err {
2521 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError::AccessDeniedException(inner) => {
2522 Error::AccessDeniedException(inner)
2523 }
2524 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError::InternalServerException(inner) => {
2525 Error::InternalServerException(inner)
2526 }
2527 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError::ResourceNotFoundException(inner) => {
2528 Error::ResourceNotFoundException(inner)
2529 }
2530 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError::ThrottlingException(inner) => {
2531 Error::ThrottlingException(inner)
2532 }
2533 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError::ValidationException(inner) => {
2534 Error::ValidationException(inner)
2535 }
2536 crate::operation::get_wireless_gateway_task_definition::GetWirelessGatewayTaskDefinitionError::Unhandled(inner) => {
2537 Error::Unhandled(inner)
2538 }
2539 }
2540 }
2541}
2542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_destinations::ListDestinationsError, R>> for Error
2543where
2544 R: Send + Sync + std::fmt::Debug + 'static,
2545{
2546 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_destinations::ListDestinationsError, R>) -> Self {
2547 match err {
2548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2551 source: err.into(),
2552 }),
2553 }
2554 }
2555}
2556impl From<crate::operation::list_destinations::ListDestinationsError> for Error {
2557 fn from(err: crate::operation::list_destinations::ListDestinationsError) -> Self {
2558 match err {
2559 crate::operation::list_destinations::ListDestinationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2560 crate::operation::list_destinations::ListDestinationsError::InternalServerException(inner) => Error::InternalServerException(inner),
2561 crate::operation::list_destinations::ListDestinationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2562 crate::operation::list_destinations::ListDestinationsError::ValidationException(inner) => Error::ValidationException(inner),
2563 crate::operation::list_destinations::ListDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
2564 }
2565 }
2566}
2567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_profiles::ListDeviceProfilesError, R>> for Error
2568where
2569 R: Send + Sync + std::fmt::Debug + 'static,
2570{
2571 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_profiles::ListDeviceProfilesError, R>) -> Self {
2572 match err {
2573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2576 source: err.into(),
2577 }),
2578 }
2579 }
2580}
2581impl From<crate::operation::list_device_profiles::ListDeviceProfilesError> for Error {
2582 fn from(err: crate::operation::list_device_profiles::ListDeviceProfilesError) -> Self {
2583 match err {
2584 crate::operation::list_device_profiles::ListDeviceProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2585 crate::operation::list_device_profiles::ListDeviceProfilesError::InternalServerException(inner) => Error::InternalServerException(inner),
2586 crate::operation::list_device_profiles::ListDeviceProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2587 crate::operation::list_device_profiles::ListDeviceProfilesError::ValidationException(inner) => Error::ValidationException(inner),
2588 crate::operation::list_device_profiles::ListDeviceProfilesError::Unhandled(inner) => Error::Unhandled(inner),
2589 }
2590 }
2591}
2592impl<R>
2593 From<
2594 ::aws_smithy_runtime_api::client::result::SdkError<
2595 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError,
2596 R,
2597 >,
2598 > for Error
2599where
2600 R: Send + Sync + std::fmt::Debug + 'static,
2601{
2602 fn from(
2603 err: ::aws_smithy_runtime_api::client::result::SdkError<
2604 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError,
2605 R,
2606 >,
2607 ) -> Self {
2608 match err {
2609 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2610 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2611 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2612 source: err.into(),
2613 }),
2614 }
2615 }
2616}
2617impl From<crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError> for Error {
2618 fn from(err: crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError) -> Self {
2619 match err {
2620 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2621 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError::ConflictException(inner) => Error::ConflictException(inner),
2622 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
2623 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2624 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2625 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError::ValidationException(inner) => Error::ValidationException(inner),
2626 crate::operation::list_devices_for_wireless_device_import_task::ListDevicesForWirelessDeviceImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
2627 }
2628 }
2629}
2630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_configurations::ListEventConfigurationsError, R>>
2631 for Error
2632where
2633 R: Send + Sync + std::fmt::Debug + 'static,
2634{
2635 fn from(
2636 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_configurations::ListEventConfigurationsError, R>,
2637 ) -> Self {
2638 match err {
2639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2642 source: err.into(),
2643 }),
2644 }
2645 }
2646}
2647impl From<crate::operation::list_event_configurations::ListEventConfigurationsError> for Error {
2648 fn from(err: crate::operation::list_event_configurations::ListEventConfigurationsError) -> Self {
2649 match err {
2650 crate::operation::list_event_configurations::ListEventConfigurationsError::AccessDeniedException(inner) => {
2651 Error::AccessDeniedException(inner)
2652 }
2653 crate::operation::list_event_configurations::ListEventConfigurationsError::InternalServerException(inner) => {
2654 Error::InternalServerException(inner)
2655 }
2656 crate::operation::list_event_configurations::ListEventConfigurationsError::ThrottlingException(inner) => {
2657 Error::ThrottlingException(inner)
2658 }
2659 crate::operation::list_event_configurations::ListEventConfigurationsError::ValidationException(inner) => {
2660 Error::ValidationException(inner)
2661 }
2662 crate::operation::list_event_configurations::ListEventConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
2663 }
2664 }
2665}
2666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fuota_tasks::ListFuotaTasksError, R>> for Error
2667where
2668 R: Send + Sync + std::fmt::Debug + 'static,
2669{
2670 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fuota_tasks::ListFuotaTasksError, R>) -> Self {
2671 match err {
2672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2675 source: err.into(),
2676 }),
2677 }
2678 }
2679}
2680impl From<crate::operation::list_fuota_tasks::ListFuotaTasksError> for Error {
2681 fn from(err: crate::operation::list_fuota_tasks::ListFuotaTasksError) -> Self {
2682 match err {
2683 crate::operation::list_fuota_tasks::ListFuotaTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2684 crate::operation::list_fuota_tasks::ListFuotaTasksError::InternalServerException(inner) => Error::InternalServerException(inner),
2685 crate::operation::list_fuota_tasks::ListFuotaTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2686 crate::operation::list_fuota_tasks::ListFuotaTasksError::ValidationException(inner) => Error::ValidationException(inner),
2687 crate::operation::list_fuota_tasks::ListFuotaTasksError::Unhandled(inner) => Error::Unhandled(inner),
2688 }
2689 }
2690}
2691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_multicast_groups::ListMulticastGroupsError, R>> for Error
2692where
2693 R: Send + Sync + std::fmt::Debug + 'static,
2694{
2695 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_multicast_groups::ListMulticastGroupsError, R>) -> Self {
2696 match err {
2697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2700 source: err.into(),
2701 }),
2702 }
2703 }
2704}
2705impl From<crate::operation::list_multicast_groups::ListMulticastGroupsError> for Error {
2706 fn from(err: crate::operation::list_multicast_groups::ListMulticastGroupsError) -> Self {
2707 match err {
2708 crate::operation::list_multicast_groups::ListMulticastGroupsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2709 crate::operation::list_multicast_groups::ListMulticastGroupsError::InternalServerException(inner) => {
2710 Error::InternalServerException(inner)
2711 }
2712 crate::operation::list_multicast_groups::ListMulticastGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2713 crate::operation::list_multicast_groups::ListMulticastGroupsError::ValidationException(inner) => Error::ValidationException(inner),
2714 crate::operation::list_multicast_groups::ListMulticastGroupsError::Unhandled(inner) => Error::Unhandled(inner),
2715 }
2716 }
2717}
2718impl<R>
2719 From<
2720 ::aws_smithy_runtime_api::client::result::SdkError<
2721 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError,
2722 R,
2723 >,
2724 > for Error
2725where
2726 R: Send + Sync + std::fmt::Debug + 'static,
2727{
2728 fn from(
2729 err: ::aws_smithy_runtime_api::client::result::SdkError<
2730 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError,
2731 R,
2732 >,
2733 ) -> Self {
2734 match err {
2735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2738 source: err.into(),
2739 }),
2740 }
2741 }
2742}
2743impl From<crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError> for Error {
2744 fn from(err: crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError) -> Self {
2745 match err {
2746 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError::AccessDeniedException(inner) => {
2747 Error::AccessDeniedException(inner)
2748 }
2749 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError::InternalServerException(inner) => {
2750 Error::InternalServerException(inner)
2751 }
2752 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError::ResourceNotFoundException(inner) => {
2753 Error::ResourceNotFoundException(inner)
2754 }
2755 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError::ThrottlingException(inner) => {
2756 Error::ThrottlingException(inner)
2757 }
2758 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError::ValidationException(inner) => {
2759 Error::ValidationException(inner)
2760 }
2761 crate::operation::list_multicast_groups_by_fuota_task::ListMulticastGroupsByFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
2762 }
2763 }
2764}
2765impl<R>
2766 From<
2767 ::aws_smithy_runtime_api::client::result::SdkError<
2768 crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError,
2769 R,
2770 >,
2771 > for Error
2772where
2773 R: Send + Sync + std::fmt::Debug + 'static,
2774{
2775 fn from(
2776 err: ::aws_smithy_runtime_api::client::result::SdkError<
2777 crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError,
2778 R,
2779 >,
2780 ) -> Self {
2781 match err {
2782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2785 source: err.into(),
2786 }),
2787 }
2788 }
2789}
2790impl From<crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError> for Error {
2791 fn from(err: crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError) -> Self {
2792 match err {
2793 crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError::AccessDeniedException(inner) => {
2794 Error::AccessDeniedException(inner)
2795 }
2796 crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError::InternalServerException(inner) => {
2797 Error::InternalServerException(inner)
2798 }
2799 crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError::ThrottlingException(inner) => {
2800 Error::ThrottlingException(inner)
2801 }
2802 crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError::ValidationException(inner) => {
2803 Error::ValidationException(inner)
2804 }
2805 crate::operation::list_network_analyzer_configurations::ListNetworkAnalyzerConfigurationsError::Unhandled(inner) => {
2806 Error::Unhandled(inner)
2807 }
2808 }
2809 }
2810}
2811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_accounts::ListPartnerAccountsError, R>> for Error
2812where
2813 R: Send + Sync + std::fmt::Debug + 'static,
2814{
2815 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_accounts::ListPartnerAccountsError, R>) -> Self {
2816 match err {
2817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2820 source: err.into(),
2821 }),
2822 }
2823 }
2824}
2825impl From<crate::operation::list_partner_accounts::ListPartnerAccountsError> for Error {
2826 fn from(err: crate::operation::list_partner_accounts::ListPartnerAccountsError) -> Self {
2827 match err {
2828 crate::operation::list_partner_accounts::ListPartnerAccountsError::InternalServerException(inner) => {
2829 Error::InternalServerException(inner)
2830 }
2831 crate::operation::list_partner_accounts::ListPartnerAccountsError::ResourceNotFoundException(inner) => {
2832 Error::ResourceNotFoundException(inner)
2833 }
2834 crate::operation::list_partner_accounts::ListPartnerAccountsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2835 crate::operation::list_partner_accounts::ListPartnerAccountsError::ValidationException(inner) => Error::ValidationException(inner),
2836 crate::operation::list_partner_accounts::ListPartnerAccountsError::Unhandled(inner) => Error::Unhandled(inner),
2837 }
2838 }
2839}
2840impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_position_configurations::ListPositionConfigurationsError, R>>
2841 for Error
2842where
2843 R: Send + Sync + std::fmt::Debug + 'static,
2844{
2845 fn from(
2846 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_position_configurations::ListPositionConfigurationsError, R>,
2847 ) -> Self {
2848 match err {
2849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2852 source: err.into(),
2853 }),
2854 }
2855 }
2856}
2857impl From<crate::operation::list_position_configurations::ListPositionConfigurationsError> for Error {
2858 fn from(err: crate::operation::list_position_configurations::ListPositionConfigurationsError) -> Self {
2859 match err {
2860 crate::operation::list_position_configurations::ListPositionConfigurationsError::AccessDeniedException(inner) => {
2861 Error::AccessDeniedException(inner)
2862 }
2863 crate::operation::list_position_configurations::ListPositionConfigurationsError::InternalServerException(inner) => {
2864 Error::InternalServerException(inner)
2865 }
2866 crate::operation::list_position_configurations::ListPositionConfigurationsError::ThrottlingException(inner) => {
2867 Error::ThrottlingException(inner)
2868 }
2869 crate::operation::list_position_configurations::ListPositionConfigurationsError::ValidationException(inner) => {
2870 Error::ValidationException(inner)
2871 }
2872 crate::operation::list_position_configurations::ListPositionConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
2873 }
2874 }
2875}
2876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queued_messages::ListQueuedMessagesError, R>> for Error
2877where
2878 R: Send + Sync + std::fmt::Debug + 'static,
2879{
2880 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queued_messages::ListQueuedMessagesError, R>) -> Self {
2881 match err {
2882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2885 source: err.into(),
2886 }),
2887 }
2888 }
2889}
2890impl From<crate::operation::list_queued_messages::ListQueuedMessagesError> for Error {
2891 fn from(err: crate::operation::list_queued_messages::ListQueuedMessagesError) -> Self {
2892 match err {
2893 crate::operation::list_queued_messages::ListQueuedMessagesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2894 crate::operation::list_queued_messages::ListQueuedMessagesError::InternalServerException(inner) => Error::InternalServerException(inner),
2895 crate::operation::list_queued_messages::ListQueuedMessagesError::ResourceNotFoundException(inner) => {
2896 Error::ResourceNotFoundException(inner)
2897 }
2898 crate::operation::list_queued_messages::ListQueuedMessagesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2899 crate::operation::list_queued_messages::ListQueuedMessagesError::ValidationException(inner) => Error::ValidationException(inner),
2900 crate::operation::list_queued_messages::ListQueuedMessagesError::Unhandled(inner) => Error::Unhandled(inner),
2901 }
2902 }
2903}
2904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_profiles::ListServiceProfilesError, R>> for Error
2905where
2906 R: Send + Sync + std::fmt::Debug + 'static,
2907{
2908 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_profiles::ListServiceProfilesError, R>) -> Self {
2909 match err {
2910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2913 source: err.into(),
2914 }),
2915 }
2916 }
2917}
2918impl From<crate::operation::list_service_profiles::ListServiceProfilesError> for Error {
2919 fn from(err: crate::operation::list_service_profiles::ListServiceProfilesError) -> Self {
2920 match err {
2921 crate::operation::list_service_profiles::ListServiceProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2922 crate::operation::list_service_profiles::ListServiceProfilesError::InternalServerException(inner) => {
2923 Error::InternalServerException(inner)
2924 }
2925 crate::operation::list_service_profiles::ListServiceProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2926 crate::operation::list_service_profiles::ListServiceProfilesError::ValidationException(inner) => Error::ValidationException(inner),
2927 crate::operation::list_service_profiles::ListServiceProfilesError::Unhandled(inner) => Error::Unhandled(inner),
2928 }
2929 }
2930}
2931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2932where
2933 R: Send + Sync + std::fmt::Debug + 'static,
2934{
2935 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2936 match err {
2937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2940 source: err.into(),
2941 }),
2942 }
2943 }
2944}
2945impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2946 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2947 match err {
2948 crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
2949 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2950 Error::InternalServerException(inner)
2951 }
2952 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2953 Error::ResourceNotFoundException(inner)
2954 }
2955 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2956 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2957 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2958 }
2959 }
2960}
2961impl<R>
2962 From<
2963 ::aws_smithy_runtime_api::client::result::SdkError<
2964 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError,
2965 R,
2966 >,
2967 > for Error
2968where
2969 R: Send + Sync + std::fmt::Debug + 'static,
2970{
2971 fn from(
2972 err: ::aws_smithy_runtime_api::client::result::SdkError<
2973 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError,
2974 R,
2975 >,
2976 ) -> Self {
2977 match err {
2978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2981 source: err.into(),
2982 }),
2983 }
2984 }
2985}
2986impl From<crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError> for Error {
2987 fn from(err: crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError) -> Self {
2988 match err {
2989 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError::AccessDeniedException(inner) => {
2990 Error::AccessDeniedException(inner)
2991 }
2992 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError::ConflictException(inner) => {
2993 Error::ConflictException(inner)
2994 }
2995 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError::InternalServerException(inner) => {
2996 Error::InternalServerException(inner)
2997 }
2998 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError::ResourceNotFoundException(inner) => {
2999 Error::ResourceNotFoundException(inner)
3000 }
3001 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError::ThrottlingException(inner) => {
3002 Error::ThrottlingException(inner)
3003 }
3004 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError::ValidationException(inner) => {
3005 Error::ValidationException(inner)
3006 }
3007 crate::operation::list_wireless_device_import_tasks::ListWirelessDeviceImportTasksError::Unhandled(inner) => Error::Unhandled(inner),
3008 }
3009 }
3010}
3011impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_wireless_devices::ListWirelessDevicesError, R>> for Error
3012where
3013 R: Send + Sync + std::fmt::Debug + 'static,
3014{
3015 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_wireless_devices::ListWirelessDevicesError, R>) -> Self {
3016 match err {
3017 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3018 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3019 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3020 source: err.into(),
3021 }),
3022 }
3023 }
3024}
3025impl From<crate::operation::list_wireless_devices::ListWirelessDevicesError> for Error {
3026 fn from(err: crate::operation::list_wireless_devices::ListWirelessDevicesError) -> Self {
3027 match err {
3028 crate::operation::list_wireless_devices::ListWirelessDevicesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3029 crate::operation::list_wireless_devices::ListWirelessDevicesError::InternalServerException(inner) => {
3030 Error::InternalServerException(inner)
3031 }
3032 crate::operation::list_wireless_devices::ListWirelessDevicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3033 crate::operation::list_wireless_devices::ListWirelessDevicesError::ValidationException(inner) => Error::ValidationException(inner),
3034 crate::operation::list_wireless_devices::ListWirelessDevicesError::Unhandled(inner) => Error::Unhandled(inner),
3035 }
3036 }
3037}
3038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_wireless_gateways::ListWirelessGatewaysError, R>> for Error
3039where
3040 R: Send + Sync + std::fmt::Debug + 'static,
3041{
3042 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_wireless_gateways::ListWirelessGatewaysError, R>) -> Self {
3043 match err {
3044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3047 source: err.into(),
3048 }),
3049 }
3050 }
3051}
3052impl From<crate::operation::list_wireless_gateways::ListWirelessGatewaysError> for Error {
3053 fn from(err: crate::operation::list_wireless_gateways::ListWirelessGatewaysError) -> Self {
3054 match err {
3055 crate::operation::list_wireless_gateways::ListWirelessGatewaysError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3056 crate::operation::list_wireless_gateways::ListWirelessGatewaysError::InternalServerException(inner) => {
3057 Error::InternalServerException(inner)
3058 }
3059 crate::operation::list_wireless_gateways::ListWirelessGatewaysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3060 crate::operation::list_wireless_gateways::ListWirelessGatewaysError::ValidationException(inner) => Error::ValidationException(inner),
3061 crate::operation::list_wireless_gateways::ListWirelessGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
3062 }
3063 }
3064}
3065impl<R>
3066 From<
3067 ::aws_smithy_runtime_api::client::result::SdkError<
3068 crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError,
3069 R,
3070 >,
3071 > for Error
3072where
3073 R: Send + Sync + std::fmt::Debug + 'static,
3074{
3075 fn from(
3076 err: ::aws_smithy_runtime_api::client::result::SdkError<
3077 crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError,
3078 R,
3079 >,
3080 ) -> Self {
3081 match err {
3082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3085 source: err.into(),
3086 }),
3087 }
3088 }
3089}
3090impl From<crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError> for Error {
3091 fn from(err: crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError) -> Self {
3092 match err {
3093 crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError::AccessDeniedException(inner) => {
3094 Error::AccessDeniedException(inner)
3095 }
3096 crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError::InternalServerException(inner) => {
3097 Error::InternalServerException(inner)
3098 }
3099 crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError::ThrottlingException(inner) => {
3100 Error::ThrottlingException(inner)
3101 }
3102 crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError::ValidationException(inner) => {
3103 Error::ValidationException(inner)
3104 }
3105 crate::operation::list_wireless_gateway_task_definitions::ListWirelessGatewayTaskDefinitionsError::Unhandled(inner) => {
3106 Error::Unhandled(inner)
3107 }
3108 }
3109 }
3110}
3111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_position_configuration::PutPositionConfigurationError, R>>
3112 for Error
3113where
3114 R: Send + Sync + std::fmt::Debug + 'static,
3115{
3116 fn from(
3117 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_position_configuration::PutPositionConfigurationError, R>,
3118 ) -> Self {
3119 match err {
3120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3123 source: err.into(),
3124 }),
3125 }
3126 }
3127}
3128impl From<crate::operation::put_position_configuration::PutPositionConfigurationError> for Error {
3129 fn from(err: crate::operation::put_position_configuration::PutPositionConfigurationError) -> Self {
3130 match err {
3131 crate::operation::put_position_configuration::PutPositionConfigurationError::AccessDeniedException(inner) => {
3132 Error::AccessDeniedException(inner)
3133 }
3134 crate::operation::put_position_configuration::PutPositionConfigurationError::InternalServerException(inner) => {
3135 Error::InternalServerException(inner)
3136 }
3137 crate::operation::put_position_configuration::PutPositionConfigurationError::ResourceNotFoundException(inner) => {
3138 Error::ResourceNotFoundException(inner)
3139 }
3140 crate::operation::put_position_configuration::PutPositionConfigurationError::ThrottlingException(inner) => {
3141 Error::ThrottlingException(inner)
3142 }
3143 crate::operation::put_position_configuration::PutPositionConfigurationError::ValidationException(inner) => {
3144 Error::ValidationException(inner)
3145 }
3146 crate::operation::put_position_configuration::PutPositionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3147 }
3148 }
3149}
3150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_log_level::PutResourceLogLevelError, R>> for Error
3151where
3152 R: Send + Sync + std::fmt::Debug + 'static,
3153{
3154 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_log_level::PutResourceLogLevelError, R>) -> Self {
3155 match err {
3156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3159 source: err.into(),
3160 }),
3161 }
3162 }
3163}
3164impl From<crate::operation::put_resource_log_level::PutResourceLogLevelError> for Error {
3165 fn from(err: crate::operation::put_resource_log_level::PutResourceLogLevelError) -> Self {
3166 match err {
3167 crate::operation::put_resource_log_level::PutResourceLogLevelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3168 crate::operation::put_resource_log_level::PutResourceLogLevelError::InternalServerException(inner) => {
3169 Error::InternalServerException(inner)
3170 }
3171 crate::operation::put_resource_log_level::PutResourceLogLevelError::ResourceNotFoundException(inner) => {
3172 Error::ResourceNotFoundException(inner)
3173 }
3174 crate::operation::put_resource_log_level::PutResourceLogLevelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3175 crate::operation::put_resource_log_level::PutResourceLogLevelError::ValidationException(inner) => Error::ValidationException(inner),
3176 crate::operation::put_resource_log_level::PutResourceLogLevelError::Unhandled(inner) => Error::Unhandled(inner),
3177 }
3178 }
3179}
3180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError, R>>
3181 for Error
3182where
3183 R: Send + Sync + std::fmt::Debug + 'static,
3184{
3185 fn from(
3186 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError, R>,
3187 ) -> Self {
3188 match err {
3189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3192 source: err.into(),
3193 }),
3194 }
3195 }
3196}
3197impl From<crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError> for Error {
3198 fn from(err: crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError) -> Self {
3199 match err {
3200 crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError::AccessDeniedException(inner) => {
3201 Error::AccessDeniedException(inner)
3202 }
3203 crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError::InternalServerException(inner) => {
3204 Error::InternalServerException(inner)
3205 }
3206 crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError::ResourceNotFoundException(inner) => {
3207 Error::ResourceNotFoundException(inner)
3208 }
3209 crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError::ThrottlingException(inner) => {
3210 Error::ThrottlingException(inner)
3211 }
3212 crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError::ValidationException(inner) => {
3213 Error::ValidationException(inner)
3214 }
3215 crate::operation::reset_all_resource_log_levels::ResetAllResourceLogLevelsError::Unhandled(inner) => Error::Unhandled(inner),
3216 }
3217 }
3218}
3219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_resource_log_level::ResetResourceLogLevelError, R>> for Error
3220where
3221 R: Send + Sync + std::fmt::Debug + 'static,
3222{
3223 fn from(
3224 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_resource_log_level::ResetResourceLogLevelError, R>,
3225 ) -> Self {
3226 match err {
3227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3230 source: err.into(),
3231 }),
3232 }
3233 }
3234}
3235impl From<crate::operation::reset_resource_log_level::ResetResourceLogLevelError> for Error {
3236 fn from(err: crate::operation::reset_resource_log_level::ResetResourceLogLevelError) -> Self {
3237 match err {
3238 crate::operation::reset_resource_log_level::ResetResourceLogLevelError::AccessDeniedException(inner) => {
3239 Error::AccessDeniedException(inner)
3240 }
3241 crate::operation::reset_resource_log_level::ResetResourceLogLevelError::InternalServerException(inner) => {
3242 Error::InternalServerException(inner)
3243 }
3244 crate::operation::reset_resource_log_level::ResetResourceLogLevelError::ResourceNotFoundException(inner) => {
3245 Error::ResourceNotFoundException(inner)
3246 }
3247 crate::operation::reset_resource_log_level::ResetResourceLogLevelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3248 crate::operation::reset_resource_log_level::ResetResourceLogLevelError::ValidationException(inner) => Error::ValidationException(inner),
3249 crate::operation::reset_resource_log_level::ResetResourceLogLevelError::Unhandled(inner) => Error::Unhandled(inner),
3250 }
3251 }
3252}
3253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError, R>>
3254 for Error
3255where
3256 R: Send + Sync + std::fmt::Debug + 'static,
3257{
3258 fn from(
3259 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError, R>,
3260 ) -> Self {
3261 match err {
3262 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3263 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3264 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3265 source: err.into(),
3266 }),
3267 }
3268 }
3269}
3270impl From<crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError> for Error {
3271 fn from(err: crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError) -> Self {
3272 match err {
3273 crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError::AccessDeniedException(inner) => {
3274 Error::AccessDeniedException(inner)
3275 }
3276 crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError::ConflictException(inner) => {
3277 Error::ConflictException(inner)
3278 }
3279 crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError::InternalServerException(inner) => {
3280 Error::InternalServerException(inner)
3281 }
3282 crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError::ResourceNotFoundException(inner) => {
3283 Error::ResourceNotFoundException(inner)
3284 }
3285 crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError::ThrottlingException(inner) => {
3286 Error::ThrottlingException(inner)
3287 }
3288 crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError::ValidationException(inner) => {
3289 Error::ValidationException(inner)
3290 }
3291 crate::operation::send_data_to_multicast_group::SendDataToMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
3292 }
3293 }
3294}
3295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError, R>>
3296 for Error
3297where
3298 R: Send + Sync + std::fmt::Debug + 'static,
3299{
3300 fn from(
3301 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError, R>,
3302 ) -> Self {
3303 match err {
3304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3307 source: err.into(),
3308 }),
3309 }
3310 }
3311}
3312impl From<crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError> for Error {
3313 fn from(err: crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError) -> Self {
3314 match err {
3315 crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError::InternalServerException(inner) => {
3316 Error::InternalServerException(inner)
3317 }
3318 crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError::ResourceNotFoundException(inner) => {
3319 Error::ResourceNotFoundException(inner)
3320 }
3321 crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError::ThrottlingException(inner) => {
3322 Error::ThrottlingException(inner)
3323 }
3324 crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError::ValidationException(inner) => {
3325 Error::ValidationException(inner)
3326 }
3327 crate::operation::send_data_to_wireless_device::SendDataToWirelessDeviceError::Unhandled(inner) => Error::Unhandled(inner),
3328 }
3329 }
3330}
3331impl<R>
3332 From<
3333 ::aws_smithy_runtime_api::client::result::SdkError<
3334 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError,
3335 R,
3336 >,
3337 > for Error
3338where
3339 R: Send + Sync + std::fmt::Debug + 'static,
3340{
3341 fn from(
3342 err: ::aws_smithy_runtime_api::client::result::SdkError<
3343 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError,
3344 R,
3345 >,
3346 ) -> Self {
3347 match err {
3348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3351 source: err.into(),
3352 }),
3353 }
3354 }
3355}
3356impl From<crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError>
3357 for Error
3358{
3359 fn from(
3360 err: crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError,
3361 ) -> Self {
3362 match err {
3363 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3364 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
3365 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3366 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3367 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
3368 crate::operation::start_bulk_associate_wireless_device_with_multicast_group::StartBulkAssociateWirelessDeviceWithMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
3369 }
3370 }
3371}
3372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
3373 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError, R>) -> Self {
3374 match err {
3375 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3376 _ => Error::Unhandled(
3377 crate::error::sealed_unhandled::Unhandled {
3378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3379 source: err.into(),
3380 }
3381 ),
3382 }
3383 }
3384}
3385impl From<crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError>
3386 for Error
3387{
3388 fn from(
3389 err: crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError,
3390 ) -> Self {
3391 match err {
3392 crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3393 crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
3394 crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3395 crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3396 crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
3397 crate::operation::start_bulk_disassociate_wireless_device_from_multicast_group::StartBulkDisassociateWirelessDeviceFromMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
3398 }
3399 }
3400}
3401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fuota_task::StartFuotaTaskError, R>> for Error
3402where
3403 R: Send + Sync + std::fmt::Debug + 'static,
3404{
3405 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fuota_task::StartFuotaTaskError, R>) -> Self {
3406 match err {
3407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3410 source: err.into(),
3411 }),
3412 }
3413 }
3414}
3415impl From<crate::operation::start_fuota_task::StartFuotaTaskError> for Error {
3416 fn from(err: crate::operation::start_fuota_task::StartFuotaTaskError) -> Self {
3417 match err {
3418 crate::operation::start_fuota_task::StartFuotaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3419 crate::operation::start_fuota_task::StartFuotaTaskError::ConflictException(inner) => Error::ConflictException(inner),
3420 crate::operation::start_fuota_task::StartFuotaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
3421 crate::operation::start_fuota_task::StartFuotaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3422 crate::operation::start_fuota_task::StartFuotaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3423 crate::operation::start_fuota_task::StartFuotaTaskError::ValidationException(inner) => Error::ValidationException(inner),
3424 crate::operation::start_fuota_task::StartFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
3425 }
3426 }
3427}
3428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_multicast_group_session::StartMulticastGroupSessionError, R>>
3429 for Error
3430where
3431 R: Send + Sync + std::fmt::Debug + 'static,
3432{
3433 fn from(
3434 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_multicast_group_session::StartMulticastGroupSessionError, R>,
3435 ) -> Self {
3436 match err {
3437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3440 source: err.into(),
3441 }),
3442 }
3443 }
3444}
3445impl From<crate::operation::start_multicast_group_session::StartMulticastGroupSessionError> for Error {
3446 fn from(err: crate::operation::start_multicast_group_session::StartMulticastGroupSessionError) -> Self {
3447 match err {
3448 crate::operation::start_multicast_group_session::StartMulticastGroupSessionError::AccessDeniedException(inner) => {
3449 Error::AccessDeniedException(inner)
3450 }
3451 crate::operation::start_multicast_group_session::StartMulticastGroupSessionError::ConflictException(inner) => {
3452 Error::ConflictException(inner)
3453 }
3454 crate::operation::start_multicast_group_session::StartMulticastGroupSessionError::InternalServerException(inner) => {
3455 Error::InternalServerException(inner)
3456 }
3457 crate::operation::start_multicast_group_session::StartMulticastGroupSessionError::ResourceNotFoundException(inner) => {
3458 Error::ResourceNotFoundException(inner)
3459 }
3460 crate::operation::start_multicast_group_session::StartMulticastGroupSessionError::ThrottlingException(inner) => {
3461 Error::ThrottlingException(inner)
3462 }
3463 crate::operation::start_multicast_group_session::StartMulticastGroupSessionError::ValidationException(inner) => {
3464 Error::ValidationException(inner)
3465 }
3466 crate::operation::start_multicast_group_session::StartMulticastGroupSessionError::Unhandled(inner) => Error::Unhandled(inner),
3467 }
3468 }
3469}
3470impl<R>
3471 From<
3472 ::aws_smithy_runtime_api::client::result::SdkError<
3473 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError,
3474 R,
3475 >,
3476 > for Error
3477where
3478 R: Send + Sync + std::fmt::Debug + 'static,
3479{
3480 fn from(
3481 err: ::aws_smithy_runtime_api::client::result::SdkError<
3482 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError,
3483 R,
3484 >,
3485 ) -> Self {
3486 match err {
3487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3490 source: err.into(),
3491 }),
3492 }
3493 }
3494}
3495impl From<crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError> for Error {
3496 fn from(err: crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError) -> Self {
3497 match err {
3498 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError::AccessDeniedException(inner) => {
3499 Error::AccessDeniedException(inner)
3500 }
3501 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError::ConflictException(inner) => {
3502 Error::ConflictException(inner)
3503 }
3504 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError::InternalServerException(inner) => {
3505 Error::InternalServerException(inner)
3506 }
3507 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError::ResourceNotFoundException(
3508 inner,
3509 ) => Error::ResourceNotFoundException(inner),
3510 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError::ThrottlingException(inner) => {
3511 Error::ThrottlingException(inner)
3512 }
3513 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError::ValidationException(inner) => {
3514 Error::ValidationException(inner)
3515 }
3516 crate::operation::start_single_wireless_device_import_task::StartSingleWirelessDeviceImportTaskError::Unhandled(inner) => {
3517 Error::Unhandled(inner)
3518 }
3519 }
3520 }
3521}
3522impl<R>
3523 From<
3524 ::aws_smithy_runtime_api::client::result::SdkError<
3525 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError,
3526 R,
3527 >,
3528 > for Error
3529where
3530 R: Send + Sync + std::fmt::Debug + 'static,
3531{
3532 fn from(
3533 err: ::aws_smithy_runtime_api::client::result::SdkError<
3534 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError,
3535 R,
3536 >,
3537 ) -> Self {
3538 match err {
3539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3542 source: err.into(),
3543 }),
3544 }
3545 }
3546}
3547impl From<crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError> for Error {
3548 fn from(err: crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError) -> Self {
3549 match err {
3550 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError::AccessDeniedException(inner) => {
3551 Error::AccessDeniedException(inner)
3552 }
3553 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError::ConflictException(inner) => {
3554 Error::ConflictException(inner)
3555 }
3556 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError::InternalServerException(inner) => {
3557 Error::InternalServerException(inner)
3558 }
3559 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError::ResourceNotFoundException(inner) => {
3560 Error::ResourceNotFoundException(inner)
3561 }
3562 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError::ThrottlingException(inner) => {
3563 Error::ThrottlingException(inner)
3564 }
3565 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError::ValidationException(inner) => {
3566 Error::ValidationException(inner)
3567 }
3568 crate::operation::start_wireless_device_import_task::StartWirelessDeviceImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
3569 }
3570 }
3571}
3572impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3573where
3574 R: Send + Sync + std::fmt::Debug + 'static,
3575{
3576 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3577 match err {
3578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3581 source: err.into(),
3582 }),
3583 }
3584 }
3585}
3586impl From<crate::operation::tag_resource::TagResourceError> for Error {
3587 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3588 match err {
3589 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
3590 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3591 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3592 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3593 crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
3594 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3595 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3596 }
3597 }
3598}
3599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_wireless_device::TestWirelessDeviceError, R>> for Error
3600where
3601 R: Send + Sync + std::fmt::Debug + 'static,
3602{
3603 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_wireless_device::TestWirelessDeviceError, R>) -> Self {
3604 match err {
3605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3608 source: err.into(),
3609 }),
3610 }
3611 }
3612}
3613impl From<crate::operation::test_wireless_device::TestWirelessDeviceError> for Error {
3614 fn from(err: crate::operation::test_wireless_device::TestWirelessDeviceError) -> Self {
3615 match err {
3616 crate::operation::test_wireless_device::TestWirelessDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
3617 crate::operation::test_wireless_device::TestWirelessDeviceError::ResourceNotFoundException(inner) => {
3618 Error::ResourceNotFoundException(inner)
3619 }
3620 crate::operation::test_wireless_device::TestWirelessDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3621 crate::operation::test_wireless_device::TestWirelessDeviceError::ValidationException(inner) => Error::ValidationException(inner),
3622 crate::operation::test_wireless_device::TestWirelessDeviceError::Unhandled(inner) => Error::Unhandled(inner),
3623 }
3624 }
3625}
3626impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3627where
3628 R: Send + Sync + std::fmt::Debug + 'static,
3629{
3630 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3631 match err {
3632 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3633 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3634 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3635 source: err.into(),
3636 }),
3637 }
3638 }
3639}
3640impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3641 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3642 match err {
3643 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
3644 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3645 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3646 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3647 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3648 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3649 }
3650 }
3651}
3652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_destination::UpdateDestinationError, R>> for Error
3653where
3654 R: Send + Sync + std::fmt::Debug + 'static,
3655{
3656 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_destination::UpdateDestinationError, R>) -> Self {
3657 match err {
3658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3661 source: err.into(),
3662 }),
3663 }
3664 }
3665}
3666impl From<crate::operation::update_destination::UpdateDestinationError> for Error {
3667 fn from(err: crate::operation::update_destination::UpdateDestinationError) -> Self {
3668 match err {
3669 crate::operation::update_destination::UpdateDestinationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3670 crate::operation::update_destination::UpdateDestinationError::InternalServerException(inner) => Error::InternalServerException(inner),
3671 crate::operation::update_destination::UpdateDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3672 crate::operation::update_destination::UpdateDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3673 crate::operation::update_destination::UpdateDestinationError::ValidationException(inner) => Error::ValidationException(inner),
3674 crate::operation::update_destination::UpdateDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3675 }
3676 }
3677}
3678impl<R>
3679 From<
3680 ::aws_smithy_runtime_api::client::result::SdkError<
3681 crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError,
3682 R,
3683 >,
3684 > for Error
3685where
3686 R: Send + Sync + std::fmt::Debug + 'static,
3687{
3688 fn from(
3689 err: ::aws_smithy_runtime_api::client::result::SdkError<
3690 crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError,
3691 R,
3692 >,
3693 ) -> Self {
3694 match err {
3695 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3696 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3697 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3698 source: err.into(),
3699 }),
3700 }
3701 }
3702}
3703impl From<crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError> for Error {
3704 fn from(err: crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError) -> Self {
3705 match err {
3706 crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError::AccessDeniedException(
3707 inner,
3708 ) => Error::AccessDeniedException(inner),
3709 crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError::InternalServerException(
3710 inner,
3711 ) => Error::InternalServerException(inner),
3712 crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError::ThrottlingException(
3713 inner,
3714 ) => Error::ThrottlingException(inner),
3715 crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError::ValidationException(
3716 inner,
3717 ) => Error::ValidationException(inner),
3718 crate::operation::update_event_configuration_by_resource_types::UpdateEventConfigurationByResourceTypesError::Unhandled(inner) => {
3719 Error::Unhandled(inner)
3720 }
3721 }
3722 }
3723}
3724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fuota_task::UpdateFuotaTaskError, R>> for Error
3725where
3726 R: Send + Sync + std::fmt::Debug + 'static,
3727{
3728 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fuota_task::UpdateFuotaTaskError, R>) -> Self {
3729 match err {
3730 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3731 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3732 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3733 source: err.into(),
3734 }),
3735 }
3736 }
3737}
3738impl From<crate::operation::update_fuota_task::UpdateFuotaTaskError> for Error {
3739 fn from(err: crate::operation::update_fuota_task::UpdateFuotaTaskError) -> Self {
3740 match err {
3741 crate::operation::update_fuota_task::UpdateFuotaTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3742 crate::operation::update_fuota_task::UpdateFuotaTaskError::ConflictException(inner) => Error::ConflictException(inner),
3743 crate::operation::update_fuota_task::UpdateFuotaTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
3744 crate::operation::update_fuota_task::UpdateFuotaTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3745 crate::operation::update_fuota_task::UpdateFuotaTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3746 crate::operation::update_fuota_task::UpdateFuotaTaskError::ValidationException(inner) => Error::ValidationException(inner),
3747 crate::operation::update_fuota_task::UpdateFuotaTaskError::Unhandled(inner) => Error::Unhandled(inner),
3748 }
3749 }
3750}
3751impl<R>
3752 From<
3753 ::aws_smithy_runtime_api::client::result::SdkError<
3754 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError,
3755 R,
3756 >,
3757 > for Error
3758where
3759 R: Send + Sync + std::fmt::Debug + 'static,
3760{
3761 fn from(
3762 err: ::aws_smithy_runtime_api::client::result::SdkError<
3763 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError,
3764 R,
3765 >,
3766 ) -> Self {
3767 match err {
3768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3771 source: err.into(),
3772 }),
3773 }
3774 }
3775}
3776impl From<crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError> for Error {
3777 fn from(err: crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError) -> Self {
3778 match err {
3779 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError::AccessDeniedException(inner) => {
3780 Error::AccessDeniedException(inner)
3781 }
3782 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError::ConflictException(inner) => {
3783 Error::ConflictException(inner)
3784 }
3785 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError::InternalServerException(inner) => {
3786 Error::InternalServerException(inner)
3787 }
3788 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError::ResourceNotFoundException(inner) => {
3789 Error::ResourceNotFoundException(inner)
3790 }
3791 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError::ThrottlingException(inner) => {
3792 Error::ThrottlingException(inner)
3793 }
3794 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError::ValidationException(inner) => {
3795 Error::ValidationException(inner)
3796 }
3797 crate::operation::update_log_levels_by_resource_types::UpdateLogLevelsByResourceTypesError::Unhandled(inner) => Error::Unhandled(inner),
3798 }
3799 }
3800}
3801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_metric_configuration::UpdateMetricConfigurationError, R>>
3802 for Error
3803where
3804 R: Send + Sync + std::fmt::Debug + 'static,
3805{
3806 fn from(
3807 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_metric_configuration::UpdateMetricConfigurationError, R>,
3808 ) -> Self {
3809 match err {
3810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3813 source: err.into(),
3814 }),
3815 }
3816 }
3817}
3818impl From<crate::operation::update_metric_configuration::UpdateMetricConfigurationError> for Error {
3819 fn from(err: crate::operation::update_metric_configuration::UpdateMetricConfigurationError) -> Self {
3820 match err {
3821 crate::operation::update_metric_configuration::UpdateMetricConfigurationError::AccessDeniedException(inner) => {
3822 Error::AccessDeniedException(inner)
3823 }
3824 crate::operation::update_metric_configuration::UpdateMetricConfigurationError::ConflictException(inner) => {
3825 Error::ConflictException(inner)
3826 }
3827 crate::operation::update_metric_configuration::UpdateMetricConfigurationError::InternalServerException(inner) => {
3828 Error::InternalServerException(inner)
3829 }
3830 crate::operation::update_metric_configuration::UpdateMetricConfigurationError::ResourceNotFoundException(inner) => {
3831 Error::ResourceNotFoundException(inner)
3832 }
3833 crate::operation::update_metric_configuration::UpdateMetricConfigurationError::ThrottlingException(inner) => {
3834 Error::ThrottlingException(inner)
3835 }
3836 crate::operation::update_metric_configuration::UpdateMetricConfigurationError::ValidationException(inner) => {
3837 Error::ValidationException(inner)
3838 }
3839 crate::operation::update_metric_configuration::UpdateMetricConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3840 }
3841 }
3842}
3843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_multicast_group::UpdateMulticastGroupError, R>> for Error
3844where
3845 R: Send + Sync + std::fmt::Debug + 'static,
3846{
3847 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_multicast_group::UpdateMulticastGroupError, R>) -> Self {
3848 match err {
3849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3852 source: err.into(),
3853 }),
3854 }
3855 }
3856}
3857impl From<crate::operation::update_multicast_group::UpdateMulticastGroupError> for Error {
3858 fn from(err: crate::operation::update_multicast_group::UpdateMulticastGroupError) -> Self {
3859 match err {
3860 crate::operation::update_multicast_group::UpdateMulticastGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3861 crate::operation::update_multicast_group::UpdateMulticastGroupError::ConflictException(inner) => Error::ConflictException(inner),
3862 crate::operation::update_multicast_group::UpdateMulticastGroupError::InternalServerException(inner) => {
3863 Error::InternalServerException(inner)
3864 }
3865 crate::operation::update_multicast_group::UpdateMulticastGroupError::ResourceNotFoundException(inner) => {
3866 Error::ResourceNotFoundException(inner)
3867 }
3868 crate::operation::update_multicast_group::UpdateMulticastGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3869 crate::operation::update_multicast_group::UpdateMulticastGroupError::ValidationException(inner) => Error::ValidationException(inner),
3870 crate::operation::update_multicast_group::UpdateMulticastGroupError::Unhandled(inner) => Error::Unhandled(inner),
3871 }
3872 }
3873}
3874impl<R>
3875 From<
3876 ::aws_smithy_runtime_api::client::result::SdkError<
3877 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError,
3878 R,
3879 >,
3880 > for Error
3881where
3882 R: Send + Sync + std::fmt::Debug + 'static,
3883{
3884 fn from(
3885 err: ::aws_smithy_runtime_api::client::result::SdkError<
3886 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError,
3887 R,
3888 >,
3889 ) -> Self {
3890 match err {
3891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3894 source: err.into(),
3895 }),
3896 }
3897 }
3898}
3899impl From<crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError> for Error {
3900 fn from(err: crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError) -> Self {
3901 match err {
3902 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError::AccessDeniedException(inner) => {
3903 Error::AccessDeniedException(inner)
3904 }
3905 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError::InternalServerException(inner) => {
3906 Error::InternalServerException(inner)
3907 }
3908 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError::ResourceNotFoundException(inner) => {
3909 Error::ResourceNotFoundException(inner)
3910 }
3911 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError::ThrottlingException(inner) => {
3912 Error::ThrottlingException(inner)
3913 }
3914 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError::ValidationException(inner) => {
3915 Error::ValidationException(inner)
3916 }
3917 crate::operation::update_network_analyzer_configuration::UpdateNetworkAnalyzerConfigurationError::Unhandled(inner) => {
3918 Error::Unhandled(inner)
3919 }
3920 }
3921 }
3922}
3923impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_account::UpdatePartnerAccountError, R>> for Error
3924where
3925 R: Send + Sync + std::fmt::Debug + 'static,
3926{
3927 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_account::UpdatePartnerAccountError, R>) -> Self {
3928 match err {
3929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3932 source: err.into(),
3933 }),
3934 }
3935 }
3936}
3937impl From<crate::operation::update_partner_account::UpdatePartnerAccountError> for Error {
3938 fn from(err: crate::operation::update_partner_account::UpdatePartnerAccountError) -> Self {
3939 match err {
3940 crate::operation::update_partner_account::UpdatePartnerAccountError::InternalServerException(inner) => {
3941 Error::InternalServerException(inner)
3942 }
3943 crate::operation::update_partner_account::UpdatePartnerAccountError::ResourceNotFoundException(inner) => {
3944 Error::ResourceNotFoundException(inner)
3945 }
3946 crate::operation::update_partner_account::UpdatePartnerAccountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3947 crate::operation::update_partner_account::UpdatePartnerAccountError::ValidationException(inner) => Error::ValidationException(inner),
3948 crate::operation::update_partner_account::UpdatePartnerAccountError::Unhandled(inner) => Error::Unhandled(inner),
3949 }
3950 }
3951}
3952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_position::UpdatePositionError, R>> for Error
3953where
3954 R: Send + Sync + std::fmt::Debug + 'static,
3955{
3956 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_position::UpdatePositionError, R>) -> Self {
3957 match err {
3958 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3959 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3960 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3961 source: err.into(),
3962 }),
3963 }
3964 }
3965}
3966impl From<crate::operation::update_position::UpdatePositionError> for Error {
3967 fn from(err: crate::operation::update_position::UpdatePositionError) -> Self {
3968 match err {
3969 crate::operation::update_position::UpdatePositionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3970 crate::operation::update_position::UpdatePositionError::InternalServerException(inner) => Error::InternalServerException(inner),
3971 crate::operation::update_position::UpdatePositionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3972 crate::operation::update_position::UpdatePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3973 crate::operation::update_position::UpdatePositionError::ValidationException(inner) => Error::ValidationException(inner),
3974 crate::operation::update_position::UpdatePositionError::Unhandled(inner) => Error::Unhandled(inner),
3975 }
3976 }
3977}
3978impl<R>
3979 From<
3980 ::aws_smithy_runtime_api::client::result::SdkError<
3981 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError,
3982 R,
3983 >,
3984 > for Error
3985where
3986 R: Send + Sync + std::fmt::Debug + 'static,
3987{
3988 fn from(
3989 err: ::aws_smithy_runtime_api::client::result::SdkError<
3990 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError,
3991 R,
3992 >,
3993 ) -> Self {
3994 match err {
3995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3998 source: err.into(),
3999 }),
4000 }
4001 }
4002}
4003impl From<crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError> for Error {
4004 fn from(err: crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError) -> Self {
4005 match err {
4006 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError::AccessDeniedException(inner) => {
4007 Error::AccessDeniedException(inner)
4008 }
4009 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError::ConflictException(inner) => {
4010 Error::ConflictException(inner)
4011 }
4012 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError::InternalServerException(inner) => {
4013 Error::InternalServerException(inner)
4014 }
4015 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError::ResourceNotFoundException(inner) => {
4016 Error::ResourceNotFoundException(inner)
4017 }
4018 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError::ThrottlingException(inner) => {
4019 Error::ThrottlingException(inner)
4020 }
4021 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError::ValidationException(inner) => {
4022 Error::ValidationException(inner)
4023 }
4024 crate::operation::update_resource_event_configuration::UpdateResourceEventConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
4025 }
4026 }
4027}
4028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_position::UpdateResourcePositionError, R>> for Error
4029where
4030 R: Send + Sync + std::fmt::Debug + 'static,
4031{
4032 fn from(
4033 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_position::UpdateResourcePositionError, R>,
4034 ) -> Self {
4035 match err {
4036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4039 source: err.into(),
4040 }),
4041 }
4042 }
4043}
4044impl From<crate::operation::update_resource_position::UpdateResourcePositionError> for Error {
4045 fn from(err: crate::operation::update_resource_position::UpdateResourcePositionError) -> Self {
4046 match err {
4047 crate::operation::update_resource_position::UpdateResourcePositionError::AccessDeniedException(inner) => {
4048 Error::AccessDeniedException(inner)
4049 }
4050 crate::operation::update_resource_position::UpdateResourcePositionError::InternalServerException(inner) => {
4051 Error::InternalServerException(inner)
4052 }
4053 crate::operation::update_resource_position::UpdateResourcePositionError::ResourceNotFoundException(inner) => {
4054 Error::ResourceNotFoundException(inner)
4055 }
4056 crate::operation::update_resource_position::UpdateResourcePositionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4057 crate::operation::update_resource_position::UpdateResourcePositionError::ValidationException(inner) => Error::ValidationException(inner),
4058 crate::operation::update_resource_position::UpdateResourcePositionError::Unhandled(inner) => Error::Unhandled(inner),
4059 }
4060 }
4061}
4062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_wireless_device::UpdateWirelessDeviceError, R>> for Error
4063where
4064 R: Send + Sync + std::fmt::Debug + 'static,
4065{
4066 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_wireless_device::UpdateWirelessDeviceError, R>) -> Self {
4067 match err {
4068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4071 source: err.into(),
4072 }),
4073 }
4074 }
4075}
4076impl From<crate::operation::update_wireless_device::UpdateWirelessDeviceError> for Error {
4077 fn from(err: crate::operation::update_wireless_device::UpdateWirelessDeviceError) -> Self {
4078 match err {
4079 crate::operation::update_wireless_device::UpdateWirelessDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4080 crate::operation::update_wireless_device::UpdateWirelessDeviceError::InternalServerException(inner) => {
4081 Error::InternalServerException(inner)
4082 }
4083 crate::operation::update_wireless_device::UpdateWirelessDeviceError::ResourceNotFoundException(inner) => {
4084 Error::ResourceNotFoundException(inner)
4085 }
4086 crate::operation::update_wireless_device::UpdateWirelessDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4087 crate::operation::update_wireless_device::UpdateWirelessDeviceError::ValidationException(inner) => Error::ValidationException(inner),
4088 crate::operation::update_wireless_device::UpdateWirelessDeviceError::Unhandled(inner) => Error::Unhandled(inner),
4089 }
4090 }
4091}
4092impl<R>
4093 From<
4094 ::aws_smithy_runtime_api::client::result::SdkError<
4095 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError,
4096 R,
4097 >,
4098 > for Error
4099where
4100 R: Send + Sync + std::fmt::Debug + 'static,
4101{
4102 fn from(
4103 err: ::aws_smithy_runtime_api::client::result::SdkError<
4104 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError,
4105 R,
4106 >,
4107 ) -> Self {
4108 match err {
4109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4112 source: err.into(),
4113 }),
4114 }
4115 }
4116}
4117impl From<crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError> for Error {
4118 fn from(err: crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError) -> Self {
4119 match err {
4120 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError::AccessDeniedException(inner) => {
4121 Error::AccessDeniedException(inner)
4122 }
4123 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError::ConflictException(inner) => {
4124 Error::ConflictException(inner)
4125 }
4126 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError::InternalServerException(inner) => {
4127 Error::InternalServerException(inner)
4128 }
4129 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError::ResourceNotFoundException(inner) => {
4130 Error::ResourceNotFoundException(inner)
4131 }
4132 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError::ThrottlingException(inner) => {
4133 Error::ThrottlingException(inner)
4134 }
4135 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError::ValidationException(inner) => {
4136 Error::ValidationException(inner)
4137 }
4138 crate::operation::update_wireless_device_import_task::UpdateWirelessDeviceImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
4139 }
4140 }
4141}
4142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_wireless_gateway::UpdateWirelessGatewayError, R>> for Error
4143where
4144 R: Send + Sync + std::fmt::Debug + 'static,
4145{
4146 fn from(
4147 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_wireless_gateway::UpdateWirelessGatewayError, R>,
4148 ) -> Self {
4149 match err {
4150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4153 source: err.into(),
4154 }),
4155 }
4156 }
4157}
4158impl From<crate::operation::update_wireless_gateway::UpdateWirelessGatewayError> for Error {
4159 fn from(err: crate::operation::update_wireless_gateway::UpdateWirelessGatewayError) -> Self {
4160 match err {
4161 crate::operation::update_wireless_gateway::UpdateWirelessGatewayError::AccessDeniedException(inner) => {
4162 Error::AccessDeniedException(inner)
4163 }
4164 crate::operation::update_wireless_gateway::UpdateWirelessGatewayError::InternalServerException(inner) => {
4165 Error::InternalServerException(inner)
4166 }
4167 crate::operation::update_wireless_gateway::UpdateWirelessGatewayError::ResourceNotFoundException(inner) => {
4168 Error::ResourceNotFoundException(inner)
4169 }
4170 crate::operation::update_wireless_gateway::UpdateWirelessGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4171 crate::operation::update_wireless_gateway::UpdateWirelessGatewayError::ValidationException(inner) => Error::ValidationException(inner),
4172 crate::operation::update_wireless_gateway::UpdateWirelessGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4173 }
4174 }
4175}
4176impl ::std::error::Error for Error {
4177 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
4178 match self {
4179 Error::AccessDeniedException(inner) => inner.source(),
4180 Error::ConflictException(inner) => inner.source(),
4181 Error::InternalServerException(inner) => inner.source(),
4182 Error::ResourceNotFoundException(inner) => inner.source(),
4183 Error::ThrottlingException(inner) => inner.source(),
4184 Error::TooManyTagsException(inner) => inner.source(),
4185 Error::ValidationException(inner) => inner.source(),
4186 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
4187 }
4188 }
4189}
4190impl ::aws_types::request_id::RequestId for Error {
4191 fn request_id(&self) -> Option<&str> {
4192 match self {
4193 Self::AccessDeniedException(e) => e.request_id(),
4194 Self::ConflictException(e) => e.request_id(),
4195 Self::InternalServerException(e) => e.request_id(),
4196 Self::ResourceNotFoundException(e) => e.request_id(),
4197 Self::ThrottlingException(e) => e.request_id(),
4198 Self::TooManyTagsException(e) => e.request_id(),
4199 Self::ValidationException(e) => e.request_id(),
4200 Self::Unhandled(e) => e.meta.request_id(),
4201 }
4202 }
4203}