Skip to main content

aws_sdk_securityagent/
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>You do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request could not be completed due to a conflict with the current state of the resource.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An unexpected error occurred during the processing of your request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request was denied due to request throttling.</p>
15    ThrottlingException(crate::types::error::ThrottlingException),
16    /// <p>The input fails to satisfy the constraints specified by the service.</p>
17    ValidationException(crate::types::error::ValidationException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::AccessDeniedException(inner) => inner.fmt(f),
31            Error::ConflictException(inner) => inner.fmt(f),
32            Error::InternalServerException(inner) => inner.fmt(f),
33            Error::ResourceNotFoundException(inner) => inner.fmt(f),
34            Error::ThrottlingException(inner) => inner.fmt(f),
35            Error::ValidationException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::AccessDeniedException(inner) => inner.meta(),
58            Self::ConflictException(inner) => inner.meta(),
59            Self::InternalServerException(inner) => inner.meta(),
60            Self::ResourceNotFoundException(inner) => inner.meta(),
61            Self::ThrottlingException(inner) => inner.meta(),
62            Self::ValidationException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_artifact::AddArtifactError, 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::add_artifact::AddArtifactError, 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::add_artifact::AddArtifactError> for Error {
82    fn from(err: crate::operation::add_artifact::AddArtifactError) -> Self {
83        match err {
84            crate::operation::add_artifact::AddArtifactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
85            crate::operation::add_artifact::AddArtifactError::InternalServerException(inner) => Error::InternalServerException(inner),
86            crate::operation::add_artifact::AddArtifactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
87            crate::operation::add_artifact::AddArtifactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
88            crate::operation::add_artifact::AddArtifactError::ValidationException(inner) => Error::ValidationException(inner),
89            crate::operation::add_artifact::AddArtifactError::Unhandled(inner) => Error::Unhandled(inner),
90        }
91    }
92}
93impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError, R>>
94    for Error
95where
96    R: Send + Sync + std::fmt::Debug + 'static,
97{
98    fn from(
99        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError, R>,
100    ) -> Self {
101        match err {
102            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
103            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
104                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
105                source: err.into(),
106            }),
107        }
108    }
109}
110impl From<crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError> for Error {
111    fn from(err: crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError) -> Self {
112        match err {
113            crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError::Unhandled(inner) => Error::Unhandled(inner),
114        }
115    }
116}
117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_pentests::BatchDeletePentestsError, R>> for Error
118where
119    R: Send + Sync + std::fmt::Debug + 'static,
120{
121    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_pentests::BatchDeletePentestsError, R>) -> Self {
122        match err {
123            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
124            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
125                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
126                source: err.into(),
127            }),
128        }
129    }
130}
131impl From<crate::operation::batch_delete_pentests::BatchDeletePentestsError> for Error {
132    fn from(err: crate::operation::batch_delete_pentests::BatchDeletePentestsError) -> Self {
133        match err {
134            crate::operation::batch_delete_pentests::BatchDeletePentestsError::Unhandled(inner) => Error::Unhandled(inner),
135        }
136    }
137}
138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError, R>> for Error
139where
140    R: Send + Sync + std::fmt::Debug + 'static,
141{
142    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError, R>) -> 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_agent_spaces::BatchGetAgentSpacesError> for Error {
153    fn from(err: crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError) -> Self {
154        match err {
155            crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError::Unhandled(inner) => Error::Unhandled(inner),
156        }
157    }
158}
159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError, R>>
160    for Error
161where
162    R: Send + Sync + std::fmt::Debug + 'static,
163{
164    fn from(
165        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError, R>,
166    ) -> Self {
167        match err {
168            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
169            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
170                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
171                source: err.into(),
172            }),
173        }
174    }
175}
176impl From<crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError> for Error {
177    fn from(err: crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError) -> Self {
178        match err {
179            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::AccessDeniedException(inner) => {
180                Error::AccessDeniedException(inner)
181            }
182            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::InternalServerException(inner) => {
183                Error::InternalServerException(inner)
184            }
185            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::ResourceNotFoundException(inner) => {
186                Error::ResourceNotFoundException(inner)
187            }
188            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::ThrottlingException(inner) => {
189                Error::ThrottlingException(inner)
190            }
191            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::ValidationException(inner) => {
192                Error::ValidationException(inner)
193            }
194            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::Unhandled(inner) => Error::Unhandled(inner),
195        }
196    }
197}
198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError, R>>
199    for Error
200where
201    R: Send + Sync + std::fmt::Debug + 'static,
202{
203    fn from(
204        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError, R>,
205    ) -> Self {
206        match err {
207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
210                source: err.into(),
211            }),
212        }
213    }
214}
215impl From<crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError> for Error {
216    fn from(err: crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError) -> Self {
217        match err {
218            crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError::Unhandled(inner) => Error::Unhandled(inner),
219        }
220    }
221}
222impl<R>
223    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError, R>>
224    for Error
225where
226    R: Send + Sync + std::fmt::Debug + 'static,
227{
228    fn from(
229        err: ::aws_smithy_runtime_api::client::result::SdkError<
230            crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError,
231            R,
232        >,
233    ) -> Self {
234        match err {
235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
238                source: err.into(),
239            }),
240        }
241    }
242}
243impl From<crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError> for Error {
244    fn from(err: crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError) -> Self {
245        match err {
246            crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
247        }
248    }
249}
250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError, R>> for Error
251where
252    R: Send + Sync + std::fmt::Debug + 'static,
253{
254    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError, R>) -> Self {
255        match err {
256            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
257            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
258                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
259                source: err.into(),
260            }),
261        }
262    }
263}
264impl From<crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError> for Error {
265    fn from(err: crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError) -> Self {
266        match err {
267            crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError::Unhandled(inner) => Error::Unhandled(inner),
268        }
269    }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_findings::BatchGetFindingsError, 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::batch_get_findings::BatchGetFindingsError, 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::batch_get_findings::BatchGetFindingsError> for Error {
286    fn from(err: crate::operation::batch_get_findings::BatchGetFindingsError) -> Self {
287        match err {
288            crate::operation::batch_get_findings::BatchGetFindingsError::Unhandled(inner) => Error::Unhandled(inner),
289        }
290    }
291}
292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError, R>> for Error
293where
294    R: Send + Sync + std::fmt::Debug + 'static,
295{
296    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError, R>) -> Self {
297        match err {
298            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
299            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
300                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
301                source: err.into(),
302            }),
303        }
304    }
305}
306impl From<crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError> for Error {
307    fn from(err: crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError) -> Self {
308        match err {
309            crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError::Unhandled(inner) => Error::Unhandled(inner),
310        }
311    }
312}
313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError, R>>
314    for Error
315where
316    R: Send + Sync + std::fmt::Debug + 'static,
317{
318    fn from(
319        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError, R>,
320    ) -> Self {
321        match err {
322            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
323            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
324                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
325                source: err.into(),
326            }),
327        }
328    }
329}
330impl From<crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError> for Error {
331    fn from(err: crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError) -> Self {
332        match err {
333            crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
334        }
335    }
336}
337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentests::BatchGetPentestsError, R>> for Error
338where
339    R: Send + Sync + std::fmt::Debug + 'static,
340{
341    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentests::BatchGetPentestsError, R>) -> Self {
342        match err {
343            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
344            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
345                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
346                source: err.into(),
347            }),
348        }
349    }
350}
351impl From<crate::operation::batch_get_pentests::BatchGetPentestsError> for Error {
352    fn from(err: crate::operation::batch_get_pentests::BatchGetPentestsError) -> Self {
353        match err {
354            crate::operation::batch_get_pentests::BatchGetPentestsError::Unhandled(inner) => Error::Unhandled(inner),
355        }
356    }
357}
358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_target_domains::BatchGetTargetDomainsError, R>> for Error
359where
360    R: Send + Sync + std::fmt::Debug + 'static,
361{
362    fn from(
363        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_target_domains::BatchGetTargetDomainsError, R>,
364    ) -> Self {
365        match err {
366            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
367            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
368                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
369                source: err.into(),
370            }),
371        }
372    }
373}
374impl From<crate::operation::batch_get_target_domains::BatchGetTargetDomainsError> for Error {
375    fn from(err: crate::operation::batch_get_target_domains::BatchGetTargetDomainsError) -> Self {
376        match err {
377            crate::operation::batch_get_target_domains::BatchGetTargetDomainsError::Unhandled(inner) => Error::Unhandled(inner),
378        }
379    }
380}
381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_space::CreateAgentSpaceError, R>> for Error
382where
383    R: Send + Sync + std::fmt::Debug + 'static,
384{
385    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_space::CreateAgentSpaceError, R>) -> Self {
386        match err {
387            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
388            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
389                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
390                source: err.into(),
391            }),
392        }
393    }
394}
395impl From<crate::operation::create_agent_space::CreateAgentSpaceError> for Error {
396    fn from(err: crate::operation::create_agent_space::CreateAgentSpaceError) -> Self {
397        match err {
398            crate::operation::create_agent_space::CreateAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
399        }
400    }
401}
402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>> for Error
403where
404    R: Send + Sync + std::fmt::Debug + 'static,
405{
406    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>) -> Self {
407        match err {
408            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
409            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
410                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
411                source: err.into(),
412            }),
413        }
414    }
415}
416impl From<crate::operation::create_application::CreateApplicationError> for Error {
417    fn from(err: crate::operation::create_application::CreateApplicationError) -> Self {
418        match err {
419            crate::operation::create_application::CreateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
420        }
421    }
422}
423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_review::CreateCodeReviewError, 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::create_code_review::CreateCodeReviewError, 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::create_code_review::CreateCodeReviewError> for Error {
438    fn from(err: crate::operation::create_code_review::CreateCodeReviewError) -> Self {
439        match err {
440            crate::operation::create_code_review::CreateCodeReviewError::Unhandled(inner) => Error::Unhandled(inner),
441        }
442    }
443}
444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>> for Error
445where
446    R: Send + Sync + std::fmt::Debug + 'static,
447{
448    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>) -> Self {
449        match err {
450            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
451            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
452                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
453                source: err.into(),
454            }),
455        }
456    }
457}
458impl From<crate::operation::create_integration::CreateIntegrationError> for Error {
459    fn from(err: crate::operation::create_integration::CreateIntegrationError) -> Self {
460        match err {
461            crate::operation::create_integration::CreateIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
462            crate::operation::create_integration::CreateIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
463            crate::operation::create_integration::CreateIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
464            crate::operation::create_integration::CreateIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
465            crate::operation::create_integration::CreateIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
466            crate::operation::create_integration::CreateIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
467            crate::operation::create_integration::CreateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
468        }
469    }
470}
471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_membership::CreateMembershipError, R>> for Error
472where
473    R: Send + Sync + std::fmt::Debug + 'static,
474{
475    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_membership::CreateMembershipError, R>) -> Self {
476        match err {
477            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
478            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
479                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
480                source: err.into(),
481            }),
482        }
483    }
484}
485impl From<crate::operation::create_membership::CreateMembershipError> for Error {
486    fn from(err: crate::operation::create_membership::CreateMembershipError) -> Self {
487        match err {
488            crate::operation::create_membership::CreateMembershipError::Unhandled(inner) => Error::Unhandled(inner),
489        }
490    }
491}
492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pentest::CreatePentestError, R>> for Error
493where
494    R: Send + Sync + std::fmt::Debug + 'static,
495{
496    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pentest::CreatePentestError, R>) -> Self {
497        match err {
498            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
499            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
500                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
501                source: err.into(),
502            }),
503        }
504    }
505}
506impl From<crate::operation::create_pentest::CreatePentestError> for Error {
507    fn from(err: crate::operation::create_pentest::CreatePentestError) -> Self {
508        match err {
509            crate::operation::create_pentest::CreatePentestError::Unhandled(inner) => Error::Unhandled(inner),
510        }
511    }
512}
513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_domain::CreateTargetDomainError, R>> for Error
514where
515    R: Send + Sync + std::fmt::Debug + 'static,
516{
517    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_domain::CreateTargetDomainError, R>) -> Self {
518        match err {
519            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
520            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
521                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
522                source: err.into(),
523            }),
524        }
525    }
526}
527impl From<crate::operation::create_target_domain::CreateTargetDomainError> for Error {
528    fn from(err: crate::operation::create_target_domain::CreateTargetDomainError) -> Self {
529        match err {
530            crate::operation::create_target_domain::CreateTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_space::DeleteAgentSpaceError, R>> for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_space::DeleteAgentSpaceError, R>) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::delete_agent_space::DeleteAgentSpaceError> for Error {
549    fn from(err: crate::operation::delete_agent_space::DeleteAgentSpaceError) -> Self {
550        match err {
551            crate::operation::delete_agent_space::DeleteAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
556where
557    R: Send + Sync + std::fmt::Debug + 'static,
558{
559    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
560        match err {
561            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
562            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
563                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
564                source: err.into(),
565            }),
566        }
567    }
568}
569impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
570    fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
571        match err {
572            crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
573        }
574    }
575}
576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>> for Error
577where
578    R: Send + Sync + std::fmt::Debug + 'static,
579{
580    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>) -> Self {
581        match err {
582            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
583            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
584                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
585                source: err.into(),
586            }),
587        }
588    }
589}
590impl From<crate::operation::delete_artifact::DeleteArtifactError> for Error {
591    fn from(err: crate::operation::delete_artifact::DeleteArtifactError) -> Self {
592        match err {
593            crate::operation::delete_artifact::DeleteArtifactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
594            crate::operation::delete_artifact::DeleteArtifactError::InternalServerException(inner) => Error::InternalServerException(inner),
595            crate::operation::delete_artifact::DeleteArtifactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
596            crate::operation::delete_artifact::DeleteArtifactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
597            crate::operation::delete_artifact::DeleteArtifactError::ValidationException(inner) => Error::ValidationException(inner),
598            crate::operation::delete_artifact::DeleteArtifactError::Unhandled(inner) => Error::Unhandled(inner),
599        }
600    }
601}
602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
603where
604    R: Send + Sync + std::fmt::Debug + 'static,
605{
606    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
607        match err {
608            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
609            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
610                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
611                source: err.into(),
612            }),
613        }
614    }
615}
616impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
617    fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
618        match err {
619            crate::operation::delete_integration::DeleteIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
620            crate::operation::delete_integration::DeleteIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
621            crate::operation::delete_integration::DeleteIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
622            crate::operation::delete_integration::DeleteIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
623            crate::operation::delete_integration::DeleteIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
624            crate::operation::delete_integration::DeleteIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
625            crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
626        }
627    }
628}
629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_membership::DeleteMembershipError, R>> for Error
630where
631    R: Send + Sync + std::fmt::Debug + 'static,
632{
633    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_membership::DeleteMembershipError, R>) -> Self {
634        match err {
635            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
636            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
637                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
638                source: err.into(),
639            }),
640        }
641    }
642}
643impl From<crate::operation::delete_membership::DeleteMembershipError> for Error {
644    fn from(err: crate::operation::delete_membership::DeleteMembershipError) -> Self {
645        match err {
646            crate::operation::delete_membership::DeleteMembershipError::Unhandled(inner) => Error::Unhandled(inner),
647        }
648    }
649}
650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_domain::DeleteTargetDomainError, R>> for Error
651where
652    R: Send + Sync + std::fmt::Debug + 'static,
653{
654    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_domain::DeleteTargetDomainError, R>) -> Self {
655        match err {
656            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
657            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
658                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
659                source: err.into(),
660            }),
661        }
662    }
663}
664impl From<crate::operation::delete_target_domain::DeleteTargetDomainError> for Error {
665    fn from(err: crate::operation::delete_target_domain::DeleteTargetDomainError) -> Self {
666        match err {
667            crate::operation::delete_target_domain::DeleteTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
668        }
669    }
670}
671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application::GetApplicationError, R>> for Error
672where
673    R: Send + Sync + std::fmt::Debug + 'static,
674{
675    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application::GetApplicationError, R>) -> Self {
676        match err {
677            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
678            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
679                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
680                source: err.into(),
681            }),
682        }
683    }
684}
685impl From<crate::operation::get_application::GetApplicationError> for Error {
686    fn from(err: crate::operation::get_application::GetApplicationError) -> Self {
687        match err {
688            crate::operation::get_application::GetApplicationError::Unhandled(inner) => Error::Unhandled(inner),
689        }
690    }
691}
692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_artifact::GetArtifactError, R>> for Error
693where
694    R: Send + Sync + std::fmt::Debug + 'static,
695{
696    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_artifact::GetArtifactError, R>) -> Self {
697        match err {
698            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
699            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
700                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
701                source: err.into(),
702            }),
703        }
704    }
705}
706impl From<crate::operation::get_artifact::GetArtifactError> for Error {
707    fn from(err: crate::operation::get_artifact::GetArtifactError) -> Self {
708        match err {
709            crate::operation::get_artifact::GetArtifactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
710            crate::operation::get_artifact::GetArtifactError::InternalServerException(inner) => Error::InternalServerException(inner),
711            crate::operation::get_artifact::GetArtifactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
712            crate::operation::get_artifact::GetArtifactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
713            crate::operation::get_artifact::GetArtifactError::ValidationException(inner) => Error::ValidationException(inner),
714            crate::operation::get_artifact::GetArtifactError::Unhandled(inner) => Error::Unhandled(inner),
715        }
716    }
717}
718impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
719where
720    R: Send + Sync + std::fmt::Debug + 'static,
721{
722    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
723        match err {
724            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
725            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
726                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
727                source: err.into(),
728            }),
729        }
730    }
731}
732impl From<crate::operation::get_integration::GetIntegrationError> for Error {
733    fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
734        match err {
735            crate::operation::get_integration::GetIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
736            crate::operation::get_integration::GetIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
737            crate::operation::get_integration::GetIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
738            crate::operation::get_integration::GetIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
739            crate::operation::get_integration::GetIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
740            crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
741        }
742    }
743}
744impl<R>
745    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_provider_registration::InitiateProviderRegistrationError, R>>
746    for Error
747where
748    R: Send + Sync + std::fmt::Debug + 'static,
749{
750    fn from(
751        err: ::aws_smithy_runtime_api::client::result::SdkError<
752            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError,
753            R,
754        >,
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::initiate_provider_registration::InitiateProviderRegistrationError> for Error {
766    fn from(err: crate::operation::initiate_provider_registration::InitiateProviderRegistrationError) -> Self {
767        match err {
768            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::AccessDeniedException(inner) => {
769                Error::AccessDeniedException(inner)
770            }
771            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ConflictException(inner) => {
772                Error::ConflictException(inner)
773            }
774            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::InternalServerException(inner) => {
775                Error::InternalServerException(inner)
776            }
777            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ResourceNotFoundException(inner) => {
778                Error::ResourceNotFoundException(inner)
779            }
780            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ThrottlingException(inner) => {
781                Error::ThrottlingException(inner)
782            }
783            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ValidationException(inner) => {
784                Error::ValidationException(inner)
785            }
786            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
787        }
788    }
789}
790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_spaces::ListAgentSpacesError, R>> for Error
791where
792    R: Send + Sync + std::fmt::Debug + 'static,
793{
794    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_spaces::ListAgentSpacesError, R>) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::list_agent_spaces::ListAgentSpacesError> for Error {
805    fn from(err: crate::operation::list_agent_spaces::ListAgentSpacesError) -> Self {
806        match err {
807            crate::operation::list_agent_spaces::ListAgentSpacesError::Unhandled(inner) => Error::Unhandled(inner),
808        }
809    }
810}
811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_applications::ListApplicationsError, R>> for Error
812where
813    R: Send + Sync + std::fmt::Debug + 'static,
814{
815    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_applications::ListApplicationsError, R>) -> Self {
816        match err {
817            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
818            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
819                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
820                source: err.into(),
821            }),
822        }
823    }
824}
825impl From<crate::operation::list_applications::ListApplicationsError> for Error {
826    fn from(err: crate::operation::list_applications::ListApplicationsError) -> Self {
827        match err {
828            crate::operation::list_applications::ListApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
829        }
830    }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>> for Error
833where
834    R: Send + Sync + std::fmt::Debug + 'static,
835{
836    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>) -> Self {
837        match err {
838            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
839            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
840                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
841                source: err.into(),
842            }),
843        }
844    }
845}
846impl From<crate::operation::list_artifacts::ListArtifactsError> for Error {
847    fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
848        match err {
849            crate::operation::list_artifacts::ListArtifactsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
850            crate::operation::list_artifacts::ListArtifactsError::InternalServerException(inner) => Error::InternalServerException(inner),
851            crate::operation::list_artifacts::ListArtifactsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
852            crate::operation::list_artifacts::ListArtifactsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
853            crate::operation::list_artifacts::ListArtifactsError::ValidationException(inner) => Error::ValidationException(inner),
854            crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
855        }
856    }
857}
858impl<R>
859    From<
860        ::aws_smithy_runtime_api::client::result::SdkError<
861            crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError,
862            R,
863        >,
864    > for Error
865where
866    R: Send + Sync + std::fmt::Debug + 'static,
867{
868    fn from(
869        err: ::aws_smithy_runtime_api::client::result::SdkError<
870            crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError,
871            R,
872        >,
873    ) -> Self {
874        match err {
875            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
876            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
877                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
878                source: err.into(),
879            }),
880        }
881    }
882}
883impl From<crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError> for Error {
884    fn from(err: crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError) -> Self {
885        match err {
886            crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError::Unhandled(inner) => {
887                Error::Unhandled(inner)
888            }
889        }
890    }
891}
892impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError, 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_code_review_job_tasks::ListCodeReviewJobTasksError, 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_code_review_job_tasks::ListCodeReviewJobTasksError> for Error {
910    fn from(err: crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError) -> Self {
911        match err {
912            crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
913        }
914    }
915}
916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_reviews::ListCodeReviewsError, R>> for Error
917where
918    R: Send + Sync + std::fmt::Debug + 'static,
919{
920    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_reviews::ListCodeReviewsError, R>) -> Self {
921        match err {
922            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
923            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
924                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
925                source: err.into(),
926            }),
927        }
928    }
929}
930impl From<crate::operation::list_code_reviews::ListCodeReviewsError> for Error {
931    fn from(err: crate::operation::list_code_reviews::ListCodeReviewsError) -> Self {
932        match err {
933            crate::operation::list_code_reviews::ListCodeReviewsError::Unhandled(inner) => Error::Unhandled(inner),
934        }
935    }
936}
937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError, R>>
938    for Error
939where
940    R: Send + Sync + std::fmt::Debug + 'static,
941{
942    fn from(
943        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError, R>,
944    ) -> Self {
945        match err {
946            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
947            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
948                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
949                source: err.into(),
950            }),
951        }
952    }
953}
954impl From<crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError> for Error {
955    fn from(err: crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError) -> Self {
956        match err {
957            crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
958        }
959    }
960}
961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, 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_findings::ListFindingsError, 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_findings::ListFindingsError> for Error {
976    fn from(err: crate::operation::list_findings::ListFindingsError) -> Self {
977        match err {
978            crate::operation::list_findings::ListFindingsError::Unhandled(inner) => Error::Unhandled(inner),
979        }
980    }
981}
982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrated_resources::ListIntegratedResourcesError, R>>
983    for Error
984where
985    R: Send + Sync + std::fmt::Debug + 'static,
986{
987    fn from(
988        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrated_resources::ListIntegratedResourcesError, R>,
989    ) -> Self {
990        match err {
991            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
992            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
993                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
994                source: err.into(),
995            }),
996        }
997    }
998}
999impl From<crate::operation::list_integrated_resources::ListIntegratedResourcesError> for Error {
1000    fn from(err: crate::operation::list_integrated_resources::ListIntegratedResourcesError) -> Self {
1001        match err {
1002            crate::operation::list_integrated_resources::ListIntegratedResourcesError::AccessDeniedException(inner) => {
1003                Error::AccessDeniedException(inner)
1004            }
1005            crate::operation::list_integrated_resources::ListIntegratedResourcesError::InternalServerException(inner) => {
1006                Error::InternalServerException(inner)
1007            }
1008            crate::operation::list_integrated_resources::ListIntegratedResourcesError::ResourceNotFoundException(inner) => {
1009                Error::ResourceNotFoundException(inner)
1010            }
1011            crate::operation::list_integrated_resources::ListIntegratedResourcesError::ThrottlingException(inner) => {
1012                Error::ThrottlingException(inner)
1013            }
1014            crate::operation::list_integrated_resources::ListIntegratedResourcesError::ValidationException(inner) => {
1015                Error::ValidationException(inner)
1016            }
1017            crate::operation::list_integrated_resources::ListIntegratedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1018        }
1019    }
1020}
1021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>> for Error
1022where
1023    R: Send + Sync + std::fmt::Debug + 'static,
1024{
1025    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>) -> Self {
1026        match err {
1027            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1028            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1029                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1030                source: err.into(),
1031            }),
1032        }
1033    }
1034}
1035impl From<crate::operation::list_integrations::ListIntegrationsError> for Error {
1036    fn from(err: crate::operation::list_integrations::ListIntegrationsError) -> Self {
1037        match err {
1038            crate::operation::list_integrations::ListIntegrationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1039            crate::operation::list_integrations::ListIntegrationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1040            crate::operation::list_integrations::ListIntegrationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1041            crate::operation::list_integrations::ListIntegrationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1042            crate::operation::list_integrations::ListIntegrationsError::ValidationException(inner) => Error::ValidationException(inner),
1043            crate::operation::list_integrations::ListIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
1044        }
1045    }
1046}
1047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memberships::ListMembershipsError, R>> for Error
1048where
1049    R: Send + Sync + std::fmt::Debug + 'static,
1050{
1051    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memberships::ListMembershipsError, R>) -> Self {
1052        match err {
1053            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1054            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1055                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1056                source: err.into(),
1057            }),
1058        }
1059    }
1060}
1061impl From<crate::operation::list_memberships::ListMembershipsError> for Error {
1062    fn from(err: crate::operation::list_memberships::ListMembershipsError) -> Self {
1063        match err {
1064            crate::operation::list_memberships::ListMembershipsError::Unhandled(inner) => Error::Unhandled(inner),
1065        }
1066    }
1067}
1068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError, R>>
1069    for Error
1070where
1071    R: Send + Sync + std::fmt::Debug + 'static,
1072{
1073    fn from(
1074        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError, R>,
1075    ) -> Self {
1076        match err {
1077            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1078            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1079                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1080                source: err.into(),
1081            }),
1082        }
1083    }
1084}
1085impl From<crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError> for Error {
1086    fn from(err: crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError) -> Self {
1087        match err {
1088            crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError::Unhandled(inner) => Error::Unhandled(inner),
1089        }
1090    }
1091}
1092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_job_tasks::ListPentestJobTasksError, R>> for Error
1093where
1094    R: Send + Sync + std::fmt::Debug + 'static,
1095{
1096    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_job_tasks::ListPentestJobTasksError, R>) -> Self {
1097        match err {
1098            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1099            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1100                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1101                source: err.into(),
1102            }),
1103        }
1104    }
1105}
1106impl From<crate::operation::list_pentest_job_tasks::ListPentestJobTasksError> for Error {
1107    fn from(err: crate::operation::list_pentest_job_tasks::ListPentestJobTasksError) -> Self {
1108        match err {
1109            crate::operation::list_pentest_job_tasks::ListPentestJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
1110        }
1111    }
1112}
1113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentests::ListPentestsError, R>> for Error
1114where
1115    R: Send + Sync + std::fmt::Debug + 'static,
1116{
1117    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentests::ListPentestsError, R>) -> Self {
1118        match err {
1119            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1120            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1121                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1122                source: err.into(),
1123            }),
1124        }
1125    }
1126}
1127impl From<crate::operation::list_pentests::ListPentestsError> for Error {
1128    fn from(err: crate::operation::list_pentests::ListPentestsError) -> Self {
1129        match err {
1130            crate::operation::list_pentests::ListPentestsError::Unhandled(inner) => Error::Unhandled(inner),
1131        }
1132    }
1133}
1134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1135where
1136    R: Send + Sync + std::fmt::Debug + 'static,
1137{
1138    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1139        match err {
1140            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1141            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1142                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1143                source: err.into(),
1144            }),
1145        }
1146    }
1147}
1148impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1149    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1150        match err {
1151            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1152        }
1153    }
1154}
1155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_target_domains::ListTargetDomainsError, R>> for Error
1156where
1157    R: Send + Sync + std::fmt::Debug + 'static,
1158{
1159    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_target_domains::ListTargetDomainsError, R>) -> Self {
1160        match err {
1161            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1162            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1163                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1164                source: err.into(),
1165            }),
1166        }
1167    }
1168}
1169impl From<crate::operation::list_target_domains::ListTargetDomainsError> for Error {
1170    fn from(err: crate::operation::list_target_domains::ListTargetDomainsError) -> Self {
1171        match err {
1172            crate::operation::list_target_domains::ListTargetDomainsError::Unhandled(inner) => Error::Unhandled(inner),
1173        }
1174    }
1175}
1176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_remediation::StartCodeRemediationError, R>> for Error
1177where
1178    R: Send + Sync + std::fmt::Debug + 'static,
1179{
1180    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_remediation::StartCodeRemediationError, R>) -> Self {
1181        match err {
1182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1185                source: err.into(),
1186            }),
1187        }
1188    }
1189}
1190impl From<crate::operation::start_code_remediation::StartCodeRemediationError> for Error {
1191    fn from(err: crate::operation::start_code_remediation::StartCodeRemediationError) -> Self {
1192        match err {
1193            crate::operation::start_code_remediation::StartCodeRemediationError::Unhandled(inner) => Error::Unhandled(inner),
1194        }
1195    }
1196}
1197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_review_job::StartCodeReviewJobError, R>> for Error
1198where
1199    R: Send + Sync + std::fmt::Debug + 'static,
1200{
1201    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_review_job::StartCodeReviewJobError, R>) -> Self {
1202        match err {
1203            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1204            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1205                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1206                source: err.into(),
1207            }),
1208        }
1209    }
1210}
1211impl From<crate::operation::start_code_review_job::StartCodeReviewJobError> for Error {
1212    fn from(err: crate::operation::start_code_review_job::StartCodeReviewJobError) -> Self {
1213        match err {
1214            crate::operation::start_code_review_job::StartCodeReviewJobError::Unhandled(inner) => Error::Unhandled(inner),
1215        }
1216    }
1217}
1218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pentest_job::StartPentestJobError, R>> for Error
1219where
1220    R: Send + Sync + std::fmt::Debug + 'static,
1221{
1222    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pentest_job::StartPentestJobError, R>) -> Self {
1223        match err {
1224            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1225            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1226                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1227                source: err.into(),
1228            }),
1229        }
1230    }
1231}
1232impl From<crate::operation::start_pentest_job::StartPentestJobError> for Error {
1233    fn from(err: crate::operation::start_pentest_job::StartPentestJobError) -> Self {
1234        match err {
1235            crate::operation::start_pentest_job::StartPentestJobError::Unhandled(inner) => Error::Unhandled(inner),
1236        }
1237    }
1238}
1239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_code_review_job::StopCodeReviewJobError, 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::stop_code_review_job::StopCodeReviewJobError, 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::stop_code_review_job::StopCodeReviewJobError> for Error {
1254    fn from(err: crate::operation::stop_code_review_job::StopCodeReviewJobError) -> Self {
1255        match err {
1256            crate::operation::stop_code_review_job::StopCodeReviewJobError::Unhandled(inner) => Error::Unhandled(inner),
1257        }
1258    }
1259}
1260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pentest_job::StopPentestJobError, R>> for Error
1261where
1262    R: Send + Sync + std::fmt::Debug + 'static,
1263{
1264    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pentest_job::StopPentestJobError, R>) -> Self {
1265        match err {
1266            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1267            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1268                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1269                source: err.into(),
1270            }),
1271        }
1272    }
1273}
1274impl From<crate::operation::stop_pentest_job::StopPentestJobError> for Error {
1275    fn from(err: crate::operation::stop_pentest_job::StopPentestJobError) -> Self {
1276        match err {
1277            crate::operation::stop_pentest_job::StopPentestJobError::Unhandled(inner) => Error::Unhandled(inner),
1278        }
1279    }
1280}
1281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1282where
1283    R: Send + Sync + std::fmt::Debug + 'static,
1284{
1285    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1286        match err {
1287            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1288            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1289                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1290                source: err.into(),
1291            }),
1292        }
1293    }
1294}
1295impl From<crate::operation::tag_resource::TagResourceError> for Error {
1296    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1297        match err {
1298            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1299        }
1300    }
1301}
1302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1303where
1304    R: Send + Sync + std::fmt::Debug + 'static,
1305{
1306    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1307        match err {
1308            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1309            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1310                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1311                source: err.into(),
1312            }),
1313        }
1314    }
1315}
1316impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1317    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1318        match err {
1319            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1320        }
1321    }
1322}
1323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_space::UpdateAgentSpaceError, R>> for Error
1324where
1325    R: Send + Sync + std::fmt::Debug + 'static,
1326{
1327    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_space::UpdateAgentSpaceError, R>) -> Self {
1328        match err {
1329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1332                source: err.into(),
1333            }),
1334        }
1335    }
1336}
1337impl From<crate::operation::update_agent_space::UpdateAgentSpaceError> for Error {
1338    fn from(err: crate::operation::update_agent_space::UpdateAgentSpaceError) -> Self {
1339        match err {
1340            crate::operation::update_agent_space::UpdateAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1341        }
1342    }
1343}
1344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
1345where
1346    R: Send + Sync + std::fmt::Debug + 'static,
1347{
1348    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
1349        match err {
1350            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1351            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1352                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1353                source: err.into(),
1354            }),
1355        }
1356    }
1357}
1358impl From<crate::operation::update_application::UpdateApplicationError> for Error {
1359    fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
1360        match err {
1361            crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
1362        }
1363    }
1364}
1365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_review::UpdateCodeReviewError, R>> for Error
1366where
1367    R: Send + Sync + std::fmt::Debug + 'static,
1368{
1369    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_review::UpdateCodeReviewError, R>) -> Self {
1370        match err {
1371            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1372            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1373                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1374                source: err.into(),
1375            }),
1376        }
1377    }
1378}
1379impl From<crate::operation::update_code_review::UpdateCodeReviewError> for Error {
1380    fn from(err: crate::operation::update_code_review::UpdateCodeReviewError) -> Self {
1381        match err {
1382            crate::operation::update_code_review::UpdateCodeReviewError::Unhandled(inner) => Error::Unhandled(inner),
1383        }
1384    }
1385}
1386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_finding::UpdateFindingError, R>> for Error
1387where
1388    R: Send + Sync + std::fmt::Debug + 'static,
1389{
1390    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_finding::UpdateFindingError, R>) -> Self {
1391        match err {
1392            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1393            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1394                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1395                source: err.into(),
1396            }),
1397        }
1398    }
1399}
1400impl From<crate::operation::update_finding::UpdateFindingError> for Error {
1401    fn from(err: crate::operation::update_finding::UpdateFindingError) -> Self {
1402        match err {
1403            crate::operation::update_finding::UpdateFindingError::Unhandled(inner) => Error::Unhandled(inner),
1404        }
1405    }
1406}
1407impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integrated_resources::UpdateIntegratedResourcesError, R>>
1408    for Error
1409where
1410    R: Send + Sync + std::fmt::Debug + 'static,
1411{
1412    fn from(
1413        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integrated_resources::UpdateIntegratedResourcesError, R>,
1414    ) -> 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_integrated_resources::UpdateIntegratedResourcesError> for Error {
1425    fn from(err: crate::operation::update_integrated_resources::UpdateIntegratedResourcesError) -> Self {
1426        match err {
1427            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::AccessDeniedException(inner) => {
1428                Error::AccessDeniedException(inner)
1429            }
1430            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ConflictException(inner) => {
1431                Error::ConflictException(inner)
1432            }
1433            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::InternalServerException(inner) => {
1434                Error::InternalServerException(inner)
1435            }
1436            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ResourceNotFoundException(inner) => {
1437                Error::ResourceNotFoundException(inner)
1438            }
1439            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ThrottlingException(inner) => {
1440                Error::ThrottlingException(inner)
1441            }
1442            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ValidationException(inner) => {
1443                Error::ValidationException(inner)
1444            }
1445            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1446        }
1447    }
1448}
1449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pentest::UpdatePentestError, R>> for Error
1450where
1451    R: Send + Sync + std::fmt::Debug + 'static,
1452{
1453    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pentest::UpdatePentestError, R>) -> Self {
1454        match err {
1455            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1456            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1457                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1458                source: err.into(),
1459            }),
1460        }
1461    }
1462}
1463impl From<crate::operation::update_pentest::UpdatePentestError> for Error {
1464    fn from(err: crate::operation::update_pentest::UpdatePentestError) -> Self {
1465        match err {
1466            crate::operation::update_pentest::UpdatePentestError::Unhandled(inner) => Error::Unhandled(inner),
1467        }
1468    }
1469}
1470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_target_domain::UpdateTargetDomainError, R>> for Error
1471where
1472    R: Send + Sync + std::fmt::Debug + 'static,
1473{
1474    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_target_domain::UpdateTargetDomainError, R>) -> Self {
1475        match err {
1476            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1477            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1478                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1479                source: err.into(),
1480            }),
1481        }
1482    }
1483}
1484impl From<crate::operation::update_target_domain::UpdateTargetDomainError> for Error {
1485    fn from(err: crate::operation::update_target_domain::UpdateTargetDomainError) -> Self {
1486        match err {
1487            crate::operation::update_target_domain::UpdateTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
1488        }
1489    }
1490}
1491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_target_domain::VerifyTargetDomainError, R>> for Error
1492where
1493    R: Send + Sync + std::fmt::Debug + 'static,
1494{
1495    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_target_domain::VerifyTargetDomainError, R>) -> Self {
1496        match err {
1497            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1498            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1499                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1500                source: err.into(),
1501            }),
1502        }
1503    }
1504}
1505impl From<crate::operation::verify_target_domain::VerifyTargetDomainError> for Error {
1506    fn from(err: crate::operation::verify_target_domain::VerifyTargetDomainError) -> Self {
1507        match err {
1508            crate::operation::verify_target_domain::VerifyTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
1509        }
1510    }
1511}
1512impl ::std::error::Error for Error {
1513    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1514        match self {
1515            Error::AccessDeniedException(inner) => inner.source(),
1516            Error::ConflictException(inner) => inner.source(),
1517            Error::InternalServerException(inner) => inner.source(),
1518            Error::ResourceNotFoundException(inner) => inner.source(),
1519            Error::ThrottlingException(inner) => inner.source(),
1520            Error::ValidationException(inner) => inner.source(),
1521            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1522        }
1523    }
1524}
1525impl ::aws_types::request_id::RequestId for Error {
1526    fn request_id(&self) -> Option<&str> {
1527        match self {
1528            Self::AccessDeniedException(e) => e.request_id(),
1529            Self::ConflictException(e) => e.request_id(),
1530            Self::InternalServerException(e) => e.request_id(),
1531            Self::ResourceNotFoundException(e) => e.request_id(),
1532            Self::ThrottlingException(e) => e.request_id(),
1533            Self::ValidationException(e) => e.request_id(),
1534            Self::Unhandled(e) => e.meta.request_id(),
1535        }
1536    }
1537}