aws_sdk_codebuild/
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 Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.</p>
7    AccountLimitExceededException(crate::types::error::AccountLimitExceededException),
8    /// <p>The CodeBuild access has been suspended for the calling Amazon Web Services account.</p>
9    AccountSuspendedException(crate::types::error::AccountSuspendedException),
10    /// <p>The input value that was provided is not valid.</p>
11    InvalidInputException(crate::types::error::InvalidInputException),
12    /// <p>There was a problem with the underlying OAuth provider.</p>
13    OAuthProviderException(crate::types::error::OAuthProviderException),
14    /// <p>The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.</p>
15    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
16    /// <p>The specified Amazon Web Services resource cannot be found.</p>
17    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::AccountLimitExceededException(inner) => inner.fmt(f),
31            Error::AccountSuspendedException(inner) => inner.fmt(f),
32            Error::InvalidInputException(inner) => inner.fmt(f),
33            Error::OAuthProviderException(inner) => inner.fmt(f),
34            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::AccountLimitExceededException(inner) => inner.meta(),
58            Self::AccountSuspendedException(inner) => inner.meta(),
59            Self::InvalidInputException(inner) => inner.meta(),
60            Self::OAuthProviderException(inner) => inner.meta(),
61            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
62            Self::ResourceNotFoundException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_builds::BatchDeleteBuildsError, R>> for Error
68where
69    R: Send + Sync + std::fmt::Debug + 'static,
70{
71    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_builds::BatchDeleteBuildsError, R>) -> Self {
72        match err {
73            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
74            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
76                source: err.into(),
77            }),
78        }
79    }
80}
81impl From<crate::operation::batch_delete_builds::BatchDeleteBuildsError> for Error {
82    fn from(err: crate::operation::batch_delete_builds::BatchDeleteBuildsError) -> Self {
83        match err {
84            crate::operation::batch_delete_builds::BatchDeleteBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
85            crate::operation::batch_delete_builds::BatchDeleteBuildsError::Unhandled(inner) => Error::Unhandled(inner),
86        }
87    }
88}
89impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError, R>> for Error
90where
91    R: Send + Sync + std::fmt::Debug + 'static,
92{
93    fn from(
94        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError, R>,
95    ) -> Self {
96        match err {
97            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
98            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
99                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
100                source: err.into(),
101            }),
102        }
103    }
104}
105impl From<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError> for Error {
106    fn from(err: crate::operation::batch_get_build_batches::BatchGetBuildBatchesError) -> Self {
107        match err {
108            crate::operation::batch_get_build_batches::BatchGetBuildBatchesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
109            crate::operation::batch_get_build_batches::BatchGetBuildBatchesError::Unhandled(inner) => Error::Unhandled(inner),
110        }
111    }
112}
113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_builds::BatchGetBuildsError, R>> for Error
114where
115    R: Send + Sync + std::fmt::Debug + 'static,
116{
117    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_builds::BatchGetBuildsError, R>) -> Self {
118        match err {
119            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
120            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
121                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
122                source: err.into(),
123            }),
124        }
125    }
126}
127impl From<crate::operation::batch_get_builds::BatchGetBuildsError> for Error {
128    fn from(err: crate::operation::batch_get_builds::BatchGetBuildsError) -> Self {
129        match err {
130            crate::operation::batch_get_builds::BatchGetBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
131            crate::operation::batch_get_builds::BatchGetBuildsError::Unhandled(inner) => Error::Unhandled(inner),
132        }
133    }
134}
135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_command_executions::BatchGetCommandExecutionsError, R>>
136    for Error
137where
138    R: Send + Sync + std::fmt::Debug + 'static,
139{
140    fn from(
141        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_command_executions::BatchGetCommandExecutionsError, R>,
142    ) -> Self {
143        match err {
144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147                source: err.into(),
148            }),
149        }
150    }
151}
152impl From<crate::operation::batch_get_command_executions::BatchGetCommandExecutionsError> for Error {
153    fn from(err: crate::operation::batch_get_command_executions::BatchGetCommandExecutionsError) -> Self {
154        match err {
155            crate::operation::batch_get_command_executions::BatchGetCommandExecutionsError::InvalidInputException(inner) => {
156                Error::InvalidInputException(inner)
157            }
158            crate::operation::batch_get_command_executions::BatchGetCommandExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
159        }
160    }
161}
162impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_fleets::BatchGetFleetsError, R>> for Error
163where
164    R: Send + Sync + std::fmt::Debug + 'static,
165{
166    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_fleets::BatchGetFleetsError, R>) -> 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::batch_get_fleets::BatchGetFleetsError> for Error {
177    fn from(err: crate::operation::batch_get_fleets::BatchGetFleetsError) -> Self {
178        match err {
179            crate::operation::batch_get_fleets::BatchGetFleetsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
180            crate::operation::batch_get_fleets::BatchGetFleetsError::Unhandled(inner) => Error::Unhandled(inner),
181        }
182    }
183}
184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_projects::BatchGetProjectsError, R>> for Error
185where
186    R: Send + Sync + std::fmt::Debug + 'static,
187{
188    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_projects::BatchGetProjectsError, R>) -> Self {
189        match err {
190            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
191            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
192                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
193                source: err.into(),
194            }),
195        }
196    }
197}
198impl From<crate::operation::batch_get_projects::BatchGetProjectsError> for Error {
199    fn from(err: crate::operation::batch_get_projects::BatchGetProjectsError) -> Self {
200        match err {
201            crate::operation::batch_get_projects::BatchGetProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
202            crate::operation::batch_get_projects::BatchGetProjectsError::Unhandled(inner) => Error::Unhandled(inner),
203        }
204    }
205}
206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_report_groups::BatchGetReportGroupsError, R>> for Error
207where
208    R: Send + Sync + std::fmt::Debug + 'static,
209{
210    fn from(
211        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_report_groups::BatchGetReportGroupsError, R>,
212    ) -> Self {
213        match err {
214            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
215            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
216                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
217                source: err.into(),
218            }),
219        }
220    }
221}
222impl From<crate::operation::batch_get_report_groups::BatchGetReportGroupsError> for Error {
223    fn from(err: crate::operation::batch_get_report_groups::BatchGetReportGroupsError) -> Self {
224        match err {
225            crate::operation::batch_get_report_groups::BatchGetReportGroupsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
226            crate::operation::batch_get_report_groups::BatchGetReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
227        }
228    }
229}
230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_reports::BatchGetReportsError, 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::batch_get_reports::BatchGetReportsError, 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::batch_get_reports::BatchGetReportsError> for Error {
245    fn from(err: crate::operation::batch_get_reports::BatchGetReportsError) -> Self {
246        match err {
247            crate::operation::batch_get_reports::BatchGetReportsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
248            crate::operation::batch_get_reports::BatchGetReportsError::Unhandled(inner) => Error::Unhandled(inner),
249        }
250    }
251}
252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_sandboxes::BatchGetSandboxesError, R>> for Error
253where
254    R: Send + Sync + std::fmt::Debug + 'static,
255{
256    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_sandboxes::BatchGetSandboxesError, R>) -> Self {
257        match err {
258            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
259            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
260                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
261                source: err.into(),
262            }),
263        }
264    }
265}
266impl From<crate::operation::batch_get_sandboxes::BatchGetSandboxesError> for Error {
267    fn from(err: crate::operation::batch_get_sandboxes::BatchGetSandboxesError) -> Self {
268        match err {
269            crate::operation::batch_get_sandboxes::BatchGetSandboxesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
270            crate::operation::batch_get_sandboxes::BatchGetSandboxesError::Unhandled(inner) => Error::Unhandled(inner),
271        }
272    }
273}
274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, 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_fleet::CreateFleetError, 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_fleet::CreateFleetError> for Error {
289    fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
290        match err {
291            crate::operation::create_fleet::CreateFleetError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
292            crate::operation::create_fleet::CreateFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
293            crate::operation::create_fleet::CreateFleetError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
294            crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
295        }
296    }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
299where
300    R: Send + Sync + std::fmt::Debug + 'static,
301{
302    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
303        match err {
304            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307                source: err.into(),
308            }),
309        }
310    }
311}
312impl From<crate::operation::create_project::CreateProjectError> for Error {
313    fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
314        match err {
315            crate::operation::create_project::CreateProjectError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
316            crate::operation::create_project::CreateProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
317            crate::operation::create_project::CreateProjectError::ResourceAlreadyExistsException(inner) => {
318                Error::ResourceAlreadyExistsException(inner)
319            }
320            crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
321        }
322    }
323}
324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_group::CreateReportGroupError, R>> for Error
325where
326    R: Send + Sync + std::fmt::Debug + 'static,
327{
328    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_group::CreateReportGroupError, R>) -> Self {
329        match err {
330            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
331            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
332                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
333                source: err.into(),
334            }),
335        }
336    }
337}
338impl From<crate::operation::create_report_group::CreateReportGroupError> for Error {
339    fn from(err: crate::operation::create_report_group::CreateReportGroupError) -> Self {
340        match err {
341            crate::operation::create_report_group::CreateReportGroupError::AccountLimitExceededException(inner) => {
342                Error::AccountLimitExceededException(inner)
343            }
344            crate::operation::create_report_group::CreateReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
345            crate::operation::create_report_group::CreateReportGroupError::ResourceAlreadyExistsException(inner) => {
346                Error::ResourceAlreadyExistsException(inner)
347            }
348            crate::operation::create_report_group::CreateReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
349        }
350    }
351}
352impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>> for Error
353where
354    R: Send + Sync + std::fmt::Debug + 'static,
355{
356    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>) -> Self {
357        match err {
358            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
359            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
360                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
361                source: err.into(),
362            }),
363        }
364    }
365}
366impl From<crate::operation::create_webhook::CreateWebhookError> for Error {
367    fn from(err: crate::operation::create_webhook::CreateWebhookError) -> Self {
368        match err {
369            crate::operation::create_webhook::CreateWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
370            crate::operation::create_webhook::CreateWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
371            crate::operation::create_webhook::CreateWebhookError::ResourceAlreadyExistsException(inner) => {
372                Error::ResourceAlreadyExistsException(inner)
373            }
374            crate::operation::create_webhook::CreateWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
375            crate::operation::create_webhook::CreateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
376        }
377    }
378}
379impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_build_batch::DeleteBuildBatchError, R>> for Error
380where
381    R: Send + Sync + std::fmt::Debug + 'static,
382{
383    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_build_batch::DeleteBuildBatchError, R>) -> Self {
384        match err {
385            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
386            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
387                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
388                source: err.into(),
389            }),
390        }
391    }
392}
393impl From<crate::operation::delete_build_batch::DeleteBuildBatchError> for Error {
394    fn from(err: crate::operation::delete_build_batch::DeleteBuildBatchError) -> Self {
395        match err {
396            crate::operation::delete_build_batch::DeleteBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
397            crate::operation::delete_build_batch::DeleteBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
398        }
399    }
400}
401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>> for Error
402where
403    R: Send + Sync + std::fmt::Debug + 'static,
404{
405    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>) -> Self {
406        match err {
407            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
408            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
409                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
410                source: err.into(),
411            }),
412        }
413    }
414}
415impl From<crate::operation::delete_fleet::DeleteFleetError> for Error {
416    fn from(err: crate::operation::delete_fleet::DeleteFleetError) -> Self {
417        match err {
418            crate::operation::delete_fleet::DeleteFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
419            crate::operation::delete_fleet::DeleteFleetError::Unhandled(inner) => Error::Unhandled(inner),
420        }
421    }
422}
423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
424where
425    R: Send + Sync + std::fmt::Debug + 'static,
426{
427    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
428        match err {
429            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
430            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
431                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
432                source: err.into(),
433            }),
434        }
435    }
436}
437impl From<crate::operation::delete_project::DeleteProjectError> for Error {
438    fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
439        match err {
440            crate::operation::delete_project::DeleteProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
441            crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
442        }
443    }
444}
445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report::DeleteReportError, R>> for Error
446where
447    R: Send + Sync + std::fmt::Debug + 'static,
448{
449    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report::DeleteReportError, R>) -> Self {
450        match err {
451            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
452            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
453                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
454                source: err.into(),
455            }),
456        }
457    }
458}
459impl From<crate::operation::delete_report::DeleteReportError> for Error {
460    fn from(err: crate::operation::delete_report::DeleteReportError) -> Self {
461        match err {
462            crate::operation::delete_report::DeleteReportError::InvalidInputException(inner) => Error::InvalidInputException(inner),
463            crate::operation::delete_report::DeleteReportError::Unhandled(inner) => Error::Unhandled(inner),
464        }
465    }
466}
467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_group::DeleteReportGroupError, R>> for Error
468where
469    R: Send + Sync + std::fmt::Debug + 'static,
470{
471    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_group::DeleteReportGroupError, R>) -> Self {
472        match err {
473            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
474            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
475                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
476                source: err.into(),
477            }),
478        }
479    }
480}
481impl From<crate::operation::delete_report_group::DeleteReportGroupError> for Error {
482    fn from(err: crate::operation::delete_report_group::DeleteReportGroupError) -> Self {
483        match err {
484            crate::operation::delete_report_group::DeleteReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
485            crate::operation::delete_report_group::DeleteReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
486        }
487    }
488}
489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
490where
491    R: Send + Sync + std::fmt::Debug + 'static,
492{
493    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
494        match err {
495            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
496            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
497                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
498                source: err.into(),
499            }),
500        }
501    }
502}
503impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
504    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
505        match err {
506            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
507            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
508        }
509    }
510}
511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_credentials::DeleteSourceCredentialsError, R>>
512    for Error
513where
514    R: Send + Sync + std::fmt::Debug + 'static,
515{
516    fn from(
517        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_credentials::DeleteSourceCredentialsError, R>,
518    ) -> Self {
519        match err {
520            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
521            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
522                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
523                source: err.into(),
524            }),
525        }
526    }
527}
528impl From<crate::operation::delete_source_credentials::DeleteSourceCredentialsError> for Error {
529    fn from(err: crate::operation::delete_source_credentials::DeleteSourceCredentialsError) -> Self {
530        match err {
531            crate::operation::delete_source_credentials::DeleteSourceCredentialsError::InvalidInputException(inner) => {
532                Error::InvalidInputException(inner)
533            }
534            crate::operation::delete_source_credentials::DeleteSourceCredentialsError::ResourceNotFoundException(inner) => {
535                Error::ResourceNotFoundException(inner)
536            }
537            crate::operation::delete_source_credentials::DeleteSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
538        }
539    }
540}
541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>> for Error
542where
543    R: Send + Sync + std::fmt::Debug + 'static,
544{
545    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>) -> Self {
546        match err {
547            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
548            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
549                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
550                source: err.into(),
551            }),
552        }
553    }
554}
555impl From<crate::operation::delete_webhook::DeleteWebhookError> for Error {
556    fn from(err: crate::operation::delete_webhook::DeleteWebhookError) -> Self {
557        match err {
558            crate::operation::delete_webhook::DeleteWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
559            crate::operation::delete_webhook::DeleteWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
560            crate::operation::delete_webhook::DeleteWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
561            crate::operation::delete_webhook::DeleteWebhookError::Unhandled(inner) => Error::Unhandled(inner),
562        }
563    }
564}
565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_coverages::DescribeCodeCoveragesError, R>> for Error
566where
567    R: Send + Sync + std::fmt::Debug + 'static,
568{
569    fn from(
570        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_coverages::DescribeCodeCoveragesError, R>,
571    ) -> Self {
572        match err {
573            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
574            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
575                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
576                source: err.into(),
577            }),
578        }
579    }
580}
581impl From<crate::operation::describe_code_coverages::DescribeCodeCoveragesError> for Error {
582    fn from(err: crate::operation::describe_code_coverages::DescribeCodeCoveragesError) -> Self {
583        match err {
584            crate::operation::describe_code_coverages::DescribeCodeCoveragesError::InvalidInputException(inner) => {
585                Error::InvalidInputException(inner)
586            }
587            crate::operation::describe_code_coverages::DescribeCodeCoveragesError::Unhandled(inner) => Error::Unhandled(inner),
588        }
589    }
590}
591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_cases::DescribeTestCasesError, R>> for Error
592where
593    R: Send + Sync + std::fmt::Debug + 'static,
594{
595    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_cases::DescribeTestCasesError, R>) -> Self {
596        match err {
597            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
598            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
599                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
600                source: err.into(),
601            }),
602        }
603    }
604}
605impl From<crate::operation::describe_test_cases::DescribeTestCasesError> for Error {
606    fn from(err: crate::operation::describe_test_cases::DescribeTestCasesError) -> Self {
607        match err {
608            crate::operation::describe_test_cases::DescribeTestCasesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
609            crate::operation::describe_test_cases::DescribeTestCasesError::ResourceNotFoundException(inner) => {
610                Error::ResourceNotFoundException(inner)
611            }
612            crate::operation::describe_test_cases::DescribeTestCasesError::Unhandled(inner) => Error::Unhandled(inner),
613        }
614    }
615}
616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_report_group_trend::GetReportGroupTrendError, R>> for Error
617where
618    R: Send + Sync + std::fmt::Debug + 'static,
619{
620    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_report_group_trend::GetReportGroupTrendError, R>) -> Self {
621        match err {
622            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
623            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
624                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
625                source: err.into(),
626            }),
627        }
628    }
629}
630impl From<crate::operation::get_report_group_trend::GetReportGroupTrendError> for Error {
631    fn from(err: crate::operation::get_report_group_trend::GetReportGroupTrendError) -> Self {
632        match err {
633            crate::operation::get_report_group_trend::GetReportGroupTrendError::InvalidInputException(inner) => Error::InvalidInputException(inner),
634            crate::operation::get_report_group_trend::GetReportGroupTrendError::ResourceNotFoundException(inner) => {
635                Error::ResourceNotFoundException(inner)
636            }
637            crate::operation::get_report_group_trend::GetReportGroupTrendError::Unhandled(inner) => Error::Unhandled(inner),
638        }
639    }
640}
641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
642where
643    R: Send + Sync + std::fmt::Debug + 'static,
644{
645    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
646        match err {
647            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
648            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
649                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
650                source: err.into(),
651            }),
652        }
653    }
654}
655impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
656    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
657        match err {
658            crate::operation::get_resource_policy::GetResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
659            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
660                Error::ResourceNotFoundException(inner)
661            }
662            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
663        }
664    }
665}
666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_source_credentials::ImportSourceCredentialsError, R>>
667    for Error
668where
669    R: Send + Sync + std::fmt::Debug + 'static,
670{
671    fn from(
672        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_source_credentials::ImportSourceCredentialsError, R>,
673    ) -> Self {
674        match err {
675            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
676            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
677                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
678                source: err.into(),
679            }),
680        }
681    }
682}
683impl From<crate::operation::import_source_credentials::ImportSourceCredentialsError> for Error {
684    fn from(err: crate::operation::import_source_credentials::ImportSourceCredentialsError) -> Self {
685        match err {
686            crate::operation::import_source_credentials::ImportSourceCredentialsError::AccountLimitExceededException(inner) => {
687                Error::AccountLimitExceededException(inner)
688            }
689            crate::operation::import_source_credentials::ImportSourceCredentialsError::InvalidInputException(inner) => {
690                Error::InvalidInputException(inner)
691            }
692            crate::operation::import_source_credentials::ImportSourceCredentialsError::ResourceAlreadyExistsException(inner) => {
693                Error::ResourceAlreadyExistsException(inner)
694            }
695            crate::operation::import_source_credentials::ImportSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
696        }
697    }
698}
699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invalidate_project_cache::InvalidateProjectCacheError, R>> for Error
700where
701    R: Send + Sync + std::fmt::Debug + 'static,
702{
703    fn from(
704        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invalidate_project_cache::InvalidateProjectCacheError, R>,
705    ) -> Self {
706        match err {
707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
710                source: err.into(),
711            }),
712        }
713    }
714}
715impl From<crate::operation::invalidate_project_cache::InvalidateProjectCacheError> for Error {
716    fn from(err: crate::operation::invalidate_project_cache::InvalidateProjectCacheError) -> Self {
717        match err {
718            crate::operation::invalidate_project_cache::InvalidateProjectCacheError::InvalidInputException(inner) => {
719                Error::InvalidInputException(inner)
720            }
721            crate::operation::invalidate_project_cache::InvalidateProjectCacheError::ResourceNotFoundException(inner) => {
722                Error::ResourceNotFoundException(inner)
723            }
724            crate::operation::invalidate_project_cache::InvalidateProjectCacheError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches::ListBuildBatchesError, R>> for Error
729where
730    R: Send + Sync + std::fmt::Debug + 'static,
731{
732    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches::ListBuildBatchesError, R>) -> Self {
733        match err {
734            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
735            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
736                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
737                source: err.into(),
738            }),
739        }
740    }
741}
742impl From<crate::operation::list_build_batches::ListBuildBatchesError> for Error {
743    fn from(err: crate::operation::list_build_batches::ListBuildBatchesError) -> Self {
744        match err {
745            crate::operation::list_build_batches::ListBuildBatchesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
746            crate::operation::list_build_batches::ListBuildBatchesError::Unhandled(inner) => Error::Unhandled(inner),
747        }
748    }
749}
750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError, R>>
751    for Error
752where
753    R: Send + Sync + std::fmt::Debug + 'static,
754{
755    fn from(
756        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError, R>,
757    ) -> Self {
758        match err {
759            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
760            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
761                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
762                source: err.into(),
763            }),
764        }
765    }
766}
767impl From<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError> for Error {
768    fn from(err: crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError) -> Self {
769        match err {
770            crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::InvalidInputException(inner) => {
771                Error::InvalidInputException(inner)
772            }
773            crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::ResourceNotFoundException(inner) => {
774                Error::ResourceNotFoundException(inner)
775            }
776            crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::Unhandled(inner) => Error::Unhandled(inner),
777        }
778    }
779}
780impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds::ListBuildsError, R>> for Error
781where
782    R: Send + Sync + std::fmt::Debug + 'static,
783{
784    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds::ListBuildsError, R>) -> Self {
785        match err {
786            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
787            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
788                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
789                source: err.into(),
790            }),
791        }
792    }
793}
794impl From<crate::operation::list_builds::ListBuildsError> for Error {
795    fn from(err: crate::operation::list_builds::ListBuildsError) -> Self {
796        match err {
797            crate::operation::list_builds::ListBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
798            crate::operation::list_builds::ListBuildsError::Unhandled(inner) => Error::Unhandled(inner),
799        }
800    }
801}
802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds_for_project::ListBuildsForProjectError, R>> for Error
803where
804    R: Send + Sync + std::fmt::Debug + 'static,
805{
806    fn from(
807        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds_for_project::ListBuildsForProjectError, R>,
808    ) -> Self {
809        match err {
810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
813                source: err.into(),
814            }),
815        }
816    }
817}
818impl From<crate::operation::list_builds_for_project::ListBuildsForProjectError> for Error {
819    fn from(err: crate::operation::list_builds_for_project::ListBuildsForProjectError) -> Self {
820        match err {
821            crate::operation::list_builds_for_project::ListBuildsForProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
822            crate::operation::list_builds_for_project::ListBuildsForProjectError::ResourceNotFoundException(inner) => {
823                Error::ResourceNotFoundException(inner)
824            }
825            crate::operation::list_builds_for_project::ListBuildsForProjectError::Unhandled(inner) => Error::Unhandled(inner),
826        }
827    }
828}
829impl<R>
830    From<
831        ::aws_smithy_runtime_api::client::result::SdkError<
832            crate::operation::list_command_executions_for_sandbox::ListCommandExecutionsForSandboxError,
833            R,
834        >,
835    > for Error
836where
837    R: Send + Sync + std::fmt::Debug + 'static,
838{
839    fn from(
840        err: ::aws_smithy_runtime_api::client::result::SdkError<
841            crate::operation::list_command_executions_for_sandbox::ListCommandExecutionsForSandboxError,
842            R,
843        >,
844    ) -> Self {
845        match err {
846            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
847            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
848                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
849                source: err.into(),
850            }),
851        }
852    }
853}
854impl From<crate::operation::list_command_executions_for_sandbox::ListCommandExecutionsForSandboxError> for Error {
855    fn from(err: crate::operation::list_command_executions_for_sandbox::ListCommandExecutionsForSandboxError) -> Self {
856        match err {
857            crate::operation::list_command_executions_for_sandbox::ListCommandExecutionsForSandboxError::InvalidInputException(inner) => {
858                Error::InvalidInputException(inner)
859            }
860            crate::operation::list_command_executions_for_sandbox::ListCommandExecutionsForSandboxError::ResourceNotFoundException(inner) => {
861                Error::ResourceNotFoundException(inner)
862            }
863            crate::operation::list_command_executions_for_sandbox::ListCommandExecutionsForSandboxError::Unhandled(inner) => Error::Unhandled(inner),
864        }
865    }
866}
867impl<R>
868    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError, R>>
869    for Error
870where
871    R: Send + Sync + std::fmt::Debug + 'static,
872{
873    fn from(
874        err: ::aws_smithy_runtime_api::client::result::SdkError<
875            crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError,
876            R,
877        >,
878    ) -> Self {
879        match err {
880            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
881            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
882                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
883                source: err.into(),
884            }),
885        }
886    }
887}
888impl From<crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError> for Error {
889    fn from(err: crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError) -> Self {
890        match err {
891            crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError::Unhandled(inner) => Error::Unhandled(inner),
892        }
893    }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, R>> for Error
896where
897    R: Send + Sync + std::fmt::Debug + 'static,
898{
899    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, R>) -> Self {
900        match err {
901            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904                source: err.into(),
905            }),
906        }
907    }
908}
909impl From<crate::operation::list_fleets::ListFleetsError> for Error {
910    fn from(err: crate::operation::list_fleets::ListFleetsError) -> Self {
911        match err {
912            crate::operation::list_fleets::ListFleetsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
913            crate::operation::list_fleets::ListFleetsError::Unhandled(inner) => Error::Unhandled(inner),
914        }
915    }
916}
917impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
918where
919    R: Send + Sync + std::fmt::Debug + 'static,
920{
921    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
922        match err {
923            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
924            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
925                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
926                source: err.into(),
927            }),
928        }
929    }
930}
931impl From<crate::operation::list_projects::ListProjectsError> for Error {
932    fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
933        match err {
934            crate::operation::list_projects::ListProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
935            crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
936        }
937    }
938}
939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_groups::ListReportGroupsError, R>> for Error
940where
941    R: Send + Sync + std::fmt::Debug + 'static,
942{
943    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_groups::ListReportGroupsError, R>) -> Self {
944        match err {
945            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
946            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
947                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
948                source: err.into(),
949            }),
950        }
951    }
952}
953impl From<crate::operation::list_report_groups::ListReportGroupsError> for Error {
954    fn from(err: crate::operation::list_report_groups::ListReportGroupsError) -> Self {
955        match err {
956            crate::operation::list_report_groups::ListReportGroupsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
957            crate::operation::list_report_groups::ListReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
958        }
959    }
960}
961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports::ListReportsError, R>> for Error
962where
963    R: Send + Sync + std::fmt::Debug + 'static,
964{
965    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports::ListReportsError, R>) -> Self {
966        match err {
967            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
968            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
969                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
970                source: err.into(),
971            }),
972        }
973    }
974}
975impl From<crate::operation::list_reports::ListReportsError> for Error {
976    fn from(err: crate::operation::list_reports::ListReportsError) -> Self {
977        match err {
978            crate::operation::list_reports::ListReportsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
979            crate::operation::list_reports::ListReportsError::Unhandled(inner) => Error::Unhandled(inner),
980        }
981    }
982}
983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports_for_report_group::ListReportsForReportGroupError, R>>
984    for Error
985where
986    R: Send + Sync + std::fmt::Debug + 'static,
987{
988    fn from(
989        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports_for_report_group::ListReportsForReportGroupError, R>,
990    ) -> Self {
991        match err {
992            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
993            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
994                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
995                source: err.into(),
996            }),
997        }
998    }
999}
1000impl From<crate::operation::list_reports_for_report_group::ListReportsForReportGroupError> for Error {
1001    fn from(err: crate::operation::list_reports_for_report_group::ListReportsForReportGroupError) -> Self {
1002        match err {
1003            crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::InvalidInputException(inner) => {
1004                Error::InvalidInputException(inner)
1005            }
1006            crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::ResourceNotFoundException(inner) => {
1007                Error::ResourceNotFoundException(inner)
1008            }
1009            crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
1010        }
1011    }
1012}
1013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sandboxes::ListSandboxesError, R>> for Error
1014where
1015    R: Send + Sync + std::fmt::Debug + 'static,
1016{
1017    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sandboxes::ListSandboxesError, R>) -> Self {
1018        match err {
1019            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1020            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1021                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1022                source: err.into(),
1023            }),
1024        }
1025    }
1026}
1027impl From<crate::operation::list_sandboxes::ListSandboxesError> for Error {
1028    fn from(err: crate::operation::list_sandboxes::ListSandboxesError) -> Self {
1029        match err {
1030            crate::operation::list_sandboxes::ListSandboxesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1031            crate::operation::list_sandboxes::ListSandboxesError::Unhandled(inner) => Error::Unhandled(inner),
1032        }
1033    }
1034}
1035impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sandboxes_for_project::ListSandboxesForProjectError, R>>
1036    for Error
1037where
1038    R: Send + Sync + std::fmt::Debug + 'static,
1039{
1040    fn from(
1041        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sandboxes_for_project::ListSandboxesForProjectError, R>,
1042    ) -> Self {
1043        match err {
1044            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1045            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1046                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1047                source: err.into(),
1048            }),
1049        }
1050    }
1051}
1052impl From<crate::operation::list_sandboxes_for_project::ListSandboxesForProjectError> for Error {
1053    fn from(err: crate::operation::list_sandboxes_for_project::ListSandboxesForProjectError) -> Self {
1054        match err {
1055            crate::operation::list_sandboxes_for_project::ListSandboxesForProjectError::InvalidInputException(inner) => {
1056                Error::InvalidInputException(inner)
1057            }
1058            crate::operation::list_sandboxes_for_project::ListSandboxesForProjectError::ResourceNotFoundException(inner) => {
1059                Error::ResourceNotFoundException(inner)
1060            }
1061            crate::operation::list_sandboxes_for_project::ListSandboxesForProjectError::Unhandled(inner) => Error::Unhandled(inner),
1062        }
1063    }
1064}
1065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_projects::ListSharedProjectsError, R>> for Error
1066where
1067    R: Send + Sync + std::fmt::Debug + 'static,
1068{
1069    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_projects::ListSharedProjectsError, R>) -> Self {
1070        match err {
1071            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1072            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1073                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1074                source: err.into(),
1075            }),
1076        }
1077    }
1078}
1079impl From<crate::operation::list_shared_projects::ListSharedProjectsError> for Error {
1080    fn from(err: crate::operation::list_shared_projects::ListSharedProjectsError) -> Self {
1081        match err {
1082            crate::operation::list_shared_projects::ListSharedProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1083            crate::operation::list_shared_projects::ListSharedProjectsError::Unhandled(inner) => Error::Unhandled(inner),
1084        }
1085    }
1086}
1087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_report_groups::ListSharedReportGroupsError, R>>
1088    for Error
1089where
1090    R: Send + Sync + std::fmt::Debug + 'static,
1091{
1092    fn from(
1093        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_report_groups::ListSharedReportGroupsError, R>,
1094    ) -> Self {
1095        match err {
1096            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1097            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1098                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1099                source: err.into(),
1100            }),
1101        }
1102    }
1103}
1104impl From<crate::operation::list_shared_report_groups::ListSharedReportGroupsError> for Error {
1105    fn from(err: crate::operation::list_shared_report_groups::ListSharedReportGroupsError) -> Self {
1106        match err {
1107            crate::operation::list_shared_report_groups::ListSharedReportGroupsError::InvalidInputException(inner) => {
1108                Error::InvalidInputException(inner)
1109            }
1110            crate::operation::list_shared_report_groups::ListSharedReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1111        }
1112    }
1113}
1114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_credentials::ListSourceCredentialsError, R>> for Error
1115where
1116    R: Send + Sync + std::fmt::Debug + 'static,
1117{
1118    fn from(
1119        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_credentials::ListSourceCredentialsError, R>,
1120    ) -> Self {
1121        match err {
1122            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1123            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1124                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1125                source: err.into(),
1126            }),
1127        }
1128    }
1129}
1130impl From<crate::operation::list_source_credentials::ListSourceCredentialsError> for Error {
1131    fn from(err: crate::operation::list_source_credentials::ListSourceCredentialsError) -> Self {
1132        match err {
1133            crate::operation::list_source_credentials::ListSourceCredentialsError::InvalidInputException(inner) => {
1134                Error::InvalidInputException(inner)
1135            }
1136            crate::operation::list_source_credentials::ListSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
1137        }
1138    }
1139}
1140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1141where
1142    R: Send + Sync + std::fmt::Debug + 'static,
1143{
1144    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1145        match err {
1146            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1147            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1148                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1149                source: err.into(),
1150            }),
1151        }
1152    }
1153}
1154impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1155    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1156        match err {
1157            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1158            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1159                Error::ResourceNotFoundException(inner)
1160            }
1161            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1162        }
1163    }
1164}
1165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build::RetryBuildError, 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::retry_build::RetryBuildError, 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::retry_build::RetryBuildError> for Error {
1180    fn from(err: crate::operation::retry_build::RetryBuildError) -> Self {
1181        match err {
1182            crate::operation::retry_build::RetryBuildError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
1183            crate::operation::retry_build::RetryBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1184            crate::operation::retry_build::RetryBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1185            crate::operation::retry_build::RetryBuildError::Unhandled(inner) => Error::Unhandled(inner),
1186        }
1187    }
1188}
1189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build_batch::RetryBuildBatchError, R>> for Error
1190where
1191    R: Send + Sync + std::fmt::Debug + 'static,
1192{
1193    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build_batch::RetryBuildBatchError, R>) -> Self {
1194        match err {
1195            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1196            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1197                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1198                source: err.into(),
1199            }),
1200        }
1201    }
1202}
1203impl From<crate::operation::retry_build_batch::RetryBuildBatchError> for Error {
1204    fn from(err: crate::operation::retry_build_batch::RetryBuildBatchError) -> Self {
1205        match err {
1206            crate::operation::retry_build_batch::RetryBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1207            crate::operation::retry_build_batch::RetryBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1208            crate::operation::retry_build_batch::RetryBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
1209        }
1210    }
1211}
1212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build::StartBuildError, R>> for Error
1213where
1214    R: Send + Sync + std::fmt::Debug + 'static,
1215{
1216    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build::StartBuildError, R>) -> Self {
1217        match err {
1218            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1219            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1220                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1221                source: err.into(),
1222            }),
1223        }
1224    }
1225}
1226impl From<crate::operation::start_build::StartBuildError> for Error {
1227    fn from(err: crate::operation::start_build::StartBuildError) -> Self {
1228        match err {
1229            crate::operation::start_build::StartBuildError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
1230            crate::operation::start_build::StartBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1231            crate::operation::start_build::StartBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1232            crate::operation::start_build::StartBuildError::Unhandled(inner) => Error::Unhandled(inner),
1233        }
1234    }
1235}
1236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build_batch::StartBuildBatchError, 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::start_build_batch::StartBuildBatchError, 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::start_build_batch::StartBuildBatchError> for Error {
1251    fn from(err: crate::operation::start_build_batch::StartBuildBatchError) -> Self {
1252        match err {
1253            crate::operation::start_build_batch::StartBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1254            crate::operation::start_build_batch::StartBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1255            crate::operation::start_build_batch::StartBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
1256        }
1257    }
1258}
1259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_command_execution::StartCommandExecutionError, R>> for Error
1260where
1261    R: Send + Sync + std::fmt::Debug + 'static,
1262{
1263    fn from(
1264        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_command_execution::StartCommandExecutionError, R>,
1265    ) -> Self {
1266        match err {
1267            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1268            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1269                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1270                source: err.into(),
1271            }),
1272        }
1273    }
1274}
1275impl From<crate::operation::start_command_execution::StartCommandExecutionError> for Error {
1276    fn from(err: crate::operation::start_command_execution::StartCommandExecutionError) -> Self {
1277        match err {
1278            crate::operation::start_command_execution::StartCommandExecutionError::InvalidInputException(inner) => {
1279                Error::InvalidInputException(inner)
1280            }
1281            crate::operation::start_command_execution::StartCommandExecutionError::ResourceNotFoundException(inner) => {
1282                Error::ResourceNotFoundException(inner)
1283            }
1284            crate::operation::start_command_execution::StartCommandExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1285        }
1286    }
1287}
1288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_sandbox::StartSandboxError, R>> for Error
1289where
1290    R: Send + Sync + std::fmt::Debug + 'static,
1291{
1292    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_sandbox::StartSandboxError, R>) -> Self {
1293        match err {
1294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1297                source: err.into(),
1298            }),
1299        }
1300    }
1301}
1302impl From<crate::operation::start_sandbox::StartSandboxError> for Error {
1303    fn from(err: crate::operation::start_sandbox::StartSandboxError) -> Self {
1304        match err {
1305            crate::operation::start_sandbox::StartSandboxError::AccountSuspendedException(inner) => Error::AccountSuspendedException(inner),
1306            crate::operation::start_sandbox::StartSandboxError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1307            crate::operation::start_sandbox::StartSandboxError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1308            crate::operation::start_sandbox::StartSandboxError::Unhandled(inner) => Error::Unhandled(inner),
1309        }
1310    }
1311}
1312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_sandbox_connection::StartSandboxConnectionError, R>> for Error
1313where
1314    R: Send + Sync + std::fmt::Debug + 'static,
1315{
1316    fn from(
1317        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_sandbox_connection::StartSandboxConnectionError, R>,
1318    ) -> Self {
1319        match err {
1320            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1321            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1322                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1323                source: err.into(),
1324            }),
1325        }
1326    }
1327}
1328impl From<crate::operation::start_sandbox_connection::StartSandboxConnectionError> for Error {
1329    fn from(err: crate::operation::start_sandbox_connection::StartSandboxConnectionError) -> Self {
1330        match err {
1331            crate::operation::start_sandbox_connection::StartSandboxConnectionError::InvalidInputException(inner) => {
1332                Error::InvalidInputException(inner)
1333            }
1334            crate::operation::start_sandbox_connection::StartSandboxConnectionError::ResourceNotFoundException(inner) => {
1335                Error::ResourceNotFoundException(inner)
1336            }
1337            crate::operation::start_sandbox_connection::StartSandboxConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1338        }
1339    }
1340}
1341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build::StopBuildError, R>> for Error
1342where
1343    R: Send + Sync + std::fmt::Debug + 'static,
1344{
1345    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build::StopBuildError, R>) -> Self {
1346        match err {
1347            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1348            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1349                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1350                source: err.into(),
1351            }),
1352        }
1353    }
1354}
1355impl From<crate::operation::stop_build::StopBuildError> for Error {
1356    fn from(err: crate::operation::stop_build::StopBuildError) -> Self {
1357        match err {
1358            crate::operation::stop_build::StopBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1359            crate::operation::stop_build::StopBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1360            crate::operation::stop_build::StopBuildError::Unhandled(inner) => Error::Unhandled(inner),
1361        }
1362    }
1363}
1364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build_batch::StopBuildBatchError, R>> for Error
1365where
1366    R: Send + Sync + std::fmt::Debug + 'static,
1367{
1368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build_batch::StopBuildBatchError, R>) -> Self {
1369        match err {
1370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1373                source: err.into(),
1374            }),
1375        }
1376    }
1377}
1378impl From<crate::operation::stop_build_batch::StopBuildBatchError> for Error {
1379    fn from(err: crate::operation::stop_build_batch::StopBuildBatchError) -> Self {
1380        match err {
1381            crate::operation::stop_build_batch::StopBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1382            crate::operation::stop_build_batch::StopBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1383            crate::operation::stop_build_batch::StopBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
1384        }
1385    }
1386}
1387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_sandbox::StopSandboxError, R>> for Error
1388where
1389    R: Send + Sync + std::fmt::Debug + 'static,
1390{
1391    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_sandbox::StopSandboxError, R>) -> Self {
1392        match err {
1393            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1394            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1395                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1396                source: err.into(),
1397            }),
1398        }
1399    }
1400}
1401impl From<crate::operation::stop_sandbox::StopSandboxError> for Error {
1402    fn from(err: crate::operation::stop_sandbox::StopSandboxError) -> Self {
1403        match err {
1404            crate::operation::stop_sandbox::StopSandboxError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1405            crate::operation::stop_sandbox::StopSandboxError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1406            crate::operation::stop_sandbox::StopSandboxError::Unhandled(inner) => Error::Unhandled(inner),
1407        }
1408    }
1409}
1410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>> for Error
1411where
1412    R: Send + Sync + std::fmt::Debug + 'static,
1413{
1414    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>) -> Self {
1415        match err {
1416            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1417            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1418                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1419                source: err.into(),
1420            }),
1421        }
1422    }
1423}
1424impl From<crate::operation::update_fleet::UpdateFleetError> for Error {
1425    fn from(err: crate::operation::update_fleet::UpdateFleetError) -> Self {
1426        match err {
1427            crate::operation::update_fleet::UpdateFleetError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
1428            crate::operation::update_fleet::UpdateFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1429            crate::operation::update_fleet::UpdateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1430            crate::operation::update_fleet::UpdateFleetError::Unhandled(inner) => Error::Unhandled(inner),
1431        }
1432    }
1433}
1434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
1435where
1436    R: Send + Sync + std::fmt::Debug + 'static,
1437{
1438    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
1439        match err {
1440            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1441            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1442                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1443                source: err.into(),
1444            }),
1445        }
1446    }
1447}
1448impl From<crate::operation::update_project::UpdateProjectError> for Error {
1449    fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
1450        match err {
1451            crate::operation::update_project::UpdateProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1452            crate::operation::update_project::UpdateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1453            crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1454        }
1455    }
1456}
1457impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_visibility::UpdateProjectVisibilityError, R>>
1458    for Error
1459where
1460    R: Send + Sync + std::fmt::Debug + 'static,
1461{
1462    fn from(
1463        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_visibility::UpdateProjectVisibilityError, R>,
1464    ) -> Self {
1465        match err {
1466            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1467            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1468                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1469                source: err.into(),
1470            }),
1471        }
1472    }
1473}
1474impl From<crate::operation::update_project_visibility::UpdateProjectVisibilityError> for Error {
1475    fn from(err: crate::operation::update_project_visibility::UpdateProjectVisibilityError) -> Self {
1476        match err {
1477            crate::operation::update_project_visibility::UpdateProjectVisibilityError::InvalidInputException(inner) => {
1478                Error::InvalidInputException(inner)
1479            }
1480            crate::operation::update_project_visibility::UpdateProjectVisibilityError::ResourceNotFoundException(inner) => {
1481                Error::ResourceNotFoundException(inner)
1482            }
1483            crate::operation::update_project_visibility::UpdateProjectVisibilityError::Unhandled(inner) => Error::Unhandled(inner),
1484        }
1485    }
1486}
1487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_group::UpdateReportGroupError, R>> for Error
1488where
1489    R: Send + Sync + std::fmt::Debug + 'static,
1490{
1491    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_group::UpdateReportGroupError, R>) -> Self {
1492        match err {
1493            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1494            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1495                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1496                source: err.into(),
1497            }),
1498        }
1499    }
1500}
1501impl From<crate::operation::update_report_group::UpdateReportGroupError> for Error {
1502    fn from(err: crate::operation::update_report_group::UpdateReportGroupError) -> Self {
1503        match err {
1504            crate::operation::update_report_group::UpdateReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1505            crate::operation::update_report_group::UpdateReportGroupError::ResourceNotFoundException(inner) => {
1506                Error::ResourceNotFoundException(inner)
1507            }
1508            crate::operation::update_report_group::UpdateReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
1509        }
1510    }
1511}
1512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>> for Error
1513where
1514    R: Send + Sync + std::fmt::Debug + 'static,
1515{
1516    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>) -> Self {
1517        match err {
1518            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1519            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1520                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1521                source: err.into(),
1522            }),
1523        }
1524    }
1525}
1526impl From<crate::operation::update_webhook::UpdateWebhookError> for Error {
1527    fn from(err: crate::operation::update_webhook::UpdateWebhookError) -> Self {
1528        match err {
1529            crate::operation::update_webhook::UpdateWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1530            crate::operation::update_webhook::UpdateWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
1531            crate::operation::update_webhook::UpdateWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1532            crate::operation::update_webhook::UpdateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
1533        }
1534    }
1535}
1536impl ::std::error::Error for Error {
1537    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1538        match self {
1539            Error::AccountLimitExceededException(inner) => inner.source(),
1540            Error::AccountSuspendedException(inner) => inner.source(),
1541            Error::InvalidInputException(inner) => inner.source(),
1542            Error::OAuthProviderException(inner) => inner.source(),
1543            Error::ResourceAlreadyExistsException(inner) => inner.source(),
1544            Error::ResourceNotFoundException(inner) => inner.source(),
1545            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1546        }
1547    }
1548}
1549impl ::aws_types::request_id::RequestId for Error {
1550    fn request_id(&self) -> Option<&str> {
1551        match self {
1552            Self::AccountLimitExceededException(e) => e.request_id(),
1553            Self::AccountSuspendedException(e) => e.request_id(),
1554            Self::InvalidInputException(e) => e.request_id(),
1555            Self::OAuthProviderException(e) => e.request_id(),
1556            Self::ResourceAlreadyExistsException(e) => e.request_id(),
1557            Self::ResourceNotFoundException(e) => e.request_id(),
1558            Self::Unhandled(e) => e.meta.request_id(),
1559        }
1560    }
1561}