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 input value that was provided is not valid.</p>
9    InvalidInputException(crate::types::error::InvalidInputException),
10    /// <p>There was a problem with the underlying OAuth provider.</p>
11    OAuthProviderException(crate::types::error::OAuthProviderException),
12    /// <p>The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.</p>
13    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
14    /// <p>The specified Amazon Web Services resource cannot be found.</p>
15    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
17    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
18    variable wildcard pattern and check `.code()`:
19     \
20    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
21     \
22    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
23    Unhandled(crate::error::sealed_unhandled::Unhandled),
24}
25impl ::std::fmt::Display for Error {
26    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
27        match self {
28            Error::AccountLimitExceededException(inner) => inner.fmt(f),
29            Error::InvalidInputException(inner) => inner.fmt(f),
30            Error::OAuthProviderException(inner) => inner.fmt(f),
31            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
32            Error::ResourceNotFoundException(inner) => inner.fmt(f),
33            Error::Unhandled(_) => {
34                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
35                    write!(f, "unhandled error ({code})")
36                } else {
37                    f.write_str("unhandled error")
38                }
39            }
40        }
41    }
42}
43impl From<::aws_smithy_types::error::operation::BuildError> for Error {
44    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
45        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
46            source: value.into(),
47            meta: ::std::default::Default::default(),
48        })
49    }
50}
51impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
52    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
53        match self {
54            Self::AccountLimitExceededException(inner) => inner.meta(),
55            Self::InvalidInputException(inner) => inner.meta(),
56            Self::OAuthProviderException(inner) => inner.meta(),
57            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
58            Self::ResourceNotFoundException(inner) => inner.meta(),
59            Self::Unhandled(inner) => &inner.meta,
60        }
61    }
62}
63impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_builds::BatchDeleteBuildsError, R>> for Error
64where
65    R: Send + Sync + std::fmt::Debug + 'static,
66{
67    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_builds::BatchDeleteBuildsError, R>) -> Self {
68        match err {
69            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
70            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
71                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
72                source: err.into(),
73            }),
74        }
75    }
76}
77impl From<crate::operation::batch_delete_builds::BatchDeleteBuildsError> for Error {
78    fn from(err: crate::operation::batch_delete_builds::BatchDeleteBuildsError) -> Self {
79        match err {
80            crate::operation::batch_delete_builds::BatchDeleteBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
81            crate::operation::batch_delete_builds::BatchDeleteBuildsError::Unhandled(inner) => Error::Unhandled(inner),
82        }
83    }
84}
85impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError, R>> for Error
86where
87    R: Send + Sync + std::fmt::Debug + 'static,
88{
89    fn from(
90        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError, R>,
91    ) -> Self {
92        match err {
93            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
94            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
95                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
96                source: err.into(),
97            }),
98        }
99    }
100}
101impl From<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError> for Error {
102    fn from(err: crate::operation::batch_get_build_batches::BatchGetBuildBatchesError) -> Self {
103        match err {
104            crate::operation::batch_get_build_batches::BatchGetBuildBatchesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
105            crate::operation::batch_get_build_batches::BatchGetBuildBatchesError::Unhandled(inner) => Error::Unhandled(inner),
106        }
107    }
108}
109impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_builds::BatchGetBuildsError, R>> for Error
110where
111    R: Send + Sync + std::fmt::Debug + 'static,
112{
113    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_builds::BatchGetBuildsError, R>) -> Self {
114        match err {
115            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
116            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
117                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
118                source: err.into(),
119            }),
120        }
121    }
122}
123impl From<crate::operation::batch_get_builds::BatchGetBuildsError> for Error {
124    fn from(err: crate::operation::batch_get_builds::BatchGetBuildsError) -> Self {
125        match err {
126            crate::operation::batch_get_builds::BatchGetBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
127            crate::operation::batch_get_builds::BatchGetBuildsError::Unhandled(inner) => Error::Unhandled(inner),
128        }
129    }
130}
131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_fleets::BatchGetFleetsError, R>> for Error
132where
133    R: Send + Sync + std::fmt::Debug + 'static,
134{
135    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_fleets::BatchGetFleetsError, R>) -> Self {
136        match err {
137            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
138            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
139                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
140                source: err.into(),
141            }),
142        }
143    }
144}
145impl From<crate::operation::batch_get_fleets::BatchGetFleetsError> for Error {
146    fn from(err: crate::operation::batch_get_fleets::BatchGetFleetsError) -> Self {
147        match err {
148            crate::operation::batch_get_fleets::BatchGetFleetsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
149            crate::operation::batch_get_fleets::BatchGetFleetsError::Unhandled(inner) => Error::Unhandled(inner),
150        }
151    }
152}
153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_projects::BatchGetProjectsError, R>> for Error
154where
155    R: Send + Sync + std::fmt::Debug + 'static,
156{
157    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_projects::BatchGetProjectsError, R>) -> Self {
158        match err {
159            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
160            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
161                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
162                source: err.into(),
163            }),
164        }
165    }
166}
167impl From<crate::operation::batch_get_projects::BatchGetProjectsError> for Error {
168    fn from(err: crate::operation::batch_get_projects::BatchGetProjectsError) -> Self {
169        match err {
170            crate::operation::batch_get_projects::BatchGetProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
171            crate::operation::batch_get_projects::BatchGetProjectsError::Unhandled(inner) => Error::Unhandled(inner),
172        }
173    }
174}
175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_report_groups::BatchGetReportGroupsError, R>> for Error
176where
177    R: Send + Sync + std::fmt::Debug + 'static,
178{
179    fn from(
180        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_report_groups::BatchGetReportGroupsError, R>,
181    ) -> Self {
182        match err {
183            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
184            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
185                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
186                source: err.into(),
187            }),
188        }
189    }
190}
191impl From<crate::operation::batch_get_report_groups::BatchGetReportGroupsError> for Error {
192    fn from(err: crate::operation::batch_get_report_groups::BatchGetReportGroupsError) -> Self {
193        match err {
194            crate::operation::batch_get_report_groups::BatchGetReportGroupsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
195            crate::operation::batch_get_report_groups::BatchGetReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
196        }
197    }
198}
199impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_reports::BatchGetReportsError, R>> for Error
200where
201    R: Send + Sync + std::fmt::Debug + 'static,
202{
203    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_reports::BatchGetReportsError, R>) -> Self {
204        match err {
205            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
206            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
207                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
208                source: err.into(),
209            }),
210        }
211    }
212}
213impl From<crate::operation::batch_get_reports::BatchGetReportsError> for Error {
214    fn from(err: crate::operation::batch_get_reports::BatchGetReportsError) -> Self {
215        match err {
216            crate::operation::batch_get_reports::BatchGetReportsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
217            crate::operation::batch_get_reports::BatchGetReportsError::Unhandled(inner) => Error::Unhandled(inner),
218        }
219    }
220}
221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>> for Error
222where
223    R: Send + Sync + std::fmt::Debug + 'static,
224{
225    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>) -> Self {
226        match err {
227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
230                source: err.into(),
231            }),
232        }
233    }
234}
235impl From<crate::operation::create_fleet::CreateFleetError> for Error {
236    fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
237        match err {
238            crate::operation::create_fleet::CreateFleetError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
239            crate::operation::create_fleet::CreateFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
240            crate::operation::create_fleet::CreateFleetError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
241            crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
242        }
243    }
244}
245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
246where
247    R: Send + Sync + std::fmt::Debug + 'static,
248{
249    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
250        match err {
251            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
252            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
253                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
254                source: err.into(),
255            }),
256        }
257    }
258}
259impl From<crate::operation::create_project::CreateProjectError> for Error {
260    fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
261        match err {
262            crate::operation::create_project::CreateProjectError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
263            crate::operation::create_project::CreateProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
264            crate::operation::create_project::CreateProjectError::ResourceAlreadyExistsException(inner) => {
265                Error::ResourceAlreadyExistsException(inner)
266            }
267            crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
268        }
269    }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_group::CreateReportGroupError, R>> for Error
272where
273    R: Send + Sync + std::fmt::Debug + 'static,
274{
275    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_group::CreateReportGroupError, R>) -> Self {
276        match err {
277            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
278            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
279                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
280                source: err.into(),
281            }),
282        }
283    }
284}
285impl From<crate::operation::create_report_group::CreateReportGroupError> for Error {
286    fn from(err: crate::operation::create_report_group::CreateReportGroupError) -> Self {
287        match err {
288            crate::operation::create_report_group::CreateReportGroupError::AccountLimitExceededException(inner) => {
289                Error::AccountLimitExceededException(inner)
290            }
291            crate::operation::create_report_group::CreateReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
292            crate::operation::create_report_group::CreateReportGroupError::ResourceAlreadyExistsException(inner) => {
293                Error::ResourceAlreadyExistsException(inner)
294            }
295            crate::operation::create_report_group::CreateReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
296        }
297    }
298}
299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>> for Error
300where
301    R: Send + Sync + std::fmt::Debug + 'static,
302{
303    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>) -> Self {
304        match err {
305            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308                source: err.into(),
309            }),
310        }
311    }
312}
313impl From<crate::operation::create_webhook::CreateWebhookError> for Error {
314    fn from(err: crate::operation::create_webhook::CreateWebhookError) -> Self {
315        match err {
316            crate::operation::create_webhook::CreateWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
317            crate::operation::create_webhook::CreateWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
318            crate::operation::create_webhook::CreateWebhookError::ResourceAlreadyExistsException(inner) => {
319                Error::ResourceAlreadyExistsException(inner)
320            }
321            crate::operation::create_webhook::CreateWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
322            crate::operation::create_webhook::CreateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
323        }
324    }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_build_batch::DeleteBuildBatchError, R>> for Error
327where
328    R: Send + Sync + std::fmt::Debug + 'static,
329{
330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_build_batch::DeleteBuildBatchError, R>) -> Self {
331        match err {
332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335                source: err.into(),
336            }),
337        }
338    }
339}
340impl From<crate::operation::delete_build_batch::DeleteBuildBatchError> for Error {
341    fn from(err: crate::operation::delete_build_batch::DeleteBuildBatchError) -> Self {
342        match err {
343            crate::operation::delete_build_batch::DeleteBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
344            crate::operation::delete_build_batch::DeleteBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
345        }
346    }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>> for Error
349where
350    R: Send + Sync + std::fmt::Debug + 'static,
351{
352    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::delete_fleet::DeleteFleetError> for Error {
363    fn from(err: crate::operation::delete_fleet::DeleteFleetError) -> Self {
364        match err {
365            crate::operation::delete_fleet::DeleteFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
366            crate::operation::delete_fleet::DeleteFleetError::Unhandled(inner) => Error::Unhandled(inner),
367        }
368    }
369}
370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, 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::delete_project::DeleteProjectError, 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::delete_project::DeleteProjectError> for Error {
385    fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
386        match err {
387            crate::operation::delete_project::DeleteProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
388            crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
389        }
390    }
391}
392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report::DeleteReportError, R>> for Error
393where
394    R: Send + Sync + std::fmt::Debug + 'static,
395{
396    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report::DeleteReportError, R>) -> Self {
397        match err {
398            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
399            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
400                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
401                source: err.into(),
402            }),
403        }
404    }
405}
406impl From<crate::operation::delete_report::DeleteReportError> for Error {
407    fn from(err: crate::operation::delete_report::DeleteReportError) -> Self {
408        match err {
409            crate::operation::delete_report::DeleteReportError::InvalidInputException(inner) => Error::InvalidInputException(inner),
410            crate::operation::delete_report::DeleteReportError::Unhandled(inner) => Error::Unhandled(inner),
411        }
412    }
413}
414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_group::DeleteReportGroupError, R>> for Error
415where
416    R: Send + Sync + std::fmt::Debug + 'static,
417{
418    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_group::DeleteReportGroupError, R>) -> Self {
419        match err {
420            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
421            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
422                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
423                source: err.into(),
424            }),
425        }
426    }
427}
428impl From<crate::operation::delete_report_group::DeleteReportGroupError> for Error {
429    fn from(err: crate::operation::delete_report_group::DeleteReportGroupError) -> Self {
430        match err {
431            crate::operation::delete_report_group::DeleteReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
432            crate::operation::delete_report_group::DeleteReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
433        }
434    }
435}
436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
437where
438    R: Send + Sync + std::fmt::Debug + 'static,
439{
440    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
441        match err {
442            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
443            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
444                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
445                source: err.into(),
446            }),
447        }
448    }
449}
450impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
451    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
452        match err {
453            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
454            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
455        }
456    }
457}
458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_credentials::DeleteSourceCredentialsError, R>>
459    for Error
460where
461    R: Send + Sync + std::fmt::Debug + 'static,
462{
463    fn from(
464        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_credentials::DeleteSourceCredentialsError, R>,
465    ) -> 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_source_credentials::DeleteSourceCredentialsError> for Error {
476    fn from(err: crate::operation::delete_source_credentials::DeleteSourceCredentialsError) -> Self {
477        match err {
478            crate::operation::delete_source_credentials::DeleteSourceCredentialsError::InvalidInputException(inner) => {
479                Error::InvalidInputException(inner)
480            }
481            crate::operation::delete_source_credentials::DeleteSourceCredentialsError::ResourceNotFoundException(inner) => {
482                Error::ResourceNotFoundException(inner)
483            }
484            crate::operation::delete_source_credentials::DeleteSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
485        }
486    }
487}
488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>> for Error
489where
490    R: Send + Sync + std::fmt::Debug + 'static,
491{
492    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>) -> 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_webhook::DeleteWebhookError> for Error {
503    fn from(err: crate::operation::delete_webhook::DeleteWebhookError) -> Self {
504        match err {
505            crate::operation::delete_webhook::DeleteWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
506            crate::operation::delete_webhook::DeleteWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
507            crate::operation::delete_webhook::DeleteWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
508            crate::operation::delete_webhook::DeleteWebhookError::Unhandled(inner) => Error::Unhandled(inner),
509        }
510    }
511}
512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_coverages::DescribeCodeCoveragesError, R>> 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::describe_code_coverages::DescribeCodeCoveragesError, 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::describe_code_coverages::DescribeCodeCoveragesError> for Error {
529    fn from(err: crate::operation::describe_code_coverages::DescribeCodeCoveragesError) -> Self {
530        match err {
531            crate::operation::describe_code_coverages::DescribeCodeCoveragesError::InvalidInputException(inner) => {
532                Error::InvalidInputException(inner)
533            }
534            crate::operation::describe_code_coverages::DescribeCodeCoveragesError::Unhandled(inner) => Error::Unhandled(inner),
535        }
536    }
537}
538impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_cases::DescribeTestCasesError, R>> for Error
539where
540    R: Send + Sync + std::fmt::Debug + 'static,
541{
542    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_cases::DescribeTestCasesError, R>) -> Self {
543        match err {
544            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
545            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
546                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
547                source: err.into(),
548            }),
549        }
550    }
551}
552impl From<crate::operation::describe_test_cases::DescribeTestCasesError> for Error {
553    fn from(err: crate::operation::describe_test_cases::DescribeTestCasesError) -> Self {
554        match err {
555            crate::operation::describe_test_cases::DescribeTestCasesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
556            crate::operation::describe_test_cases::DescribeTestCasesError::ResourceNotFoundException(inner) => {
557                Error::ResourceNotFoundException(inner)
558            }
559            crate::operation::describe_test_cases::DescribeTestCasesError::Unhandled(inner) => Error::Unhandled(inner),
560        }
561    }
562}
563impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_report_group_trend::GetReportGroupTrendError, R>> for Error
564where
565    R: Send + Sync + std::fmt::Debug + 'static,
566{
567    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_report_group_trend::GetReportGroupTrendError, R>) -> Self {
568        match err {
569            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
570            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
571                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
572                source: err.into(),
573            }),
574        }
575    }
576}
577impl From<crate::operation::get_report_group_trend::GetReportGroupTrendError> for Error {
578    fn from(err: crate::operation::get_report_group_trend::GetReportGroupTrendError) -> Self {
579        match err {
580            crate::operation::get_report_group_trend::GetReportGroupTrendError::InvalidInputException(inner) => Error::InvalidInputException(inner),
581            crate::operation::get_report_group_trend::GetReportGroupTrendError::ResourceNotFoundException(inner) => {
582                Error::ResourceNotFoundException(inner)
583            }
584            crate::operation::get_report_group_trend::GetReportGroupTrendError::Unhandled(inner) => Error::Unhandled(inner),
585        }
586    }
587}
588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
589where
590    R: Send + Sync + std::fmt::Debug + 'static,
591{
592    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
593        match err {
594            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
595            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
596                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
597                source: err.into(),
598            }),
599        }
600    }
601}
602impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
603    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
604        match err {
605            crate::operation::get_resource_policy::GetResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
606            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
607                Error::ResourceNotFoundException(inner)
608            }
609            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
610        }
611    }
612}
613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_source_credentials::ImportSourceCredentialsError, R>>
614    for Error
615where
616    R: Send + Sync + std::fmt::Debug + 'static,
617{
618    fn from(
619        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_source_credentials::ImportSourceCredentialsError, R>,
620    ) -> 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::import_source_credentials::ImportSourceCredentialsError> for Error {
631    fn from(err: crate::operation::import_source_credentials::ImportSourceCredentialsError) -> Self {
632        match err {
633            crate::operation::import_source_credentials::ImportSourceCredentialsError::AccountLimitExceededException(inner) => {
634                Error::AccountLimitExceededException(inner)
635            }
636            crate::operation::import_source_credentials::ImportSourceCredentialsError::InvalidInputException(inner) => {
637                Error::InvalidInputException(inner)
638            }
639            crate::operation::import_source_credentials::ImportSourceCredentialsError::ResourceAlreadyExistsException(inner) => {
640                Error::ResourceAlreadyExistsException(inner)
641            }
642            crate::operation::import_source_credentials::ImportSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
643        }
644    }
645}
646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invalidate_project_cache::InvalidateProjectCacheError, R>> for Error
647where
648    R: Send + Sync + std::fmt::Debug + 'static,
649{
650    fn from(
651        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invalidate_project_cache::InvalidateProjectCacheError, R>,
652    ) -> Self {
653        match err {
654            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
655            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
656                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
657                source: err.into(),
658            }),
659        }
660    }
661}
662impl From<crate::operation::invalidate_project_cache::InvalidateProjectCacheError> for Error {
663    fn from(err: crate::operation::invalidate_project_cache::InvalidateProjectCacheError) -> Self {
664        match err {
665            crate::operation::invalidate_project_cache::InvalidateProjectCacheError::InvalidInputException(inner) => {
666                Error::InvalidInputException(inner)
667            }
668            crate::operation::invalidate_project_cache::InvalidateProjectCacheError::ResourceNotFoundException(inner) => {
669                Error::ResourceNotFoundException(inner)
670            }
671            crate::operation::invalidate_project_cache::InvalidateProjectCacheError::Unhandled(inner) => Error::Unhandled(inner),
672        }
673    }
674}
675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches::ListBuildBatchesError, R>> for Error
676where
677    R: Send + Sync + std::fmt::Debug + 'static,
678{
679    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches::ListBuildBatchesError, R>) -> Self {
680        match err {
681            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
682            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
683                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
684                source: err.into(),
685            }),
686        }
687    }
688}
689impl From<crate::operation::list_build_batches::ListBuildBatchesError> for Error {
690    fn from(err: crate::operation::list_build_batches::ListBuildBatchesError) -> Self {
691        match err {
692            crate::operation::list_build_batches::ListBuildBatchesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
693            crate::operation::list_build_batches::ListBuildBatchesError::Unhandled(inner) => Error::Unhandled(inner),
694        }
695    }
696}
697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError, R>>
698    for Error
699where
700    R: Send + Sync + std::fmt::Debug + 'static,
701{
702    fn from(
703        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError, R>,
704    ) -> Self {
705        match err {
706            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
707            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
708                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
709                source: err.into(),
710            }),
711        }
712    }
713}
714impl From<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError> for Error {
715    fn from(err: crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError) -> Self {
716        match err {
717            crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::InvalidInputException(inner) => {
718                Error::InvalidInputException(inner)
719            }
720            crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::ResourceNotFoundException(inner) => {
721                Error::ResourceNotFoundException(inner)
722            }
723            crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::Unhandled(inner) => Error::Unhandled(inner),
724        }
725    }
726}
727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds::ListBuildsError, R>> for Error
728where
729    R: Send + Sync + std::fmt::Debug + 'static,
730{
731    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds::ListBuildsError, R>) -> Self {
732        match err {
733            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
734            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
735                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
736                source: err.into(),
737            }),
738        }
739    }
740}
741impl From<crate::operation::list_builds::ListBuildsError> for Error {
742    fn from(err: crate::operation::list_builds::ListBuildsError) -> Self {
743        match err {
744            crate::operation::list_builds::ListBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
745            crate::operation::list_builds::ListBuildsError::Unhandled(inner) => Error::Unhandled(inner),
746        }
747    }
748}
749impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds_for_project::ListBuildsForProjectError, R>> for Error
750where
751    R: Send + Sync + std::fmt::Debug + 'static,
752{
753    fn from(
754        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds_for_project::ListBuildsForProjectError, R>,
755    ) -> Self {
756        match err {
757            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
758            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
759                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
760                source: err.into(),
761            }),
762        }
763    }
764}
765impl From<crate::operation::list_builds_for_project::ListBuildsForProjectError> for Error {
766    fn from(err: crate::operation::list_builds_for_project::ListBuildsForProjectError) -> Self {
767        match err {
768            crate::operation::list_builds_for_project::ListBuildsForProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
769            crate::operation::list_builds_for_project::ListBuildsForProjectError::ResourceNotFoundException(inner) => {
770                Error::ResourceNotFoundException(inner)
771            }
772            crate::operation::list_builds_for_project::ListBuildsForProjectError::Unhandled(inner) => Error::Unhandled(inner),
773        }
774    }
775}
776impl<R>
777    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError, R>>
778    for Error
779where
780    R: Send + Sync + std::fmt::Debug + 'static,
781{
782    fn from(
783        err: ::aws_smithy_runtime_api::client::result::SdkError<
784            crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError,
785            R,
786        >,
787    ) -> Self {
788        match err {
789            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
790            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
791                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
792                source: err.into(),
793            }),
794        }
795    }
796}
797impl From<crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError> for Error {
798    fn from(err: crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError) -> Self {
799        match err {
800            crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError::Unhandled(inner) => Error::Unhandled(inner),
801        }
802    }
803}
804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, R>> for Error
805where
806    R: Send + Sync + std::fmt::Debug + 'static,
807{
808    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, R>) -> 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_fleets::ListFleetsError> for Error {
819    fn from(err: crate::operation::list_fleets::ListFleetsError) -> Self {
820        match err {
821            crate::operation::list_fleets::ListFleetsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
822            crate::operation::list_fleets::ListFleetsError::Unhandled(inner) => Error::Unhandled(inner),
823        }
824    }
825}
826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
827where
828    R: Send + Sync + std::fmt::Debug + 'static,
829{
830    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
831        match err {
832            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
833            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
834                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
835                source: err.into(),
836            }),
837        }
838    }
839}
840impl From<crate::operation::list_projects::ListProjectsError> for Error {
841    fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
842        match err {
843            crate::operation::list_projects::ListProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
844            crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
845        }
846    }
847}
848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_groups::ListReportGroupsError, R>> for Error
849where
850    R: Send + Sync + std::fmt::Debug + 'static,
851{
852    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_groups::ListReportGroupsError, R>) -> Self {
853        match err {
854            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
855            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
856                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
857                source: err.into(),
858            }),
859        }
860    }
861}
862impl From<crate::operation::list_report_groups::ListReportGroupsError> for Error {
863    fn from(err: crate::operation::list_report_groups::ListReportGroupsError) -> Self {
864        match err {
865            crate::operation::list_report_groups::ListReportGroupsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
866            crate::operation::list_report_groups::ListReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
867        }
868    }
869}
870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports::ListReportsError, R>> for Error
871where
872    R: Send + Sync + std::fmt::Debug + 'static,
873{
874    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports::ListReportsError, R>) -> Self {
875        match err {
876            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
877            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
878                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
879                source: err.into(),
880            }),
881        }
882    }
883}
884impl From<crate::operation::list_reports::ListReportsError> for Error {
885    fn from(err: crate::operation::list_reports::ListReportsError) -> Self {
886        match err {
887            crate::operation::list_reports::ListReportsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
888            crate::operation::list_reports::ListReportsError::Unhandled(inner) => Error::Unhandled(inner),
889        }
890    }
891}
892impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports_for_report_group::ListReportsForReportGroupError, R>>
893    for Error
894where
895    R: Send + Sync + std::fmt::Debug + 'static,
896{
897    fn from(
898        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports_for_report_group::ListReportsForReportGroupError, R>,
899    ) -> 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_reports_for_report_group::ListReportsForReportGroupError> for Error {
910    fn from(err: crate::operation::list_reports_for_report_group::ListReportsForReportGroupError) -> Self {
911        match err {
912            crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::InvalidInputException(inner) => {
913                Error::InvalidInputException(inner)
914            }
915            crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::ResourceNotFoundException(inner) => {
916                Error::ResourceNotFoundException(inner)
917            }
918            crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
919        }
920    }
921}
922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_projects::ListSharedProjectsError, R>> for Error
923where
924    R: Send + Sync + std::fmt::Debug + 'static,
925{
926    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_projects::ListSharedProjectsError, R>) -> Self {
927        match err {
928            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
929            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
930                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
931                source: err.into(),
932            }),
933        }
934    }
935}
936impl From<crate::operation::list_shared_projects::ListSharedProjectsError> for Error {
937    fn from(err: crate::operation::list_shared_projects::ListSharedProjectsError) -> Self {
938        match err {
939            crate::operation::list_shared_projects::ListSharedProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
940            crate::operation::list_shared_projects::ListSharedProjectsError::Unhandled(inner) => Error::Unhandled(inner),
941        }
942    }
943}
944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_report_groups::ListSharedReportGroupsError, R>>
945    for Error
946where
947    R: Send + Sync + std::fmt::Debug + 'static,
948{
949    fn from(
950        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_report_groups::ListSharedReportGroupsError, R>,
951    ) -> Self {
952        match err {
953            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
954            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
955                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
956                source: err.into(),
957            }),
958        }
959    }
960}
961impl From<crate::operation::list_shared_report_groups::ListSharedReportGroupsError> for Error {
962    fn from(err: crate::operation::list_shared_report_groups::ListSharedReportGroupsError) -> Self {
963        match err {
964            crate::operation::list_shared_report_groups::ListSharedReportGroupsError::InvalidInputException(inner) => {
965                Error::InvalidInputException(inner)
966            }
967            crate::operation::list_shared_report_groups::ListSharedReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
968        }
969    }
970}
971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_credentials::ListSourceCredentialsError, R>> for Error
972where
973    R: Send + Sync + std::fmt::Debug + 'static,
974{
975    fn from(
976        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_credentials::ListSourceCredentialsError, R>,
977    ) -> Self {
978        match err {
979            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
980            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
981                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
982                source: err.into(),
983            }),
984        }
985    }
986}
987impl From<crate::operation::list_source_credentials::ListSourceCredentialsError> for Error {
988    fn from(err: crate::operation::list_source_credentials::ListSourceCredentialsError) -> Self {
989        match err {
990            crate::operation::list_source_credentials::ListSourceCredentialsError::InvalidInputException(inner) => {
991                Error::InvalidInputException(inner)
992            }
993            crate::operation::list_source_credentials::ListSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
994        }
995    }
996}
997impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
998where
999    R: Send + Sync + std::fmt::Debug + 'static,
1000{
1001    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1002        match err {
1003            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1004            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1005                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1006                source: err.into(),
1007            }),
1008        }
1009    }
1010}
1011impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1012    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1013        match err {
1014            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1015            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1016                Error::ResourceNotFoundException(inner)
1017            }
1018            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1019        }
1020    }
1021}
1022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build::RetryBuildError, R>> for Error
1023where
1024    R: Send + Sync + std::fmt::Debug + 'static,
1025{
1026    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build::RetryBuildError, R>) -> 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::retry_build::RetryBuildError> for Error {
1037    fn from(err: crate::operation::retry_build::RetryBuildError) -> Self {
1038        match err {
1039            crate::operation::retry_build::RetryBuildError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
1040            crate::operation::retry_build::RetryBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1041            crate::operation::retry_build::RetryBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1042            crate::operation::retry_build::RetryBuildError::Unhandled(inner) => Error::Unhandled(inner),
1043        }
1044    }
1045}
1046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build_batch::RetryBuildBatchError, R>> for Error
1047where
1048    R: Send + Sync + std::fmt::Debug + 'static,
1049{
1050    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build_batch::RetryBuildBatchError, R>) -> Self {
1051        match err {
1052            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1053            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1054                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1055                source: err.into(),
1056            }),
1057        }
1058    }
1059}
1060impl From<crate::operation::retry_build_batch::RetryBuildBatchError> for Error {
1061    fn from(err: crate::operation::retry_build_batch::RetryBuildBatchError) -> Self {
1062        match err {
1063            crate::operation::retry_build_batch::RetryBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1064            crate::operation::retry_build_batch::RetryBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1065            crate::operation::retry_build_batch::RetryBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
1066        }
1067    }
1068}
1069impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build::StartBuildError, R>> for Error
1070where
1071    R: Send + Sync + std::fmt::Debug + 'static,
1072{
1073    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build::StartBuildError, R>) -> Self {
1074        match err {
1075            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1076            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1077                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1078                source: err.into(),
1079            }),
1080        }
1081    }
1082}
1083impl From<crate::operation::start_build::StartBuildError> for Error {
1084    fn from(err: crate::operation::start_build::StartBuildError) -> Self {
1085        match err {
1086            crate::operation::start_build::StartBuildError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
1087            crate::operation::start_build::StartBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1088            crate::operation::start_build::StartBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1089            crate::operation::start_build::StartBuildError::Unhandled(inner) => Error::Unhandled(inner),
1090        }
1091    }
1092}
1093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build_batch::StartBuildBatchError, R>> for Error
1094where
1095    R: Send + Sync + std::fmt::Debug + 'static,
1096{
1097    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build_batch::StartBuildBatchError, R>) -> Self {
1098        match err {
1099            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1100            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1101                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1102                source: err.into(),
1103            }),
1104        }
1105    }
1106}
1107impl From<crate::operation::start_build_batch::StartBuildBatchError> for Error {
1108    fn from(err: crate::operation::start_build_batch::StartBuildBatchError) -> Self {
1109        match err {
1110            crate::operation::start_build_batch::StartBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1111            crate::operation::start_build_batch::StartBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1112            crate::operation::start_build_batch::StartBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
1113        }
1114    }
1115}
1116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build::StopBuildError, R>> for Error
1117where
1118    R: Send + Sync + std::fmt::Debug + 'static,
1119{
1120    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build::StopBuildError, R>) -> 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::stop_build::StopBuildError> for Error {
1131    fn from(err: crate::operation::stop_build::StopBuildError) -> Self {
1132        match err {
1133            crate::operation::stop_build::StopBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1134            crate::operation::stop_build::StopBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1135            crate::operation::stop_build::StopBuildError::Unhandled(inner) => Error::Unhandled(inner),
1136        }
1137    }
1138}
1139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build_batch::StopBuildBatchError, R>> for Error
1140where
1141    R: Send + Sync + std::fmt::Debug + 'static,
1142{
1143    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build_batch::StopBuildBatchError, R>) -> Self {
1144        match err {
1145            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1146            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1147                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1148                source: err.into(),
1149            }),
1150        }
1151    }
1152}
1153impl From<crate::operation::stop_build_batch::StopBuildBatchError> for Error {
1154    fn from(err: crate::operation::stop_build_batch::StopBuildBatchError) -> Self {
1155        match err {
1156            crate::operation::stop_build_batch::StopBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1157            crate::operation::stop_build_batch::StopBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1158            crate::operation::stop_build_batch::StopBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
1159        }
1160    }
1161}
1162impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>> for Error
1163where
1164    R: Send + Sync + std::fmt::Debug + 'static,
1165{
1166    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>) -> Self {
1167        match err {
1168            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1169            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1170                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1171                source: err.into(),
1172            }),
1173        }
1174    }
1175}
1176impl From<crate::operation::update_fleet::UpdateFleetError> for Error {
1177    fn from(err: crate::operation::update_fleet::UpdateFleetError) -> Self {
1178        match err {
1179            crate::operation::update_fleet::UpdateFleetError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
1180            crate::operation::update_fleet::UpdateFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1181            crate::operation::update_fleet::UpdateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1182            crate::operation::update_fleet::UpdateFleetError::Unhandled(inner) => Error::Unhandled(inner),
1183        }
1184    }
1185}
1186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
1187where
1188    R: Send + Sync + std::fmt::Debug + 'static,
1189{
1190    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
1191        match err {
1192            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1193            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1194                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1195                source: err.into(),
1196            }),
1197        }
1198    }
1199}
1200impl From<crate::operation::update_project::UpdateProjectError> for Error {
1201    fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
1202        match err {
1203            crate::operation::update_project::UpdateProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1204            crate::operation::update_project::UpdateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1205            crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1206        }
1207    }
1208}
1209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_visibility::UpdateProjectVisibilityError, R>>
1210    for Error
1211where
1212    R: Send + Sync + std::fmt::Debug + 'static,
1213{
1214    fn from(
1215        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_visibility::UpdateProjectVisibilityError, R>,
1216    ) -> 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::update_project_visibility::UpdateProjectVisibilityError> for Error {
1227    fn from(err: crate::operation::update_project_visibility::UpdateProjectVisibilityError) -> Self {
1228        match err {
1229            crate::operation::update_project_visibility::UpdateProjectVisibilityError::InvalidInputException(inner) => {
1230                Error::InvalidInputException(inner)
1231            }
1232            crate::operation::update_project_visibility::UpdateProjectVisibilityError::ResourceNotFoundException(inner) => {
1233                Error::ResourceNotFoundException(inner)
1234            }
1235            crate::operation::update_project_visibility::UpdateProjectVisibilityError::Unhandled(inner) => Error::Unhandled(inner),
1236        }
1237    }
1238}
1239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_group::UpdateReportGroupError, R>> for Error
1240where
1241    R: Send + Sync + std::fmt::Debug + 'static,
1242{
1243    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_group::UpdateReportGroupError, R>) -> Self {
1244        match err {
1245            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1246            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1247                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1248                source: err.into(),
1249            }),
1250        }
1251    }
1252}
1253impl From<crate::operation::update_report_group::UpdateReportGroupError> for Error {
1254    fn from(err: crate::operation::update_report_group::UpdateReportGroupError) -> Self {
1255        match err {
1256            crate::operation::update_report_group::UpdateReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1257            crate::operation::update_report_group::UpdateReportGroupError::ResourceNotFoundException(inner) => {
1258                Error::ResourceNotFoundException(inner)
1259            }
1260            crate::operation::update_report_group::UpdateReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
1261        }
1262    }
1263}
1264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>> for Error
1265where
1266    R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>) -> Self {
1269        match err {
1270            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1271            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1272                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1273                source: err.into(),
1274            }),
1275        }
1276    }
1277}
1278impl From<crate::operation::update_webhook::UpdateWebhookError> for Error {
1279    fn from(err: crate::operation::update_webhook::UpdateWebhookError) -> Self {
1280        match err {
1281            crate::operation::update_webhook::UpdateWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1282            crate::operation::update_webhook::UpdateWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
1283            crate::operation::update_webhook::UpdateWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1284            crate::operation::update_webhook::UpdateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
1285        }
1286    }
1287}
1288impl ::std::error::Error for Error {
1289    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1290        match self {
1291            Error::AccountLimitExceededException(inner) => inner.source(),
1292            Error::InvalidInputException(inner) => inner.source(),
1293            Error::OAuthProviderException(inner) => inner.source(),
1294            Error::ResourceAlreadyExistsException(inner) => inner.source(),
1295            Error::ResourceNotFoundException(inner) => inner.source(),
1296            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1297        }
1298    }
1299}
1300impl ::aws_types::request_id::RequestId for Error {
1301    fn request_id(&self) -> Option<&str> {
1302        match self {
1303            Self::AccountLimitExceededException(e) => e.request_id(),
1304            Self::InvalidInputException(e) => e.request_id(),
1305            Self::OAuthProviderException(e) => e.request_id(),
1306            Self::ResourceAlreadyExistsException(e) => e.request_id(),
1307            Self::ResourceNotFoundException(e) => e.request_id(),
1308            Self::Unhandled(e) => e.meta.request_id(),
1309        }
1310    }
1311}