aws_sdk_iotthingsgraph/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p></p>
7    InternalFailureException(crate::types::error::InternalFailureException),
8    /// <p></p>
9    InvalidRequestException(crate::types::error::InvalidRequestException),
10    /// <p></p>
11    LimitExceededException(crate::types::error::LimitExceededException),
12    /// <p></p>
13    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
14    /// <p></p>
15    ResourceInUseException(crate::types::error::ResourceInUseException),
16    /// <p></p>
17    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
18    /// <p></p>
19    ThrottlingException(crate::types::error::ThrottlingException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`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::InternalFailureException(inner) => inner.fmt(f),
33            Error::InvalidRequestException(inner) => inner.fmt(f),
34            Error::LimitExceededException(inner) => inner.fmt(f),
35            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
36            Error::ResourceInUseException(inner) => inner.fmt(f),
37            Error::ResourceNotFoundException(inner) => inner.fmt(f),
38            Error::ThrottlingException(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::InternalFailureException(inner) => inner.meta(),
61            Self::InvalidRequestException(inner) => inner.meta(),
62            Self::LimitExceededException(inner) => inner.meta(),
63            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
64            Self::ResourceInUseException(inner) => inner.meta(),
65            Self::ResourceNotFoundException(inner) => inner.meta(),
66            Self::ThrottlingException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_entity_to_thing::AssociateEntityToThingError, R>>
72    for Error
73where
74    R: Send + Sync + std::fmt::Debug + 'static,
75{
76    fn from(
77        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_entity_to_thing::AssociateEntityToThingError, R>,
78    ) -> Self {
79        match err {
80            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
81            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
82                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
83                source: err.into(),
84            }),
85        }
86    }
87}
88impl From<crate::operation::associate_entity_to_thing::AssociateEntityToThingError> for Error {
89    fn from(err: crate::operation::associate_entity_to_thing::AssociateEntityToThingError) -> Self {
90        match err {
91            crate::operation::associate_entity_to_thing::AssociateEntityToThingError::InternalFailureException(inner) => {
92                Error::InternalFailureException(inner)
93            }
94            crate::operation::associate_entity_to_thing::AssociateEntityToThingError::InvalidRequestException(inner) => {
95                Error::InvalidRequestException(inner)
96            }
97            crate::operation::associate_entity_to_thing::AssociateEntityToThingError::ResourceNotFoundException(inner) => {
98                Error::ResourceNotFoundException(inner)
99            }
100            crate::operation::associate_entity_to_thing::AssociateEntityToThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
101            crate::operation::associate_entity_to_thing::AssociateEntityToThingError::Unhandled(inner) => Error::Unhandled(inner),
102        }
103    }
104}
105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_template::CreateFlowTemplateError, R>> for Error
106where
107    R: Send + Sync + std::fmt::Debug + 'static,
108{
109    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_template::CreateFlowTemplateError, R>) -> Self {
110        match err {
111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
114                source: err.into(),
115            }),
116        }
117    }
118}
119impl From<crate::operation::create_flow_template::CreateFlowTemplateError> for Error {
120    fn from(err: crate::operation::create_flow_template::CreateFlowTemplateError) -> Self {
121        match err {
122            crate::operation::create_flow_template::CreateFlowTemplateError::InternalFailureException(inner) => {
123                Error::InternalFailureException(inner)
124            }
125            crate::operation::create_flow_template::CreateFlowTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
126            crate::operation::create_flow_template::CreateFlowTemplateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
127            crate::operation::create_flow_template::CreateFlowTemplateError::ResourceAlreadyExistsException(inner) => {
128                Error::ResourceAlreadyExistsException(inner)
129            }
130            crate::operation::create_flow_template::CreateFlowTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
131            crate::operation::create_flow_template::CreateFlowTemplateError::Unhandled(inner) => Error::Unhandled(inner),
132        }
133    }
134}
135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_system_instance::CreateSystemInstanceError, R>> for Error
136where
137    R: Send + Sync + std::fmt::Debug + 'static,
138{
139    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_system_instance::CreateSystemInstanceError, R>) -> Self {
140        match err {
141            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
142            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
143                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
144                source: err.into(),
145            }),
146        }
147    }
148}
149impl From<crate::operation::create_system_instance::CreateSystemInstanceError> for Error {
150    fn from(err: crate::operation::create_system_instance::CreateSystemInstanceError) -> Self {
151        match err {
152            crate::operation::create_system_instance::CreateSystemInstanceError::InternalFailureException(inner) => {
153                Error::InternalFailureException(inner)
154            }
155            crate::operation::create_system_instance::CreateSystemInstanceError::InvalidRequestException(inner) => {
156                Error::InvalidRequestException(inner)
157            }
158            crate::operation::create_system_instance::CreateSystemInstanceError::LimitExceededException(inner) => {
159                Error::LimitExceededException(inner)
160            }
161            crate::operation::create_system_instance::CreateSystemInstanceError::ResourceAlreadyExistsException(inner) => {
162                Error::ResourceAlreadyExistsException(inner)
163            }
164            crate::operation::create_system_instance::CreateSystemInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
165            crate::operation::create_system_instance::CreateSystemInstanceError::Unhandled(inner) => Error::Unhandled(inner),
166        }
167    }
168}
169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_system_template::CreateSystemTemplateError, R>> for Error
170where
171    R: Send + Sync + std::fmt::Debug + 'static,
172{
173    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_system_template::CreateSystemTemplateError, R>) -> Self {
174        match err {
175            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
176            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
177                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
178                source: err.into(),
179            }),
180        }
181    }
182}
183impl From<crate::operation::create_system_template::CreateSystemTemplateError> for Error {
184    fn from(err: crate::operation::create_system_template::CreateSystemTemplateError) -> Self {
185        match err {
186            crate::operation::create_system_template::CreateSystemTemplateError::InternalFailureException(inner) => {
187                Error::InternalFailureException(inner)
188            }
189            crate::operation::create_system_template::CreateSystemTemplateError::InvalidRequestException(inner) => {
190                Error::InvalidRequestException(inner)
191            }
192            crate::operation::create_system_template::CreateSystemTemplateError::ResourceAlreadyExistsException(inner) => {
193                Error::ResourceAlreadyExistsException(inner)
194            }
195            crate::operation::create_system_template::CreateSystemTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
196            crate::operation::create_system_template::CreateSystemTemplateError::Unhandled(inner) => Error::Unhandled(inner),
197        }
198    }
199}
200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_template::DeleteFlowTemplateError, R>> for Error
201where
202    R: Send + Sync + std::fmt::Debug + 'static,
203{
204    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_template::DeleteFlowTemplateError, R>) -> Self {
205        match err {
206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
209                source: err.into(),
210            }),
211        }
212    }
213}
214impl From<crate::operation::delete_flow_template::DeleteFlowTemplateError> for Error {
215    fn from(err: crate::operation::delete_flow_template::DeleteFlowTemplateError) -> Self {
216        match err {
217            crate::operation::delete_flow_template::DeleteFlowTemplateError::InternalFailureException(inner) => {
218                Error::InternalFailureException(inner)
219            }
220            crate::operation::delete_flow_template::DeleteFlowTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
221            crate::operation::delete_flow_template::DeleteFlowTemplateError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
222            crate::operation::delete_flow_template::DeleteFlowTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
223            crate::operation::delete_flow_template::DeleteFlowTemplateError::Unhandled(inner) => Error::Unhandled(inner),
224        }
225    }
226}
227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_namespace::DeleteNamespaceError, R>> for Error
228where
229    R: Send + Sync + std::fmt::Debug + 'static,
230{
231    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_namespace::DeleteNamespaceError, R>) -> Self {
232        match err {
233            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
234            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
235                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
236                source: err.into(),
237            }),
238        }
239    }
240}
241impl From<crate::operation::delete_namespace::DeleteNamespaceError> for Error {
242    fn from(err: crate::operation::delete_namespace::DeleteNamespaceError) -> Self {
243        match err {
244            crate::operation::delete_namespace::DeleteNamespaceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
245            crate::operation::delete_namespace::DeleteNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
246            crate::operation::delete_namespace::DeleteNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
247        }
248    }
249}
250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_system_instance::DeleteSystemInstanceError, R>> for Error
251where
252    R: Send + Sync + std::fmt::Debug + 'static,
253{
254    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_system_instance::DeleteSystemInstanceError, R>) -> Self {
255        match err {
256            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
257            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
258                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
259                source: err.into(),
260            }),
261        }
262    }
263}
264impl From<crate::operation::delete_system_instance::DeleteSystemInstanceError> for Error {
265    fn from(err: crate::operation::delete_system_instance::DeleteSystemInstanceError) -> Self {
266        match err {
267            crate::operation::delete_system_instance::DeleteSystemInstanceError::InternalFailureException(inner) => {
268                Error::InternalFailureException(inner)
269            }
270            crate::operation::delete_system_instance::DeleteSystemInstanceError::InvalidRequestException(inner) => {
271                Error::InvalidRequestException(inner)
272            }
273            crate::operation::delete_system_instance::DeleteSystemInstanceError::ResourceInUseException(inner) => {
274                Error::ResourceInUseException(inner)
275            }
276            crate::operation::delete_system_instance::DeleteSystemInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
277            crate::operation::delete_system_instance::DeleteSystemInstanceError::Unhandled(inner) => Error::Unhandled(inner),
278        }
279    }
280}
281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_system_template::DeleteSystemTemplateError, R>> for Error
282where
283    R: Send + Sync + std::fmt::Debug + 'static,
284{
285    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_system_template::DeleteSystemTemplateError, R>) -> Self {
286        match err {
287            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
288            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
289                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
290                source: err.into(),
291            }),
292        }
293    }
294}
295impl From<crate::operation::delete_system_template::DeleteSystemTemplateError> for Error {
296    fn from(err: crate::operation::delete_system_template::DeleteSystemTemplateError) -> Self {
297        match err {
298            crate::operation::delete_system_template::DeleteSystemTemplateError::InternalFailureException(inner) => {
299                Error::InternalFailureException(inner)
300            }
301            crate::operation::delete_system_template::DeleteSystemTemplateError::InvalidRequestException(inner) => {
302                Error::InvalidRequestException(inner)
303            }
304            crate::operation::delete_system_template::DeleteSystemTemplateError::ResourceInUseException(inner) => {
305                Error::ResourceInUseException(inner)
306            }
307            crate::operation::delete_system_template::DeleteSystemTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
308            crate::operation::delete_system_template::DeleteSystemTemplateError::Unhandled(inner) => Error::Unhandled(inner),
309        }
310    }
311}
312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deploy_system_instance::DeploySystemInstanceError, R>> for Error
313where
314    R: Send + Sync + std::fmt::Debug + 'static,
315{
316    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deploy_system_instance::DeploySystemInstanceError, R>) -> Self {
317        match err {
318            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
319            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
320                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
321                source: err.into(),
322            }),
323        }
324    }
325}
326impl From<crate::operation::deploy_system_instance::DeploySystemInstanceError> for Error {
327    fn from(err: crate::operation::deploy_system_instance::DeploySystemInstanceError) -> Self {
328        match err {
329            crate::operation::deploy_system_instance::DeploySystemInstanceError::InternalFailureException(inner) => {
330                Error::InternalFailureException(inner)
331            }
332            crate::operation::deploy_system_instance::DeploySystemInstanceError::InvalidRequestException(inner) => {
333                Error::InvalidRequestException(inner)
334            }
335            crate::operation::deploy_system_instance::DeploySystemInstanceError::ResourceInUseException(inner) => {
336                Error::ResourceInUseException(inner)
337            }
338            crate::operation::deploy_system_instance::DeploySystemInstanceError::ResourceNotFoundException(inner) => {
339                Error::ResourceNotFoundException(inner)
340            }
341            crate::operation::deploy_system_instance::DeploySystemInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
342            crate::operation::deploy_system_instance::DeploySystemInstanceError::Unhandled(inner) => Error::Unhandled(inner),
343        }
344    }
345}
346impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_flow_template::DeprecateFlowTemplateError, R>> for Error
347where
348    R: Send + Sync + std::fmt::Debug + 'static,
349{
350    fn from(
351        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_flow_template::DeprecateFlowTemplateError, R>,
352    ) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::deprecate_flow_template::DeprecateFlowTemplateError> for Error {
363    fn from(err: crate::operation::deprecate_flow_template::DeprecateFlowTemplateError) -> Self {
364        match err {
365            crate::operation::deprecate_flow_template::DeprecateFlowTemplateError::InternalFailureException(inner) => {
366                Error::InternalFailureException(inner)
367            }
368            crate::operation::deprecate_flow_template::DeprecateFlowTemplateError::InvalidRequestException(inner) => {
369                Error::InvalidRequestException(inner)
370            }
371            crate::operation::deprecate_flow_template::DeprecateFlowTemplateError::ResourceNotFoundException(inner) => {
372                Error::ResourceNotFoundException(inner)
373            }
374            crate::operation::deprecate_flow_template::DeprecateFlowTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
375            crate::operation::deprecate_flow_template::DeprecateFlowTemplateError::Unhandled(inner) => Error::Unhandled(inner),
376        }
377    }
378}
379impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_system_template::DeprecateSystemTemplateError, R>>
380    for Error
381where
382    R: Send + Sync + std::fmt::Debug + 'static,
383{
384    fn from(
385        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_system_template::DeprecateSystemTemplateError, R>,
386    ) -> Self {
387        match err {
388            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
389            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
390                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
391                source: err.into(),
392            }),
393        }
394    }
395}
396impl From<crate::operation::deprecate_system_template::DeprecateSystemTemplateError> for Error {
397    fn from(err: crate::operation::deprecate_system_template::DeprecateSystemTemplateError) -> Self {
398        match err {
399            crate::operation::deprecate_system_template::DeprecateSystemTemplateError::InternalFailureException(inner) => {
400                Error::InternalFailureException(inner)
401            }
402            crate::operation::deprecate_system_template::DeprecateSystemTemplateError::InvalidRequestException(inner) => {
403                Error::InvalidRequestException(inner)
404            }
405            crate::operation::deprecate_system_template::DeprecateSystemTemplateError::ResourceNotFoundException(inner) => {
406                Error::ResourceNotFoundException(inner)
407            }
408            crate::operation::deprecate_system_template::DeprecateSystemTemplateError::ThrottlingException(inner) => {
409                Error::ThrottlingException(inner)
410            }
411            crate::operation::deprecate_system_template::DeprecateSystemTemplateError::Unhandled(inner) => Error::Unhandled(inner),
412        }
413    }
414}
415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_namespace::DescribeNamespaceError, R>> for Error
416where
417    R: Send + Sync + std::fmt::Debug + 'static,
418{
419    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_namespace::DescribeNamespaceError, R>) -> Self {
420        match err {
421            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
422            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
423                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
424                source: err.into(),
425            }),
426        }
427    }
428}
429impl From<crate::operation::describe_namespace::DescribeNamespaceError> for Error {
430    fn from(err: crate::operation::describe_namespace::DescribeNamespaceError) -> Self {
431        match err {
432            crate::operation::describe_namespace::DescribeNamespaceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
433            crate::operation::describe_namespace::DescribeNamespaceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
434            crate::operation::describe_namespace::DescribeNamespaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
435            crate::operation::describe_namespace::DescribeNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
436            crate::operation::describe_namespace::DescribeNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
437        }
438    }
439}
440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError, R>>
441    for Error
442where
443    R: Send + Sync + std::fmt::Debug + 'static,
444{
445    fn from(
446        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError, R>,
447    ) -> Self {
448        match err {
449            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
450            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
451                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
452                source: err.into(),
453            }),
454        }
455    }
456}
457impl From<crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError> for Error {
458    fn from(err: crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError) -> Self {
459        match err {
460            crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError::InternalFailureException(inner) => {
461                Error::InternalFailureException(inner)
462            }
463            crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError::InvalidRequestException(inner) => {
464                Error::InvalidRequestException(inner)
465            }
466            crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError::ResourceNotFoundException(inner) => {
467                Error::ResourceNotFoundException(inner)
468            }
469            crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError::ThrottlingException(inner) => {
470                Error::ThrottlingException(inner)
471            }
472            crate::operation::dissociate_entity_from_thing::DissociateEntityFromThingError::Unhandled(inner) => Error::Unhandled(inner),
473        }
474    }
475}
476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_entities::GetEntitiesError, R>> for Error
477where
478    R: Send + Sync + std::fmt::Debug + 'static,
479{
480    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_entities::GetEntitiesError, R>) -> Self {
481        match err {
482            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
483            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
484                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
485                source: err.into(),
486            }),
487        }
488    }
489}
490impl From<crate::operation::get_entities::GetEntitiesError> for Error {
491    fn from(err: crate::operation::get_entities::GetEntitiesError) -> Self {
492        match err {
493            crate::operation::get_entities::GetEntitiesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
494            crate::operation::get_entities::GetEntitiesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
495            crate::operation::get_entities::GetEntitiesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
496            crate::operation::get_entities::GetEntitiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
497            crate::operation::get_entities::GetEntitiesError::Unhandled(inner) => Error::Unhandled(inner),
498        }
499    }
500}
501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_flow_template::GetFlowTemplateError, R>> for Error
502where
503    R: Send + Sync + std::fmt::Debug + 'static,
504{
505    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_flow_template::GetFlowTemplateError, R>) -> Self {
506        match err {
507            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
508            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
509                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
510                source: err.into(),
511            }),
512        }
513    }
514}
515impl From<crate::operation::get_flow_template::GetFlowTemplateError> for Error {
516    fn from(err: crate::operation::get_flow_template::GetFlowTemplateError) -> Self {
517        match err {
518            crate::operation::get_flow_template::GetFlowTemplateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
519            crate::operation::get_flow_template::GetFlowTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
520            crate::operation::get_flow_template::GetFlowTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
521            crate::operation::get_flow_template::GetFlowTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
522            crate::operation::get_flow_template::GetFlowTemplateError::Unhandled(inner) => Error::Unhandled(inner),
523        }
524    }
525}
526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError, R>>
527    for Error
528where
529    R: Send + Sync + std::fmt::Debug + 'static,
530{
531    fn from(
532        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError, R>,
533    ) -> Self {
534        match err {
535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
538                source: err.into(),
539            }),
540        }
541    }
542}
543impl From<crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError> for Error {
544    fn from(err: crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError) -> Self {
545        match err {
546            crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError::InternalFailureException(inner) => {
547                Error::InternalFailureException(inner)
548            }
549            crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError::InvalidRequestException(inner) => {
550                Error::InvalidRequestException(inner)
551            }
552            crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError::ResourceNotFoundException(inner) => {
553                Error::ResourceNotFoundException(inner)
554            }
555            crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError::ThrottlingException(inner) => {
556                Error::ThrottlingException(inner)
557            }
558            crate::operation::get_flow_template_revisions::GetFlowTemplateRevisionsError::Unhandled(inner) => Error::Unhandled(inner),
559        }
560    }
561}
562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError, R>>
563    for Error
564where
565    R: Send + Sync + std::fmt::Debug + 'static,
566{
567    fn from(
568        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError, R>,
569    ) -> Self {
570        match err {
571            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
572            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
573                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
574                source: err.into(),
575            }),
576        }
577    }
578}
579impl From<crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError> for Error {
580    fn from(err: crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError) -> Self {
581        match err {
582            crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError::InternalFailureException(inner) => {
583                Error::InternalFailureException(inner)
584            }
585            crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError::InvalidRequestException(inner) => {
586                Error::InvalidRequestException(inner)
587            }
588            crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError::ThrottlingException(inner) => {
589                Error::ThrottlingException(inner)
590            }
591            crate::operation::get_namespace_deletion_status::GetNamespaceDeletionStatusError::Unhandled(inner) => Error::Unhandled(inner),
592        }
593    }
594}
595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_system_instance::GetSystemInstanceError, R>> for Error
596where
597    R: Send + Sync + std::fmt::Debug + 'static,
598{
599    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_system_instance::GetSystemInstanceError, R>) -> Self {
600        match err {
601            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
602            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
603                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
604                source: err.into(),
605            }),
606        }
607    }
608}
609impl From<crate::operation::get_system_instance::GetSystemInstanceError> for Error {
610    fn from(err: crate::operation::get_system_instance::GetSystemInstanceError) -> Self {
611        match err {
612            crate::operation::get_system_instance::GetSystemInstanceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
613            crate::operation::get_system_instance::GetSystemInstanceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
614            crate::operation::get_system_instance::GetSystemInstanceError::ResourceNotFoundException(inner) => {
615                Error::ResourceNotFoundException(inner)
616            }
617            crate::operation::get_system_instance::GetSystemInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
618            crate::operation::get_system_instance::GetSystemInstanceError::Unhandled(inner) => Error::Unhandled(inner),
619        }
620    }
621}
622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_system_template::GetSystemTemplateError, R>> for Error
623where
624    R: Send + Sync + std::fmt::Debug + 'static,
625{
626    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_system_template::GetSystemTemplateError, R>) -> Self {
627        match err {
628            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
629            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
630                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
631                source: err.into(),
632            }),
633        }
634    }
635}
636impl From<crate::operation::get_system_template::GetSystemTemplateError> for Error {
637    fn from(err: crate::operation::get_system_template::GetSystemTemplateError) -> Self {
638        match err {
639            crate::operation::get_system_template::GetSystemTemplateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
640            crate::operation::get_system_template::GetSystemTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
641            crate::operation::get_system_template::GetSystemTemplateError::ResourceNotFoundException(inner) => {
642                Error::ResourceNotFoundException(inner)
643            }
644            crate::operation::get_system_template::GetSystemTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
645            crate::operation::get_system_template::GetSystemTemplateError::Unhandled(inner) => Error::Unhandled(inner),
646        }
647    }
648}
649impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError, R>>
650    for Error
651where
652    R: Send + Sync + std::fmt::Debug + 'static,
653{
654    fn from(
655        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError, R>,
656    ) -> Self {
657        match err {
658            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
659            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
660                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
661                source: err.into(),
662            }),
663        }
664    }
665}
666impl From<crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError> for Error {
667    fn from(err: crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError) -> Self {
668        match err {
669            crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError::InternalFailureException(inner) => {
670                Error::InternalFailureException(inner)
671            }
672            crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError::InvalidRequestException(inner) => {
673                Error::InvalidRequestException(inner)
674            }
675            crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError::ResourceNotFoundException(inner) => {
676                Error::ResourceNotFoundException(inner)
677            }
678            crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError::ThrottlingException(inner) => {
679                Error::ThrottlingException(inner)
680            }
681            crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsError::Unhandled(inner) => Error::Unhandled(inner),
682        }
683    }
684}
685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_upload_status::GetUploadStatusError, R>> for Error
686where
687    R: Send + Sync + std::fmt::Debug + 'static,
688{
689    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_upload_status::GetUploadStatusError, R>) -> Self {
690        match err {
691            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
692            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
693                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
694                source: err.into(),
695            }),
696        }
697    }
698}
699impl From<crate::operation::get_upload_status::GetUploadStatusError> for Error {
700    fn from(err: crate::operation::get_upload_status::GetUploadStatusError) -> Self {
701        match err {
702            crate::operation::get_upload_status::GetUploadStatusError::InternalFailureException(inner) => Error::InternalFailureException(inner),
703            crate::operation::get_upload_status::GetUploadStatusError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
704            crate::operation::get_upload_status::GetUploadStatusError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
705            crate::operation::get_upload_status::GetUploadStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
706            crate::operation::get_upload_status::GetUploadStatusError::Unhandled(inner) => Error::Unhandled(inner),
707        }
708    }
709}
710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError, R>>
711    for Error
712where
713    R: Send + Sync + std::fmt::Debug + 'static,
714{
715    fn from(
716        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError, R>,
717    ) -> Self {
718        match err {
719            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
720            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
721                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
722                source: err.into(),
723            }),
724        }
725    }
726}
727impl From<crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError> for Error {
728    fn from(err: crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError) -> Self {
729        match err {
730            crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError::InternalFailureException(inner) => {
731                Error::InternalFailureException(inner)
732            }
733            crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError::InvalidRequestException(inner) => {
734                Error::InvalidRequestException(inner)
735            }
736            crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError::ResourceNotFoundException(inner) => {
737                Error::ResourceNotFoundException(inner)
738            }
739            crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError::ThrottlingException(inner) => {
740                Error::ThrottlingException(inner)
741            }
742            crate::operation::list_flow_execution_messages::ListFlowExecutionMessagesError::Unhandled(inner) => Error::Unhandled(inner),
743        }
744    }
745}
746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
747where
748    R: Send + Sync + std::fmt::Debug + 'static,
749{
750    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
751        match err {
752            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
753            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
754                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
755                source: err.into(),
756            }),
757        }
758    }
759}
760impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
761    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
762        match err {
763            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalFailureException(inner) => {
764                Error::InternalFailureException(inner)
765            }
766            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
767                Error::InvalidRequestException(inner)
768            }
769            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceAlreadyExistsException(inner) => {
770                Error::ResourceAlreadyExistsException(inner)
771            }
772            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
773            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
774        }
775    }
776}
777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_entities::SearchEntitiesError, R>> for Error
778where
779    R: Send + Sync + std::fmt::Debug + 'static,
780{
781    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_entities::SearchEntitiesError, R>) -> Self {
782        match err {
783            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
784            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
785                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
786                source: err.into(),
787            }),
788        }
789    }
790}
791impl From<crate::operation::search_entities::SearchEntitiesError> for Error {
792    fn from(err: crate::operation::search_entities::SearchEntitiesError) -> Self {
793        match err {
794            crate::operation::search_entities::SearchEntitiesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
795            crate::operation::search_entities::SearchEntitiesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
796            crate::operation::search_entities::SearchEntitiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
797            crate::operation::search_entities::SearchEntitiesError::Unhandled(inner) => Error::Unhandled(inner),
798        }
799    }
800}
801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_flow_executions::SearchFlowExecutionsError, R>> for Error
802where
803    R: Send + Sync + std::fmt::Debug + 'static,
804{
805    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_flow_executions::SearchFlowExecutionsError, R>) -> Self {
806        match err {
807            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
808            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
809                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
810                source: err.into(),
811            }),
812        }
813    }
814}
815impl From<crate::operation::search_flow_executions::SearchFlowExecutionsError> for Error {
816    fn from(err: crate::operation::search_flow_executions::SearchFlowExecutionsError) -> Self {
817        match err {
818            crate::operation::search_flow_executions::SearchFlowExecutionsError::InternalFailureException(inner) => {
819                Error::InternalFailureException(inner)
820            }
821            crate::operation::search_flow_executions::SearchFlowExecutionsError::InvalidRequestException(inner) => {
822                Error::InvalidRequestException(inner)
823            }
824            crate::operation::search_flow_executions::SearchFlowExecutionsError::ResourceNotFoundException(inner) => {
825                Error::ResourceNotFoundException(inner)
826            }
827            crate::operation::search_flow_executions::SearchFlowExecutionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
828            crate::operation::search_flow_executions::SearchFlowExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
829        }
830    }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_flow_templates::SearchFlowTemplatesError, R>> for Error
833where
834    R: Send + Sync + std::fmt::Debug + 'static,
835{
836    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_flow_templates::SearchFlowTemplatesError, R>) -> Self {
837        match err {
838            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
839            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
840                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
841                source: err.into(),
842            }),
843        }
844    }
845}
846impl From<crate::operation::search_flow_templates::SearchFlowTemplatesError> for Error {
847    fn from(err: crate::operation::search_flow_templates::SearchFlowTemplatesError) -> Self {
848        match err {
849            crate::operation::search_flow_templates::SearchFlowTemplatesError::InternalFailureException(inner) => {
850                Error::InternalFailureException(inner)
851            }
852            crate::operation::search_flow_templates::SearchFlowTemplatesError::InvalidRequestException(inner) => {
853                Error::InvalidRequestException(inner)
854            }
855            crate::operation::search_flow_templates::SearchFlowTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
856            crate::operation::search_flow_templates::SearchFlowTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
857        }
858    }
859}
860impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_system_instances::SearchSystemInstancesError, R>> for Error
861where
862    R: Send + Sync + std::fmt::Debug + 'static,
863{
864    fn from(
865        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_system_instances::SearchSystemInstancesError, R>,
866    ) -> Self {
867        match err {
868            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871                source: err.into(),
872            }),
873        }
874    }
875}
876impl From<crate::operation::search_system_instances::SearchSystemInstancesError> for Error {
877    fn from(err: crate::operation::search_system_instances::SearchSystemInstancesError) -> Self {
878        match err {
879            crate::operation::search_system_instances::SearchSystemInstancesError::InternalFailureException(inner) => {
880                Error::InternalFailureException(inner)
881            }
882            crate::operation::search_system_instances::SearchSystemInstancesError::InvalidRequestException(inner) => {
883                Error::InvalidRequestException(inner)
884            }
885            crate::operation::search_system_instances::SearchSystemInstancesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
886            crate::operation::search_system_instances::SearchSystemInstancesError::Unhandled(inner) => Error::Unhandled(inner),
887        }
888    }
889}
890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_system_templates::SearchSystemTemplatesError, R>> for Error
891where
892    R: Send + Sync + std::fmt::Debug + 'static,
893{
894    fn from(
895        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_system_templates::SearchSystemTemplatesError, R>,
896    ) -> Self {
897        match err {
898            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
899            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
900                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
901                source: err.into(),
902            }),
903        }
904    }
905}
906impl From<crate::operation::search_system_templates::SearchSystemTemplatesError> for Error {
907    fn from(err: crate::operation::search_system_templates::SearchSystemTemplatesError) -> Self {
908        match err {
909            crate::operation::search_system_templates::SearchSystemTemplatesError::InternalFailureException(inner) => {
910                Error::InternalFailureException(inner)
911            }
912            crate::operation::search_system_templates::SearchSystemTemplatesError::InvalidRequestException(inner) => {
913                Error::InvalidRequestException(inner)
914            }
915            crate::operation::search_system_templates::SearchSystemTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
916            crate::operation::search_system_templates::SearchSystemTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
917        }
918    }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_things::SearchThingsError, R>> for Error
921where
922    R: Send + Sync + std::fmt::Debug + 'static,
923{
924    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_things::SearchThingsError, R>) -> Self {
925        match err {
926            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
927            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
928                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
929                source: err.into(),
930            }),
931        }
932    }
933}
934impl From<crate::operation::search_things::SearchThingsError> for Error {
935    fn from(err: crate::operation::search_things::SearchThingsError) -> Self {
936        match err {
937            crate::operation::search_things::SearchThingsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
938            crate::operation::search_things::SearchThingsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
939            crate::operation::search_things::SearchThingsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
940            crate::operation::search_things::SearchThingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
941            crate::operation::search_things::SearchThingsError::Unhandled(inner) => Error::Unhandled(inner),
942        }
943    }
944}
945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
946where
947    R: Send + Sync + std::fmt::Debug + 'static,
948{
949    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
950        match err {
951            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
952            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
953                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
954                source: err.into(),
955            }),
956        }
957    }
958}
959impl From<crate::operation::tag_resource::TagResourceError> for Error {
960    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
961        match err {
962            crate::operation::tag_resource::TagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
963            crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
964            crate::operation::tag_resource::TagResourceError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
965            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
966            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
967        }
968    }
969}
970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeploy_system_instance::UndeploySystemInstanceError, R>> for Error
971where
972    R: Send + Sync + std::fmt::Debug + 'static,
973{
974    fn from(
975        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeploy_system_instance::UndeploySystemInstanceError, R>,
976    ) -> Self {
977        match err {
978            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
979            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
980                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
981                source: err.into(),
982            }),
983        }
984    }
985}
986impl From<crate::operation::undeploy_system_instance::UndeploySystemInstanceError> for Error {
987    fn from(err: crate::operation::undeploy_system_instance::UndeploySystemInstanceError) -> Self {
988        match err {
989            crate::operation::undeploy_system_instance::UndeploySystemInstanceError::InternalFailureException(inner) => {
990                Error::InternalFailureException(inner)
991            }
992            crate::operation::undeploy_system_instance::UndeploySystemInstanceError::InvalidRequestException(inner) => {
993                Error::InvalidRequestException(inner)
994            }
995            crate::operation::undeploy_system_instance::UndeploySystemInstanceError::ResourceInUseException(inner) => {
996                Error::ResourceInUseException(inner)
997            }
998            crate::operation::undeploy_system_instance::UndeploySystemInstanceError::ResourceNotFoundException(inner) => {
999                Error::ResourceNotFoundException(inner)
1000            }
1001            crate::operation::undeploy_system_instance::UndeploySystemInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1002            crate::operation::undeploy_system_instance::UndeploySystemInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1003        }
1004    }
1005}
1006impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1007where
1008    R: Send + Sync + std::fmt::Debug + 'static,
1009{
1010    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1011        match err {
1012            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1013            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1014                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1015                source: err.into(),
1016            }),
1017        }
1018    }
1019}
1020impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1021    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1022        match err {
1023            crate::operation::untag_resource::UntagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1024            crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1025            crate::operation::untag_resource::UntagResourceError::ResourceAlreadyExistsException(inner) => {
1026                Error::ResourceAlreadyExistsException(inner)
1027            }
1028            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1029            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1030        }
1031    }
1032}
1033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_flow_template::UpdateFlowTemplateError, R>> for Error
1034where
1035    R: Send + Sync + std::fmt::Debug + 'static,
1036{
1037    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_flow_template::UpdateFlowTemplateError, R>) -> Self {
1038        match err {
1039            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042                source: err.into(),
1043            }),
1044        }
1045    }
1046}
1047impl From<crate::operation::update_flow_template::UpdateFlowTemplateError> for Error {
1048    fn from(err: crate::operation::update_flow_template::UpdateFlowTemplateError) -> Self {
1049        match err {
1050            crate::operation::update_flow_template::UpdateFlowTemplateError::InternalFailureException(inner) => {
1051                Error::InternalFailureException(inner)
1052            }
1053            crate::operation::update_flow_template::UpdateFlowTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1054            crate::operation::update_flow_template::UpdateFlowTemplateError::ResourceNotFoundException(inner) => {
1055                Error::ResourceNotFoundException(inner)
1056            }
1057            crate::operation::update_flow_template::UpdateFlowTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1058            crate::operation::update_flow_template::UpdateFlowTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1059        }
1060    }
1061}
1062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_system_template::UpdateSystemTemplateError, R>> for Error
1063where
1064    R: Send + Sync + std::fmt::Debug + 'static,
1065{
1066    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_system_template::UpdateSystemTemplateError, R>) -> Self {
1067        match err {
1068            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1069            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1070                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1071                source: err.into(),
1072            }),
1073        }
1074    }
1075}
1076impl From<crate::operation::update_system_template::UpdateSystemTemplateError> for Error {
1077    fn from(err: crate::operation::update_system_template::UpdateSystemTemplateError) -> Self {
1078        match err {
1079            crate::operation::update_system_template::UpdateSystemTemplateError::InternalFailureException(inner) => {
1080                Error::InternalFailureException(inner)
1081            }
1082            crate::operation::update_system_template::UpdateSystemTemplateError::InvalidRequestException(inner) => {
1083                Error::InvalidRequestException(inner)
1084            }
1085            crate::operation::update_system_template::UpdateSystemTemplateError::ResourceNotFoundException(inner) => {
1086                Error::ResourceNotFoundException(inner)
1087            }
1088            crate::operation::update_system_template::UpdateSystemTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1089            crate::operation::update_system_template::UpdateSystemTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1090        }
1091    }
1092}
1093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_entity_definitions::UploadEntityDefinitionsError, R>>
1094    for Error
1095where
1096    R: Send + Sync + std::fmt::Debug + 'static,
1097{
1098    fn from(
1099        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_entity_definitions::UploadEntityDefinitionsError, R>,
1100    ) -> Self {
1101        match err {
1102            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1103            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1104                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1105                source: err.into(),
1106            }),
1107        }
1108    }
1109}
1110impl From<crate::operation::upload_entity_definitions::UploadEntityDefinitionsError> for Error {
1111    fn from(err: crate::operation::upload_entity_definitions::UploadEntityDefinitionsError) -> Self {
1112        match err {
1113            crate::operation::upload_entity_definitions::UploadEntityDefinitionsError::InternalFailureException(inner) => {
1114                Error::InternalFailureException(inner)
1115            }
1116            crate::operation::upload_entity_definitions::UploadEntityDefinitionsError::InvalidRequestException(inner) => {
1117                Error::InvalidRequestException(inner)
1118            }
1119            crate::operation::upload_entity_definitions::UploadEntityDefinitionsError::ThrottlingException(inner) => {
1120                Error::ThrottlingException(inner)
1121            }
1122            crate::operation::upload_entity_definitions::UploadEntityDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
1123        }
1124    }
1125}
1126impl ::std::error::Error for Error {
1127    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1128        match self {
1129            Error::InternalFailureException(inner) => inner.source(),
1130            Error::InvalidRequestException(inner) => inner.source(),
1131            Error::LimitExceededException(inner) => inner.source(),
1132            Error::ResourceAlreadyExistsException(inner) => inner.source(),
1133            Error::ResourceInUseException(inner) => inner.source(),
1134            Error::ResourceNotFoundException(inner) => inner.source(),
1135            Error::ThrottlingException(inner) => inner.source(),
1136            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1137        }
1138    }
1139}
1140impl ::aws_types::request_id::RequestId for Error {
1141    fn request_id(&self) -> Option<&str> {
1142        match self {
1143            Self::InternalFailureException(e) => e.request_id(),
1144            Self::InvalidRequestException(e) => e.request_id(),
1145            Self::LimitExceededException(e) => e.request_id(),
1146            Self::ResourceAlreadyExistsException(e) => e.request_id(),
1147            Self::ResourceInUseException(e) => e.request_id(),
1148            Self::ResourceNotFoundException(e) => e.request_id(),
1149            Self::ThrottlingException(e) => e.request_id(),
1150            Self::Unhandled(e) => e.meta.request_id(),
1151        }
1152    }
1153}