aws_sdk_backupgateway/
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>The operation cannot proceed because you have insufficient permissions.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The operation cannot proceed because it is not supported.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The operation did not succeed because an internal error occurred. Try again later.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>A resource that is required for the action wasn't found.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>TPS has been limited to protect against intentional or unintentional high request volumes.</p>
15    ThrottlingException(crate::types::error::ThrottlingException),
16    /// <p>The operation did not succeed because a validation error occurred.</p>
17    ValidationException(crate::types::error::ValidationException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::AccessDeniedException(inner) => inner.fmt(f),
31            Error::ConflictException(inner) => inner.fmt(f),
32            Error::InternalServerException(inner) => inner.fmt(f),
33            Error::ResourceNotFoundException(inner) => inner.fmt(f),
34            Error::ThrottlingException(inner) => inner.fmt(f),
35            Error::ValidationException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::AccessDeniedException(inner) => inner.meta(),
58            Self::ConflictException(inner) => inner.meta(),
59            Self::InternalServerException(inner) => inner.meta(),
60            Self::ResourceNotFoundException(inner) => inner.meta(),
61            Self::ThrottlingException(inner) => inner.meta(),
62            Self::ValidationException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_gateway_to_server::AssociateGatewayToServerError, R>>
68    for Error
69where
70    R: Send + Sync + std::fmt::Debug + 'static,
71{
72    fn from(
73        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_gateway_to_server::AssociateGatewayToServerError, R>,
74    ) -> Self {
75        match err {
76            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
77            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
78                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
79                source: err.into(),
80            }),
81        }
82    }
83}
84impl From<crate::operation::associate_gateway_to_server::AssociateGatewayToServerError> for Error {
85    fn from(err: crate::operation::associate_gateway_to_server::AssociateGatewayToServerError) -> Self {
86        match err {
87            crate::operation::associate_gateway_to_server::AssociateGatewayToServerError::ConflictException(inner) => Error::ConflictException(inner),
88            crate::operation::associate_gateway_to_server::AssociateGatewayToServerError::InternalServerException(inner) => {
89                Error::InternalServerException(inner)
90            }
91            crate::operation::associate_gateway_to_server::AssociateGatewayToServerError::ThrottlingException(inner) => {
92                Error::ThrottlingException(inner)
93            }
94            crate::operation::associate_gateway_to_server::AssociateGatewayToServerError::ValidationException(inner) => {
95                Error::ValidationException(inner)
96            }
97            crate::operation::associate_gateway_to_server::AssociateGatewayToServerError::Unhandled(inner) => Error::Unhandled(inner),
98        }
99    }
100}
101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_gateway::CreateGatewayError, R>> for Error
102where
103    R: Send + Sync + std::fmt::Debug + 'static,
104{
105    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_gateway::CreateGatewayError, R>) -> Self {
106        match err {
107            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
108            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
109                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
110                source: err.into(),
111            }),
112        }
113    }
114}
115impl From<crate::operation::create_gateway::CreateGatewayError> for Error {
116    fn from(err: crate::operation::create_gateway::CreateGatewayError) -> Self {
117        match err {
118            crate::operation::create_gateway::CreateGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
119            crate::operation::create_gateway::CreateGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
120            crate::operation::create_gateway::CreateGatewayError::ValidationException(inner) => Error::ValidationException(inner),
121            crate::operation::create_gateway::CreateGatewayError::Unhandled(inner) => Error::Unhandled(inner),
122        }
123    }
124}
125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway::DeleteGatewayError, R>> for Error
126where
127    R: Send + Sync + std::fmt::Debug + 'static,
128{
129    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway::DeleteGatewayError, R>) -> Self {
130        match err {
131            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
132            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
133                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
134                source: err.into(),
135            }),
136        }
137    }
138}
139impl From<crate::operation::delete_gateway::DeleteGatewayError> for Error {
140    fn from(err: crate::operation::delete_gateway::DeleteGatewayError) -> Self {
141        match err {
142            crate::operation::delete_gateway::DeleteGatewayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
143            crate::operation::delete_gateway::DeleteGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
144            crate::operation::delete_gateway::DeleteGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
145            crate::operation::delete_gateway::DeleteGatewayError::ValidationException(inner) => Error::ValidationException(inner),
146            crate::operation::delete_gateway::DeleteGatewayError::Unhandled(inner) => Error::Unhandled(inner),
147        }
148    }
149}
150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hypervisor::DeleteHypervisorError, R>> for Error
151where
152    R: Send + Sync + std::fmt::Debug + 'static,
153{
154    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hypervisor::DeleteHypervisorError, R>) -> Self {
155        match err {
156            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
157            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
158                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
159                source: err.into(),
160            }),
161        }
162    }
163}
164impl From<crate::operation::delete_hypervisor::DeleteHypervisorError> for Error {
165    fn from(err: crate::operation::delete_hypervisor::DeleteHypervisorError) -> Self {
166        match err {
167            crate::operation::delete_hypervisor::DeleteHypervisorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
168            crate::operation::delete_hypervisor::DeleteHypervisorError::ConflictException(inner) => Error::ConflictException(inner),
169            crate::operation::delete_hypervisor::DeleteHypervisorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
170            crate::operation::delete_hypervisor::DeleteHypervisorError::InternalServerException(inner) => Error::InternalServerException(inner),
171            crate::operation::delete_hypervisor::DeleteHypervisorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
172            crate::operation::delete_hypervisor::DeleteHypervisorError::ValidationException(inner) => Error::ValidationException(inner),
173            crate::operation::delete_hypervisor::DeleteHypervisorError::Unhandled(inner) => Error::Unhandled(inner),
174        }
175    }
176}
177impl<R>
178    From<
179        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError, R>,
180    > for Error
181where
182    R: Send + Sync + std::fmt::Debug + 'static,
183{
184    fn from(
185        err: ::aws_smithy_runtime_api::client::result::SdkError<
186            crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError,
187            R,
188        >,
189    ) -> Self {
190        match err {
191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
194                source: err.into(),
195            }),
196        }
197    }
198}
199impl From<crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError> for Error {
200    fn from(err: crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError) -> Self {
201        match err {
202            crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError::ConflictException(inner) => {
203                Error::ConflictException(inner)
204            }
205            crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError::ResourceNotFoundException(inner) => {
206                Error::ResourceNotFoundException(inner)
207            }
208            crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError::InternalServerException(inner) => {
209                Error::InternalServerException(inner)
210            }
211            crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError::ThrottlingException(inner) => {
212                Error::ThrottlingException(inner)
213            }
214            crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError::ValidationException(inner) => {
215                Error::ValidationException(inner)
216            }
217            crate::operation::disassociate_gateway_from_server::DisassociateGatewayFromServerError::Unhandled(inner) => Error::Unhandled(inner),
218        }
219    }
220}
221impl<R>
222    From<
223        ::aws_smithy_runtime_api::client::result::SdkError<
224            crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError,
225            R,
226        >,
227    > for Error
228where
229    R: Send + Sync + std::fmt::Debug + 'static,
230{
231    fn from(
232        err: ::aws_smithy_runtime_api::client::result::SdkError<
233            crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError,
234            R,
235        >,
236    ) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError> for Error {
247    fn from(err: crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError) -> Self {
248        match err {
249            crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError::ResourceNotFoundException(inner) => {
250                Error::ResourceNotFoundException(inner)
251            }
252            crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError::InternalServerException(inner) => {
253                Error::InternalServerException(inner)
254            }
255            crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError::ThrottlingException(inner) => {
256                Error::ThrottlingException(inner)
257            }
258            crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError::ValidationException(inner) => {
259                Error::ValidationException(inner)
260            }
261            crate::operation::get_bandwidth_rate_limit_schedule::GetBandwidthRateLimitScheduleError::Unhandled(inner) => Error::Unhandled(inner),
262        }
263    }
264}
265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway::GetGatewayError, R>> for Error
266where
267    R: Send + Sync + std::fmt::Debug + 'static,
268{
269    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway::GetGatewayError, R>) -> Self {
270        match err {
271            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
272            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
273                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
274                source: err.into(),
275            }),
276        }
277    }
278}
279impl From<crate::operation::get_gateway::GetGatewayError> for Error {
280    fn from(err: crate::operation::get_gateway::GetGatewayError) -> Self {
281        match err {
282            crate::operation::get_gateway::GetGatewayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
283            crate::operation::get_gateway::GetGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
284            crate::operation::get_gateway::GetGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
285            crate::operation::get_gateway::GetGatewayError::ValidationException(inner) => Error::ValidationException(inner),
286            crate::operation::get_gateway::GetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
287        }
288    }
289}
290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hypervisor::GetHypervisorError, R>> for Error
291where
292    R: Send + Sync + std::fmt::Debug + 'static,
293{
294    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hypervisor::GetHypervisorError, R>) -> Self {
295        match err {
296            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
297            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
298                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
299                source: err.into(),
300            }),
301        }
302    }
303}
304impl From<crate::operation::get_hypervisor::GetHypervisorError> for Error {
305    fn from(err: crate::operation::get_hypervisor::GetHypervisorError) -> Self {
306        match err {
307            crate::operation::get_hypervisor::GetHypervisorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
308            crate::operation::get_hypervisor::GetHypervisorError::InternalServerException(inner) => Error::InternalServerException(inner),
309            crate::operation::get_hypervisor::GetHypervisorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
310            crate::operation::get_hypervisor::GetHypervisorError::ValidationException(inner) => Error::ValidationException(inner),
311            crate::operation::get_hypervisor::GetHypervisorError::Unhandled(inner) => Error::Unhandled(inner),
312        }
313    }
314}
315impl<R>
316    From<
317        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError, R>,
318    > for Error
319where
320    R: Send + Sync + std::fmt::Debug + 'static,
321{
322    fn from(
323        err: ::aws_smithy_runtime_api::client::result::SdkError<
324            crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError,
325            R,
326        >,
327    ) -> Self {
328        match err {
329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
332                source: err.into(),
333            }),
334        }
335    }
336}
337impl From<crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError> for Error {
338    fn from(err: crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError) -> Self {
339        match err {
340            crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError::ResourceNotFoundException(inner) => {
341                Error::ResourceNotFoundException(inner)
342            }
343            crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError::InternalServerException(inner) => {
344                Error::InternalServerException(inner)
345            }
346            crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError::ThrottlingException(inner) => {
347                Error::ThrottlingException(inner)
348            }
349            crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError::ValidationException(inner) => {
350                Error::ValidationException(inner)
351            }
352            crate::operation::get_hypervisor_property_mappings::GetHypervisorPropertyMappingsError::Unhandled(inner) => Error::Unhandled(inner),
353        }
354    }
355}
356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_virtual_machine::GetVirtualMachineError, R>> for Error
357where
358    R: Send + Sync + std::fmt::Debug + 'static,
359{
360    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_virtual_machine::GetVirtualMachineError, R>) -> Self {
361        match err {
362            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
363            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
364                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
365                source: err.into(),
366            }),
367        }
368    }
369}
370impl From<crate::operation::get_virtual_machine::GetVirtualMachineError> for Error {
371    fn from(err: crate::operation::get_virtual_machine::GetVirtualMachineError) -> Self {
372        match err {
373            crate::operation::get_virtual_machine::GetVirtualMachineError::ResourceNotFoundException(inner) => {
374                Error::ResourceNotFoundException(inner)
375            }
376            crate::operation::get_virtual_machine::GetVirtualMachineError::InternalServerException(inner) => Error::InternalServerException(inner),
377            crate::operation::get_virtual_machine::GetVirtualMachineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
378            crate::operation::get_virtual_machine::GetVirtualMachineError::ValidationException(inner) => Error::ValidationException(inner),
379            crate::operation::get_virtual_machine::GetVirtualMachineError::Unhandled(inner) => Error::Unhandled(inner),
380        }
381    }
382}
383impl<R>
384    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError, R>>
385    for Error
386where
387    R: Send + Sync + std::fmt::Debug + 'static,
388{
389    fn from(
390        err: ::aws_smithy_runtime_api::client::result::SdkError<
391            crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError,
392            R,
393        >,
394    ) -> Self {
395        match err {
396            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
397            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
398                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
399                source: err.into(),
400            }),
401        }
402    }
403}
404impl From<crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError> for Error {
405    fn from(err: crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError) -> Self {
406        match err {
407            crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError::AccessDeniedException(inner) => {
408                Error::AccessDeniedException(inner)
409            }
410            crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError::ConflictException(inner) => {
411                Error::ConflictException(inner)
412            }
413            crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError::InternalServerException(inner) => {
414                Error::InternalServerException(inner)
415            }
416            crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError::ThrottlingException(inner) => {
417                Error::ThrottlingException(inner)
418            }
419            crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError::ValidationException(inner) => {
420                Error::ValidationException(inner)
421            }
422            crate::operation::import_hypervisor_configuration::ImportHypervisorConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
423        }
424    }
425}
426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateways::ListGatewaysError, R>> for Error
427where
428    R: Send + Sync + std::fmt::Debug + 'static,
429{
430    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateways::ListGatewaysError, R>) -> Self {
431        match err {
432            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
433            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
434                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
435                source: err.into(),
436            }),
437        }
438    }
439}
440impl From<crate::operation::list_gateways::ListGatewaysError> for Error {
441    fn from(err: crate::operation::list_gateways::ListGatewaysError) -> Self {
442        match err {
443            crate::operation::list_gateways::ListGatewaysError::InternalServerException(inner) => Error::InternalServerException(inner),
444            crate::operation::list_gateways::ListGatewaysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
445            crate::operation::list_gateways::ListGatewaysError::ValidationException(inner) => Error::ValidationException(inner),
446            crate::operation::list_gateways::ListGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
447        }
448    }
449}
450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hypervisors::ListHypervisorsError, R>> for Error
451where
452    R: Send + Sync + std::fmt::Debug + 'static,
453{
454    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hypervisors::ListHypervisorsError, R>) -> Self {
455        match err {
456            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
457            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
458                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
459                source: err.into(),
460            }),
461        }
462    }
463}
464impl From<crate::operation::list_hypervisors::ListHypervisorsError> for Error {
465    fn from(err: crate::operation::list_hypervisors::ListHypervisorsError) -> Self {
466        match err {
467            crate::operation::list_hypervisors::ListHypervisorsError::InternalServerException(inner) => Error::InternalServerException(inner),
468            crate::operation::list_hypervisors::ListHypervisorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
469            crate::operation::list_hypervisors::ListHypervisorsError::ValidationException(inner) => Error::ValidationException(inner),
470            crate::operation::list_hypervisors::ListHypervisorsError::Unhandled(inner) => Error::Unhandled(inner),
471        }
472    }
473}
474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
479        match err {
480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
483                source: err.into(),
484            }),
485        }
486    }
487}
488impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
489    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
490        match err {
491            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
492                Error::ResourceNotFoundException(inner)
493            }
494            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
495                Error::InternalServerException(inner)
496            }
497            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
498            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
499            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
500        }
501    }
502}
503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_virtual_machines::ListVirtualMachinesError, R>> for Error
504where
505    R: Send + Sync + std::fmt::Debug + 'static,
506{
507    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_virtual_machines::ListVirtualMachinesError, R>) -> Self {
508        match err {
509            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
510            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
511                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
512                source: err.into(),
513            }),
514        }
515    }
516}
517impl From<crate::operation::list_virtual_machines::ListVirtualMachinesError> for Error {
518    fn from(err: crate::operation::list_virtual_machines::ListVirtualMachinesError) -> Self {
519        match err {
520            crate::operation::list_virtual_machines::ListVirtualMachinesError::InternalServerException(inner) => {
521                Error::InternalServerException(inner)
522            }
523            crate::operation::list_virtual_machines::ListVirtualMachinesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
524            crate::operation::list_virtual_machines::ListVirtualMachinesError::ValidationException(inner) => Error::ValidationException(inner),
525            crate::operation::list_virtual_machines::ListVirtualMachinesError::Unhandled(inner) => Error::Unhandled(inner),
526        }
527    }
528}
529impl<R>
530    From<
531        ::aws_smithy_runtime_api::client::result::SdkError<
532            crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError,
533            R,
534        >,
535    > for Error
536where
537    R: Send + Sync + std::fmt::Debug + 'static,
538{
539    fn from(
540        err: ::aws_smithy_runtime_api::client::result::SdkError<
541            crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError,
542            R,
543        >,
544    ) -> Self {
545        match err {
546            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
547            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
548                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
549                source: err.into(),
550            }),
551        }
552    }
553}
554impl From<crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError> for Error {
555    fn from(err: crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError) -> Self {
556        match err {
557            crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError::ResourceNotFoundException(inner) => {
558                Error::ResourceNotFoundException(inner)
559            }
560            crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError::InternalServerException(inner) => {
561                Error::InternalServerException(inner)
562            }
563            crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError::ThrottlingException(inner) => {
564                Error::ThrottlingException(inner)
565            }
566            crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError::ValidationException(inner) => {
567                Error::ValidationException(inner)
568            }
569            crate::operation::put_bandwidth_rate_limit_schedule::PutBandwidthRateLimitScheduleError::Unhandled(inner) => Error::Unhandled(inner),
570        }
571    }
572}
573impl<R>
574    From<
575        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError, R>,
576    > for Error
577where
578    R: Send + Sync + std::fmt::Debug + 'static,
579{
580    fn from(
581        err: ::aws_smithy_runtime_api::client::result::SdkError<
582            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError,
583            R,
584        >,
585    ) -> Self {
586        match err {
587            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
588            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
589                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
590                source: err.into(),
591            }),
592        }
593    }
594}
595impl From<crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError> for Error {
596    fn from(err: crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError) -> Self {
597        match err {
598            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError::AccessDeniedException(inner) => {
599                Error::AccessDeniedException(inner)
600            }
601            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError::ConflictException(inner) => {
602                Error::ConflictException(inner)
603            }
604            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError::ResourceNotFoundException(inner) => {
605                Error::ResourceNotFoundException(inner)
606            }
607            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError::InternalServerException(inner) => {
608                Error::InternalServerException(inner)
609            }
610            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError::ThrottlingException(inner) => {
611                Error::ThrottlingException(inner)
612            }
613            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError::ValidationException(inner) => {
614                Error::ValidationException(inner)
615            }
616            crate::operation::put_hypervisor_property_mappings::PutHypervisorPropertyMappingsError::Unhandled(inner) => Error::Unhandled(inner),
617        }
618    }
619}
620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError, R>>
621    for Error
622where
623    R: Send + Sync + std::fmt::Debug + 'static,
624{
625    fn from(
626        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError, R>,
627    ) -> Self {
628        match err {
629            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
630            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
631                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
632                source: err.into(),
633            }),
634        }
635    }
636}
637impl From<crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError> for Error {
638    fn from(err: crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError) -> Self {
639        match err {
640            crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError::ConflictException(inner) => Error::ConflictException(inner),
641            crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError::ResourceNotFoundException(inner) => {
642                Error::ResourceNotFoundException(inner)
643            }
644            crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError::InternalServerException(inner) => {
645                Error::InternalServerException(inner)
646            }
647            crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError::ThrottlingException(inner) => {
648                Error::ThrottlingException(inner)
649            }
650            crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError::ValidationException(inner) => {
651                Error::ValidationException(inner)
652            }
653            crate::operation::put_maintenance_start_time::PutMaintenanceStartTimeError::Unhandled(inner) => Error::Unhandled(inner),
654        }
655    }
656}
657impl<R>
658    From<
659        ::aws_smithy_runtime_api::client::result::SdkError<
660            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError,
661            R,
662        >,
663    > for Error
664where
665    R: Send + Sync + std::fmt::Debug + 'static,
666{
667    fn from(
668        err: ::aws_smithy_runtime_api::client::result::SdkError<
669            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError,
670            R,
671        >,
672    ) -> Self {
673        match err {
674            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677                source: err.into(),
678            }),
679        }
680    }
681}
682impl From<crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError> for Error {
683    fn from(err: crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError) -> Self {
684        match err {
685            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError::AccessDeniedException(inner) => {
686                Error::AccessDeniedException(inner)
687            }
688            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError::ResourceNotFoundException(inner) => {
689                Error::ResourceNotFoundException(inner)
690            }
691            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError::InternalServerException(inner) => {
692                Error::InternalServerException(inner)
693            }
694            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError::ThrottlingException(inner) => {
695                Error::ThrottlingException(inner)
696            }
697            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError::ValidationException(inner) => {
698                Error::ValidationException(inner)
699            }
700            crate::operation::start_virtual_machines_metadata_sync::StartVirtualMachinesMetadataSyncError::Unhandled(inner) => {
701                Error::Unhandled(inner)
702            }
703        }
704    }
705}
706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
707where
708    R: Send + Sync + std::fmt::Debug + 'static,
709{
710    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
711        match err {
712            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
713            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
714                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
715                source: err.into(),
716            }),
717        }
718    }
719}
720impl From<crate::operation::tag_resource::TagResourceError> for Error {
721    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
722        match err {
723            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
724            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
725            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
726            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
727            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
728        }
729    }
730}
731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError, R>>
732    for Error
733where
734    R: Send + Sync + std::fmt::Debug + 'static,
735{
736    fn from(
737        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError, R>,
738    ) -> Self {
739        match err {
740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743                source: err.into(),
744            }),
745        }
746    }
747}
748impl From<crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError> for Error {
749    fn from(err: crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError) -> Self {
750        match err {
751            crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError::ConflictException(inner) => {
752                Error::ConflictException(inner)
753            }
754            crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError::ResourceNotFoundException(inner) => {
755                Error::ResourceNotFoundException(inner)
756            }
757            crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError::InternalServerException(inner) => {
758                Error::InternalServerException(inner)
759            }
760            crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError::ThrottlingException(inner) => {
761                Error::ThrottlingException(inner)
762            }
763            crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError::ValidationException(inner) => {
764                Error::ValidationException(inner)
765            }
766            crate::operation::test_hypervisor_configuration::TestHypervisorConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
767        }
768    }
769}
770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
771where
772    R: Send + Sync + std::fmt::Debug + 'static,
773{
774    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
775        match err {
776            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
777            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
778                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
779                source: err.into(),
780            }),
781        }
782    }
783}
784impl From<crate::operation::untag_resource::UntagResourceError> for Error {
785    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
786        match err {
787            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
788            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
789            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
790            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
791            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
792        }
793    }
794}
795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_information::UpdateGatewayInformationError, R>>
796    for Error
797where
798    R: Send + Sync + std::fmt::Debug + 'static,
799{
800    fn from(
801        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_information::UpdateGatewayInformationError, R>,
802    ) -> Self {
803        match err {
804            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
805            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
806                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
807                source: err.into(),
808            }),
809        }
810    }
811}
812impl From<crate::operation::update_gateway_information::UpdateGatewayInformationError> for Error {
813    fn from(err: crate::operation::update_gateway_information::UpdateGatewayInformationError) -> Self {
814        match err {
815            crate::operation::update_gateway_information::UpdateGatewayInformationError::ConflictException(inner) => Error::ConflictException(inner),
816            crate::operation::update_gateway_information::UpdateGatewayInformationError::ResourceNotFoundException(inner) => {
817                Error::ResourceNotFoundException(inner)
818            }
819            crate::operation::update_gateway_information::UpdateGatewayInformationError::InternalServerException(inner) => {
820                Error::InternalServerException(inner)
821            }
822            crate::operation::update_gateway_information::UpdateGatewayInformationError::ThrottlingException(inner) => {
823                Error::ThrottlingException(inner)
824            }
825            crate::operation::update_gateway_information::UpdateGatewayInformationError::ValidationException(inner) => {
826                Error::ValidationException(inner)
827            }
828            crate::operation::update_gateway_information::UpdateGatewayInformationError::Unhandled(inner) => Error::Unhandled(inner),
829        }
830    }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError, R>>
833    for Error
834where
835    R: Send + Sync + std::fmt::Debug + 'static,
836{
837    fn from(
838        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError, R>,
839    ) -> Self {
840        match err {
841            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
842            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
843                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
844                source: err.into(),
845            }),
846        }
847    }
848}
849impl From<crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError> for Error {
850    fn from(err: crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError) -> Self {
851        match err {
852            crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError::ResourceNotFoundException(inner) => {
853                Error::ResourceNotFoundException(inner)
854            }
855            crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError::InternalServerException(inner) => {
856                Error::InternalServerException(inner)
857            }
858            crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError::ThrottlingException(inner) => {
859                Error::ThrottlingException(inner)
860            }
861            crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError::ValidationException(inner) => {
862                Error::ValidationException(inner)
863            }
864            crate::operation::update_gateway_software_now::UpdateGatewaySoftwareNowError::Unhandled(inner) => Error::Unhandled(inner),
865        }
866    }
867}
868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hypervisor::UpdateHypervisorError, R>> for Error
869where
870    R: Send + Sync + std::fmt::Debug + 'static,
871{
872    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hypervisor::UpdateHypervisorError, R>) -> Self {
873        match err {
874            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
875            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
876                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
877                source: err.into(),
878            }),
879        }
880    }
881}
882impl From<crate::operation::update_hypervisor::UpdateHypervisorError> for Error {
883    fn from(err: crate::operation::update_hypervisor::UpdateHypervisorError) -> Self {
884        match err {
885            crate::operation::update_hypervisor::UpdateHypervisorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
886            crate::operation::update_hypervisor::UpdateHypervisorError::ConflictException(inner) => Error::ConflictException(inner),
887            crate::operation::update_hypervisor::UpdateHypervisorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
888            crate::operation::update_hypervisor::UpdateHypervisorError::InternalServerException(inner) => Error::InternalServerException(inner),
889            crate::operation::update_hypervisor::UpdateHypervisorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
890            crate::operation::update_hypervisor::UpdateHypervisorError::ValidationException(inner) => Error::ValidationException(inner),
891            crate::operation::update_hypervisor::UpdateHypervisorError::Unhandled(inner) => Error::Unhandled(inner),
892        }
893    }
894}
895impl ::std::error::Error for Error {
896    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
897        match self {
898            Error::AccessDeniedException(inner) => inner.source(),
899            Error::ConflictException(inner) => inner.source(),
900            Error::InternalServerException(inner) => inner.source(),
901            Error::ResourceNotFoundException(inner) => inner.source(),
902            Error::ThrottlingException(inner) => inner.source(),
903            Error::ValidationException(inner) => inner.source(),
904            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
905        }
906    }
907}
908impl ::aws_types::request_id::RequestId for Error {
909    fn request_id(&self) -> Option<&str> {
910        match self {
911            Self::AccessDeniedException(e) => e.request_id(),
912            Self::ConflictException(e) => e.request_id(),
913            Self::InternalServerException(e) => e.request_id(),
914            Self::ResourceNotFoundException(e) => e.request_id(),
915            Self::ThrottlingException(e) => e.request_id(),
916            Self::ValidationException(e) => e.request_id(),
917            Self::Unhandled(e) => e.meta.request_id(),
918        }
919    }
920}