aws_sdk_elasticbeanstalk/
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>AWS CodeBuild is not available in the specified region.</p>
7    CodeBuildNotInServiceRegionException(crate::types::error::CodeBuildNotInServiceRegionException),
8    /// <p>A generic service exception has occurred.</p>
9    ElasticBeanstalkServiceException(crate::types::error::ElasticBeanstalkServiceException),
10    /// <p>The specified account does not have sufficient privileges for one or more AWS services.</p>
11    InsufficientPrivilegesException(crate::types::error::InsufficientPrivilegesException),
12    /// <p>One or more input parameters is not valid. Please correct the input parameters and try the operation again.</p>
13    InvalidRequestException(crate::types::error::InvalidRequestException),
14    /// <p>Cannot modify the managed action in its current state.</p>
15    ManagedActionInvalidStateException(crate::types::error::ManagedActionInvalidStateException),
16    /// <p>Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.</p>
17    OperationInProgressException(crate::types::error::OperationInProgressException),
18    /// <p>You cannot delete the platform version because there are still environments running on it.</p>
19    PlatformVersionStillReferencedException(crate::types::error::PlatformVersionStillReferencedException),
20    /// <p>A resource doesn't exist for the specified Amazon Resource Name (ARN).</p>
21    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
22    /// <p>The type of the specified Amazon Resource Name (ARN) isn't supported for this operation.</p>
23    ResourceTypeNotSupportedException(crate::types::error::ResourceTypeNotSupportedException),
24    /// <p>The specified S3 bucket does not belong to the S3 region in which the service is running. The following regions are supported:</p>
25    /// <ul>
26    /// <li>
27    /// <p>IAD/us-east-1</p></li>
28    /// <li>
29    /// <p>PDX/us-west-2</p></li>
30    /// <li>
31    /// <p>DUB/eu-west-1</p></li>
32    /// </ul>
33    S3LocationNotInServiceRegionException(crate::types::error::S3LocationNotInServiceRegionException),
34    /// <p>The specified account does not have a subscription to Amazon S3.</p>
35    S3SubscriptionRequiredException(crate::types::error::S3SubscriptionRequiredException),
36    /// <p>Unable to delete the Amazon S3 source bundle associated with the application version. The application version was deleted successfully.</p>
37    SourceBundleDeletionException(crate::types::error::SourceBundleDeletionException),
38    /// <p>The specified account has reached its limit of application versions.</p>
39    TooManyApplicationVersionsException(crate::types::error::TooManyApplicationVersionsException),
40    /// <p>The specified account has reached its limit of applications.</p>
41    TooManyApplicationsException(crate::types::error::TooManyApplicationsException),
42    /// <p>The specified account has reached its limit of Amazon S3 buckets.</p>
43    TooManyBucketsException(crate::types::error::TooManyBucketsException),
44    /// <p>The specified account has reached its limit of configuration templates.</p>
45    TooManyConfigurationTemplatesException(crate::types::error::TooManyConfigurationTemplatesException),
46    /// <p>The specified account has reached its limit of environments.</p>
47    TooManyEnvironmentsException(crate::types::error::TooManyEnvironmentsException),
48    /// <p>You have exceeded the maximum number of allowed platforms associated with the account.</p>
49    TooManyPlatformsException(crate::types::error::TooManyPlatformsException),
50    /// <p>The number of tags in the resource would exceed the number of tags that each resource can have.</p>
51    /// <p>To calculate this, the operation considers both the number of tags the resource already has and the tags this operation would add if it succeeded.</p>
52    TooManyTagsException(crate::types::error::TooManyTagsException),
53    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
54    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
55    variable wildcard pattern and check `.code()`:
56     \
57    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
58     \
59    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
60    Unhandled(crate::error::sealed_unhandled::Unhandled),
61}
62impl ::std::fmt::Display for Error {
63    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
64        match self {
65            Error::CodeBuildNotInServiceRegionException(inner) => inner.fmt(f),
66            Error::ElasticBeanstalkServiceException(inner) => inner.fmt(f),
67            Error::InsufficientPrivilegesException(inner) => inner.fmt(f),
68            Error::InvalidRequestException(inner) => inner.fmt(f),
69            Error::ManagedActionInvalidStateException(inner) => inner.fmt(f),
70            Error::OperationInProgressException(inner) => inner.fmt(f),
71            Error::PlatformVersionStillReferencedException(inner) => inner.fmt(f),
72            Error::ResourceNotFoundException(inner) => inner.fmt(f),
73            Error::ResourceTypeNotSupportedException(inner) => inner.fmt(f),
74            Error::S3LocationNotInServiceRegionException(inner) => inner.fmt(f),
75            Error::S3SubscriptionRequiredException(inner) => inner.fmt(f),
76            Error::SourceBundleDeletionException(inner) => inner.fmt(f),
77            Error::TooManyApplicationVersionsException(inner) => inner.fmt(f),
78            Error::TooManyApplicationsException(inner) => inner.fmt(f),
79            Error::TooManyBucketsException(inner) => inner.fmt(f),
80            Error::TooManyConfigurationTemplatesException(inner) => inner.fmt(f),
81            Error::TooManyEnvironmentsException(inner) => inner.fmt(f),
82            Error::TooManyPlatformsException(inner) => inner.fmt(f),
83            Error::TooManyTagsException(inner) => inner.fmt(f),
84            Error::Unhandled(_) => {
85                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
86                    write!(f, "unhandled error ({code})")
87                } else {
88                    f.write_str("unhandled error")
89                }
90            }
91        }
92    }
93}
94impl From<::aws_smithy_types::error::operation::BuildError> for Error {
95    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
96        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
97            source: value.into(),
98            meta: ::std::default::Default::default(),
99        })
100    }
101}
102impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
103    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
104        match self {
105            Self::CodeBuildNotInServiceRegionException(inner) => inner.meta(),
106            Self::ElasticBeanstalkServiceException(inner) => inner.meta(),
107            Self::InsufficientPrivilegesException(inner) => inner.meta(),
108            Self::InvalidRequestException(inner) => inner.meta(),
109            Self::ManagedActionInvalidStateException(inner) => inner.meta(),
110            Self::OperationInProgressException(inner) => inner.meta(),
111            Self::PlatformVersionStillReferencedException(inner) => inner.meta(),
112            Self::ResourceNotFoundException(inner) => inner.meta(),
113            Self::ResourceTypeNotSupportedException(inner) => inner.meta(),
114            Self::S3LocationNotInServiceRegionException(inner) => inner.meta(),
115            Self::S3SubscriptionRequiredException(inner) => inner.meta(),
116            Self::SourceBundleDeletionException(inner) => inner.meta(),
117            Self::TooManyApplicationVersionsException(inner) => inner.meta(),
118            Self::TooManyApplicationsException(inner) => inner.meta(),
119            Self::TooManyBucketsException(inner) => inner.meta(),
120            Self::TooManyConfigurationTemplatesException(inner) => inner.meta(),
121            Self::TooManyEnvironmentsException(inner) => inner.meta(),
122            Self::TooManyPlatformsException(inner) => inner.meta(),
123            Self::TooManyTagsException(inner) => inner.meta(),
124            Self::Unhandled(inner) => &inner.meta,
125        }
126    }
127}
128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::abort_environment_update::AbortEnvironmentUpdateError, R>> for Error
129where
130    R: Send + Sync + std::fmt::Debug + 'static,
131{
132    fn from(
133        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::abort_environment_update::AbortEnvironmentUpdateError, R>,
134    ) -> Self {
135        match err {
136            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
137            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
138                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
139                source: err.into(),
140            }),
141        }
142    }
143}
144impl From<crate::operation::abort_environment_update::AbortEnvironmentUpdateError> for Error {
145    fn from(err: crate::operation::abort_environment_update::AbortEnvironmentUpdateError) -> Self {
146        match err {
147            crate::operation::abort_environment_update::AbortEnvironmentUpdateError::InsufficientPrivilegesException(inner) => {
148                Error::InsufficientPrivilegesException(inner)
149            }
150            crate::operation::abort_environment_update::AbortEnvironmentUpdateError::Unhandled(inner) => Error::Unhandled(inner),
151        }
152    }
153}
154impl<R>
155    From<
156        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionError, R>,
157    > for Error
158where
159    R: Send + Sync + std::fmt::Debug + 'static,
160{
161    fn from(
162        err: ::aws_smithy_runtime_api::client::result::SdkError<
163            crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionError,
164            R,
165        >,
166    ) -> Self {
167        match err {
168            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
169            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
170                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
171                source: err.into(),
172            }),
173        }
174    }
175}
176impl From<crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionError> for Error {
177    fn from(err: crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionError) -> Self {
178        match err {
179            crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionError::ElasticBeanstalkServiceException(inner) => {
180                Error::ElasticBeanstalkServiceException(inner)
181            }
182            crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionError::ManagedActionInvalidStateException(inner) => {
183                Error::ManagedActionInvalidStateException(inner)
184            }
185            crate::operation::apply_environment_managed_action::ApplyEnvironmentManagedActionError::Unhandled(inner) => Error::Unhandled(inner),
186        }
187    }
188}
189impl<R>
190    From<
191        ::aws_smithy_runtime_api::client::result::SdkError<
192            crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleError,
193            R,
194        >,
195    > for Error
196where
197    R: Send + Sync + std::fmt::Debug + 'static,
198{
199    fn from(
200        err: ::aws_smithy_runtime_api::client::result::SdkError<
201            crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleError,
202            R,
203        >,
204    ) -> Self {
205        match err {
206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
209                source: err.into(),
210            }),
211        }
212    }
213}
214impl From<crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleError> for Error {
215    fn from(err: crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleError) -> Self {
216        match err {
217            crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleError::InsufficientPrivilegesException(
218                inner,
219            ) => Error::InsufficientPrivilegesException(inner),
220            crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleError::Unhandled(inner) => {
221                Error::Unhandled(inner)
222            }
223        }
224    }
225}
226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_dns_availability::CheckDNSAvailabilityError, R>> for Error
227where
228    R: Send + Sync + std::fmt::Debug + 'static,
229{
230    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_dns_availability::CheckDNSAvailabilityError, R>) -> Self {
231        match err {
232            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
233            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
234                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
235                source: err.into(),
236            }),
237        }
238    }
239}
240impl From<crate::operation::check_dns_availability::CheckDNSAvailabilityError> for Error {
241    fn from(err: crate::operation::check_dns_availability::CheckDNSAvailabilityError) -> Self {
242        match err {
243            crate::operation::check_dns_availability::CheckDNSAvailabilityError::Unhandled(inner) => Error::Unhandled(inner),
244        }
245    }
246}
247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::compose_environments::ComposeEnvironmentsError, R>> for Error
248where
249    R: Send + Sync + std::fmt::Debug + 'static,
250{
251    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::compose_environments::ComposeEnvironmentsError, R>) -> Self {
252        match err {
253            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
254            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
255                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
256                source: err.into(),
257            }),
258        }
259    }
260}
261impl From<crate::operation::compose_environments::ComposeEnvironmentsError> for Error {
262    fn from(err: crate::operation::compose_environments::ComposeEnvironmentsError) -> Self {
263        match err {
264            crate::operation::compose_environments::ComposeEnvironmentsError::InsufficientPrivilegesException(inner) => {
265                Error::InsufficientPrivilegesException(inner)
266            }
267            crate::operation::compose_environments::ComposeEnvironmentsError::TooManyEnvironmentsException(inner) => {
268                Error::TooManyEnvironmentsException(inner)
269            }
270            crate::operation::compose_environments::ComposeEnvironmentsError::Unhandled(inner) => Error::Unhandled(inner),
271        }
272    }
273}
274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>> for Error
275where
276    R: Send + Sync + std::fmt::Debug + 'static,
277{
278    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>) -> Self {
279        match err {
280            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
281            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
282                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
283                source: err.into(),
284            }),
285        }
286    }
287}
288impl From<crate::operation::create_application::CreateApplicationError> for Error {
289    fn from(err: crate::operation::create_application::CreateApplicationError) -> Self {
290        match err {
291            crate::operation::create_application::CreateApplicationError::TooManyApplicationsException(inner) => {
292                Error::TooManyApplicationsException(inner)
293            }
294            crate::operation::create_application::CreateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
295        }
296    }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application_version::CreateApplicationVersionError, R>>
299    for Error
300where
301    R: Send + Sync + std::fmt::Debug + 'static,
302{
303    fn from(
304        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application_version::CreateApplicationVersionError, R>,
305    ) -> Self {
306        match err {
307            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
308            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
309                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
310                source: err.into(),
311            }),
312        }
313    }
314}
315impl From<crate::operation::create_application_version::CreateApplicationVersionError> for Error {
316    fn from(err: crate::operation::create_application_version::CreateApplicationVersionError) -> Self {
317        match err {
318            crate::operation::create_application_version::CreateApplicationVersionError::CodeBuildNotInServiceRegionException(inner) => {
319                Error::CodeBuildNotInServiceRegionException(inner)
320            }
321            crate::operation::create_application_version::CreateApplicationVersionError::InsufficientPrivilegesException(inner) => {
322                Error::InsufficientPrivilegesException(inner)
323            }
324            crate::operation::create_application_version::CreateApplicationVersionError::S3LocationNotInServiceRegionException(inner) => {
325                Error::S3LocationNotInServiceRegionException(inner)
326            }
327            crate::operation::create_application_version::CreateApplicationVersionError::TooManyApplicationsException(inner) => {
328                Error::TooManyApplicationsException(inner)
329            }
330            crate::operation::create_application_version::CreateApplicationVersionError::TooManyApplicationVersionsException(inner) => {
331                Error::TooManyApplicationVersionsException(inner)
332            }
333            crate::operation::create_application_version::CreateApplicationVersionError::Unhandled(inner) => Error::Unhandled(inner),
334        }
335    }
336}
337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_template::CreateConfigurationTemplateError, R>>
338    for Error
339where
340    R: Send + Sync + std::fmt::Debug + 'static,
341{
342    fn from(
343        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_template::CreateConfigurationTemplateError, R>,
344    ) -> Self {
345        match err {
346            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349                source: err.into(),
350            }),
351        }
352    }
353}
354impl From<crate::operation::create_configuration_template::CreateConfigurationTemplateError> for Error {
355    fn from(err: crate::operation::create_configuration_template::CreateConfigurationTemplateError) -> Self {
356        match err {
357            crate::operation::create_configuration_template::CreateConfigurationTemplateError::InsufficientPrivilegesException(inner) => {
358                Error::InsufficientPrivilegesException(inner)
359            }
360            crate::operation::create_configuration_template::CreateConfigurationTemplateError::TooManyBucketsException(inner) => {
361                Error::TooManyBucketsException(inner)
362            }
363            crate::operation::create_configuration_template::CreateConfigurationTemplateError::TooManyConfigurationTemplatesException(inner) => {
364                Error::TooManyConfigurationTemplatesException(inner)
365            }
366            crate::operation::create_configuration_template::CreateConfigurationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
367        }
368    }
369}
370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment::CreateEnvironmentError, R>> for Error
371where
372    R: Send + Sync + std::fmt::Debug + 'static,
373{
374    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment::CreateEnvironmentError, R>) -> Self {
375        match err {
376            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
377            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
378                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
379                source: err.into(),
380            }),
381        }
382    }
383}
384impl From<crate::operation::create_environment::CreateEnvironmentError> for Error {
385    fn from(err: crate::operation::create_environment::CreateEnvironmentError) -> Self {
386        match err {
387            crate::operation::create_environment::CreateEnvironmentError::InsufficientPrivilegesException(inner) => {
388                Error::InsufficientPrivilegesException(inner)
389            }
390            crate::operation::create_environment::CreateEnvironmentError::TooManyEnvironmentsException(inner) => {
391                Error::TooManyEnvironmentsException(inner)
392            }
393            crate::operation::create_environment::CreateEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
394        }
395    }
396}
397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_platform_version::CreatePlatformVersionError, R>> for Error
398where
399    R: Send + Sync + std::fmt::Debug + 'static,
400{
401    fn from(
402        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_platform_version::CreatePlatformVersionError, R>,
403    ) -> Self {
404        match err {
405            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
406            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
407                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
408                source: err.into(),
409            }),
410        }
411    }
412}
413impl From<crate::operation::create_platform_version::CreatePlatformVersionError> for Error {
414    fn from(err: crate::operation::create_platform_version::CreatePlatformVersionError) -> Self {
415        match err {
416            crate::operation::create_platform_version::CreatePlatformVersionError::ElasticBeanstalkServiceException(inner) => {
417                Error::ElasticBeanstalkServiceException(inner)
418            }
419            crate::operation::create_platform_version::CreatePlatformVersionError::InsufficientPrivilegesException(inner) => {
420                Error::InsufficientPrivilegesException(inner)
421            }
422            crate::operation::create_platform_version::CreatePlatformVersionError::TooManyPlatformsException(inner) => {
423                Error::TooManyPlatformsException(inner)
424            }
425            crate::operation::create_platform_version::CreatePlatformVersionError::Unhandled(inner) => Error::Unhandled(inner),
426        }
427    }
428}
429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_storage_location::CreateStorageLocationError, R>> for Error
430where
431    R: Send + Sync + std::fmt::Debug + 'static,
432{
433    fn from(
434        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_storage_location::CreateStorageLocationError, R>,
435    ) -> Self {
436        match err {
437            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
438            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
439                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
440                source: err.into(),
441            }),
442        }
443    }
444}
445impl From<crate::operation::create_storage_location::CreateStorageLocationError> for Error {
446    fn from(err: crate::operation::create_storage_location::CreateStorageLocationError) -> Self {
447        match err {
448            crate::operation::create_storage_location::CreateStorageLocationError::InsufficientPrivilegesException(inner) => {
449                Error::InsufficientPrivilegesException(inner)
450            }
451            crate::operation::create_storage_location::CreateStorageLocationError::S3SubscriptionRequiredException(inner) => {
452                Error::S3SubscriptionRequiredException(inner)
453            }
454            crate::operation::create_storage_location::CreateStorageLocationError::TooManyBucketsException(inner) => {
455                Error::TooManyBucketsException(inner)
456            }
457            crate::operation::create_storage_location::CreateStorageLocationError::Unhandled(inner) => Error::Unhandled(inner),
458        }
459    }
460}
461impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
462where
463    R: Send + Sync + std::fmt::Debug + 'static,
464{
465    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
466        match err {
467            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
468            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
469                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
470                source: err.into(),
471            }),
472        }
473    }
474}
475impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
476    fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
477        match err {
478            crate::operation::delete_application::DeleteApplicationError::OperationInProgressException(inner) => {
479                Error::OperationInProgressException(inner)
480            }
481            crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
482        }
483    }
484}
485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application_version::DeleteApplicationVersionError, R>>
486    for Error
487where
488    R: Send + Sync + std::fmt::Debug + 'static,
489{
490    fn from(
491        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application_version::DeleteApplicationVersionError, R>,
492    ) -> Self {
493        match err {
494            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
495            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
496                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
497                source: err.into(),
498            }),
499        }
500    }
501}
502impl From<crate::operation::delete_application_version::DeleteApplicationVersionError> for Error {
503    fn from(err: crate::operation::delete_application_version::DeleteApplicationVersionError) -> Self {
504        match err {
505            crate::operation::delete_application_version::DeleteApplicationVersionError::InsufficientPrivilegesException(inner) => {
506                Error::InsufficientPrivilegesException(inner)
507            }
508            crate::operation::delete_application_version::DeleteApplicationVersionError::OperationInProgressException(inner) => {
509                Error::OperationInProgressException(inner)
510            }
511            crate::operation::delete_application_version::DeleteApplicationVersionError::S3LocationNotInServiceRegionException(inner) => {
512                Error::S3LocationNotInServiceRegionException(inner)
513            }
514            crate::operation::delete_application_version::DeleteApplicationVersionError::SourceBundleDeletionException(inner) => {
515                Error::SourceBundleDeletionException(inner)
516            }
517            crate::operation::delete_application_version::DeleteApplicationVersionError::Unhandled(inner) => Error::Unhandled(inner),
518        }
519    }
520}
521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_template::DeleteConfigurationTemplateError, R>>
522    for Error
523where
524    R: Send + Sync + std::fmt::Debug + 'static,
525{
526    fn from(
527        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_template::DeleteConfigurationTemplateError, R>,
528    ) -> Self {
529        match err {
530            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
531            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
532                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
533                source: err.into(),
534            }),
535        }
536    }
537}
538impl From<crate::operation::delete_configuration_template::DeleteConfigurationTemplateError> for Error {
539    fn from(err: crate::operation::delete_configuration_template::DeleteConfigurationTemplateError) -> Self {
540        match err {
541            crate::operation::delete_configuration_template::DeleteConfigurationTemplateError::OperationInProgressException(inner) => {
542                Error::OperationInProgressException(inner)
543            }
544            crate::operation::delete_configuration_template::DeleteConfigurationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
545        }
546    }
547}
548impl<R>
549    From<
550        ::aws_smithy_runtime_api::client::result::SdkError<
551            crate::operation::delete_environment_configuration::DeleteEnvironmentConfigurationError,
552            R,
553        >,
554    > for Error
555where
556    R: Send + Sync + std::fmt::Debug + 'static,
557{
558    fn from(
559        err: ::aws_smithy_runtime_api::client::result::SdkError<
560            crate::operation::delete_environment_configuration::DeleteEnvironmentConfigurationError,
561            R,
562        >,
563    ) -> Self {
564        match err {
565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
568                source: err.into(),
569            }),
570        }
571    }
572}
573impl From<crate::operation::delete_environment_configuration::DeleteEnvironmentConfigurationError> for Error {
574    fn from(err: crate::operation::delete_environment_configuration::DeleteEnvironmentConfigurationError) -> Self {
575        match err {
576            crate::operation::delete_environment_configuration::DeleteEnvironmentConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
577        }
578    }
579}
580impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_platform_version::DeletePlatformVersionError, R>> for Error
581where
582    R: Send + Sync + std::fmt::Debug + 'static,
583{
584    fn from(
585        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_platform_version::DeletePlatformVersionError, R>,
586    ) -> Self {
587        match err {
588            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
589            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
590                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
591                source: err.into(),
592            }),
593        }
594    }
595}
596impl From<crate::operation::delete_platform_version::DeletePlatformVersionError> for Error {
597    fn from(err: crate::operation::delete_platform_version::DeletePlatformVersionError) -> Self {
598        match err {
599            crate::operation::delete_platform_version::DeletePlatformVersionError::ElasticBeanstalkServiceException(inner) => {
600                Error::ElasticBeanstalkServiceException(inner)
601            }
602            crate::operation::delete_platform_version::DeletePlatformVersionError::InsufficientPrivilegesException(inner) => {
603                Error::InsufficientPrivilegesException(inner)
604            }
605            crate::operation::delete_platform_version::DeletePlatformVersionError::OperationInProgressException(inner) => {
606                Error::OperationInProgressException(inner)
607            }
608            crate::operation::delete_platform_version::DeletePlatformVersionError::PlatformVersionStillReferencedException(inner) => {
609                Error::PlatformVersionStillReferencedException(inner)
610            }
611            crate::operation::delete_platform_version::DeletePlatformVersionError::Unhandled(inner) => Error::Unhandled(inner),
612        }
613    }
614}
615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
616    for Error
617where
618    R: Send + Sync + std::fmt::Debug + 'static,
619{
620    fn from(
621        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
622    ) -> Self {
623        match err {
624            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
625            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
626                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
627                source: err.into(),
628            }),
629        }
630    }
631}
632impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
633    fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
634        match err {
635            crate::operation::describe_account_attributes::DescribeAccountAttributesError::InsufficientPrivilegesException(inner) => {
636                Error::InsufficientPrivilegesException(inner)
637            }
638            crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
639        }
640    }
641}
642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>> for Error
643where
644    R: Send + Sync + std::fmt::Debug + 'static,
645{
646    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>) -> Self {
647        match err {
648            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
649            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
650                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
651                source: err.into(),
652            }),
653        }
654    }
655}
656impl From<crate::operation::describe_applications::DescribeApplicationsError> for Error {
657    fn from(err: crate::operation::describe_applications::DescribeApplicationsError) -> Self {
658        match err {
659            crate::operation::describe_applications::DescribeApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
660        }
661    }
662}
663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_application_versions::DescribeApplicationVersionsError, R>>
664    for Error
665where
666    R: Send + Sync + std::fmt::Debug + 'static,
667{
668    fn from(
669        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_application_versions::DescribeApplicationVersionsError, R>,
670    ) -> Self {
671        match err {
672            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
673            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
674                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
675                source: err.into(),
676            }),
677        }
678    }
679}
680impl From<crate::operation::describe_application_versions::DescribeApplicationVersionsError> for Error {
681    fn from(err: crate::operation::describe_application_versions::DescribeApplicationVersionsError) -> Self {
682        match err {
683            crate::operation::describe_application_versions::DescribeApplicationVersionsError::Unhandled(inner) => Error::Unhandled(inner),
684        }
685    }
686}
687impl<R>
688    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_options::DescribeConfigurationOptionsError, R>>
689    for Error
690where
691    R: Send + Sync + std::fmt::Debug + 'static,
692{
693    fn from(
694        err: ::aws_smithy_runtime_api::client::result::SdkError<
695            crate::operation::describe_configuration_options::DescribeConfigurationOptionsError,
696            R,
697        >,
698    ) -> Self {
699        match err {
700            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
701            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
702                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
703                source: err.into(),
704            }),
705        }
706    }
707}
708impl From<crate::operation::describe_configuration_options::DescribeConfigurationOptionsError> for Error {
709    fn from(err: crate::operation::describe_configuration_options::DescribeConfigurationOptionsError) -> Self {
710        match err {
711            crate::operation::describe_configuration_options::DescribeConfigurationOptionsError::TooManyBucketsException(inner) => {
712                Error::TooManyBucketsException(inner)
713            }
714            crate::operation::describe_configuration_options::DescribeConfigurationOptionsError::Unhandled(inner) => Error::Unhandled(inner),
715        }
716    }
717}
718impl<R>
719    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_settings::DescribeConfigurationSettingsError, R>>
720    for Error
721where
722    R: Send + Sync + std::fmt::Debug + 'static,
723{
724    fn from(
725        err: ::aws_smithy_runtime_api::client::result::SdkError<
726            crate::operation::describe_configuration_settings::DescribeConfigurationSettingsError,
727            R,
728        >,
729    ) -> Self {
730        match err {
731            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
732            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
733                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
734                source: err.into(),
735            }),
736        }
737    }
738}
739impl From<crate::operation::describe_configuration_settings::DescribeConfigurationSettingsError> for Error {
740    fn from(err: crate::operation::describe_configuration_settings::DescribeConfigurationSettingsError) -> Self {
741        match err {
742            crate::operation::describe_configuration_settings::DescribeConfigurationSettingsError::TooManyBucketsException(inner) => {
743                Error::TooManyBucketsException(inner)
744            }
745            crate::operation::describe_configuration_settings::DescribeConfigurationSettingsError::Unhandled(inner) => Error::Unhandled(inner),
746        }
747    }
748}
749impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_environment_health::DescribeEnvironmentHealthError, R>>
750    for Error
751where
752    R: Send + Sync + std::fmt::Debug + 'static,
753{
754    fn from(
755        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_environment_health::DescribeEnvironmentHealthError, R>,
756    ) -> Self {
757        match err {
758            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
759            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
760                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
761                source: err.into(),
762            }),
763        }
764    }
765}
766impl From<crate::operation::describe_environment_health::DescribeEnvironmentHealthError> for Error {
767    fn from(err: crate::operation::describe_environment_health::DescribeEnvironmentHealthError) -> Self {
768        match err {
769            crate::operation::describe_environment_health::DescribeEnvironmentHealthError::ElasticBeanstalkServiceException(inner) => {
770                Error::ElasticBeanstalkServiceException(inner)
771            }
772            crate::operation::describe_environment_health::DescribeEnvironmentHealthError::InvalidRequestException(inner) => {
773                Error::InvalidRequestException(inner)
774            }
775            crate::operation::describe_environment_health::DescribeEnvironmentHealthError::Unhandled(inner) => Error::Unhandled(inner),
776        }
777    }
778}
779impl<R>
780    From<
781        ::aws_smithy_runtime_api::client::result::SdkError<
782            crate::operation::describe_environment_managed_action_history::DescribeEnvironmentManagedActionHistoryError,
783            R,
784        >,
785    > for Error
786where
787    R: Send + Sync + std::fmt::Debug + 'static,
788{
789    fn from(
790        err: ::aws_smithy_runtime_api::client::result::SdkError<
791            crate::operation::describe_environment_managed_action_history::DescribeEnvironmentManagedActionHistoryError,
792            R,
793        >,
794    ) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::describe_environment_managed_action_history::DescribeEnvironmentManagedActionHistoryError> for Error {
805    fn from(err: crate::operation::describe_environment_managed_action_history::DescribeEnvironmentManagedActionHistoryError) -> Self {
806        match err {
807            crate::operation::describe_environment_managed_action_history::DescribeEnvironmentManagedActionHistoryError::ElasticBeanstalkServiceException(inner) => Error::ElasticBeanstalkServiceException(inner),
808            crate::operation::describe_environment_managed_action_history::DescribeEnvironmentManagedActionHistoryError::Unhandled(inner) => Error::Unhandled(inner),
809        }
810    }
811}
812impl<R>
813    From<
814        ::aws_smithy_runtime_api::client::result::SdkError<
815            crate::operation::describe_environment_managed_actions::DescribeEnvironmentManagedActionsError,
816            R,
817        >,
818    > for Error
819where
820    R: Send + Sync + std::fmt::Debug + 'static,
821{
822    fn from(
823        err: ::aws_smithy_runtime_api::client::result::SdkError<
824            crate::operation::describe_environment_managed_actions::DescribeEnvironmentManagedActionsError,
825            R,
826        >,
827    ) -> Self {
828        match err {
829            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
830            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
831                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
832                source: err.into(),
833            }),
834        }
835    }
836}
837impl From<crate::operation::describe_environment_managed_actions::DescribeEnvironmentManagedActionsError> for Error {
838    fn from(err: crate::operation::describe_environment_managed_actions::DescribeEnvironmentManagedActionsError) -> Self {
839        match err {
840            crate::operation::describe_environment_managed_actions::DescribeEnvironmentManagedActionsError::ElasticBeanstalkServiceException(
841                inner,
842            ) => Error::ElasticBeanstalkServiceException(inner),
843            crate::operation::describe_environment_managed_actions::DescribeEnvironmentManagedActionsError::Unhandled(inner) => {
844                Error::Unhandled(inner)
845            }
846        }
847    }
848}
849impl<R>
850    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_environment_resources::DescribeEnvironmentResourcesError, R>>
851    for Error
852where
853    R: Send + Sync + std::fmt::Debug + 'static,
854{
855    fn from(
856        err: ::aws_smithy_runtime_api::client::result::SdkError<
857            crate::operation::describe_environment_resources::DescribeEnvironmentResourcesError,
858            R,
859        >,
860    ) -> Self {
861        match err {
862            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865                source: err.into(),
866            }),
867        }
868    }
869}
870impl From<crate::operation::describe_environment_resources::DescribeEnvironmentResourcesError> for Error {
871    fn from(err: crate::operation::describe_environment_resources::DescribeEnvironmentResourcesError) -> Self {
872        match err {
873            crate::operation::describe_environment_resources::DescribeEnvironmentResourcesError::InsufficientPrivilegesException(inner) => {
874                Error::InsufficientPrivilegesException(inner)
875            }
876            crate::operation::describe_environment_resources::DescribeEnvironmentResourcesError::Unhandled(inner) => Error::Unhandled(inner),
877        }
878    }
879}
880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_environments::DescribeEnvironmentsError, R>> for Error
881where
882    R: Send + Sync + std::fmt::Debug + 'static,
883{
884    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_environments::DescribeEnvironmentsError, R>) -> Self {
885        match err {
886            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
887            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
888                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
889                source: err.into(),
890            }),
891        }
892    }
893}
894impl From<crate::operation::describe_environments::DescribeEnvironmentsError> for Error {
895    fn from(err: crate::operation::describe_environments::DescribeEnvironmentsError) -> Self {
896        match err {
897            crate::operation::describe_environments::DescribeEnvironmentsError::Unhandled(inner) => Error::Unhandled(inner),
898        }
899    }
900}
901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>> for Error
902where
903    R: Send + Sync + std::fmt::Debug + 'static,
904{
905    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>) -> Self {
906        match err {
907            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
908            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
909                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
910                source: err.into(),
911            }),
912        }
913    }
914}
915impl From<crate::operation::describe_events::DescribeEventsError> for Error {
916    fn from(err: crate::operation::describe_events::DescribeEventsError) -> Self {
917        match err {
918            crate::operation::describe_events::DescribeEventsError::Unhandled(inner) => Error::Unhandled(inner),
919        }
920    }
921}
922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances_health::DescribeInstancesHealthError, R>>
923    for Error
924where
925    R: Send + Sync + std::fmt::Debug + 'static,
926{
927    fn from(
928        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instances_health::DescribeInstancesHealthError, R>,
929    ) -> Self {
930        match err {
931            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
932            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
933                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
934                source: err.into(),
935            }),
936        }
937    }
938}
939impl From<crate::operation::describe_instances_health::DescribeInstancesHealthError> for Error {
940    fn from(err: crate::operation::describe_instances_health::DescribeInstancesHealthError) -> Self {
941        match err {
942            crate::operation::describe_instances_health::DescribeInstancesHealthError::ElasticBeanstalkServiceException(inner) => {
943                Error::ElasticBeanstalkServiceException(inner)
944            }
945            crate::operation::describe_instances_health::DescribeInstancesHealthError::InvalidRequestException(inner) => {
946                Error::InvalidRequestException(inner)
947            }
948            crate::operation::describe_instances_health::DescribeInstancesHealthError::Unhandled(inner) => Error::Unhandled(inner),
949        }
950    }
951}
952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_platform_version::DescribePlatformVersionError, R>>
953    for Error
954where
955    R: Send + Sync + std::fmt::Debug + 'static,
956{
957    fn from(
958        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_platform_version::DescribePlatformVersionError, R>,
959    ) -> Self {
960        match err {
961            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964                source: err.into(),
965            }),
966        }
967    }
968}
969impl From<crate::operation::describe_platform_version::DescribePlatformVersionError> for Error {
970    fn from(err: crate::operation::describe_platform_version::DescribePlatformVersionError) -> Self {
971        match err {
972            crate::operation::describe_platform_version::DescribePlatformVersionError::ElasticBeanstalkServiceException(inner) => {
973                Error::ElasticBeanstalkServiceException(inner)
974            }
975            crate::operation::describe_platform_version::DescribePlatformVersionError::InsufficientPrivilegesException(inner) => {
976                Error::InsufficientPrivilegesException(inner)
977            }
978            crate::operation::describe_platform_version::DescribePlatformVersionError::Unhandled(inner) => Error::Unhandled(inner),
979        }
980    }
981}
982impl<R>
983    From<
984        ::aws_smithy_runtime_api::client::result::SdkError<
985            crate::operation::disassociate_environment_operations_role::DisassociateEnvironmentOperationsRoleError,
986            R,
987        >,
988    > for Error
989where
990    R: Send + Sync + std::fmt::Debug + 'static,
991{
992    fn from(
993        err: ::aws_smithy_runtime_api::client::result::SdkError<
994            crate::operation::disassociate_environment_operations_role::DisassociateEnvironmentOperationsRoleError,
995            R,
996        >,
997    ) -> Self {
998        match err {
999            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1000            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1001                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1002                source: err.into(),
1003            }),
1004        }
1005    }
1006}
1007impl From<crate::operation::disassociate_environment_operations_role::DisassociateEnvironmentOperationsRoleError> for Error {
1008    fn from(err: crate::operation::disassociate_environment_operations_role::DisassociateEnvironmentOperationsRoleError) -> Self {
1009        match err {
1010            crate::operation::disassociate_environment_operations_role::DisassociateEnvironmentOperationsRoleError::InsufficientPrivilegesException(inner) => Error::InsufficientPrivilegesException(inner),
1011            crate::operation::disassociate_environment_operations_role::DisassociateEnvironmentOperationsRoleError::Unhandled(inner) => Error::Unhandled(inner),
1012        }
1013    }
1014}
1015impl<R>
1016    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_available_solution_stacks::ListAvailableSolutionStacksError, R>>
1017    for Error
1018where
1019    R: Send + Sync + std::fmt::Debug + 'static,
1020{
1021    fn from(
1022        err: ::aws_smithy_runtime_api::client::result::SdkError<
1023            crate::operation::list_available_solution_stacks::ListAvailableSolutionStacksError,
1024            R,
1025        >,
1026    ) -> Self {
1027        match err {
1028            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1029            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1030                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1031                source: err.into(),
1032            }),
1033        }
1034    }
1035}
1036impl From<crate::operation::list_available_solution_stacks::ListAvailableSolutionStacksError> for Error {
1037    fn from(err: crate::operation::list_available_solution_stacks::ListAvailableSolutionStacksError) -> Self {
1038        match err {
1039            crate::operation::list_available_solution_stacks::ListAvailableSolutionStacksError::Unhandled(inner) => Error::Unhandled(inner),
1040        }
1041    }
1042}
1043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_platform_branches::ListPlatformBranchesError, R>> for Error
1044where
1045    R: Send + Sync + std::fmt::Debug + 'static,
1046{
1047    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_platform_branches::ListPlatformBranchesError, R>) -> Self {
1048        match err {
1049            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1050            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1051                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1052                source: err.into(),
1053            }),
1054        }
1055    }
1056}
1057impl From<crate::operation::list_platform_branches::ListPlatformBranchesError> for Error {
1058    fn from(err: crate::operation::list_platform_branches::ListPlatformBranchesError) -> Self {
1059        match err {
1060            crate::operation::list_platform_branches::ListPlatformBranchesError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_platform_versions::ListPlatformVersionsError, R>> for Error
1065where
1066    R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_platform_versions::ListPlatformVersionsError, R>) -> Self {
1069        match err {
1070            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1071            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1072                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1073                source: err.into(),
1074            }),
1075        }
1076    }
1077}
1078impl From<crate::operation::list_platform_versions::ListPlatformVersionsError> for Error {
1079    fn from(err: crate::operation::list_platform_versions::ListPlatformVersionsError) -> Self {
1080        match err {
1081            crate::operation::list_platform_versions::ListPlatformVersionsError::ElasticBeanstalkServiceException(inner) => {
1082                Error::ElasticBeanstalkServiceException(inner)
1083            }
1084            crate::operation::list_platform_versions::ListPlatformVersionsError::InsufficientPrivilegesException(inner) => {
1085                Error::InsufficientPrivilegesException(inner)
1086            }
1087            crate::operation::list_platform_versions::ListPlatformVersionsError::Unhandled(inner) => Error::Unhandled(inner),
1088        }
1089    }
1090}
1091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1092where
1093    R: Send + Sync + std::fmt::Debug + 'static,
1094{
1095    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1096        match err {
1097            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1098            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1099                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1100                source: err.into(),
1101            }),
1102        }
1103    }
1104}
1105impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1106    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1107        match err {
1108            crate::operation::list_tags_for_resource::ListTagsForResourceError::InsufficientPrivilegesException(inner) => {
1109                Error::InsufficientPrivilegesException(inner)
1110            }
1111            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1112                Error::ResourceNotFoundException(inner)
1113            }
1114            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceTypeNotSupportedException(inner) => {
1115                Error::ResourceTypeNotSupportedException(inner)
1116            }
1117            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1118        }
1119    }
1120}
1121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rebuild_environment::RebuildEnvironmentError, R>> for Error
1122where
1123    R: Send + Sync + std::fmt::Debug + 'static,
1124{
1125    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rebuild_environment::RebuildEnvironmentError, R>) -> Self {
1126        match err {
1127            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1128            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1129                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1130                source: err.into(),
1131            }),
1132        }
1133    }
1134}
1135impl From<crate::operation::rebuild_environment::RebuildEnvironmentError> for Error {
1136    fn from(err: crate::operation::rebuild_environment::RebuildEnvironmentError) -> Self {
1137        match err {
1138            crate::operation::rebuild_environment::RebuildEnvironmentError::InsufficientPrivilegesException(inner) => {
1139                Error::InsufficientPrivilegesException(inner)
1140            }
1141            crate::operation::rebuild_environment::RebuildEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1142        }
1143    }
1144}
1145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_environment_info::RequestEnvironmentInfoError, R>> for Error
1146where
1147    R: Send + Sync + std::fmt::Debug + 'static,
1148{
1149    fn from(
1150        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_environment_info::RequestEnvironmentInfoError, R>,
1151    ) -> Self {
1152        match err {
1153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156                source: err.into(),
1157            }),
1158        }
1159    }
1160}
1161impl From<crate::operation::request_environment_info::RequestEnvironmentInfoError> for Error {
1162    fn from(err: crate::operation::request_environment_info::RequestEnvironmentInfoError) -> Self {
1163        match err {
1164            crate::operation::request_environment_info::RequestEnvironmentInfoError::Unhandled(inner) => Error::Unhandled(inner),
1165        }
1166    }
1167}
1168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restart_app_server::RestartAppServerError, R>> for Error
1169where
1170    R: Send + Sync + std::fmt::Debug + 'static,
1171{
1172    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restart_app_server::RestartAppServerError, R>) -> Self {
1173        match err {
1174            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1175            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1176                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1177                source: err.into(),
1178            }),
1179        }
1180    }
1181}
1182impl From<crate::operation::restart_app_server::RestartAppServerError> for Error {
1183    fn from(err: crate::operation::restart_app_server::RestartAppServerError) -> Self {
1184        match err {
1185            crate::operation::restart_app_server::RestartAppServerError::Unhandled(inner) => Error::Unhandled(inner),
1186        }
1187    }
1188}
1189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_environment_info::RetrieveEnvironmentInfoError, R>>
1190    for Error
1191where
1192    R: Send + Sync + std::fmt::Debug + 'static,
1193{
1194    fn from(
1195        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_environment_info::RetrieveEnvironmentInfoError, R>,
1196    ) -> Self {
1197        match err {
1198            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1199            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1200                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1201                source: err.into(),
1202            }),
1203        }
1204    }
1205}
1206impl From<crate::operation::retrieve_environment_info::RetrieveEnvironmentInfoError> for Error {
1207    fn from(err: crate::operation::retrieve_environment_info::RetrieveEnvironmentInfoError) -> Self {
1208        match err {
1209            crate::operation::retrieve_environment_info::RetrieveEnvironmentInfoError::Unhandled(inner) => Error::Unhandled(inner),
1210        }
1211    }
1212}
1213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::swap_environment_cnames::SwapEnvironmentCNAMEsError, R>> for Error
1214where
1215    R: Send + Sync + std::fmt::Debug + 'static,
1216{
1217    fn from(
1218        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::swap_environment_cnames::SwapEnvironmentCNAMEsError, R>,
1219    ) -> Self {
1220        match err {
1221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1224                source: err.into(),
1225            }),
1226        }
1227    }
1228}
1229impl From<crate::operation::swap_environment_cnames::SwapEnvironmentCNAMEsError> for Error {
1230    fn from(err: crate::operation::swap_environment_cnames::SwapEnvironmentCNAMEsError) -> Self {
1231        match err {
1232            crate::operation::swap_environment_cnames::SwapEnvironmentCNAMEsError::Unhandled(inner) => Error::Unhandled(inner),
1233        }
1234    }
1235}
1236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_environment::TerminateEnvironmentError, R>> for Error
1237where
1238    R: Send + Sync + std::fmt::Debug + 'static,
1239{
1240    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_environment::TerminateEnvironmentError, R>) -> Self {
1241        match err {
1242            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1243            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1244                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1245                source: err.into(),
1246            }),
1247        }
1248    }
1249}
1250impl From<crate::operation::terminate_environment::TerminateEnvironmentError> for Error {
1251    fn from(err: crate::operation::terminate_environment::TerminateEnvironmentError) -> Self {
1252        match err {
1253            crate::operation::terminate_environment::TerminateEnvironmentError::InsufficientPrivilegesException(inner) => {
1254                Error::InsufficientPrivilegesException(inner)
1255            }
1256            crate::operation::terminate_environment::TerminateEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1257        }
1258    }
1259}
1260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
1261where
1262    R: Send + Sync + std::fmt::Debug + 'static,
1263{
1264    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
1265        match err {
1266            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1267            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1268                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1269                source: err.into(),
1270            }),
1271        }
1272    }
1273}
1274impl From<crate::operation::update_application::UpdateApplicationError> for Error {
1275    fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
1276        match err {
1277            crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
1278        }
1279    }
1280}
1281impl<R>
1282    From<
1283        ::aws_smithy_runtime_api::client::result::SdkError<
1284            crate::operation::update_application_resource_lifecycle::UpdateApplicationResourceLifecycleError,
1285            R,
1286        >,
1287    > for Error
1288where
1289    R: Send + Sync + std::fmt::Debug + 'static,
1290{
1291    fn from(
1292        err: ::aws_smithy_runtime_api::client::result::SdkError<
1293            crate::operation::update_application_resource_lifecycle::UpdateApplicationResourceLifecycleError,
1294            R,
1295        >,
1296    ) -> Self {
1297        match err {
1298            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1299            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1300                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1301                source: err.into(),
1302            }),
1303        }
1304    }
1305}
1306impl From<crate::operation::update_application_resource_lifecycle::UpdateApplicationResourceLifecycleError> for Error {
1307    fn from(err: crate::operation::update_application_resource_lifecycle::UpdateApplicationResourceLifecycleError) -> Self {
1308        match err {
1309            crate::operation::update_application_resource_lifecycle::UpdateApplicationResourceLifecycleError::InsufficientPrivilegesException(
1310                inner,
1311            ) => Error::InsufficientPrivilegesException(inner),
1312            crate::operation::update_application_resource_lifecycle::UpdateApplicationResourceLifecycleError::Unhandled(inner) => {
1313                Error::Unhandled(inner)
1314            }
1315        }
1316    }
1317}
1318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application_version::UpdateApplicationVersionError, R>>
1319    for Error
1320where
1321    R: Send + Sync + std::fmt::Debug + 'static,
1322{
1323    fn from(
1324        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application_version::UpdateApplicationVersionError, R>,
1325    ) -> Self {
1326        match err {
1327            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1328            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1329                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1330                source: err.into(),
1331            }),
1332        }
1333    }
1334}
1335impl From<crate::operation::update_application_version::UpdateApplicationVersionError> for Error {
1336    fn from(err: crate::operation::update_application_version::UpdateApplicationVersionError) -> Self {
1337        match err {
1338            crate::operation::update_application_version::UpdateApplicationVersionError::Unhandled(inner) => Error::Unhandled(inner),
1339        }
1340    }
1341}
1342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration_template::UpdateConfigurationTemplateError, R>>
1343    for Error
1344where
1345    R: Send + Sync + std::fmt::Debug + 'static,
1346{
1347    fn from(
1348        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration_template::UpdateConfigurationTemplateError, R>,
1349    ) -> Self {
1350        match err {
1351            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1352            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1353                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1354                source: err.into(),
1355            }),
1356        }
1357    }
1358}
1359impl From<crate::operation::update_configuration_template::UpdateConfigurationTemplateError> for Error {
1360    fn from(err: crate::operation::update_configuration_template::UpdateConfigurationTemplateError) -> Self {
1361        match err {
1362            crate::operation::update_configuration_template::UpdateConfigurationTemplateError::InsufficientPrivilegesException(inner) => {
1363                Error::InsufficientPrivilegesException(inner)
1364            }
1365            crate::operation::update_configuration_template::UpdateConfigurationTemplateError::TooManyBucketsException(inner) => {
1366                Error::TooManyBucketsException(inner)
1367            }
1368            crate::operation::update_configuration_template::UpdateConfigurationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1369        }
1370    }
1371}
1372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment::UpdateEnvironmentError, R>> for Error
1373where
1374    R: Send + Sync + std::fmt::Debug + 'static,
1375{
1376    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment::UpdateEnvironmentError, R>) -> Self {
1377        match err {
1378            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1379            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1380                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1381                source: err.into(),
1382            }),
1383        }
1384    }
1385}
1386impl From<crate::operation::update_environment::UpdateEnvironmentError> for Error {
1387    fn from(err: crate::operation::update_environment::UpdateEnvironmentError) -> Self {
1388        match err {
1389            crate::operation::update_environment::UpdateEnvironmentError::InsufficientPrivilegesException(inner) => {
1390                Error::InsufficientPrivilegesException(inner)
1391            }
1392            crate::operation::update_environment::UpdateEnvironmentError::TooManyBucketsException(inner) => Error::TooManyBucketsException(inner),
1393            crate::operation::update_environment::UpdateEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1394        }
1395    }
1396}
1397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tags_for_resource::UpdateTagsForResourceError, R>> for Error
1398where
1399    R: Send + Sync + std::fmt::Debug + 'static,
1400{
1401    fn from(
1402        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tags_for_resource::UpdateTagsForResourceError, R>,
1403    ) -> Self {
1404        match err {
1405            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1406            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1407                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1408                source: err.into(),
1409            }),
1410        }
1411    }
1412}
1413impl From<crate::operation::update_tags_for_resource::UpdateTagsForResourceError> for Error {
1414    fn from(err: crate::operation::update_tags_for_resource::UpdateTagsForResourceError) -> Self {
1415        match err {
1416            crate::operation::update_tags_for_resource::UpdateTagsForResourceError::InsufficientPrivilegesException(inner) => {
1417                Error::InsufficientPrivilegesException(inner)
1418            }
1419            crate::operation::update_tags_for_resource::UpdateTagsForResourceError::OperationInProgressException(inner) => {
1420                Error::OperationInProgressException(inner)
1421            }
1422            crate::operation::update_tags_for_resource::UpdateTagsForResourceError::ResourceNotFoundException(inner) => {
1423                Error::ResourceNotFoundException(inner)
1424            }
1425            crate::operation::update_tags_for_resource::UpdateTagsForResourceError::ResourceTypeNotSupportedException(inner) => {
1426                Error::ResourceTypeNotSupportedException(inner)
1427            }
1428            crate::operation::update_tags_for_resource::UpdateTagsForResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1429            crate::operation::update_tags_for_resource::UpdateTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1430        }
1431    }
1432}
1433impl<R>
1434    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_configuration_settings::ValidateConfigurationSettingsError, R>>
1435    for Error
1436where
1437    R: Send + Sync + std::fmt::Debug + 'static,
1438{
1439    fn from(
1440        err: ::aws_smithy_runtime_api::client::result::SdkError<
1441            crate::operation::validate_configuration_settings::ValidateConfigurationSettingsError,
1442            R,
1443        >,
1444    ) -> Self {
1445        match err {
1446            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1447            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1448                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1449                source: err.into(),
1450            }),
1451        }
1452    }
1453}
1454impl From<crate::operation::validate_configuration_settings::ValidateConfigurationSettingsError> for Error {
1455    fn from(err: crate::operation::validate_configuration_settings::ValidateConfigurationSettingsError) -> Self {
1456        match err {
1457            crate::operation::validate_configuration_settings::ValidateConfigurationSettingsError::InsufficientPrivilegesException(inner) => {
1458                Error::InsufficientPrivilegesException(inner)
1459            }
1460            crate::operation::validate_configuration_settings::ValidateConfigurationSettingsError::TooManyBucketsException(inner) => {
1461                Error::TooManyBucketsException(inner)
1462            }
1463            crate::operation::validate_configuration_settings::ValidateConfigurationSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1464        }
1465    }
1466}
1467impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1468where
1469    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1470    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1471{
1472    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1473        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1474            meta: ::std::default::Default::default(),
1475            source: err.into(),
1476        })
1477    }
1478}
1479impl ::std::error::Error for Error {
1480    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1481        match self {
1482            Error::CodeBuildNotInServiceRegionException(inner) => inner.source(),
1483            Error::ElasticBeanstalkServiceException(inner) => inner.source(),
1484            Error::InsufficientPrivilegesException(inner) => inner.source(),
1485            Error::InvalidRequestException(inner) => inner.source(),
1486            Error::ManagedActionInvalidStateException(inner) => inner.source(),
1487            Error::OperationInProgressException(inner) => inner.source(),
1488            Error::PlatformVersionStillReferencedException(inner) => inner.source(),
1489            Error::ResourceNotFoundException(inner) => inner.source(),
1490            Error::ResourceTypeNotSupportedException(inner) => inner.source(),
1491            Error::S3LocationNotInServiceRegionException(inner) => inner.source(),
1492            Error::S3SubscriptionRequiredException(inner) => inner.source(),
1493            Error::SourceBundleDeletionException(inner) => inner.source(),
1494            Error::TooManyApplicationVersionsException(inner) => inner.source(),
1495            Error::TooManyApplicationsException(inner) => inner.source(),
1496            Error::TooManyBucketsException(inner) => inner.source(),
1497            Error::TooManyConfigurationTemplatesException(inner) => inner.source(),
1498            Error::TooManyEnvironmentsException(inner) => inner.source(),
1499            Error::TooManyPlatformsException(inner) => inner.source(),
1500            Error::TooManyTagsException(inner) => inner.source(),
1501            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1502        }
1503    }
1504}
1505impl ::aws_types::request_id::RequestId for Error {
1506    fn request_id(&self) -> Option<&str> {
1507        match self {
1508            Self::CodeBuildNotInServiceRegionException(e) => e.request_id(),
1509            Self::ElasticBeanstalkServiceException(e) => e.request_id(),
1510            Self::InsufficientPrivilegesException(e) => e.request_id(),
1511            Self::InvalidRequestException(e) => e.request_id(),
1512            Self::ManagedActionInvalidStateException(e) => e.request_id(),
1513            Self::OperationInProgressException(e) => e.request_id(),
1514            Self::PlatformVersionStillReferencedException(e) => e.request_id(),
1515            Self::ResourceNotFoundException(e) => e.request_id(),
1516            Self::ResourceTypeNotSupportedException(e) => e.request_id(),
1517            Self::S3LocationNotInServiceRegionException(e) => e.request_id(),
1518            Self::S3SubscriptionRequiredException(e) => e.request_id(),
1519            Self::SourceBundleDeletionException(e) => e.request_id(),
1520            Self::TooManyApplicationVersionsException(e) => e.request_id(),
1521            Self::TooManyApplicationsException(e) => e.request_id(),
1522            Self::TooManyBucketsException(e) => e.request_id(),
1523            Self::TooManyConfigurationTemplatesException(e) => e.request_id(),
1524            Self::TooManyEnvironmentsException(e) => e.request_id(),
1525            Self::TooManyPlatformsException(e) => e.request_id(),
1526            Self::TooManyTagsException(e) => e.request_id(),
1527            Self::Unhandled(e) => e.meta.request_id(),
1528        }
1529    }
1530}