aws_sdk_apprunner/
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>An unexpected service exception occurred.</p>
7    InternalServiceErrorException(crate::types::error::InternalServiceErrorException),
8    /// <p>One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.</p>
9    InvalidRequestException(crate::types::error::InvalidRequestException),
10    /// <p>You can't perform this action when the resource is in its current state.</p>
11    InvalidStateException(crate::types::error::InvalidStateException),
12    /// <p>A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>App Runner can't create this resource. You've reached your account quota for this resource type.</p>
15    /// <p>For App Runner per-resource quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/apprunner.html">App Runner endpoints and quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
16    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
17    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
18    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
19    variable wildcard pattern and check `.code()`:
20     \
21    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
22     \
23    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
24    Unhandled(crate::error::sealed_unhandled::Unhandled),
25}
26impl ::std::fmt::Display for Error {
27    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
28        match self {
29            Error::InternalServiceErrorException(inner) => inner.fmt(f),
30            Error::InvalidRequestException(inner) => inner.fmt(f),
31            Error::InvalidStateException(inner) => inner.fmt(f),
32            Error::ResourceNotFoundException(inner) => inner.fmt(f),
33            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
34            Error::Unhandled(_) => {
35                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
36                    write!(f, "unhandled error ({code})")
37                } else {
38                    f.write_str("unhandled error")
39                }
40            }
41        }
42    }
43}
44impl From<::aws_smithy_types::error::operation::BuildError> for Error {
45    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
46        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
47            source: value.into(),
48            meta: ::std::default::Default::default(),
49        })
50    }
51}
52impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
53    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
54        match self {
55            Self::InternalServiceErrorException(inner) => inner.meta(),
56            Self::InvalidRequestException(inner) => inner.meta(),
57            Self::InvalidStateException(inner) => inner.meta(),
58            Self::ResourceNotFoundException(inner) => inner.meta(),
59            Self::ServiceQuotaExceededException(inner) => inner.meta(),
60            Self::Unhandled(inner) => &inner.meta,
61        }
62    }
63}
64impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_custom_domain::AssociateCustomDomainError, R>> for Error
65where
66    R: Send + Sync + std::fmt::Debug + 'static,
67{
68    fn from(
69        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_custom_domain::AssociateCustomDomainError, R>,
70    ) -> Self {
71        match err {
72            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
73            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
74                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
75                source: err.into(),
76            }),
77        }
78    }
79}
80impl From<crate::operation::associate_custom_domain::AssociateCustomDomainError> for Error {
81    fn from(err: crate::operation::associate_custom_domain::AssociateCustomDomainError) -> Self {
82        match err {
83            crate::operation::associate_custom_domain::AssociateCustomDomainError::InternalServiceErrorException(inner) => {
84                Error::InternalServiceErrorException(inner)
85            }
86            crate::operation::associate_custom_domain::AssociateCustomDomainError::InvalidRequestException(inner) => {
87                Error::InvalidRequestException(inner)
88            }
89            crate::operation::associate_custom_domain::AssociateCustomDomainError::InvalidStateException(inner) => {
90                Error::InvalidStateException(inner)
91            }
92            crate::operation::associate_custom_domain::AssociateCustomDomainError::Unhandled(inner) => Error::Unhandled(inner),
93        }
94    }
95}
96impl<R>
97    From<
98        ::aws_smithy_runtime_api::client::result::SdkError<
99            crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError,
100            R,
101        >,
102    > for Error
103where
104    R: Send + Sync + std::fmt::Debug + 'static,
105{
106    fn from(
107        err: ::aws_smithy_runtime_api::client::result::SdkError<
108            crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError,
109            R,
110        >,
111    ) -> Self {
112        match err {
113            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
114            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
115                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
116                source: err.into(),
117            }),
118        }
119    }
120}
121impl From<crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError> for Error {
122    fn from(err: crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError) -> Self {
123        match err {
124            crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::InternalServiceErrorException(inner) => {
125                Error::InternalServiceErrorException(inner)
126            }
127            crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::InvalidRequestException(inner) => {
128                Error::InvalidRequestException(inner)
129            }
130            crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::ServiceQuotaExceededException(inner) => {
131                Error::ServiceQuotaExceededException(inner)
132            }
133            crate::operation::create_auto_scaling_configuration::CreateAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
134        }
135    }
136}
137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
138where
139    R: Send + Sync + std::fmt::Debug + 'static,
140{
141    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> Self {
142        match err {
143            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
144            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
145                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
146                source: err.into(),
147            }),
148        }
149    }
150}
151impl From<crate::operation::create_connection::CreateConnectionError> for Error {
152    fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
153        match err {
154            crate::operation::create_connection::CreateConnectionError::InternalServiceErrorException(inner) => {
155                Error::InternalServiceErrorException(inner)
156            }
157            crate::operation::create_connection::CreateConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
158            crate::operation::create_connection::CreateConnectionError::ServiceQuotaExceededException(inner) => {
159                Error::ServiceQuotaExceededException(inner)
160            }
161            crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
162        }
163    }
164}
165impl<R>
166    From<
167        ::aws_smithy_runtime_api::client::result::SdkError<
168            crate::operation::create_observability_configuration::CreateObservabilityConfigurationError,
169            R,
170        >,
171    > for Error
172where
173    R: Send + Sync + std::fmt::Debug + 'static,
174{
175    fn from(
176        err: ::aws_smithy_runtime_api::client::result::SdkError<
177            crate::operation::create_observability_configuration::CreateObservabilityConfigurationError,
178            R,
179        >,
180    ) -> Self {
181        match err {
182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
185                source: err.into(),
186            }),
187        }
188    }
189}
190impl From<crate::operation::create_observability_configuration::CreateObservabilityConfigurationError> for Error {
191    fn from(err: crate::operation::create_observability_configuration::CreateObservabilityConfigurationError) -> Self {
192        match err {
193            crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::InternalServiceErrorException(inner) => {
194                Error::InternalServiceErrorException(inner)
195            }
196            crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::InvalidRequestException(inner) => {
197                Error::InvalidRequestException(inner)
198            }
199            crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::ServiceQuotaExceededException(inner) => {
200                Error::ServiceQuotaExceededException(inner)
201            }
202            crate::operation::create_observability_configuration::CreateObservabilityConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
203        }
204    }
205}
206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>> for Error
207where
208    R: Send + Sync + std::fmt::Debug + 'static,
209{
210    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>) -> Self {
211        match err {
212            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
213            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
214                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
215                source: err.into(),
216            }),
217        }
218    }
219}
220impl From<crate::operation::create_service::CreateServiceError> for Error {
221    fn from(err: crate::operation::create_service::CreateServiceError) -> Self {
222        match err {
223            crate::operation::create_service::CreateServiceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
224            crate::operation::create_service::CreateServiceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
225            crate::operation::create_service::CreateServiceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
226            crate::operation::create_service::CreateServiceError::Unhandled(inner) => Error::Unhandled(inner),
227        }
228    }
229}
230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_connector::CreateVpcConnectorError, R>> for Error
231where
232    R: Send + Sync + std::fmt::Debug + 'static,
233{
234    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_connector::CreateVpcConnectorError, R>) -> Self {
235        match err {
236            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
237            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
238                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
239                source: err.into(),
240            }),
241        }
242    }
243}
244impl From<crate::operation::create_vpc_connector::CreateVpcConnectorError> for Error {
245    fn from(err: crate::operation::create_vpc_connector::CreateVpcConnectorError) -> Self {
246        match err {
247            crate::operation::create_vpc_connector::CreateVpcConnectorError::InternalServiceErrorException(inner) => {
248                Error::InternalServiceErrorException(inner)
249            }
250            crate::operation::create_vpc_connector::CreateVpcConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
251            crate::operation::create_vpc_connector::CreateVpcConnectorError::ServiceQuotaExceededException(inner) => {
252                Error::ServiceQuotaExceededException(inner)
253            }
254            crate::operation::create_vpc_connector::CreateVpcConnectorError::Unhandled(inner) => Error::Unhandled(inner),
255        }
256    }
257}
258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError, R>>
259    for Error
260where
261    R: Send + Sync + std::fmt::Debug + 'static,
262{
263    fn from(
264        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError, R>,
265    ) -> Self {
266        match err {
267            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
268            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
269                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
270                source: err.into(),
271            }),
272        }
273    }
274}
275impl From<crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError> for Error {
276    fn from(err: crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError) -> Self {
277        match err {
278            crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::InternalServiceErrorException(inner) => {
279                Error::InternalServiceErrorException(inner)
280            }
281            crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::InvalidRequestException(inner) => {
282                Error::InvalidRequestException(inner)
283            }
284            crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::InvalidStateException(inner) => {
285                Error::InvalidStateException(inner)
286            }
287            crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::ServiceQuotaExceededException(inner) => {
288                Error::ServiceQuotaExceededException(inner)
289            }
290            crate::operation::create_vpc_ingress_connection::CreateVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
291        }
292    }
293}
294impl<R>
295    From<
296        ::aws_smithy_runtime_api::client::result::SdkError<
297            crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError,
298            R,
299        >,
300    > for Error
301where
302    R: Send + Sync + std::fmt::Debug + 'static,
303{
304    fn from(
305        err: ::aws_smithy_runtime_api::client::result::SdkError<
306            crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError,
307            R,
308        >,
309    ) -> Self {
310        match err {
311            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
312            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
313                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
314                source: err.into(),
315            }),
316        }
317    }
318}
319impl From<crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError> for Error {
320    fn from(err: crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError) -> Self {
321        match err {
322            crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::InternalServiceErrorException(inner) => {
323                Error::InternalServiceErrorException(inner)
324            }
325            crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::InvalidRequestException(inner) => {
326                Error::InvalidRequestException(inner)
327            }
328            crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::ResourceNotFoundException(inner) => {
329                Error::ResourceNotFoundException(inner)
330            }
331            crate::operation::delete_auto_scaling_configuration::DeleteAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
332        }
333    }
334}
335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
336where
337    R: Send + Sync + std::fmt::Debug + 'static,
338{
339    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
340        match err {
341            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
342            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
343                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
344                source: err.into(),
345            }),
346        }
347    }
348}
349impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
350    fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
351        match err {
352            crate::operation::delete_connection::DeleteConnectionError::InternalServiceErrorException(inner) => {
353                Error::InternalServiceErrorException(inner)
354            }
355            crate::operation::delete_connection::DeleteConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
356            crate::operation::delete_connection::DeleteConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
357            crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
358        }
359    }
360}
361impl<R>
362    From<
363        ::aws_smithy_runtime_api::client::result::SdkError<
364            crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError,
365            R,
366        >,
367    > for Error
368where
369    R: Send + Sync + std::fmt::Debug + 'static,
370{
371    fn from(
372        err: ::aws_smithy_runtime_api::client::result::SdkError<
373            crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError,
374            R,
375        >,
376    ) -> Self {
377        match err {
378            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
379            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
380                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
381                source: err.into(),
382            }),
383        }
384    }
385}
386impl From<crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError> for Error {
387    fn from(err: crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError) -> Self {
388        match err {
389            crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::InternalServiceErrorException(inner) => {
390                Error::InternalServiceErrorException(inner)
391            }
392            crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::InvalidRequestException(inner) => {
393                Error::InvalidRequestException(inner)
394            }
395            crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::ResourceNotFoundException(inner) => {
396                Error::ResourceNotFoundException(inner)
397            }
398            crate::operation::delete_observability_configuration::DeleteObservabilityConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
399        }
400    }
401}
402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>> for Error
403where
404    R: Send + Sync + std::fmt::Debug + 'static,
405{
406    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>) -> Self {
407        match err {
408            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
409            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
410                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
411                source: err.into(),
412            }),
413        }
414    }
415}
416impl From<crate::operation::delete_service::DeleteServiceError> for Error {
417    fn from(err: crate::operation::delete_service::DeleteServiceError) -> Self {
418        match err {
419            crate::operation::delete_service::DeleteServiceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
420            crate::operation::delete_service::DeleteServiceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
421            crate::operation::delete_service::DeleteServiceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
422            crate::operation::delete_service::DeleteServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
423            crate::operation::delete_service::DeleteServiceError::Unhandled(inner) => Error::Unhandled(inner),
424        }
425    }
426}
427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_connector::DeleteVpcConnectorError, R>> for Error
428where
429    R: Send + Sync + std::fmt::Debug + 'static,
430{
431    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_connector::DeleteVpcConnectorError, R>) -> Self {
432        match err {
433            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
434            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
435                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
436                source: err.into(),
437            }),
438        }
439    }
440}
441impl From<crate::operation::delete_vpc_connector::DeleteVpcConnectorError> for Error {
442    fn from(err: crate::operation::delete_vpc_connector::DeleteVpcConnectorError) -> Self {
443        match err {
444            crate::operation::delete_vpc_connector::DeleteVpcConnectorError::InternalServiceErrorException(inner) => {
445                Error::InternalServiceErrorException(inner)
446            }
447            crate::operation::delete_vpc_connector::DeleteVpcConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
448            crate::operation::delete_vpc_connector::DeleteVpcConnectorError::ResourceNotFoundException(inner) => {
449                Error::ResourceNotFoundException(inner)
450            }
451            crate::operation::delete_vpc_connector::DeleteVpcConnectorError::Unhandled(inner) => Error::Unhandled(inner),
452        }
453    }
454}
455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError, R>>
456    for Error
457where
458    R: Send + Sync + std::fmt::Debug + 'static,
459{
460    fn from(
461        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError, R>,
462    ) -> Self {
463        match err {
464            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
465            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
466                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
467                source: err.into(),
468            }),
469        }
470    }
471}
472impl From<crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError> for Error {
473    fn from(err: crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError) -> Self {
474        match err {
475            crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::InternalServiceErrorException(inner) => {
476                Error::InternalServiceErrorException(inner)
477            }
478            crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::InvalidRequestException(inner) => {
479                Error::InvalidRequestException(inner)
480            }
481            crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::InvalidStateException(inner) => {
482                Error::InvalidStateException(inner)
483            }
484            crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::ResourceNotFoundException(inner) => {
485                Error::ResourceNotFoundException(inner)
486            }
487            crate::operation::delete_vpc_ingress_connection::DeleteVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
488        }
489    }
490}
491impl<R>
492    From<
493        ::aws_smithy_runtime_api::client::result::SdkError<
494            crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError,
495            R,
496        >,
497    > for Error
498where
499    R: Send + Sync + std::fmt::Debug + 'static,
500{
501    fn from(
502        err: ::aws_smithy_runtime_api::client::result::SdkError<
503            crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError,
504            R,
505        >,
506    ) -> Self {
507        match err {
508            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
509            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
510                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
511                source: err.into(),
512            }),
513        }
514    }
515}
516impl From<crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError> for Error {
517    fn from(err: crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError) -> Self {
518        match err {
519            crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::InternalServiceErrorException(inner) => {
520                Error::InternalServiceErrorException(inner)
521            }
522            crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::InvalidRequestException(inner) => {
523                Error::InvalidRequestException(inner)
524            }
525            crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::ResourceNotFoundException(inner) => {
526                Error::ResourceNotFoundException(inner)
527            }
528            crate::operation::describe_auto_scaling_configuration::DescribeAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
529        }
530    }
531}
532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_custom_domains::DescribeCustomDomainsError, R>> for Error
533where
534    R: Send + Sync + std::fmt::Debug + 'static,
535{
536    fn from(
537        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_custom_domains::DescribeCustomDomainsError, R>,
538    ) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::describe_custom_domains::DescribeCustomDomainsError> for Error {
549    fn from(err: crate::operation::describe_custom_domains::DescribeCustomDomainsError) -> Self {
550        match err {
551            crate::operation::describe_custom_domains::DescribeCustomDomainsError::InternalServiceErrorException(inner) => {
552                Error::InternalServiceErrorException(inner)
553            }
554            crate::operation::describe_custom_domains::DescribeCustomDomainsError::InvalidRequestException(inner) => {
555                Error::InvalidRequestException(inner)
556            }
557            crate::operation::describe_custom_domains::DescribeCustomDomainsError::ResourceNotFoundException(inner) => {
558                Error::ResourceNotFoundException(inner)
559            }
560            crate::operation::describe_custom_domains::DescribeCustomDomainsError::Unhandled(inner) => Error::Unhandled(inner),
561        }
562    }
563}
564impl<R>
565    From<
566        ::aws_smithy_runtime_api::client::result::SdkError<
567            crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError,
568            R,
569        >,
570    > for Error
571where
572    R: Send + Sync + std::fmt::Debug + 'static,
573{
574    fn from(
575        err: ::aws_smithy_runtime_api::client::result::SdkError<
576            crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError,
577            R,
578        >,
579    ) -> Self {
580        match err {
581            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
582            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
583                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
584                source: err.into(),
585            }),
586        }
587    }
588}
589impl From<crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError> for Error {
590    fn from(err: crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError) -> Self {
591        match err {
592            crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::InternalServiceErrorException(inner) => {
593                Error::InternalServiceErrorException(inner)
594            }
595            crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::InvalidRequestException(inner) => {
596                Error::InvalidRequestException(inner)
597            }
598            crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::ResourceNotFoundException(inner) => {
599                Error::ResourceNotFoundException(inner)
600            }
601            crate::operation::describe_observability_configuration::DescribeObservabilityConfigurationError::Unhandled(inner) => {
602                Error::Unhandled(inner)
603            }
604        }
605    }
606}
607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service::DescribeServiceError, R>> for Error
608where
609    R: Send + Sync + std::fmt::Debug + 'static,
610{
611    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service::DescribeServiceError, R>) -> Self {
612        match err {
613            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
614            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
615                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
616                source: err.into(),
617            }),
618        }
619    }
620}
621impl From<crate::operation::describe_service::DescribeServiceError> for Error {
622    fn from(err: crate::operation::describe_service::DescribeServiceError) -> Self {
623        match err {
624            crate::operation::describe_service::DescribeServiceError::InternalServiceErrorException(inner) => {
625                Error::InternalServiceErrorException(inner)
626            }
627            crate::operation::describe_service::DescribeServiceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
628            crate::operation::describe_service::DescribeServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
629            crate::operation::describe_service::DescribeServiceError::Unhandled(inner) => Error::Unhandled(inner),
630        }
631    }
632}
633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_connector::DescribeVpcConnectorError, R>> for Error
634where
635    R: Send + Sync + std::fmt::Debug + 'static,
636{
637    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_connector::DescribeVpcConnectorError, R>) -> Self {
638        match err {
639            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
640            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
641                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
642                source: err.into(),
643            }),
644        }
645    }
646}
647impl From<crate::operation::describe_vpc_connector::DescribeVpcConnectorError> for Error {
648    fn from(err: crate::operation::describe_vpc_connector::DescribeVpcConnectorError) -> Self {
649        match err {
650            crate::operation::describe_vpc_connector::DescribeVpcConnectorError::InternalServiceErrorException(inner) => {
651                Error::InternalServiceErrorException(inner)
652            }
653            crate::operation::describe_vpc_connector::DescribeVpcConnectorError::InvalidRequestException(inner) => {
654                Error::InvalidRequestException(inner)
655            }
656            crate::operation::describe_vpc_connector::DescribeVpcConnectorError::ResourceNotFoundException(inner) => {
657                Error::ResourceNotFoundException(inner)
658            }
659            crate::operation::describe_vpc_connector::DescribeVpcConnectorError::Unhandled(inner) => Error::Unhandled(inner),
660        }
661    }
662}
663impl<R>
664    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError, R>>
665    for Error
666where
667    R: Send + Sync + std::fmt::Debug + 'static,
668{
669    fn from(
670        err: ::aws_smithy_runtime_api::client::result::SdkError<
671            crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError,
672            R,
673        >,
674    ) -> Self {
675        match err {
676            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
677            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
678                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
679                source: err.into(),
680            }),
681        }
682    }
683}
684impl From<crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError> for Error {
685    fn from(err: crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError) -> Self {
686        match err {
687            crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::InternalServiceErrorException(inner) => {
688                Error::InternalServiceErrorException(inner)
689            }
690            crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::InvalidRequestException(inner) => {
691                Error::InvalidRequestException(inner)
692            }
693            crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::ResourceNotFoundException(inner) => {
694                Error::ResourceNotFoundException(inner)
695            }
696            crate::operation::describe_vpc_ingress_connection::DescribeVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
697        }
698    }
699}
700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_custom_domain::DisassociateCustomDomainError, R>>
701    for Error
702where
703    R: Send + Sync + std::fmt::Debug + 'static,
704{
705    fn from(
706        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_custom_domain::DisassociateCustomDomainError, R>,
707    ) -> Self {
708        match err {
709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
712                source: err.into(),
713            }),
714        }
715    }
716}
717impl From<crate::operation::disassociate_custom_domain::DisassociateCustomDomainError> for Error {
718    fn from(err: crate::operation::disassociate_custom_domain::DisassociateCustomDomainError) -> Self {
719        match err {
720            crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::InternalServiceErrorException(inner) => {
721                Error::InternalServiceErrorException(inner)
722            }
723            crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::InvalidRequestException(inner) => {
724                Error::InvalidRequestException(inner)
725            }
726            crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::InvalidStateException(inner) => {
727                Error::InvalidStateException(inner)
728            }
729            crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::ResourceNotFoundException(inner) => {
730                Error::ResourceNotFoundException(inner)
731            }
732            crate::operation::disassociate_custom_domain::DisassociateCustomDomainError::Unhandled(inner) => Error::Unhandled(inner),
733        }
734    }
735}
736impl<R>
737    From<
738        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError, R>,
739    > for Error
740where
741    R: Send + Sync + std::fmt::Debug + 'static,
742{
743    fn from(
744        err: ::aws_smithy_runtime_api::client::result::SdkError<
745            crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError,
746            R,
747        >,
748    ) -> Self {
749        match err {
750            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
751            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
752                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
753                source: err.into(),
754            }),
755        }
756    }
757}
758impl From<crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError> for Error {
759    fn from(err: crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError) -> Self {
760        match err {
761            crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError::InternalServiceErrorException(inner) => {
762                Error::InternalServiceErrorException(inner)
763            }
764            crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError::InvalidRequestException(inner) => {
765                Error::InvalidRequestException(inner)
766            }
767            crate::operation::list_auto_scaling_configurations::ListAutoScalingConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
768        }
769    }
770}
771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>> for Error
772where
773    R: Send + Sync + std::fmt::Debug + 'static,
774{
775    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>) -> Self {
776        match err {
777            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
778            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
779                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
780                source: err.into(),
781            }),
782        }
783    }
784}
785impl From<crate::operation::list_connections::ListConnectionsError> for Error {
786    fn from(err: crate::operation::list_connections::ListConnectionsError) -> Self {
787        match err {
788            crate::operation::list_connections::ListConnectionsError::InternalServiceErrorException(inner) => {
789                Error::InternalServiceErrorException(inner)
790            }
791            crate::operation::list_connections::ListConnectionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
792            crate::operation::list_connections::ListConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
793        }
794    }
795}
796impl<R>
797    From<
798        ::aws_smithy_runtime_api::client::result::SdkError<
799            crate::operation::list_observability_configurations::ListObservabilityConfigurationsError,
800            R,
801        >,
802    > for Error
803where
804    R: Send + Sync + std::fmt::Debug + 'static,
805{
806    fn from(
807        err: ::aws_smithy_runtime_api::client::result::SdkError<
808            crate::operation::list_observability_configurations::ListObservabilityConfigurationsError,
809            R,
810        >,
811    ) -> Self {
812        match err {
813            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
814            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
815                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
816                source: err.into(),
817            }),
818        }
819    }
820}
821impl From<crate::operation::list_observability_configurations::ListObservabilityConfigurationsError> for Error {
822    fn from(err: crate::operation::list_observability_configurations::ListObservabilityConfigurationsError) -> Self {
823        match err {
824            crate::operation::list_observability_configurations::ListObservabilityConfigurationsError::InternalServiceErrorException(inner) => {
825                Error::InternalServiceErrorException(inner)
826            }
827            crate::operation::list_observability_configurations::ListObservabilityConfigurationsError::InvalidRequestException(inner) => {
828                Error::InvalidRequestException(inner)
829            }
830            crate::operation::list_observability_configurations::ListObservabilityConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
831        }
832    }
833}
834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_operations::ListOperationsError, R>> for Error
835where
836    R: Send + Sync + std::fmt::Debug + 'static,
837{
838    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_operations::ListOperationsError, R>) -> Self {
839        match err {
840            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
841            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
842                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
843                source: err.into(),
844            }),
845        }
846    }
847}
848impl From<crate::operation::list_operations::ListOperationsError> for Error {
849    fn from(err: crate::operation::list_operations::ListOperationsError) -> Self {
850        match err {
851            crate::operation::list_operations::ListOperationsError::InternalServiceErrorException(inner) => {
852                Error::InternalServiceErrorException(inner)
853            }
854            crate::operation::list_operations::ListOperationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
855            crate::operation::list_operations::ListOperationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
856            crate::operation::list_operations::ListOperationsError::Unhandled(inner) => Error::Unhandled(inner),
857        }
858    }
859}
860impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>> for Error
861where
862    R: Send + Sync + std::fmt::Debug + 'static,
863{
864    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>) -> Self {
865        match err {
866            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
867            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
868                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
869                source: err.into(),
870            }),
871        }
872    }
873}
874impl From<crate::operation::list_services::ListServicesError> for Error {
875    fn from(err: crate::operation::list_services::ListServicesError) -> Self {
876        match err {
877            crate::operation::list_services::ListServicesError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
878            crate::operation::list_services::ListServicesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
879            crate::operation::list_services::ListServicesError::Unhandled(inner) => Error::Unhandled(inner),
880        }
881    }
882}
883impl<R>
884    From<
885        ::aws_smithy_runtime_api::client::result::SdkError<
886            crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError,
887            R,
888        >,
889    > for Error
890where
891    R: Send + Sync + std::fmt::Debug + 'static,
892{
893    fn from(
894        err: ::aws_smithy_runtime_api::client::result::SdkError<
895            crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError,
896            R,
897        >,
898    ) -> Self {
899        match err {
900            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
901            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
902                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
903                source: err.into(),
904            }),
905        }
906    }
907}
908impl From<crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError> for Error {
909    fn from(err: crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError) -> Self {
910        match err {
911            crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
912            crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
913            crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
914            crate::operation::list_services_for_auto_scaling_configuration::ListServicesForAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
915        }
916    }
917}
918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
919where
920    R: Send + Sync + std::fmt::Debug + 'static,
921{
922    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
923        match err {
924            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
925            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
926                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
927                source: err.into(),
928            }),
929        }
930    }
931}
932impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
933    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
934        match err {
935            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServiceErrorException(inner) => {
936                Error::InternalServiceErrorException(inner)
937            }
938            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
939                Error::InvalidRequestException(inner)
940            }
941            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
942            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
943                Error::ResourceNotFoundException(inner)
944            }
945            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
946        }
947    }
948}
949impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_connectors::ListVpcConnectorsError, R>> for Error
950where
951    R: Send + Sync + std::fmt::Debug + 'static,
952{
953    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_connectors::ListVpcConnectorsError, R>) -> Self {
954        match err {
955            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
956            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
957                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
958                source: err.into(),
959            }),
960        }
961    }
962}
963impl From<crate::operation::list_vpc_connectors::ListVpcConnectorsError> for Error {
964    fn from(err: crate::operation::list_vpc_connectors::ListVpcConnectorsError) -> Self {
965        match err {
966            crate::operation::list_vpc_connectors::ListVpcConnectorsError::InternalServiceErrorException(inner) => {
967                Error::InternalServiceErrorException(inner)
968            }
969            crate::operation::list_vpc_connectors::ListVpcConnectorsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
970            crate::operation::list_vpc_connectors::ListVpcConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
971        }
972    }
973}
974impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError, R>>
975    for Error
976where
977    R: Send + Sync + std::fmt::Debug + 'static,
978{
979    fn from(
980        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError, R>,
981    ) -> Self {
982        match err {
983            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
984            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
985                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
986                source: err.into(),
987            }),
988        }
989    }
990}
991impl From<crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError> for Error {
992    fn from(err: crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError) -> Self {
993        match err {
994            crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError::InternalServiceErrorException(inner) => {
995                Error::InternalServiceErrorException(inner)
996            }
997            crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError::InvalidRequestException(inner) => {
998                Error::InvalidRequestException(inner)
999            }
1000            crate::operation::list_vpc_ingress_connections::ListVpcIngressConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1001        }
1002    }
1003}
1004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_service::PauseServiceError, R>> for Error
1005where
1006    R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_service::PauseServiceError, R>) -> Self {
1009        match err {
1010            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1011            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1012                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1013                source: err.into(),
1014            }),
1015        }
1016    }
1017}
1018impl From<crate::operation::pause_service::PauseServiceError> for Error {
1019    fn from(err: crate::operation::pause_service::PauseServiceError) -> Self {
1020        match err {
1021            crate::operation::pause_service::PauseServiceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1022            crate::operation::pause_service::PauseServiceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1023            crate::operation::pause_service::PauseServiceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
1024            crate::operation::pause_service::PauseServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1025            crate::operation::pause_service::PauseServiceError::Unhandled(inner) => Error::Unhandled(inner),
1026        }
1027    }
1028}
1029impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_service::ResumeServiceError, R>> for Error
1030where
1031    R: Send + Sync + std::fmt::Debug + 'static,
1032{
1033    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_service::ResumeServiceError, R>) -> Self {
1034        match err {
1035            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1036            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1037                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1038                source: err.into(),
1039            }),
1040        }
1041    }
1042}
1043impl From<crate::operation::resume_service::ResumeServiceError> for Error {
1044    fn from(err: crate::operation::resume_service::ResumeServiceError) -> Self {
1045        match err {
1046            crate::operation::resume_service::ResumeServiceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1047            crate::operation::resume_service::ResumeServiceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1048            crate::operation::resume_service::ResumeServiceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
1049            crate::operation::resume_service::ResumeServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1050            crate::operation::resume_service::ResumeServiceError::Unhandled(inner) => Error::Unhandled(inner),
1051        }
1052    }
1053}
1054impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_deployment::StartDeploymentError, R>> for Error
1055where
1056    R: Send + Sync + std::fmt::Debug + 'static,
1057{
1058    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_deployment::StartDeploymentError, R>) -> Self {
1059        match err {
1060            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1061            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1062                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1063                source: err.into(),
1064            }),
1065        }
1066    }
1067}
1068impl From<crate::operation::start_deployment::StartDeploymentError> for Error {
1069    fn from(err: crate::operation::start_deployment::StartDeploymentError) -> Self {
1070        match err {
1071            crate::operation::start_deployment::StartDeploymentError::InternalServiceErrorException(inner) => {
1072                Error::InternalServiceErrorException(inner)
1073            }
1074            crate::operation::start_deployment::StartDeploymentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1075            crate::operation::start_deployment::StartDeploymentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1076            crate::operation::start_deployment::StartDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
1077        }
1078    }
1079}
1080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1081where
1082    R: Send + Sync + std::fmt::Debug + 'static,
1083{
1084    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1085        match err {
1086            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1087            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1088                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1089                source: err.into(),
1090            }),
1091        }
1092    }
1093}
1094impl From<crate::operation::tag_resource::TagResourceError> for Error {
1095    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1096        match err {
1097            crate::operation::tag_resource::TagResourceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1098            crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1099            crate::operation::tag_resource::TagResourceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
1100            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1101            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1102        }
1103    }
1104}
1105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1106where
1107    R: Send + Sync + std::fmt::Debug + 'static,
1108{
1109    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1110        match err {
1111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114                source: err.into(),
1115            }),
1116        }
1117    }
1118}
1119impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1120    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1121        match err {
1122            crate::operation::untag_resource::UntagResourceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1123            crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1124            crate::operation::untag_resource::UntagResourceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
1125            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1126            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1127        }
1128    }
1129}
1130impl<R>
1131    From<
1132        ::aws_smithy_runtime_api::client::result::SdkError<
1133            crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError,
1134            R,
1135        >,
1136    > for Error
1137where
1138    R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140    fn from(
1141        err: ::aws_smithy_runtime_api::client::result::SdkError<
1142            crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError,
1143            R,
1144        >,
1145    ) -> Self {
1146        match err {
1147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1150                source: err.into(),
1151            }),
1152        }
1153    }
1154}
1155impl From<crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError> for Error {
1156    fn from(err: crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError) -> Self {
1157        match err {
1158            crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1159            crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1160            crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1161            crate::operation::update_default_auto_scaling_configuration::UpdateDefaultAutoScalingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1162        }
1163    }
1164}
1165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>> for Error
1166where
1167    R: Send + Sync + std::fmt::Debug + 'static,
1168{
1169    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>) -> Self {
1170        match err {
1171            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1172            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1173                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1174                source: err.into(),
1175            }),
1176        }
1177    }
1178}
1179impl From<crate::operation::update_service::UpdateServiceError> for Error {
1180    fn from(err: crate::operation::update_service::UpdateServiceError) -> Self {
1181        match err {
1182            crate::operation::update_service::UpdateServiceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1183            crate::operation::update_service::UpdateServiceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1184            crate::operation::update_service::UpdateServiceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
1185            crate::operation::update_service::UpdateServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1186            crate::operation::update_service::UpdateServiceError::Unhandled(inner) => Error::Unhandled(inner),
1187        }
1188    }
1189}
1190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError, R>>
1191    for Error
1192where
1193    R: Send + Sync + std::fmt::Debug + 'static,
1194{
1195    fn from(
1196        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError, R>,
1197    ) -> Self {
1198        match err {
1199            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1200            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1201                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1202                source: err.into(),
1203            }),
1204        }
1205    }
1206}
1207impl From<crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError> for Error {
1208    fn from(err: crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError) -> Self {
1209        match err {
1210            crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::InternalServiceErrorException(inner) => {
1211                Error::InternalServiceErrorException(inner)
1212            }
1213            crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::InvalidRequestException(inner) => {
1214                Error::InvalidRequestException(inner)
1215            }
1216            crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::InvalidStateException(inner) => {
1217                Error::InvalidStateException(inner)
1218            }
1219            crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::ResourceNotFoundException(inner) => {
1220                Error::ResourceNotFoundException(inner)
1221            }
1222            crate::operation::update_vpc_ingress_connection::UpdateVpcIngressConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1223        }
1224    }
1225}
1226impl ::std::error::Error for Error {
1227    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1228        match self {
1229            Error::InternalServiceErrorException(inner) => inner.source(),
1230            Error::InvalidRequestException(inner) => inner.source(),
1231            Error::InvalidStateException(inner) => inner.source(),
1232            Error::ResourceNotFoundException(inner) => inner.source(),
1233            Error::ServiceQuotaExceededException(inner) => inner.source(),
1234            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1235        }
1236    }
1237}
1238impl ::aws_types::request_id::RequestId for Error {
1239    fn request_id(&self) -> Option<&str> {
1240        match self {
1241            Self::InternalServiceErrorException(e) => e.request_id(),
1242            Self::InvalidRequestException(e) => e.request_id(),
1243            Self::InvalidStateException(e) => e.request_id(),
1244            Self::ResourceNotFoundException(e) => e.request_id(),
1245            Self::ServiceQuotaExceededException(e) => e.request_id(),
1246            Self::Unhandled(e) => e.meta.request_id(),
1247        }
1248    }
1249}