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 exceeds a service quota. Review your current usage and request a quota increase if needed.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input fails to satisfy the constraints specified by the service.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_artifact::AddArtifactError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_artifact::AddArtifactError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::add_artifact::AddArtifactError> for Error {
86    fn from(err: crate::operation::add_artifact::AddArtifactError) -> Self {
87        match err {
88            crate::operation::add_artifact::AddArtifactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::add_artifact::AddArtifactError::InternalServerException(inner) => Error::InternalServerException(inner),
90            crate::operation::add_artifact::AddArtifactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
91            crate::operation::add_artifact::AddArtifactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
92            crate::operation::add_artifact::AddArtifactError::ValidationException(inner) => Error::ValidationException(inner),
93            crate::operation::add_artifact::AddArtifactError::Unhandled(inner) => Error::Unhandled(inner),
94        }
95    }
96}
97impl<R>
98    From<
99        ::aws_smithy_runtime_api::client::result::SdkError<
100            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError,
101            R,
102        >,
103    > for Error
104where
105    R: Send + Sync + std::fmt::Debug + 'static,
106{
107    fn from(
108        err: ::aws_smithy_runtime_api::client::result::SdkError<
109            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError,
110            R,
111        >,
112    ) -> Self {
113        match err {
114            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
115            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
116                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
117                source: err.into(),
118            }),
119        }
120    }
121}
122impl From<crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError> for Error {
123    fn from(err: crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError) -> Self {
124        match err {
125            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::AccessDeniedException(inner) => {
126                Error::AccessDeniedException(inner)
127            }
128            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::ConflictException(inner) => {
129                Error::ConflictException(inner)
130            }
131            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::InternalServerException(inner) => {
132                Error::InternalServerException(inner)
133            }
134            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::ResourceNotFoundException(inner) => {
135                Error::ResourceNotFoundException(inner)
136            }
137            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::ServiceQuotaExceededException(inner) => {
138                Error::ServiceQuotaExceededException(inner)
139            }
140            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::ThrottlingException(inner) => {
141                Error::ThrottlingException(inner)
142            }
143            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::ValidationException(inner) => {
144                Error::ValidationException(inner)
145            }
146            crate::operation::batch_create_security_requirements::BatchCreateSecurityRequirementsError::Unhandled(inner) => Error::Unhandled(inner),
147        }
148    }
149}
150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError, R>>
151    for Error
152where
153    R: Send + Sync + std::fmt::Debug + 'static,
154{
155    fn from(
156        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError, R>,
157    ) -> 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_delete_code_reviews::BatchDeleteCodeReviewsError> for Error {
168    fn from(err: crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError) -> Self {
169        match err {
170            crate::operation::batch_delete_code_reviews::BatchDeleteCodeReviewsError::Unhandled(inner) => Error::Unhandled(inner),
171        }
172    }
173}
174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_pentests::BatchDeletePentestsError, R>> for Error
175where
176    R: Send + Sync + std::fmt::Debug + 'static,
177{
178    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_pentests::BatchDeletePentestsError, R>) -> Self {
179        match err {
180            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
181            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
182                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
183                source: err.into(),
184            }),
185        }
186    }
187}
188impl From<crate::operation::batch_delete_pentests::BatchDeletePentestsError> for Error {
189    fn from(err: crate::operation::batch_delete_pentests::BatchDeletePentestsError) -> Self {
190        match err {
191            crate::operation::batch_delete_pentests::BatchDeletePentestsError::Unhandled(inner) => Error::Unhandled(inner),
192        }
193    }
194}
195impl<R>
196    From<
197        ::aws_smithy_runtime_api::client::result::SdkError<
198            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError,
199            R,
200        >,
201    > for Error
202where
203    R: Send + Sync + std::fmt::Debug + 'static,
204{
205    fn from(
206        err: ::aws_smithy_runtime_api::client::result::SdkError<
207            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError,
208            R,
209        >,
210    ) -> Self {
211        match err {
212            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
213            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
214                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
215                source: err.into(),
216            }),
217        }
218    }
219}
220impl From<crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError> for Error {
221    fn from(err: crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError) -> Self {
222        match err {
223            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError::AccessDeniedException(inner) => {
224                Error::AccessDeniedException(inner)
225            }
226            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError::ConflictException(inner) => {
227                Error::ConflictException(inner)
228            }
229            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError::InternalServerException(inner) => {
230                Error::InternalServerException(inner)
231            }
232            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError::ResourceNotFoundException(inner) => {
233                Error::ResourceNotFoundException(inner)
234            }
235            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError::ThrottlingException(inner) => {
236                Error::ThrottlingException(inner)
237            }
238            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError::ValidationException(inner) => {
239                Error::ValidationException(inner)
240            }
241            crate::operation::batch_delete_security_requirements::BatchDeleteSecurityRequirementsError::Unhandled(inner) => Error::Unhandled(inner),
242        }
243    }
244}
245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_threat_models::BatchDeleteThreatModelsError, R>>
246    for Error
247where
248    R: Send + Sync + std::fmt::Debug + 'static,
249{
250    fn from(
251        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_threat_models::BatchDeleteThreatModelsError, R>,
252    ) -> Self {
253        match err {
254            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257                source: err.into(),
258            }),
259        }
260    }
261}
262impl From<crate::operation::batch_delete_threat_models::BatchDeleteThreatModelsError> for Error {
263    fn from(err: crate::operation::batch_delete_threat_models::BatchDeleteThreatModelsError) -> Self {
264        match err {
265            crate::operation::batch_delete_threat_models::BatchDeleteThreatModelsError::Unhandled(inner) => Error::Unhandled(inner),
266        }
267    }
268}
269impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError, R>> for Error
270where
271    R: Send + Sync + std::fmt::Debug + 'static,
272{
273    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError, R>) -> Self {
274        match err {
275            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
276            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
277                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
278                source: err.into(),
279            }),
280        }
281    }
282}
283impl From<crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError> for Error {
284    fn from(err: crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError) -> Self {
285        match err {
286            crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError::Unhandled(inner) => Error::Unhandled(inner),
287        }
288    }
289}
290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError, R>>
291    for Error
292where
293    R: Send + Sync + std::fmt::Debug + 'static,
294{
295    fn from(
296        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError, R>,
297    ) -> Self {
298        match err {
299            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
300            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
301                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
302                source: err.into(),
303            }),
304        }
305    }
306}
307impl From<crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError> for Error {
308    fn from(err: crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError) -> Self {
309        match err {
310            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::AccessDeniedException(inner) => {
311                Error::AccessDeniedException(inner)
312            }
313            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::InternalServerException(inner) => {
314                Error::InternalServerException(inner)
315            }
316            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::ResourceNotFoundException(inner) => {
317                Error::ResourceNotFoundException(inner)
318            }
319            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::ThrottlingException(inner) => {
320                Error::ThrottlingException(inner)
321            }
322            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::ValidationException(inner) => {
323                Error::ValidationException(inner)
324            }
325            crate::operation::batch_get_artifact_metadata::BatchGetArtifactMetadataError::Unhandled(inner) => Error::Unhandled(inner),
326        }
327    }
328}
329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError, R>>
330    for Error
331where
332    R: Send + Sync + std::fmt::Debug + 'static,
333{
334    fn from(
335        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError, R>,
336    ) -> Self {
337        match err {
338            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
339            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
340                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
341                source: err.into(),
342            }),
343        }
344    }
345}
346impl From<crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError> for Error {
347    fn from(err: crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError) -> Self {
348        match err {
349            crate::operation::batch_get_code_review_jobs::BatchGetCodeReviewJobsError::Unhandled(inner) => Error::Unhandled(inner),
350        }
351    }
352}
353impl<R>
354    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError, R>>
355    for Error
356where
357    R: Send + Sync + std::fmt::Debug + 'static,
358{
359    fn from(
360        err: ::aws_smithy_runtime_api::client::result::SdkError<
361            crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError,
362            R,
363        >,
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_code_review_job_tasks::BatchGetCodeReviewJobTasksError> for Error {
375    fn from(err: crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError) -> Self {
376        match err {
377            crate::operation::batch_get_code_review_job_tasks::BatchGetCodeReviewJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
378        }
379    }
380}
381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError, 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::batch_get_code_reviews::BatchGetCodeReviewsError, 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::batch_get_code_reviews::BatchGetCodeReviewsError> for Error {
396    fn from(err: crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError) -> Self {
397        match err {
398            crate::operation::batch_get_code_reviews::BatchGetCodeReviewsError::Unhandled(inner) => Error::Unhandled(inner),
399        }
400    }
401}
402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_findings::BatchGetFindingsError, 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::batch_get_findings::BatchGetFindingsError, 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::batch_get_findings::BatchGetFindingsError> for Error {
417    fn from(err: crate::operation::batch_get_findings::BatchGetFindingsError) -> Self {
418        match err {
419            crate::operation::batch_get_findings::BatchGetFindingsError::Unhandled(inner) => Error::Unhandled(inner),
420        }
421    }
422}
423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError, 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::batch_get_pentest_jobs::BatchGetPentestJobsError, 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::batch_get_pentest_jobs::BatchGetPentestJobsError> for Error {
438    fn from(err: crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError) -> Self {
439        match err {
440            crate::operation::batch_get_pentest_jobs::BatchGetPentestJobsError::Unhandled(inner) => Error::Unhandled(inner),
441        }
442    }
443}
444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError, R>>
445    for Error
446where
447    R: Send + Sync + std::fmt::Debug + 'static,
448{
449    fn from(
450        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError, R>,
451    ) -> Self {
452        match err {
453            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
454            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
455                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
456                source: err.into(),
457            }),
458        }
459    }
460}
461impl From<crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError> for Error {
462    fn from(err: crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError) -> Self {
463        match err {
464            crate::operation::batch_get_pentest_job_tasks::BatchGetPentestJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentests::BatchGetPentestsError, R>> for Error
469where
470    R: Send + Sync + std::fmt::Debug + 'static,
471{
472    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_pentests::BatchGetPentestsError, R>) -> Self {
473        match err {
474            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
475            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
476                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
477                source: err.into(),
478            }),
479        }
480    }
481}
482impl From<crate::operation::batch_get_pentests::BatchGetPentestsError> for Error {
483    fn from(err: crate::operation::batch_get_pentests::BatchGetPentestsError) -> Self {
484        match err {
485            crate::operation::batch_get_pentests::BatchGetPentestsError::Unhandled(inner) => Error::Unhandled(inner),
486        }
487    }
488}
489impl<R>
490    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError, R>>
491    for Error
492where
493    R: Send + Sync + std::fmt::Debug + 'static,
494{
495    fn from(
496        err: ::aws_smithy_runtime_api::client::result::SdkError<
497            crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError,
498            R,
499        >,
500    ) -> Self {
501        match err {
502            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
503            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
504                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
505                source: err.into(),
506            }),
507        }
508    }
509}
510impl From<crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError> for Error {
511    fn from(err: crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError) -> Self {
512        match err {
513            crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError::AccessDeniedException(inner) => {
514                Error::AccessDeniedException(inner)
515            }
516            crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError::InternalServerException(inner) => {
517                Error::InternalServerException(inner)
518            }
519            crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError::ResourceNotFoundException(inner) => {
520                Error::ResourceNotFoundException(inner)
521            }
522            crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError::ThrottlingException(inner) => {
523                Error::ThrottlingException(inner)
524            }
525            crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError::ValidationException(inner) => {
526                Error::ValidationException(inner)
527            }
528            crate::operation::batch_get_security_requirements::BatchGetSecurityRequirementsError::Unhandled(inner) => Error::Unhandled(inner),
529        }
530    }
531}
532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_target_domains::BatchGetTargetDomainsError, R>> for Error
533where
534    R: Send + Sync + std::fmt::Debug + 'static,
535{
536    fn from(
537        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_target_domains::BatchGetTargetDomainsError, R>,
538    ) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::batch_get_target_domains::BatchGetTargetDomainsError> for Error {
549    fn from(err: crate::operation::batch_get_target_domains::BatchGetTargetDomainsError) -> Self {
550        match err {
551            crate::operation::batch_get_target_domains::BatchGetTargetDomainsError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_threat_model_jobs::BatchGetThreatModelJobsError, R>>
556    for Error
557where
558    R: Send + Sync + std::fmt::Debug + 'static,
559{
560    fn from(
561        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_threat_model_jobs::BatchGetThreatModelJobsError, R>,
562    ) -> Self {
563        match err {
564            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
565            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
566                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
567                source: err.into(),
568            }),
569        }
570    }
571}
572impl From<crate::operation::batch_get_threat_model_jobs::BatchGetThreatModelJobsError> for Error {
573    fn from(err: crate::operation::batch_get_threat_model_jobs::BatchGetThreatModelJobsError) -> Self {
574        match err {
575            crate::operation::batch_get_threat_model_jobs::BatchGetThreatModelJobsError::Unhandled(inner) => Error::Unhandled(inner),
576        }
577    }
578}
579impl<R>
580    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_threat_model_job_tasks::BatchGetThreatModelJobTasksError, R>>
581    for Error
582where
583    R: Send + Sync + std::fmt::Debug + 'static,
584{
585    fn from(
586        err: ::aws_smithy_runtime_api::client::result::SdkError<
587            crate::operation::batch_get_threat_model_job_tasks::BatchGetThreatModelJobTasksError,
588            R,
589        >,
590    ) -> Self {
591        match err {
592            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
593            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
594                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
595                source: err.into(),
596            }),
597        }
598    }
599}
600impl From<crate::operation::batch_get_threat_model_job_tasks::BatchGetThreatModelJobTasksError> for Error {
601    fn from(err: crate::operation::batch_get_threat_model_job_tasks::BatchGetThreatModelJobTasksError) -> Self {
602        match err {
603            crate::operation::batch_get_threat_model_job_tasks::BatchGetThreatModelJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
604        }
605    }
606}
607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_threat_models::BatchGetThreatModelsError, R>> for Error
608where
609    R: Send + Sync + std::fmt::Debug + 'static,
610{
611    fn from(
612        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_threat_models::BatchGetThreatModelsError, R>,
613    ) -> Self {
614        match err {
615            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
616            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
617                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
618                source: err.into(),
619            }),
620        }
621    }
622}
623impl From<crate::operation::batch_get_threat_models::BatchGetThreatModelsError> for Error {
624    fn from(err: crate::operation::batch_get_threat_models::BatchGetThreatModelsError) -> Self {
625        match err {
626            crate::operation::batch_get_threat_models::BatchGetThreatModelsError::Unhandled(inner) => Error::Unhandled(inner),
627        }
628    }
629}
630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_threats::BatchGetThreatsError, R>> for Error
631where
632    R: Send + Sync + std::fmt::Debug + 'static,
633{
634    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_threats::BatchGetThreatsError, R>) -> Self {
635        match err {
636            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
637            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
638                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
639                source: err.into(),
640            }),
641        }
642    }
643}
644impl From<crate::operation::batch_get_threats::BatchGetThreatsError> for Error {
645    fn from(err: crate::operation::batch_get_threats::BatchGetThreatsError) -> Self {
646        match err {
647            crate::operation::batch_get_threats::BatchGetThreatsError::Unhandled(inner) => Error::Unhandled(inner),
648        }
649    }
650}
651impl<R>
652    From<
653        ::aws_smithy_runtime_api::client::result::SdkError<
654            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError,
655            R,
656        >,
657    > for Error
658where
659    R: Send + Sync + std::fmt::Debug + 'static,
660{
661    fn from(
662        err: ::aws_smithy_runtime_api::client::result::SdkError<
663            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError,
664            R,
665        >,
666    ) -> Self {
667        match err {
668            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
669            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
670                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
671                source: err.into(),
672            }),
673        }
674    }
675}
676impl From<crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError> for Error {
677    fn from(err: crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError) -> Self {
678        match err {
679            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError::AccessDeniedException(inner) => {
680                Error::AccessDeniedException(inner)
681            }
682            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError::ConflictException(inner) => {
683                Error::ConflictException(inner)
684            }
685            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError::InternalServerException(inner) => {
686                Error::InternalServerException(inner)
687            }
688            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError::ResourceNotFoundException(inner) => {
689                Error::ResourceNotFoundException(inner)
690            }
691            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError::ThrottlingException(inner) => {
692                Error::ThrottlingException(inner)
693            }
694            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError::ValidationException(inner) => {
695                Error::ValidationException(inner)
696            }
697            crate::operation::batch_update_security_requirements::BatchUpdateSecurityRequirementsError::Unhandled(inner) => Error::Unhandled(inner),
698        }
699    }
700}
701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_space::CreateAgentSpaceError, R>> for Error
702where
703    R: Send + Sync + std::fmt::Debug + 'static,
704{
705    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_space::CreateAgentSpaceError, R>) -> Self {
706        match err {
707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
710                source: err.into(),
711            }),
712        }
713    }
714}
715impl From<crate::operation::create_agent_space::CreateAgentSpaceError> for Error {
716    fn from(err: crate::operation::create_agent_space::CreateAgentSpaceError) -> Self {
717        match err {
718            crate::operation::create_agent_space::CreateAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
719        }
720    }
721}
722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>> for Error
723where
724    R: Send + Sync + std::fmt::Debug + 'static,
725{
726    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>) -> Self {
727        match err {
728            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
729            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
730                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
731                source: err.into(),
732            }),
733        }
734    }
735}
736impl From<crate::operation::create_application::CreateApplicationError> for Error {
737    fn from(err: crate::operation::create_application::CreateApplicationError) -> Self {
738        match err {
739            crate::operation::create_application::CreateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
740        }
741    }
742}
743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_review::CreateCodeReviewError, R>> for Error
744where
745    R: Send + Sync + std::fmt::Debug + 'static,
746{
747    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_review::CreateCodeReviewError, R>) -> Self {
748        match err {
749            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
750            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
751                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
752                source: err.into(),
753            }),
754        }
755    }
756}
757impl From<crate::operation::create_code_review::CreateCodeReviewError> for Error {
758    fn from(err: crate::operation::create_code_review::CreateCodeReviewError) -> Self {
759        match err {
760            crate::operation::create_code_review::CreateCodeReviewError::Unhandled(inner) => Error::Unhandled(inner),
761        }
762    }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>> for Error
765where
766    R: Send + Sync + std::fmt::Debug + 'static,
767{
768    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>) -> Self {
769        match err {
770            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
771            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
772                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
773                source: err.into(),
774            }),
775        }
776    }
777}
778impl From<crate::operation::create_integration::CreateIntegrationError> for Error {
779    fn from(err: crate::operation::create_integration::CreateIntegrationError) -> Self {
780        match err {
781            crate::operation::create_integration::CreateIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
782            crate::operation::create_integration::CreateIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
783            crate::operation::create_integration::CreateIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
784            crate::operation::create_integration::CreateIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
785            crate::operation::create_integration::CreateIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
786            crate::operation::create_integration::CreateIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
787            crate::operation::create_integration::CreateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
788        }
789    }
790}
791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_membership::CreateMembershipError, R>> for Error
792where
793    R: Send + Sync + std::fmt::Debug + 'static,
794{
795    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_membership::CreateMembershipError, R>) -> Self {
796        match err {
797            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
798            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
799                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
800                source: err.into(),
801            }),
802        }
803    }
804}
805impl From<crate::operation::create_membership::CreateMembershipError> for Error {
806    fn from(err: crate::operation::create_membership::CreateMembershipError) -> Self {
807        match err {
808            crate::operation::create_membership::CreateMembershipError::Unhandled(inner) => Error::Unhandled(inner),
809        }
810    }
811}
812impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pentest::CreatePentestError, R>> for Error
813where
814    R: Send + Sync + std::fmt::Debug + 'static,
815{
816    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pentest::CreatePentestError, R>) -> Self {
817        match err {
818            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
819            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
820                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
821                source: err.into(),
822            }),
823        }
824    }
825}
826impl From<crate::operation::create_pentest::CreatePentestError> for Error {
827    fn from(err: crate::operation::create_pentest::CreatePentestError) -> Self {
828        match err {
829            crate::operation::create_pentest::CreatePentestError::Unhandled(inner) => Error::Unhandled(inner),
830        }
831    }
832}
833impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_private_connection::CreatePrivateConnectionError, R>>
834    for Error
835where
836    R: Send + Sync + std::fmt::Debug + 'static,
837{
838    fn from(
839        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_private_connection::CreatePrivateConnectionError, R>,
840    ) -> Self {
841        match err {
842            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
843            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
844                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
845                source: err.into(),
846            }),
847        }
848    }
849}
850impl From<crate::operation::create_private_connection::CreatePrivateConnectionError> for Error {
851    fn from(err: crate::operation::create_private_connection::CreatePrivateConnectionError) -> Self {
852        match err {
853            crate::operation::create_private_connection::CreatePrivateConnectionError::AccessDeniedException(inner) => {
854                Error::AccessDeniedException(inner)
855            }
856            crate::operation::create_private_connection::CreatePrivateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
857            crate::operation::create_private_connection::CreatePrivateConnectionError::InternalServerException(inner) => {
858                Error::InternalServerException(inner)
859            }
860            crate::operation::create_private_connection::CreatePrivateConnectionError::ResourceNotFoundException(inner) => {
861                Error::ResourceNotFoundException(inner)
862            }
863            crate::operation::create_private_connection::CreatePrivateConnectionError::ThrottlingException(inner) => {
864                Error::ThrottlingException(inner)
865            }
866            crate::operation::create_private_connection::CreatePrivateConnectionError::ValidationException(inner) => {
867                Error::ValidationException(inner)
868            }
869            crate::operation::create_private_connection::CreatePrivateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
870        }
871    }
872}
873impl<R>
874    From<
875        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError, R>,
876    > for Error
877where
878    R: Send + Sync + std::fmt::Debug + 'static,
879{
880    fn from(
881        err: ::aws_smithy_runtime_api::client::result::SdkError<
882            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError,
883            R,
884        >,
885    ) -> Self {
886        match err {
887            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
888            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
889                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
890                source: err.into(),
891            }),
892        }
893    }
894}
895impl From<crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError> for Error {
896    fn from(err: crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError) -> Self {
897        match err {
898            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError::AccessDeniedException(inner) => {
899                Error::AccessDeniedException(inner)
900            }
901            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError::ConflictException(inner) => {
902                Error::ConflictException(inner)
903            }
904            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError::InternalServerException(inner) => {
905                Error::InternalServerException(inner)
906            }
907            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError::ServiceQuotaExceededException(inner) => {
908                Error::ServiceQuotaExceededException(inner)
909            }
910            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError::ThrottlingException(inner) => {
911                Error::ThrottlingException(inner)
912            }
913            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError::ValidationException(inner) => {
914                Error::ValidationException(inner)
915            }
916            crate::operation::create_security_requirement_pack::CreateSecurityRequirementPackError::Unhandled(inner) => Error::Unhandled(inner),
917        }
918    }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_domain::CreateTargetDomainError, R>> for Error
921where
922    R: Send + Sync + std::fmt::Debug + 'static,
923{
924    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_domain::CreateTargetDomainError, R>) -> Self {
925        match err {
926            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
927            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
928                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
929                source: err.into(),
930            }),
931        }
932    }
933}
934impl From<crate::operation::create_target_domain::CreateTargetDomainError> for Error {
935    fn from(err: crate::operation::create_target_domain::CreateTargetDomainError) -> Self {
936        match err {
937            crate::operation::create_target_domain::CreateTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
938        }
939    }
940}
941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_threat::CreateThreatError, R>> for Error
942where
943    R: Send + Sync + std::fmt::Debug + 'static,
944{
945    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_threat::CreateThreatError, R>) -> Self {
946        match err {
947            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
948            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
949                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
950                source: err.into(),
951            }),
952        }
953    }
954}
955impl From<crate::operation::create_threat::CreateThreatError> for Error {
956    fn from(err: crate::operation::create_threat::CreateThreatError) -> Self {
957        match err {
958            crate::operation::create_threat::CreateThreatError::Unhandled(inner) => Error::Unhandled(inner),
959        }
960    }
961}
962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_threat_model::CreateThreatModelError, R>> for Error
963where
964    R: Send + Sync + std::fmt::Debug + 'static,
965{
966    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_threat_model::CreateThreatModelError, R>) -> Self {
967        match err {
968            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
969            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
970                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
971                source: err.into(),
972            }),
973        }
974    }
975}
976impl From<crate::operation::create_threat_model::CreateThreatModelError> for Error {
977    fn from(err: crate::operation::create_threat_model::CreateThreatModelError) -> Self {
978        match err {
979            crate::operation::create_threat_model::CreateThreatModelError::Unhandled(inner) => Error::Unhandled(inner),
980        }
981    }
982}
983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_space::DeleteAgentSpaceError, R>> for Error
984where
985    R: Send + Sync + std::fmt::Debug + 'static,
986{
987    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_space::DeleteAgentSpaceError, R>) -> Self {
988        match err {
989            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
990            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
991                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
992                source: err.into(),
993            }),
994        }
995    }
996}
997impl From<crate::operation::delete_agent_space::DeleteAgentSpaceError> for Error {
998    fn from(err: crate::operation::delete_agent_space::DeleteAgentSpaceError) -> Self {
999        match err {
1000            crate::operation::delete_agent_space::DeleteAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1001        }
1002    }
1003}
1004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
1005where
1006    R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
1009        match err {
1010            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1011            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1012                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1013                source: err.into(),
1014            }),
1015        }
1016    }
1017}
1018impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
1019    fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
1020        match err {
1021            crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
1022        }
1023    }
1024}
1025impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>> for Error
1026where
1027    R: Send + Sync + std::fmt::Debug + 'static,
1028{
1029    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>) -> Self {
1030        match err {
1031            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1032            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1033                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1034                source: err.into(),
1035            }),
1036        }
1037    }
1038}
1039impl From<crate::operation::delete_artifact::DeleteArtifactError> for Error {
1040    fn from(err: crate::operation::delete_artifact::DeleteArtifactError) -> Self {
1041        match err {
1042            crate::operation::delete_artifact::DeleteArtifactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1043            crate::operation::delete_artifact::DeleteArtifactError::InternalServerException(inner) => Error::InternalServerException(inner),
1044            crate::operation::delete_artifact::DeleteArtifactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1045            crate::operation::delete_artifact::DeleteArtifactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1046            crate::operation::delete_artifact::DeleteArtifactError::ValidationException(inner) => Error::ValidationException(inner),
1047            crate::operation::delete_artifact::DeleteArtifactError::Unhandled(inner) => Error::Unhandled(inner),
1048        }
1049    }
1050}
1051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
1052where
1053    R: Send + Sync + std::fmt::Debug + 'static,
1054{
1055    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
1056        match err {
1057            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1058            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1059                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1060                source: err.into(),
1061            }),
1062        }
1063    }
1064}
1065impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
1066    fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
1067        match err {
1068            crate::operation::delete_integration::DeleteIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1069            crate::operation::delete_integration::DeleteIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
1070            crate::operation::delete_integration::DeleteIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
1071            crate::operation::delete_integration::DeleteIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1072            crate::operation::delete_integration::DeleteIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1073            crate::operation::delete_integration::DeleteIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
1074            crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1075        }
1076    }
1077}
1078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_membership::DeleteMembershipError, R>> for Error
1079where
1080    R: Send + Sync + std::fmt::Debug + 'static,
1081{
1082    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_membership::DeleteMembershipError, R>) -> Self {
1083        match err {
1084            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1085            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1086                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1087                source: err.into(),
1088            }),
1089        }
1090    }
1091}
1092impl From<crate::operation::delete_membership::DeleteMembershipError> for Error {
1093    fn from(err: crate::operation::delete_membership::DeleteMembershipError) -> Self {
1094        match err {
1095            crate::operation::delete_membership::DeleteMembershipError::Unhandled(inner) => Error::Unhandled(inner),
1096        }
1097    }
1098}
1099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_private_connection::DeletePrivateConnectionError, R>>
1100    for Error
1101where
1102    R: Send + Sync + std::fmt::Debug + 'static,
1103{
1104    fn from(
1105        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_private_connection::DeletePrivateConnectionError, R>,
1106    ) -> Self {
1107        match err {
1108            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1109            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1110                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1111                source: err.into(),
1112            }),
1113        }
1114    }
1115}
1116impl From<crate::operation::delete_private_connection::DeletePrivateConnectionError> for Error {
1117    fn from(err: crate::operation::delete_private_connection::DeletePrivateConnectionError) -> Self {
1118        match err {
1119            crate::operation::delete_private_connection::DeletePrivateConnectionError::AccessDeniedException(inner) => {
1120                Error::AccessDeniedException(inner)
1121            }
1122            crate::operation::delete_private_connection::DeletePrivateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
1123            crate::operation::delete_private_connection::DeletePrivateConnectionError::InternalServerException(inner) => {
1124                Error::InternalServerException(inner)
1125            }
1126            crate::operation::delete_private_connection::DeletePrivateConnectionError::ResourceNotFoundException(inner) => {
1127                Error::ResourceNotFoundException(inner)
1128            }
1129            crate::operation::delete_private_connection::DeletePrivateConnectionError::ThrottlingException(inner) => {
1130                Error::ThrottlingException(inner)
1131            }
1132            crate::operation::delete_private_connection::DeletePrivateConnectionError::ValidationException(inner) => {
1133                Error::ValidationException(inner)
1134            }
1135            crate::operation::delete_private_connection::DeletePrivateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1136        }
1137    }
1138}
1139impl<R>
1140    From<
1141        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError, R>,
1142    > for Error
1143where
1144    R: Send + Sync + std::fmt::Debug + 'static,
1145{
1146    fn from(
1147        err: ::aws_smithy_runtime_api::client::result::SdkError<
1148            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError,
1149            R,
1150        >,
1151    ) -> Self {
1152        match err {
1153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156                source: err.into(),
1157            }),
1158        }
1159    }
1160}
1161impl From<crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError> for Error {
1162    fn from(err: crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError) -> Self {
1163        match err {
1164            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError::AccessDeniedException(inner) => {
1165                Error::AccessDeniedException(inner)
1166            }
1167            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError::ConflictException(inner) => {
1168                Error::ConflictException(inner)
1169            }
1170            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError::InternalServerException(inner) => {
1171                Error::InternalServerException(inner)
1172            }
1173            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError::ResourceNotFoundException(inner) => {
1174                Error::ResourceNotFoundException(inner)
1175            }
1176            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError::ThrottlingException(inner) => {
1177                Error::ThrottlingException(inner)
1178            }
1179            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError::ValidationException(inner) => {
1180                Error::ValidationException(inner)
1181            }
1182            crate::operation::delete_security_requirement_pack::DeleteSecurityRequirementPackError::Unhandled(inner) => Error::Unhandled(inner),
1183        }
1184    }
1185}
1186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_domain::DeleteTargetDomainError, 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::delete_target_domain::DeleteTargetDomainError, 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::delete_target_domain::DeleteTargetDomainError> for Error {
1201    fn from(err: crate::operation::delete_target_domain::DeleteTargetDomainError) -> Self {
1202        match err {
1203            crate::operation::delete_target_domain::DeleteTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
1204        }
1205    }
1206}
1207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_private_connection::DescribePrivateConnectionError, R>>
1208    for Error
1209where
1210    R: Send + Sync + std::fmt::Debug + 'static,
1211{
1212    fn from(
1213        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_private_connection::DescribePrivateConnectionError, R>,
1214    ) -> Self {
1215        match err {
1216            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1217            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1218                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1219                source: err.into(),
1220            }),
1221        }
1222    }
1223}
1224impl From<crate::operation::describe_private_connection::DescribePrivateConnectionError> for Error {
1225    fn from(err: crate::operation::describe_private_connection::DescribePrivateConnectionError) -> Self {
1226        match err {
1227            crate::operation::describe_private_connection::DescribePrivateConnectionError::AccessDeniedException(inner) => {
1228                Error::AccessDeniedException(inner)
1229            }
1230            crate::operation::describe_private_connection::DescribePrivateConnectionError::InternalServerException(inner) => {
1231                Error::InternalServerException(inner)
1232            }
1233            crate::operation::describe_private_connection::DescribePrivateConnectionError::ResourceNotFoundException(inner) => {
1234                Error::ResourceNotFoundException(inner)
1235            }
1236            crate::operation::describe_private_connection::DescribePrivateConnectionError::ThrottlingException(inner) => {
1237                Error::ThrottlingException(inner)
1238            }
1239            crate::operation::describe_private_connection::DescribePrivateConnectionError::ValidationException(inner) => {
1240                Error::ValidationException(inner)
1241            }
1242            crate::operation::describe_private_connection::DescribePrivateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1243        }
1244    }
1245}
1246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application::GetApplicationError, R>> for Error
1247where
1248    R: Send + Sync + std::fmt::Debug + 'static,
1249{
1250    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application::GetApplicationError, R>) -> Self {
1251        match err {
1252            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1253            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1254                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1255                source: err.into(),
1256            }),
1257        }
1258    }
1259}
1260impl From<crate::operation::get_application::GetApplicationError> for Error {
1261    fn from(err: crate::operation::get_application::GetApplicationError) -> Self {
1262        match err {
1263            crate::operation::get_application::GetApplicationError::Unhandled(inner) => Error::Unhandled(inner),
1264        }
1265    }
1266}
1267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_artifact::GetArtifactError, R>> for Error
1268where
1269    R: Send + Sync + std::fmt::Debug + 'static,
1270{
1271    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_artifact::GetArtifactError, R>) -> Self {
1272        match err {
1273            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1274            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1275                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1276                source: err.into(),
1277            }),
1278        }
1279    }
1280}
1281impl From<crate::operation::get_artifact::GetArtifactError> for Error {
1282    fn from(err: crate::operation::get_artifact::GetArtifactError) -> Self {
1283        match err {
1284            crate::operation::get_artifact::GetArtifactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1285            crate::operation::get_artifact::GetArtifactError::InternalServerException(inner) => Error::InternalServerException(inner),
1286            crate::operation::get_artifact::GetArtifactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1287            crate::operation::get_artifact::GetArtifactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1288            crate::operation::get_artifact::GetArtifactError::ValidationException(inner) => Error::ValidationException(inner),
1289            crate::operation::get_artifact::GetArtifactError::Unhandled(inner) => Error::Unhandled(inner),
1290        }
1291    }
1292}
1293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
1294where
1295    R: Send + Sync + std::fmt::Debug + 'static,
1296{
1297    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
1298        match err {
1299            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1300            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1301                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1302                source: err.into(),
1303            }),
1304        }
1305    }
1306}
1307impl From<crate::operation::get_integration::GetIntegrationError> for Error {
1308    fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
1309        match err {
1310            crate::operation::get_integration::GetIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1311            crate::operation::get_integration::GetIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
1312            crate::operation::get_integration::GetIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1313            crate::operation::get_integration::GetIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1314            crate::operation::get_integration::GetIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
1315            crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1316        }
1317    }
1318}
1319impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError, R>>
1320    for Error
1321where
1322    R: Send + Sync + std::fmt::Debug + 'static,
1323{
1324    fn from(
1325        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError, R>,
1326    ) -> Self {
1327        match err {
1328            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1329            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1330                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1331                source: err.into(),
1332            }),
1333        }
1334    }
1335}
1336impl From<crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError> for Error {
1337    fn from(err: crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError) -> Self {
1338        match err {
1339            crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError::AccessDeniedException(inner) => {
1340                Error::AccessDeniedException(inner)
1341            }
1342            crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError::InternalServerException(inner) => {
1343                Error::InternalServerException(inner)
1344            }
1345            crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError::ResourceNotFoundException(inner) => {
1346                Error::ResourceNotFoundException(inner)
1347            }
1348            crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError::ThrottlingException(inner) => {
1349                Error::ThrottlingException(inner)
1350            }
1351            crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError::ValidationException(inner) => {
1352                Error::ValidationException(inner)
1353            }
1354            crate::operation::get_security_requirement_pack::GetSecurityRequirementPackError::Unhandled(inner) => Error::Unhandled(inner),
1355        }
1356    }
1357}
1358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_security_requirements::ImportSecurityRequirementsError, R>>
1359    for Error
1360where
1361    R: Send + Sync + std::fmt::Debug + 'static,
1362{
1363    fn from(
1364        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_security_requirements::ImportSecurityRequirementsError, R>,
1365    ) -> Self {
1366        match err {
1367            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1368            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1369                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1370                source: err.into(),
1371            }),
1372        }
1373    }
1374}
1375impl From<crate::operation::import_security_requirements::ImportSecurityRequirementsError> for Error {
1376    fn from(err: crate::operation::import_security_requirements::ImportSecurityRequirementsError) -> Self {
1377        match err {
1378            crate::operation::import_security_requirements::ImportSecurityRequirementsError::AccessDeniedException(inner) => {
1379                Error::AccessDeniedException(inner)
1380            }
1381            crate::operation::import_security_requirements::ImportSecurityRequirementsError::ConflictException(inner) => {
1382                Error::ConflictException(inner)
1383            }
1384            crate::operation::import_security_requirements::ImportSecurityRequirementsError::InternalServerException(inner) => {
1385                Error::InternalServerException(inner)
1386            }
1387            crate::operation::import_security_requirements::ImportSecurityRequirementsError::ResourceNotFoundException(inner) => {
1388                Error::ResourceNotFoundException(inner)
1389            }
1390            crate::operation::import_security_requirements::ImportSecurityRequirementsError::ServiceQuotaExceededException(inner) => {
1391                Error::ServiceQuotaExceededException(inner)
1392            }
1393            crate::operation::import_security_requirements::ImportSecurityRequirementsError::ThrottlingException(inner) => {
1394                Error::ThrottlingException(inner)
1395            }
1396            crate::operation::import_security_requirements::ImportSecurityRequirementsError::ValidationException(inner) => {
1397                Error::ValidationException(inner)
1398            }
1399            crate::operation::import_security_requirements::ImportSecurityRequirementsError::Unhandled(inner) => Error::Unhandled(inner),
1400        }
1401    }
1402}
1403impl<R>
1404    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_provider_registration::InitiateProviderRegistrationError, R>>
1405    for Error
1406where
1407    R: Send + Sync + std::fmt::Debug + 'static,
1408{
1409    fn from(
1410        err: ::aws_smithy_runtime_api::client::result::SdkError<
1411            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError,
1412            R,
1413        >,
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::initiate_provider_registration::InitiateProviderRegistrationError> for Error {
1425    fn from(err: crate::operation::initiate_provider_registration::InitiateProviderRegistrationError) -> Self {
1426        match err {
1427            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::AccessDeniedException(inner) => {
1428                Error::AccessDeniedException(inner)
1429            }
1430            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ConflictException(inner) => {
1431                Error::ConflictException(inner)
1432            }
1433            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::InternalServerException(inner) => {
1434                Error::InternalServerException(inner)
1435            }
1436            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ResourceNotFoundException(inner) => {
1437                Error::ResourceNotFoundException(inner)
1438            }
1439            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ThrottlingException(inner) => {
1440                Error::ThrottlingException(inner)
1441            }
1442            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::ValidationException(inner) => {
1443                Error::ValidationException(inner)
1444            }
1445            crate::operation::initiate_provider_registration::InitiateProviderRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
1446        }
1447    }
1448}
1449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_spaces::ListAgentSpacesError, 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::list_agent_spaces::ListAgentSpacesError, 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::list_agent_spaces::ListAgentSpacesError> for Error {
1464    fn from(err: crate::operation::list_agent_spaces::ListAgentSpacesError) -> Self {
1465        match err {
1466            crate::operation::list_agent_spaces::ListAgentSpacesError::Unhandled(inner) => Error::Unhandled(inner),
1467        }
1468    }
1469}
1470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_applications::ListApplicationsError, 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::list_applications::ListApplicationsError, 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::list_applications::ListApplicationsError> for Error {
1485    fn from(err: crate::operation::list_applications::ListApplicationsError) -> Self {
1486        match err {
1487            crate::operation::list_applications::ListApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
1488        }
1489    }
1490}
1491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, 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::list_artifacts::ListArtifactsError, 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::list_artifacts::ListArtifactsError> for Error {
1506    fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
1507        match err {
1508            crate::operation::list_artifacts::ListArtifactsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1509            crate::operation::list_artifacts::ListArtifactsError::InternalServerException(inner) => Error::InternalServerException(inner),
1510            crate::operation::list_artifacts::ListArtifactsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1511            crate::operation::list_artifacts::ListArtifactsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1512            crate::operation::list_artifacts::ListArtifactsError::ValidationException(inner) => Error::ValidationException(inner),
1513            crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
1514        }
1515    }
1516}
1517impl<R>
1518    From<
1519        ::aws_smithy_runtime_api::client::result::SdkError<
1520            crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError,
1521            R,
1522        >,
1523    > for Error
1524where
1525    R: Send + Sync + std::fmt::Debug + 'static,
1526{
1527    fn from(
1528        err: ::aws_smithy_runtime_api::client::result::SdkError<
1529            crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError,
1530            R,
1531        >,
1532    ) -> Self {
1533        match err {
1534            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1535            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1536                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1537                source: err.into(),
1538            }),
1539        }
1540    }
1541}
1542impl From<crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError> for Error {
1543    fn from(err: crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError) -> Self {
1544        match err {
1545            crate::operation::list_code_review_jobs_for_code_review::ListCodeReviewJobsForCodeReviewError::Unhandled(inner) => {
1546                Error::Unhandled(inner)
1547            }
1548        }
1549    }
1550}
1551impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError, R>>
1552    for Error
1553where
1554    R: Send + Sync + std::fmt::Debug + 'static,
1555{
1556    fn from(
1557        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError, R>,
1558    ) -> Self {
1559        match err {
1560            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1561            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1562                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1563                source: err.into(),
1564            }),
1565        }
1566    }
1567}
1568impl From<crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError> for Error {
1569    fn from(err: crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError) -> Self {
1570        match err {
1571            crate::operation::list_code_review_job_tasks::ListCodeReviewJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
1572        }
1573    }
1574}
1575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_reviews::ListCodeReviewsError, R>> for Error
1576where
1577    R: Send + Sync + std::fmt::Debug + 'static,
1578{
1579    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_reviews::ListCodeReviewsError, R>) -> Self {
1580        match err {
1581            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1582            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1583                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1584                source: err.into(),
1585            }),
1586        }
1587    }
1588}
1589impl From<crate::operation::list_code_reviews::ListCodeReviewsError> for Error {
1590    fn from(err: crate::operation::list_code_reviews::ListCodeReviewsError) -> Self {
1591        match err {
1592            crate::operation::list_code_reviews::ListCodeReviewsError::Unhandled(inner) => Error::Unhandled(inner),
1593        }
1594    }
1595}
1596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError, R>>
1597    for Error
1598where
1599    R: Send + Sync + std::fmt::Debug + 'static,
1600{
1601    fn from(
1602        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError, R>,
1603    ) -> Self {
1604        match err {
1605            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1606            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1607                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1608                source: err.into(),
1609            }),
1610        }
1611    }
1612}
1613impl From<crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError> for Error {
1614    fn from(err: crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError) -> Self {
1615        match err {
1616            crate::operation::list_discovered_endpoints::ListDiscoveredEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
1617        }
1618    }
1619}
1620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>> for Error
1621where
1622    R: Send + Sync + std::fmt::Debug + 'static,
1623{
1624    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>) -> Self {
1625        match err {
1626            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1627            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1628                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1629                source: err.into(),
1630            }),
1631        }
1632    }
1633}
1634impl From<crate::operation::list_findings::ListFindingsError> for Error {
1635    fn from(err: crate::operation::list_findings::ListFindingsError) -> Self {
1636        match err {
1637            crate::operation::list_findings::ListFindingsError::Unhandled(inner) => Error::Unhandled(inner),
1638        }
1639    }
1640}
1641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrated_resources::ListIntegratedResourcesError, R>>
1642    for Error
1643where
1644    R: Send + Sync + std::fmt::Debug + 'static,
1645{
1646    fn from(
1647        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrated_resources::ListIntegratedResourcesError, R>,
1648    ) -> Self {
1649        match err {
1650            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1651            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1652                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1653                source: err.into(),
1654            }),
1655        }
1656    }
1657}
1658impl From<crate::operation::list_integrated_resources::ListIntegratedResourcesError> for Error {
1659    fn from(err: crate::operation::list_integrated_resources::ListIntegratedResourcesError) -> Self {
1660        match err {
1661            crate::operation::list_integrated_resources::ListIntegratedResourcesError::AccessDeniedException(inner) => {
1662                Error::AccessDeniedException(inner)
1663            }
1664            crate::operation::list_integrated_resources::ListIntegratedResourcesError::InternalServerException(inner) => {
1665                Error::InternalServerException(inner)
1666            }
1667            crate::operation::list_integrated_resources::ListIntegratedResourcesError::ResourceNotFoundException(inner) => {
1668                Error::ResourceNotFoundException(inner)
1669            }
1670            crate::operation::list_integrated_resources::ListIntegratedResourcesError::ThrottlingException(inner) => {
1671                Error::ThrottlingException(inner)
1672            }
1673            crate::operation::list_integrated_resources::ListIntegratedResourcesError::ValidationException(inner) => {
1674                Error::ValidationException(inner)
1675            }
1676            crate::operation::list_integrated_resources::ListIntegratedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1677        }
1678    }
1679}
1680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>> for Error
1681where
1682    R: Send + Sync + std::fmt::Debug + 'static,
1683{
1684    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>) -> Self {
1685        match err {
1686            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1687            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1688                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1689                source: err.into(),
1690            }),
1691        }
1692    }
1693}
1694impl From<crate::operation::list_integrations::ListIntegrationsError> for Error {
1695    fn from(err: crate::operation::list_integrations::ListIntegrationsError) -> Self {
1696        match err {
1697            crate::operation::list_integrations::ListIntegrationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1698            crate::operation::list_integrations::ListIntegrationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1699            crate::operation::list_integrations::ListIntegrationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1700            crate::operation::list_integrations::ListIntegrationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1701            crate::operation::list_integrations::ListIntegrationsError::ValidationException(inner) => Error::ValidationException(inner),
1702            crate::operation::list_integrations::ListIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
1703        }
1704    }
1705}
1706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memberships::ListMembershipsError, R>> for Error
1707where
1708    R: Send + Sync + std::fmt::Debug + 'static,
1709{
1710    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memberships::ListMembershipsError, R>) -> Self {
1711        match err {
1712            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1713            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1714                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1715                source: err.into(),
1716            }),
1717        }
1718    }
1719}
1720impl From<crate::operation::list_memberships::ListMembershipsError> for Error {
1721    fn from(err: crate::operation::list_memberships::ListMembershipsError) -> Self {
1722        match err {
1723            crate::operation::list_memberships::ListMembershipsError::Unhandled(inner) => Error::Unhandled(inner),
1724        }
1725    }
1726}
1727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError, R>>
1728    for Error
1729where
1730    R: Send + Sync + std::fmt::Debug + 'static,
1731{
1732    fn from(
1733        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError, R>,
1734    ) -> Self {
1735        match err {
1736            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1737            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1738                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1739                source: err.into(),
1740            }),
1741        }
1742    }
1743}
1744impl From<crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError> for Error {
1745    fn from(err: crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError) -> Self {
1746        match err {
1747            crate::operation::list_pentest_jobs_for_pentest::ListPentestJobsForPentestError::Unhandled(inner) => Error::Unhandled(inner),
1748        }
1749    }
1750}
1751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_job_tasks::ListPentestJobTasksError, R>> for Error
1752where
1753    R: Send + Sync + std::fmt::Debug + 'static,
1754{
1755    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentest_job_tasks::ListPentestJobTasksError, R>) -> Self {
1756        match err {
1757            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1758            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1759                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1760                source: err.into(),
1761            }),
1762        }
1763    }
1764}
1765impl From<crate::operation::list_pentest_job_tasks::ListPentestJobTasksError> for Error {
1766    fn from(err: crate::operation::list_pentest_job_tasks::ListPentestJobTasksError) -> Self {
1767        match err {
1768            crate::operation::list_pentest_job_tasks::ListPentestJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
1769        }
1770    }
1771}
1772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentests::ListPentestsError, R>> for Error
1773where
1774    R: Send + Sync + std::fmt::Debug + 'static,
1775{
1776    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pentests::ListPentestsError, R>) -> Self {
1777        match err {
1778            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1779            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1780                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1781                source: err.into(),
1782            }),
1783        }
1784    }
1785}
1786impl From<crate::operation::list_pentests::ListPentestsError> for Error {
1787    fn from(err: crate::operation::list_pentests::ListPentestsError) -> Self {
1788        match err {
1789            crate::operation::list_pentests::ListPentestsError::Unhandled(inner) => Error::Unhandled(inner),
1790        }
1791    }
1792}
1793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_private_connections::ListPrivateConnectionsError, R>> for Error
1794where
1795    R: Send + Sync + std::fmt::Debug + 'static,
1796{
1797    fn from(
1798        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_private_connections::ListPrivateConnectionsError, R>,
1799    ) -> Self {
1800        match err {
1801            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1802            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1803                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1804                source: err.into(),
1805            }),
1806        }
1807    }
1808}
1809impl From<crate::operation::list_private_connections::ListPrivateConnectionsError> for Error {
1810    fn from(err: crate::operation::list_private_connections::ListPrivateConnectionsError) -> Self {
1811        match err {
1812            crate::operation::list_private_connections::ListPrivateConnectionsError::AccessDeniedException(inner) => {
1813                Error::AccessDeniedException(inner)
1814            }
1815            crate::operation::list_private_connections::ListPrivateConnectionsError::InternalServerException(inner) => {
1816                Error::InternalServerException(inner)
1817            }
1818            crate::operation::list_private_connections::ListPrivateConnectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1819            crate::operation::list_private_connections::ListPrivateConnectionsError::ValidationException(inner) => Error::ValidationException(inner),
1820            crate::operation::list_private_connections::ListPrivateConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1821        }
1822    }
1823}
1824impl<R>
1825    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError, R>>
1826    for Error
1827where
1828    R: Send + Sync + std::fmt::Debug + 'static,
1829{
1830    fn from(
1831        err: ::aws_smithy_runtime_api::client::result::SdkError<
1832            crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError,
1833            R,
1834        >,
1835    ) -> Self {
1836        match err {
1837            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1838            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1839                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1840                source: err.into(),
1841            }),
1842        }
1843    }
1844}
1845impl From<crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError> for Error {
1846    fn from(err: crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError) -> Self {
1847        match err {
1848            crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError::AccessDeniedException(inner) => {
1849                Error::AccessDeniedException(inner)
1850            }
1851            crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError::InternalServerException(inner) => {
1852                Error::InternalServerException(inner)
1853            }
1854            crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError::ThrottlingException(inner) => {
1855                Error::ThrottlingException(inner)
1856            }
1857            crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError::ValidationException(inner) => {
1858                Error::ValidationException(inner)
1859            }
1860            crate::operation::list_security_requirement_packs::ListSecurityRequirementPacksError::Unhandled(inner) => Error::Unhandled(inner),
1861        }
1862    }
1863}
1864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_requirements::ListSecurityRequirementsError, R>>
1865    for Error
1866where
1867    R: Send + Sync + std::fmt::Debug + 'static,
1868{
1869    fn from(
1870        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_requirements::ListSecurityRequirementsError, R>,
1871    ) -> Self {
1872        match err {
1873            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1874            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1875                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1876                source: err.into(),
1877            }),
1878        }
1879    }
1880}
1881impl From<crate::operation::list_security_requirements::ListSecurityRequirementsError> for Error {
1882    fn from(err: crate::operation::list_security_requirements::ListSecurityRequirementsError) -> Self {
1883        match err {
1884            crate::operation::list_security_requirements::ListSecurityRequirementsError::AccessDeniedException(inner) => {
1885                Error::AccessDeniedException(inner)
1886            }
1887            crate::operation::list_security_requirements::ListSecurityRequirementsError::InternalServerException(inner) => {
1888                Error::InternalServerException(inner)
1889            }
1890            crate::operation::list_security_requirements::ListSecurityRequirementsError::ResourceNotFoundException(inner) => {
1891                Error::ResourceNotFoundException(inner)
1892            }
1893            crate::operation::list_security_requirements::ListSecurityRequirementsError::ThrottlingException(inner) => {
1894                Error::ThrottlingException(inner)
1895            }
1896            crate::operation::list_security_requirements::ListSecurityRequirementsError::ValidationException(inner) => {
1897                Error::ValidationException(inner)
1898            }
1899            crate::operation::list_security_requirements::ListSecurityRequirementsError::Unhandled(inner) => Error::Unhandled(inner),
1900        }
1901    }
1902}
1903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1904where
1905    R: Send + Sync + std::fmt::Debug + 'static,
1906{
1907    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1908        match err {
1909            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1910            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1911                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1912                source: err.into(),
1913            }),
1914        }
1915    }
1916}
1917impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1918    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1919        match err {
1920            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1921        }
1922    }
1923}
1924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_target_domains::ListTargetDomainsError, R>> for Error
1925where
1926    R: Send + Sync + std::fmt::Debug + 'static,
1927{
1928    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_target_domains::ListTargetDomainsError, R>) -> Self {
1929        match err {
1930            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1931            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1932                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1933                source: err.into(),
1934            }),
1935        }
1936    }
1937}
1938impl From<crate::operation::list_target_domains::ListTargetDomainsError> for Error {
1939    fn from(err: crate::operation::list_target_domains::ListTargetDomainsError) -> Self {
1940        match err {
1941            crate::operation::list_target_domains::ListTargetDomainsError::Unhandled(inner) => Error::Unhandled(inner),
1942        }
1943    }
1944}
1945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threat_model_jobs::ListThreatModelJobsError, R>> for Error
1946where
1947    R: Send + Sync + std::fmt::Debug + 'static,
1948{
1949    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threat_model_jobs::ListThreatModelJobsError, R>) -> Self {
1950        match err {
1951            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1952            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1953                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1954                source: err.into(),
1955            }),
1956        }
1957    }
1958}
1959impl From<crate::operation::list_threat_model_jobs::ListThreatModelJobsError> for Error {
1960    fn from(err: crate::operation::list_threat_model_jobs::ListThreatModelJobsError) -> Self {
1961        match err {
1962            crate::operation::list_threat_model_jobs::ListThreatModelJobsError::Unhandled(inner) => Error::Unhandled(inner),
1963        }
1964    }
1965}
1966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threat_model_job_tasks::ListThreatModelJobTasksError, R>>
1967    for Error
1968where
1969    R: Send + Sync + std::fmt::Debug + 'static,
1970{
1971    fn from(
1972        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threat_model_job_tasks::ListThreatModelJobTasksError, R>,
1973    ) -> Self {
1974        match err {
1975            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1976            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1977                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1978                source: err.into(),
1979            }),
1980        }
1981    }
1982}
1983impl From<crate::operation::list_threat_model_job_tasks::ListThreatModelJobTasksError> for Error {
1984    fn from(err: crate::operation::list_threat_model_job_tasks::ListThreatModelJobTasksError) -> Self {
1985        match err {
1986            crate::operation::list_threat_model_job_tasks::ListThreatModelJobTasksError::Unhandled(inner) => Error::Unhandled(inner),
1987        }
1988    }
1989}
1990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threat_models::ListThreatModelsError, R>> for Error
1991where
1992    R: Send + Sync + std::fmt::Debug + 'static,
1993{
1994    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threat_models::ListThreatModelsError, R>) -> Self {
1995        match err {
1996            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1997            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1998                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1999                source: err.into(),
2000            }),
2001        }
2002    }
2003}
2004impl From<crate::operation::list_threat_models::ListThreatModelsError> for Error {
2005    fn from(err: crate::operation::list_threat_models::ListThreatModelsError) -> Self {
2006        match err {
2007            crate::operation::list_threat_models::ListThreatModelsError::Unhandled(inner) => Error::Unhandled(inner),
2008        }
2009    }
2010}
2011impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threats::ListThreatsError, R>> for Error
2012where
2013    R: Send + Sync + std::fmt::Debug + 'static,
2014{
2015    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_threats::ListThreatsError, R>) -> Self {
2016        match err {
2017            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2018            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2019                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2020                source: err.into(),
2021            }),
2022        }
2023    }
2024}
2025impl From<crate::operation::list_threats::ListThreatsError> for Error {
2026    fn from(err: crate::operation::list_threats::ListThreatsError) -> Self {
2027        match err {
2028            crate::operation::list_threats::ListThreatsError::Unhandled(inner) => Error::Unhandled(inner),
2029        }
2030    }
2031}
2032impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_remediation::StartCodeRemediationError, R>> for Error
2033where
2034    R: Send + Sync + std::fmt::Debug + 'static,
2035{
2036    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_remediation::StartCodeRemediationError, R>) -> Self {
2037        match err {
2038            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2039            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2040                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2041                source: err.into(),
2042            }),
2043        }
2044    }
2045}
2046impl From<crate::operation::start_code_remediation::StartCodeRemediationError> for Error {
2047    fn from(err: crate::operation::start_code_remediation::StartCodeRemediationError) -> Self {
2048        match err {
2049            crate::operation::start_code_remediation::StartCodeRemediationError::Unhandled(inner) => Error::Unhandled(inner),
2050        }
2051    }
2052}
2053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_review_job::StartCodeReviewJobError, R>> for Error
2054where
2055    R: Send + Sync + std::fmt::Debug + 'static,
2056{
2057    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_review_job::StartCodeReviewJobError, R>) -> Self {
2058        match err {
2059            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2060            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2061                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2062                source: err.into(),
2063            }),
2064        }
2065    }
2066}
2067impl From<crate::operation::start_code_review_job::StartCodeReviewJobError> for Error {
2068    fn from(err: crate::operation::start_code_review_job::StartCodeReviewJobError) -> Self {
2069        match err {
2070            crate::operation::start_code_review_job::StartCodeReviewJobError::Unhandled(inner) => Error::Unhandled(inner),
2071        }
2072    }
2073}
2074impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pentest_job::StartPentestJobError, R>> for Error
2075where
2076    R: Send + Sync + std::fmt::Debug + 'static,
2077{
2078    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pentest_job::StartPentestJobError, R>) -> Self {
2079        match err {
2080            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2081            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2082                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2083                source: err.into(),
2084            }),
2085        }
2086    }
2087}
2088impl From<crate::operation::start_pentest_job::StartPentestJobError> for Error {
2089    fn from(err: crate::operation::start_pentest_job::StartPentestJobError) -> Self {
2090        match err {
2091            crate::operation::start_pentest_job::StartPentestJobError::Unhandled(inner) => Error::Unhandled(inner),
2092        }
2093    }
2094}
2095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_threat_model_job::StartThreatModelJobError, R>> for Error
2096where
2097    R: Send + Sync + std::fmt::Debug + 'static,
2098{
2099    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_threat_model_job::StartThreatModelJobError, R>) -> Self {
2100        match err {
2101            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2102            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2103                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2104                source: err.into(),
2105            }),
2106        }
2107    }
2108}
2109impl From<crate::operation::start_threat_model_job::StartThreatModelJobError> for Error {
2110    fn from(err: crate::operation::start_threat_model_job::StartThreatModelJobError) -> Self {
2111        match err {
2112            crate::operation::start_threat_model_job::StartThreatModelJobError::Unhandled(inner) => Error::Unhandled(inner),
2113        }
2114    }
2115}
2116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_code_review_job::StopCodeReviewJobError, R>> for Error
2117where
2118    R: Send + Sync + std::fmt::Debug + 'static,
2119{
2120    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_code_review_job::StopCodeReviewJobError, R>) -> Self {
2121        match err {
2122            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2123            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2124                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2125                source: err.into(),
2126            }),
2127        }
2128    }
2129}
2130impl From<crate::operation::stop_code_review_job::StopCodeReviewJobError> for Error {
2131    fn from(err: crate::operation::stop_code_review_job::StopCodeReviewJobError) -> Self {
2132        match err {
2133            crate::operation::stop_code_review_job::StopCodeReviewJobError::Unhandled(inner) => Error::Unhandled(inner),
2134        }
2135    }
2136}
2137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pentest_job::StopPentestJobError, R>> for Error
2138where
2139    R: Send + Sync + std::fmt::Debug + 'static,
2140{
2141    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pentest_job::StopPentestJobError, R>) -> Self {
2142        match err {
2143            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2144            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2145                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2146                source: err.into(),
2147            }),
2148        }
2149    }
2150}
2151impl From<crate::operation::stop_pentest_job::StopPentestJobError> for Error {
2152    fn from(err: crate::operation::stop_pentest_job::StopPentestJobError) -> Self {
2153        match err {
2154            crate::operation::stop_pentest_job::StopPentestJobError::Unhandled(inner) => Error::Unhandled(inner),
2155        }
2156    }
2157}
2158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_threat_model_job::StopThreatModelJobError, R>> for Error
2159where
2160    R: Send + Sync + std::fmt::Debug + 'static,
2161{
2162    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_threat_model_job::StopThreatModelJobError, R>) -> Self {
2163        match err {
2164            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2165            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2166                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2167                source: err.into(),
2168            }),
2169        }
2170    }
2171}
2172impl From<crate::operation::stop_threat_model_job::StopThreatModelJobError> for Error {
2173    fn from(err: crate::operation::stop_threat_model_job::StopThreatModelJobError) -> Self {
2174        match err {
2175            crate::operation::stop_threat_model_job::StopThreatModelJobError::Unhandled(inner) => Error::Unhandled(inner),
2176        }
2177    }
2178}
2179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2180where
2181    R: Send + Sync + std::fmt::Debug + 'static,
2182{
2183    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2184        match err {
2185            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2186            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2187                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2188                source: err.into(),
2189            }),
2190        }
2191    }
2192}
2193impl From<crate::operation::tag_resource::TagResourceError> for Error {
2194    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2195        match err {
2196            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2197        }
2198    }
2199}
2200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2201where
2202    R: Send + Sync + std::fmt::Debug + 'static,
2203{
2204    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2205        match err {
2206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2209                source: err.into(),
2210            }),
2211        }
2212    }
2213}
2214impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2215    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2216        match err {
2217            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2218        }
2219    }
2220}
2221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_space::UpdateAgentSpaceError, R>> for Error
2222where
2223    R: Send + Sync + std::fmt::Debug + 'static,
2224{
2225    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_space::UpdateAgentSpaceError, R>) -> Self {
2226        match err {
2227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2230                source: err.into(),
2231            }),
2232        }
2233    }
2234}
2235impl From<crate::operation::update_agent_space::UpdateAgentSpaceError> for Error {
2236    fn from(err: crate::operation::update_agent_space::UpdateAgentSpaceError) -> Self {
2237        match err {
2238            crate::operation::update_agent_space::UpdateAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
2239        }
2240    }
2241}
2242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
2243where
2244    R: Send + Sync + std::fmt::Debug + 'static,
2245{
2246    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
2247        match err {
2248            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2249            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2250                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2251                source: err.into(),
2252            }),
2253        }
2254    }
2255}
2256impl From<crate::operation::update_application::UpdateApplicationError> for Error {
2257    fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
2258        match err {
2259            crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
2260        }
2261    }
2262}
2263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_review::UpdateCodeReviewError, R>> for Error
2264where
2265    R: Send + Sync + std::fmt::Debug + 'static,
2266{
2267    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_review::UpdateCodeReviewError, R>) -> Self {
2268        match err {
2269            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2270            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2271                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2272                source: err.into(),
2273            }),
2274        }
2275    }
2276}
2277impl From<crate::operation::update_code_review::UpdateCodeReviewError> for Error {
2278    fn from(err: crate::operation::update_code_review::UpdateCodeReviewError) -> Self {
2279        match err {
2280            crate::operation::update_code_review::UpdateCodeReviewError::Unhandled(inner) => Error::Unhandled(inner),
2281        }
2282    }
2283}
2284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_finding::UpdateFindingError, R>> for Error
2285where
2286    R: Send + Sync + std::fmt::Debug + 'static,
2287{
2288    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_finding::UpdateFindingError, R>) -> Self {
2289        match err {
2290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2293                source: err.into(),
2294            }),
2295        }
2296    }
2297}
2298impl From<crate::operation::update_finding::UpdateFindingError> for Error {
2299    fn from(err: crate::operation::update_finding::UpdateFindingError) -> Self {
2300        match err {
2301            crate::operation::update_finding::UpdateFindingError::Unhandled(inner) => Error::Unhandled(inner),
2302        }
2303    }
2304}
2305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integrated_resources::UpdateIntegratedResourcesError, R>>
2306    for Error
2307where
2308    R: Send + Sync + std::fmt::Debug + 'static,
2309{
2310    fn from(
2311        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integrated_resources::UpdateIntegratedResourcesError, R>,
2312    ) -> Self {
2313        match err {
2314            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2315            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2316                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2317                source: err.into(),
2318            }),
2319        }
2320    }
2321}
2322impl From<crate::operation::update_integrated_resources::UpdateIntegratedResourcesError> for Error {
2323    fn from(err: crate::operation::update_integrated_resources::UpdateIntegratedResourcesError) -> Self {
2324        match err {
2325            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::AccessDeniedException(inner) => {
2326                Error::AccessDeniedException(inner)
2327            }
2328            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ConflictException(inner) => {
2329                Error::ConflictException(inner)
2330            }
2331            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::InternalServerException(inner) => {
2332                Error::InternalServerException(inner)
2333            }
2334            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ResourceNotFoundException(inner) => {
2335                Error::ResourceNotFoundException(inner)
2336            }
2337            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ThrottlingException(inner) => {
2338                Error::ThrottlingException(inner)
2339            }
2340            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::ValidationException(inner) => {
2341                Error::ValidationException(inner)
2342            }
2343            crate::operation::update_integrated_resources::UpdateIntegratedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2344        }
2345    }
2346}
2347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pentest::UpdatePentestError, R>> for Error
2348where
2349    R: Send + Sync + std::fmt::Debug + 'static,
2350{
2351    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pentest::UpdatePentestError, R>) -> Self {
2352        match err {
2353            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2354            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2355                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2356                source: err.into(),
2357            }),
2358        }
2359    }
2360}
2361impl From<crate::operation::update_pentest::UpdatePentestError> for Error {
2362    fn from(err: crate::operation::update_pentest::UpdatePentestError) -> Self {
2363        match err {
2364            crate::operation::update_pentest::UpdatePentestError::Unhandled(inner) => Error::Unhandled(inner),
2365        }
2366    }
2367}
2368impl<R>
2369    From<
2370        ::aws_smithy_runtime_api::client::result::SdkError<
2371            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError,
2372            R,
2373        >,
2374    > for Error
2375where
2376    R: Send + Sync + std::fmt::Debug + 'static,
2377{
2378    fn from(
2379        err: ::aws_smithy_runtime_api::client::result::SdkError<
2380            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError,
2381            R,
2382        >,
2383    ) -> Self {
2384        match err {
2385            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2386            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2387                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2388                source: err.into(),
2389            }),
2390        }
2391    }
2392}
2393impl From<crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError> for Error {
2394    fn from(err: crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError) -> Self {
2395        match err {
2396            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::AccessDeniedException(inner) => {
2397                Error::AccessDeniedException(inner)
2398            }
2399            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ConflictException(inner) => {
2400                Error::ConflictException(inner)
2401            }
2402            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::InternalServerException(inner) => {
2403                Error::InternalServerException(inner)
2404            }
2405            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ResourceNotFoundException(inner) => {
2406                Error::ResourceNotFoundException(inner)
2407            }
2408            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ThrottlingException(inner) => {
2409                Error::ThrottlingException(inner)
2410            }
2411            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ValidationException(inner) => {
2412                Error::ValidationException(inner)
2413            }
2414            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::Unhandled(inner) => {
2415                Error::Unhandled(inner)
2416            }
2417        }
2418    }
2419}
2420impl<R>
2421    From<
2422        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError, R>,
2423    > for Error
2424where
2425    R: Send + Sync + std::fmt::Debug + 'static,
2426{
2427    fn from(
2428        err: ::aws_smithy_runtime_api::client::result::SdkError<
2429            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError,
2430            R,
2431        >,
2432    ) -> Self {
2433        match err {
2434            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2435            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2436                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2437                source: err.into(),
2438            }),
2439        }
2440    }
2441}
2442impl From<crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError> for Error {
2443    fn from(err: crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError) -> Self {
2444        match err {
2445            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError::AccessDeniedException(inner) => {
2446                Error::AccessDeniedException(inner)
2447            }
2448            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError::ConflictException(inner) => {
2449                Error::ConflictException(inner)
2450            }
2451            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError::InternalServerException(inner) => {
2452                Error::InternalServerException(inner)
2453            }
2454            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError::ResourceNotFoundException(inner) => {
2455                Error::ResourceNotFoundException(inner)
2456            }
2457            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError::ThrottlingException(inner) => {
2458                Error::ThrottlingException(inner)
2459            }
2460            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError::ValidationException(inner) => {
2461                Error::ValidationException(inner)
2462            }
2463            crate::operation::update_security_requirement_pack::UpdateSecurityRequirementPackError::Unhandled(inner) => Error::Unhandled(inner),
2464        }
2465    }
2466}
2467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_target_domain::UpdateTargetDomainError, R>> for Error
2468where
2469    R: Send + Sync + std::fmt::Debug + 'static,
2470{
2471    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_target_domain::UpdateTargetDomainError, R>) -> Self {
2472        match err {
2473            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2474            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2475                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2476                source: err.into(),
2477            }),
2478        }
2479    }
2480}
2481impl From<crate::operation::update_target_domain::UpdateTargetDomainError> for Error {
2482    fn from(err: crate::operation::update_target_domain::UpdateTargetDomainError) -> Self {
2483        match err {
2484            crate::operation::update_target_domain::UpdateTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
2485        }
2486    }
2487}
2488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_threat::UpdateThreatError, R>> for Error
2489where
2490    R: Send + Sync + std::fmt::Debug + 'static,
2491{
2492    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_threat::UpdateThreatError, R>) -> Self {
2493        match err {
2494            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2495            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2496                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2497                source: err.into(),
2498            }),
2499        }
2500    }
2501}
2502impl From<crate::operation::update_threat::UpdateThreatError> for Error {
2503    fn from(err: crate::operation::update_threat::UpdateThreatError) -> Self {
2504        match err {
2505            crate::operation::update_threat::UpdateThreatError::Unhandled(inner) => Error::Unhandled(inner),
2506        }
2507    }
2508}
2509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_threat_model::UpdateThreatModelError, R>> for Error
2510where
2511    R: Send + Sync + std::fmt::Debug + 'static,
2512{
2513    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_threat_model::UpdateThreatModelError, R>) -> Self {
2514        match err {
2515            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2516            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2517                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2518                source: err.into(),
2519            }),
2520        }
2521    }
2522}
2523impl From<crate::operation::update_threat_model::UpdateThreatModelError> for Error {
2524    fn from(err: crate::operation::update_threat_model::UpdateThreatModelError) -> Self {
2525        match err {
2526            crate::operation::update_threat_model::UpdateThreatModelError::Unhandled(inner) => Error::Unhandled(inner),
2527        }
2528    }
2529}
2530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_target_domain::VerifyTargetDomainError, R>> for Error
2531where
2532    R: Send + Sync + std::fmt::Debug + 'static,
2533{
2534    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_target_domain::VerifyTargetDomainError, R>) -> Self {
2535        match err {
2536            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2537            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2538                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2539                source: err.into(),
2540            }),
2541        }
2542    }
2543}
2544impl From<crate::operation::verify_target_domain::VerifyTargetDomainError> for Error {
2545    fn from(err: crate::operation::verify_target_domain::VerifyTargetDomainError) -> Self {
2546        match err {
2547            crate::operation::verify_target_domain::VerifyTargetDomainError::Unhandled(inner) => Error::Unhandled(inner),
2548        }
2549    }
2550}
2551impl ::std::error::Error for Error {
2552    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2553        match self {
2554            Error::AccessDeniedException(inner) => inner.source(),
2555            Error::ConflictException(inner) => inner.source(),
2556            Error::InternalServerException(inner) => inner.source(),
2557            Error::ResourceNotFoundException(inner) => inner.source(),
2558            Error::ServiceQuotaExceededException(inner) => inner.source(),
2559            Error::ThrottlingException(inner) => inner.source(),
2560            Error::ValidationException(inner) => inner.source(),
2561            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2562        }
2563    }
2564}
2565impl ::aws_types::request_id::RequestId for Error {
2566    fn request_id(&self) -> Option<&str> {
2567        match self {
2568            Self::AccessDeniedException(e) => e.request_id(),
2569            Self::ConflictException(e) => e.request_id(),
2570            Self::InternalServerException(e) => e.request_id(),
2571            Self::ResourceNotFoundException(e) => e.request_id(),
2572            Self::ServiceQuotaExceededException(e) => e.request_id(),
2573            Self::ThrottlingException(e) => e.request_id(),
2574            Self::ValidationException(e) => e.request_id(),
2575            Self::Unhandled(e) => e.meta.request_id(),
2576        }
2577    }
2578}