Skip to main content

aws_sdk_inspector2/
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    /// <p>For <code>Enable</code>, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region.</p>
8    AccessDeniedException(crate::types::error::AccessDeniedException),
9    /// <p>One or more tags submitted as part of the request is not valid.</p>
10    BadRequestException(crate::types::error::BadRequestException),
11    /// <p>A conflict occurred. This exception occurs when the same resource is being modified by concurrent requests.</p>
12    ConflictException(crate::types::error::ConflictException),
13    /// <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
14    InternalServerException(crate::types::error::InternalServerException),
15    /// <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
16    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
17    /// <p>You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.</p>
18    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
19    /// <p>The limit on the number of requests per second was exceeded.</p>
20    ThrottlingException(crate::types::error::ThrottlingException),
21    /// <p>The request has failed validation due to missing required fields or having invalid inputs.</p>
22    ValidationException(crate::types::error::ValidationException),
23    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
24    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
25    variable wildcard pattern and check `.code()`:
26     \
27    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
28     \
29    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
30    Unhandled(crate::error::sealed_unhandled::Unhandled),
31}
32impl ::std::fmt::Display for Error {
33    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
34        match self {
35            Error::AccessDeniedException(inner) => inner.fmt(f),
36            Error::BadRequestException(inner) => inner.fmt(f),
37            Error::ConflictException(inner) => inner.fmt(f),
38            Error::InternalServerException(inner) => inner.fmt(f),
39            Error::ResourceNotFoundException(inner) => inner.fmt(f),
40            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
41            Error::ThrottlingException(inner) => inner.fmt(f),
42            Error::ValidationException(inner) => inner.fmt(f),
43            Error::Unhandled(_) => {
44                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
45                    write!(f, "unhandled error ({code})")
46                } else {
47                    f.write_str("unhandled error")
48                }
49            }
50        }
51    }
52}
53impl From<::aws_smithy_types::error::operation::BuildError> for Error {
54    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
55        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
56            source: value.into(),
57            meta: ::std::default::Default::default(),
58        })
59    }
60}
61impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
62    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
63        match self {
64            Self::AccessDeniedException(inner) => inner.meta(),
65            Self::BadRequestException(inner) => inner.meta(),
66            Self::ConflictException(inner) => inner.meta(),
67            Self::InternalServerException(inner) => inner.meta(),
68            Self::ResourceNotFoundException(inner) => inner.meta(),
69            Self::ServiceQuotaExceededException(inner) => inner.meta(),
70            Self::ThrottlingException(inner) => inner.meta(),
71            Self::ValidationException(inner) => inner.meta(),
72            Self::Unhandled(inner) => &inner.meta,
73        }
74    }
75}
76impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member::AssociateMemberError, R>> for Error
77where
78    R: Send + Sync + std::fmt::Debug + 'static,
79{
80    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member::AssociateMemberError, R>) -> Self {
81        match err {
82            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
83            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
84                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
85                source: err.into(),
86            }),
87        }
88    }
89}
90impl From<crate::operation::associate_member::AssociateMemberError> for Error {
91    fn from(err: crate::operation::associate_member::AssociateMemberError) -> Self {
92        match err {
93            crate::operation::associate_member::AssociateMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
94            crate::operation::associate_member::AssociateMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
95            crate::operation::associate_member::AssociateMemberError::ServiceQuotaExceededException(inner) => {
96                Error::ServiceQuotaExceededException(inner)
97            }
98            crate::operation::associate_member::AssociateMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
99            crate::operation::associate_member::AssociateMemberError::ValidationException(inner) => Error::ValidationException(inner),
100            crate::operation::associate_member::AssociateMemberError::Unhandled(inner) => Error::Unhandled(inner),
101        }
102    }
103}
104impl<R>
105    From<
106        ::aws_smithy_runtime_api::client::result::SdkError<
107            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError,
108            R,
109        >,
110    > for Error
111where
112    R: Send + Sync + std::fmt::Debug + 'static,
113{
114    fn from(
115        err: ::aws_smithy_runtime_api::client::result::SdkError<
116            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError,
117            R,
118        >,
119    ) -> Self {
120        match err {
121            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
122            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
123                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
124                source: err.into(),
125            }),
126        }
127    }
128}
129impl From<crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError> for Error {
130    fn from(err: crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError) -> Self {
131        match err {
132            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
133            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
134            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
135            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
136            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
137            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
138            crate::operation::batch_associate_code_security_scan_configuration::BatchAssociateCodeSecurityScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
139        }
140    }
141}
142impl<R>
143    From<
144        ::aws_smithy_runtime_api::client::result::SdkError<
145            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError,
146            R,
147        >,
148    > for Error
149where
150    R: Send + Sync + std::fmt::Debug + 'static,
151{
152    fn from(
153        err: ::aws_smithy_runtime_api::client::result::SdkError<
154            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError,
155            R,
156        >,
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_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError> for Error {
168    fn from(err: crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError) -> Self {
169        match err {
170            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
171            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
172            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
173            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
174            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
175            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
176            crate::operation::batch_disassociate_code_security_scan_configuration::BatchDisassociateCodeSecurityScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
177        }
178    }
179}
180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_account_status::BatchGetAccountStatusError, R>> for Error
181where
182    R: Send + Sync + std::fmt::Debug + 'static,
183{
184    fn from(
185        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_account_status::BatchGetAccountStatusError, R>,
186    ) -> Self {
187        match err {
188            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
189            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
190                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
191                source: err.into(),
192            }),
193        }
194    }
195}
196impl From<crate::operation::batch_get_account_status::BatchGetAccountStatusError> for Error {
197    fn from(err: crate::operation::batch_get_account_status::BatchGetAccountStatusError) -> Self {
198        match err {
199            crate::operation::batch_get_account_status::BatchGetAccountStatusError::AccessDeniedException(inner) => {
200                Error::AccessDeniedException(inner)
201            }
202            crate::operation::batch_get_account_status::BatchGetAccountStatusError::InternalServerException(inner) => {
203                Error::InternalServerException(inner)
204            }
205            crate::operation::batch_get_account_status::BatchGetAccountStatusError::ResourceNotFoundException(inner) => {
206                Error::ResourceNotFoundException(inner)
207            }
208            crate::operation::batch_get_account_status::BatchGetAccountStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
209            crate::operation::batch_get_account_status::BatchGetAccountStatusError::ValidationException(inner) => Error::ValidationException(inner),
210            crate::operation::batch_get_account_status::BatchGetAccountStatusError::Unhandled(inner) => Error::Unhandled(inner),
211        }
212    }
213}
214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError, R>> for Error
215where
216    R: Send + Sync + std::fmt::Debug + 'static,
217{
218    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError, R>) -> Self {
219        match err {
220            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
221            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
222                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
223                source: err.into(),
224            }),
225        }
226    }
227}
228impl From<crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError> for Error {
229    fn from(err: crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError) -> Self {
230        match err {
231            crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
232            crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError::InternalServerException(inner) => {
233                Error::InternalServerException(inner)
234            }
235            crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
236            crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError::ValidationException(inner) => Error::ValidationException(inner),
237            crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError::Unhandled(inner) => Error::Unhandled(inner),
238        }
239    }
240}
241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_finding_details::BatchGetFindingDetailsError, R>>
242    for Error
243where
244    R: Send + Sync + std::fmt::Debug + 'static,
245{
246    fn from(
247        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_finding_details::BatchGetFindingDetailsError, R>,
248    ) -> Self {
249        match err {
250            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
251            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
252                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
253                source: err.into(),
254            }),
255        }
256    }
257}
258impl From<crate::operation::batch_get_finding_details::BatchGetFindingDetailsError> for Error {
259    fn from(err: crate::operation::batch_get_finding_details::BatchGetFindingDetailsError) -> Self {
260        match err {
261            crate::operation::batch_get_finding_details::BatchGetFindingDetailsError::AccessDeniedException(inner) => {
262                Error::AccessDeniedException(inner)
263            }
264            crate::operation::batch_get_finding_details::BatchGetFindingDetailsError::InternalServerException(inner) => {
265                Error::InternalServerException(inner)
266            }
267            crate::operation::batch_get_finding_details::BatchGetFindingDetailsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
268            crate::operation::batch_get_finding_details::BatchGetFindingDetailsError::ValidationException(inner) => Error::ValidationException(inner),
269            crate::operation::batch_get_finding_details::BatchGetFindingDetailsError::Unhandled(inner) => Error::Unhandled(inner),
270        }
271    }
272}
273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError, R>> for Error
274where
275    R: Send + Sync + std::fmt::Debug + 'static,
276{
277    fn from(
278        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError, R>,
279    ) -> Self {
280        match err {
281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
284                source: err.into(),
285            }),
286        }
287    }
288}
289impl From<crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError> for Error {
290    fn from(err: crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError) -> Self {
291        match err {
292            crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError::AccessDeniedException(inner) => {
293                Error::AccessDeniedException(inner)
294            }
295            crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError::InternalServerException(inner) => {
296                Error::InternalServerException(inner)
297            }
298            crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError::ThrottlingException(inner) => Error::ThrottlingException(inner),
299            crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError::ValidationException(inner) => Error::ValidationException(inner),
300            crate::operation::batch_get_free_trial_info::BatchGetFreeTrialInfoError::Unhandled(inner) => Error::Unhandled(inner),
301        }
302    }
303}
304impl<R>
305    From<
306        ::aws_smithy_runtime_api::client::result::SdkError<
307            crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError,
308            R,
309        >,
310    > for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(
315        err: ::aws_smithy_runtime_api::client::result::SdkError<
316            crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError,
317            R,
318        >,
319    ) -> Self {
320        match err {
321            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
322            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
323                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
324                source: err.into(),
325            }),
326        }
327    }
328}
329impl From<crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError> for Error {
330    fn from(err: crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError) -> Self {
331        match err {
332            crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError::AccessDeniedException(
333                inner,
334            ) => Error::AccessDeniedException(inner),
335            crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError::InternalServerException(
336                inner,
337            ) => Error::InternalServerException(inner),
338            crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError::ThrottlingException(inner) => {
339                Error::ThrottlingException(inner)
340            }
341            crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError::ValidationException(inner) => {
342                Error::ValidationException(inner)
343            }
344            crate::operation::batch_get_member_ec2_deep_inspection_status::BatchGetMemberEc2DeepInspectionStatusError::Unhandled(inner) => {
345                Error::Unhandled(inner)
346            }
347        }
348    }
349}
350impl<R>
351    From<
352        ::aws_smithy_runtime_api::client::result::SdkError<
353            crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError,
354            R,
355        >,
356    > for Error
357where
358    R: Send + Sync + std::fmt::Debug + 'static,
359{
360    fn from(
361        err: ::aws_smithy_runtime_api::client::result::SdkError<
362            crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError,
363            R,
364        >,
365    ) -> Self {
366        match err {
367            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
368            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
369                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
370                source: err.into(),
371            }),
372        }
373    }
374}
375impl From<crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError> for Error {
376    fn from(err: crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError) -> Self {
377        match err {
378            crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
379            crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError::InternalServerException(inner) => Error::InternalServerException(inner),
380            crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
381            crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError::ValidationException(inner) => Error::ValidationException(inner),
382            crate::operation::batch_update_member_ec2_deep_inspection_status::BatchUpdateMemberEc2DeepInspectionStatusError::Unhandled(inner) => Error::Unhandled(inner),
383        }
384    }
385}
386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_findings_report::CancelFindingsReportError, R>> for Error
387where
388    R: Send + Sync + std::fmt::Debug + 'static,
389{
390    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_findings_report::CancelFindingsReportError, R>) -> Self {
391        match err {
392            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
393            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
394                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
395                source: err.into(),
396            }),
397        }
398    }
399}
400impl From<crate::operation::cancel_findings_report::CancelFindingsReportError> for Error {
401    fn from(err: crate::operation::cancel_findings_report::CancelFindingsReportError) -> Self {
402        match err {
403            crate::operation::cancel_findings_report::CancelFindingsReportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
404            crate::operation::cancel_findings_report::CancelFindingsReportError::InternalServerException(inner) => {
405                Error::InternalServerException(inner)
406            }
407            crate::operation::cancel_findings_report::CancelFindingsReportError::ResourceNotFoundException(inner) => {
408                Error::ResourceNotFoundException(inner)
409            }
410            crate::operation::cancel_findings_report::CancelFindingsReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
411            crate::operation::cancel_findings_report::CancelFindingsReportError::ValidationException(inner) => Error::ValidationException(inner),
412            crate::operation::cancel_findings_report::CancelFindingsReportError::Unhandled(inner) => Error::Unhandled(inner),
413        }
414    }
415}
416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_sbom_export::CancelSbomExportError, R>> for Error
417where
418    R: Send + Sync + std::fmt::Debug + 'static,
419{
420    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_sbom_export::CancelSbomExportError, R>) -> Self {
421        match err {
422            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
423            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
424                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
425                source: err.into(),
426            }),
427        }
428    }
429}
430impl From<crate::operation::cancel_sbom_export::CancelSbomExportError> for Error {
431    fn from(err: crate::operation::cancel_sbom_export::CancelSbomExportError) -> Self {
432        match err {
433            crate::operation::cancel_sbom_export::CancelSbomExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
434            crate::operation::cancel_sbom_export::CancelSbomExportError::InternalServerException(inner) => Error::InternalServerException(inner),
435            crate::operation::cancel_sbom_export::CancelSbomExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
436            crate::operation::cancel_sbom_export::CancelSbomExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
437            crate::operation::cancel_sbom_export::CancelSbomExportError::ValidationException(inner) => Error::ValidationException(inner),
438            crate::operation::cancel_sbom_export::CancelSbomExportError::Unhandled(inner) => Error::Unhandled(inner),
439        }
440    }
441}
442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError, R>>
443    for Error
444where
445    R: Send + Sync + std::fmt::Debug + 'static,
446{
447    fn from(
448        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError, R>,
449    ) -> Self {
450        match err {
451            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
452            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
453                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
454                source: err.into(),
455            }),
456        }
457    }
458}
459impl From<crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError> for Error {
460    fn from(err: crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError) -> Self {
461        match err {
462            crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError::AccessDeniedException(inner) => {
463                Error::AccessDeniedException(inner)
464            }
465            crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError::InternalServerException(inner) => {
466                Error::InternalServerException(inner)
467            }
468            crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError::ThrottlingException(inner) => {
469                Error::ThrottlingException(inner)
470            }
471            crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError::ValidationException(inner) => {
472                Error::ValidationException(inner)
473            }
474            crate::operation::create_cis_scan_configuration::CreateCisScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
475        }
476    }
477}
478impl<R>
479    From<
480        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError, R>,
481    > for Error
482where
483    R: Send + Sync + std::fmt::Debug + 'static,
484{
485    fn from(
486        err: ::aws_smithy_runtime_api::client::result::SdkError<
487            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError,
488            R,
489        >,
490    ) -> Self {
491        match err {
492            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
493            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
494                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
495                source: err.into(),
496            }),
497        }
498    }
499}
500impl From<crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError> for Error {
501    fn from(err: crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError) -> Self {
502        match err {
503            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError::AccessDeniedException(inner) => {
504                Error::AccessDeniedException(inner)
505            }
506            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError::ConflictException(inner) => {
507                Error::ConflictException(inner)
508            }
509            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError::InternalServerException(inner) => {
510                Error::InternalServerException(inner)
511            }
512            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError::ServiceQuotaExceededException(inner) => {
513                Error::ServiceQuotaExceededException(inner)
514            }
515            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError::ThrottlingException(inner) => {
516                Error::ThrottlingException(inner)
517            }
518            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError::ValidationException(inner) => {
519                Error::ValidationException(inner)
520            }
521            crate::operation::create_code_security_integration::CreateCodeSecurityIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
522        }
523    }
524}
525impl<R>
526    From<
527        ::aws_smithy_runtime_api::client::result::SdkError<
528            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError,
529            R,
530        >,
531    > for Error
532where
533    R: Send + Sync + std::fmt::Debug + 'static,
534{
535    fn from(
536        err: ::aws_smithy_runtime_api::client::result::SdkError<
537            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError,
538            R,
539        >,
540    ) -> Self {
541        match err {
542            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
543            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
544                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
545                source: err.into(),
546            }),
547        }
548    }
549}
550impl From<crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError> for Error {
551    fn from(err: crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError) -> Self {
552        match err {
553            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError::AccessDeniedException(inner) => {
554                Error::AccessDeniedException(inner)
555            }
556            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError::ConflictException(inner) => {
557                Error::ConflictException(inner)
558            }
559            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError::InternalServerException(inner) => {
560                Error::InternalServerException(inner)
561            }
562            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError::ServiceQuotaExceededException(
563                inner,
564            ) => Error::ServiceQuotaExceededException(inner),
565            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError::ThrottlingException(inner) => {
566                Error::ThrottlingException(inner)
567            }
568            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError::ValidationException(inner) => {
569                Error::ValidationException(inner)
570            }
571            crate::operation::create_code_security_scan_configuration::CreateCodeSecurityScanConfigurationError::Unhandled(inner) => {
572                Error::Unhandled(inner)
573            }
574        }
575    }
576}
577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>> for Error
578where
579    R: Send + Sync + std::fmt::Debug + 'static,
580{
581    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>) -> Self {
582        match err {
583            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586                source: err.into(),
587            }),
588        }
589    }
590}
591impl From<crate::operation::create_connector::CreateConnectorError> for Error {
592    fn from(err: crate::operation::create_connector::CreateConnectorError) -> Self {
593        match err {
594            crate::operation::create_connector::CreateConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
595            crate::operation::create_connector::CreateConnectorError::ConflictException(inner) => Error::ConflictException(inner),
596            crate::operation::create_connector::CreateConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
597            crate::operation::create_connector::CreateConnectorError::ServiceQuotaExceededException(inner) => {
598                Error::ServiceQuotaExceededException(inner)
599            }
600            crate::operation::create_connector::CreateConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
601            crate::operation::create_connector::CreateConnectorError::ValidationException(inner) => Error::ValidationException(inner),
602            crate::operation::create_connector::CreateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_filter::CreateFilterError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_filter::CreateFilterError, R>) -> Self {
611        match err {
612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615                source: err.into(),
616            }),
617        }
618    }
619}
620impl From<crate::operation::create_filter::CreateFilterError> for Error {
621    fn from(err: crate::operation::create_filter::CreateFilterError) -> Self {
622        match err {
623            crate::operation::create_filter::CreateFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
624            crate::operation::create_filter::CreateFilterError::BadRequestException(inner) => Error::BadRequestException(inner),
625            crate::operation::create_filter::CreateFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
626            crate::operation::create_filter::CreateFilterError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
627            crate::operation::create_filter::CreateFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
628            crate::operation::create_filter::CreateFilterError::ValidationException(inner) => Error::ValidationException(inner),
629            crate::operation::create_filter::CreateFilterError::Unhandled(inner) => Error::Unhandled(inner),
630        }
631    }
632}
633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_findings_report::CreateFindingsReportError, R>> for Error
634where
635    R: Send + Sync + std::fmt::Debug + 'static,
636{
637    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_findings_report::CreateFindingsReportError, R>) -> Self {
638        match err {
639            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
640            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
641                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
642                source: err.into(),
643            }),
644        }
645    }
646}
647impl From<crate::operation::create_findings_report::CreateFindingsReportError> for Error {
648    fn from(err: crate::operation::create_findings_report::CreateFindingsReportError) -> Self {
649        match err {
650            crate::operation::create_findings_report::CreateFindingsReportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
651            crate::operation::create_findings_report::CreateFindingsReportError::InternalServerException(inner) => {
652                Error::InternalServerException(inner)
653            }
654            crate::operation::create_findings_report::CreateFindingsReportError::ResourceNotFoundException(inner) => {
655                Error::ResourceNotFoundException(inner)
656            }
657            crate::operation::create_findings_report::CreateFindingsReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
658            crate::operation::create_findings_report::CreateFindingsReportError::ValidationException(inner) => Error::ValidationException(inner),
659            crate::operation::create_findings_report::CreateFindingsReportError::Unhandled(inner) => Error::Unhandled(inner),
660        }
661    }
662}
663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sbom_export::CreateSbomExportError, R>> for Error
664where
665    R: Send + Sync + std::fmt::Debug + 'static,
666{
667    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sbom_export::CreateSbomExportError, R>) -> Self {
668        match err {
669            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
670            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
671                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
672                source: err.into(),
673            }),
674        }
675    }
676}
677impl From<crate::operation::create_sbom_export::CreateSbomExportError> for Error {
678    fn from(err: crate::operation::create_sbom_export::CreateSbomExportError) -> Self {
679        match err {
680            crate::operation::create_sbom_export::CreateSbomExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
681            crate::operation::create_sbom_export::CreateSbomExportError::InternalServerException(inner) => Error::InternalServerException(inner),
682            crate::operation::create_sbom_export::CreateSbomExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
683            crate::operation::create_sbom_export::CreateSbomExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
684            crate::operation::create_sbom_export::CreateSbomExportError::ValidationException(inner) => Error::ValidationException(inner),
685            crate::operation::create_sbom_export::CreateSbomExportError::Unhandled(inner) => Error::Unhandled(inner),
686        }
687    }
688}
689impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError, R>>
690    for Error
691where
692    R: Send + Sync + std::fmt::Debug + 'static,
693{
694    fn from(
695        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError, R>,
696    ) -> Self {
697        match err {
698            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
699            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
700                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
701                source: err.into(),
702            }),
703        }
704    }
705}
706impl From<crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError> for Error {
707    fn from(err: crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError) -> Self {
708        match err {
709            crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::AccessDeniedException(inner) => {
710                Error::AccessDeniedException(inner)
711            }
712            crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::InternalServerException(inner) => {
713                Error::InternalServerException(inner)
714            }
715            crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::ResourceNotFoundException(inner) => {
716                Error::ResourceNotFoundException(inner)
717            }
718            crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::ThrottlingException(inner) => {
719                Error::ThrottlingException(inner)
720            }
721            crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::ValidationException(inner) => {
722                Error::ValidationException(inner)
723            }
724            crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R>
729    From<
730        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError, R>,
731    > for Error
732where
733    R: Send + Sync + std::fmt::Debug + 'static,
734{
735    fn from(
736        err: ::aws_smithy_runtime_api::client::result::SdkError<
737            crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError,
738            R,
739        >,
740    ) -> Self {
741        match err {
742            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
743            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
744                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
745                source: err.into(),
746            }),
747        }
748    }
749}
750impl From<crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError> for Error {
751    fn from(err: crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError) -> Self {
752        match err {
753            crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::AccessDeniedException(inner) => {
754                Error::AccessDeniedException(inner)
755            }
756            crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::InternalServerException(inner) => {
757                Error::InternalServerException(inner)
758            }
759            crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::ResourceNotFoundException(inner) => {
760                Error::ResourceNotFoundException(inner)
761            }
762            crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::ThrottlingException(inner) => {
763                Error::ThrottlingException(inner)
764            }
765            crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::ValidationException(inner) => {
766                Error::ValidationException(inner)
767            }
768            crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
769        }
770    }
771}
772impl<R>
773    From<
774        ::aws_smithy_runtime_api::client::result::SdkError<
775            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError,
776            R,
777        >,
778    > for Error
779where
780    R: Send + Sync + std::fmt::Debug + 'static,
781{
782    fn from(
783        err: ::aws_smithy_runtime_api::client::result::SdkError<
784            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError,
785            R,
786        >,
787    ) -> Self {
788        match err {
789            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
790            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
791                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
792                source: err.into(),
793            }),
794        }
795    }
796}
797impl From<crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError> for Error {
798    fn from(err: crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError) -> Self {
799        match err {
800            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::AccessDeniedException(inner) => {
801                Error::AccessDeniedException(inner)
802            }
803            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::InternalServerException(inner) => {
804                Error::InternalServerException(inner)
805            }
806            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => {
807                Error::ResourceNotFoundException(inner)
808            }
809            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::ThrottlingException(inner) => {
810                Error::ThrottlingException(inner)
811            }
812            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::ValidationException(inner) => {
813                Error::ValidationException(inner)
814            }
815            crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::Unhandled(inner) => {
816                Error::Unhandled(inner)
817            }
818        }
819    }
820}
821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>> for Error
822where
823    R: Send + Sync + std::fmt::Debug + 'static,
824{
825    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>) -> Self {
826        match err {
827            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
828            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
829                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
830                source: err.into(),
831            }),
832        }
833    }
834}
835impl From<crate::operation::delete_connector::DeleteConnectorError> for Error {
836    fn from(err: crate::operation::delete_connector::DeleteConnectorError) -> Self {
837        match err {
838            crate::operation::delete_connector::DeleteConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
839            crate::operation::delete_connector::DeleteConnectorError::ConflictException(inner) => Error::ConflictException(inner),
840            crate::operation::delete_connector::DeleteConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
841            crate::operation::delete_connector::DeleteConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
842            crate::operation::delete_connector::DeleteConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
843            crate::operation::delete_connector::DeleteConnectorError::ValidationException(inner) => Error::ValidationException(inner),
844            crate::operation::delete_connector::DeleteConnectorError::Unhandled(inner) => Error::Unhandled(inner),
845        }
846    }
847}
848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_filter::DeleteFilterError, R>> for Error
849where
850    R: Send + Sync + std::fmt::Debug + 'static,
851{
852    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_filter::DeleteFilterError, R>) -> Self {
853        match err {
854            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
855            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
856                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
857                source: err.into(),
858            }),
859        }
860    }
861}
862impl From<crate::operation::delete_filter::DeleteFilterError> for Error {
863    fn from(err: crate::operation::delete_filter::DeleteFilterError) -> Self {
864        match err {
865            crate::operation::delete_filter::DeleteFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
866            crate::operation::delete_filter::DeleteFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
867            crate::operation::delete_filter::DeleteFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
868            crate::operation::delete_filter::DeleteFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
869            crate::operation::delete_filter::DeleteFilterError::ValidationException(inner) => Error::ValidationException(inner),
870            crate::operation::delete_filter::DeleteFilterError::Unhandled(inner) => Error::Unhandled(inner),
871        }
872    }
873}
874impl<R>
875    From<
876        ::aws_smithy_runtime_api::client::result::SdkError<
877            crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError,
878            R,
879        >,
880    > for Error
881where
882    R: Send + Sync + std::fmt::Debug + 'static,
883{
884    fn from(
885        err: ::aws_smithy_runtime_api::client::result::SdkError<
886            crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError,
887            R,
888        >,
889    ) -> Self {
890        match err {
891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
894                source: err.into(),
895            }),
896        }
897    }
898}
899impl From<crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError> for Error {
900    fn from(err: crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError) -> Self {
901        match err {
902            crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::AccessDeniedException(inner) => {
903                Error::AccessDeniedException(inner)
904            }
905            crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::InternalServerException(inner) => {
906                Error::InternalServerException(inner)
907            }
908            crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ThrottlingException(inner) => {
909                Error::ThrottlingException(inner)
910            }
911            crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ValidationException(inner) => {
912                Error::ValidationException(inner)
913            }
914            crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::Unhandled(inner) => {
915                Error::Unhandled(inner)
916            }
917        }
918    }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable::DisableError, 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::disable::DisableError, 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::disable::DisableError> for Error {
935    fn from(err: crate::operation::disable::DisableError) -> Self {
936        match err {
937            crate::operation::disable::DisableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
938            crate::operation::disable::DisableError::InternalServerException(inner) => Error::InternalServerException(inner),
939            crate::operation::disable::DisableError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
940            crate::operation::disable::DisableError::ThrottlingException(inner) => Error::ThrottlingException(inner),
941            crate::operation::disable::DisableError::ValidationException(inner) => Error::ValidationException(inner),
942            crate::operation::disable::DisableError::Unhandled(inner) => Error::Unhandled(inner),
943        }
944    }
945}
946impl<R>
947    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError, R>>
948    for Error
949where
950    R: Send + Sync + std::fmt::Debug + 'static,
951{
952    fn from(
953        err: ::aws_smithy_runtime_api::client::result::SdkError<
954            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError,
955            R,
956        >,
957    ) -> Self {
958        match err {
959            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
960            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
961                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
962                source: err.into(),
963            }),
964        }
965    }
966}
967impl From<crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError> for Error {
968    fn from(err: crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError) -> Self {
969        match err {
970            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::AccessDeniedException(inner) => {
971                Error::AccessDeniedException(inner)
972            }
973            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ConflictException(inner) => {
974                Error::ConflictException(inner)
975            }
976            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::InternalServerException(inner) => {
977                Error::InternalServerException(inner)
978            }
979            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ResourceNotFoundException(inner) => {
980                Error::ResourceNotFoundException(inner)
981            }
982            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ThrottlingException(inner) => {
983                Error::ThrottlingException(inner)
984            }
985            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ValidationException(inner) => {
986                Error::ValidationException(inner)
987            }
988            crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
989        }
990    }
991}
992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member::DisassociateMemberError, R>> for Error
993where
994    R: Send + Sync + std::fmt::Debug + 'static,
995{
996    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member::DisassociateMemberError, R>) -> Self {
997        match err {
998            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
999            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1000                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1001                source: err.into(),
1002            }),
1003        }
1004    }
1005}
1006impl From<crate::operation::disassociate_member::DisassociateMemberError> for Error {
1007    fn from(err: crate::operation::disassociate_member::DisassociateMemberError) -> Self {
1008        match err {
1009            crate::operation::disassociate_member::DisassociateMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1010            crate::operation::disassociate_member::DisassociateMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
1011            crate::operation::disassociate_member::DisassociateMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1012            crate::operation::disassociate_member::DisassociateMemberError::ValidationException(inner) => Error::ValidationException(inner),
1013            crate::operation::disassociate_member::DisassociateMemberError::Unhandled(inner) => Error::Unhandled(inner),
1014        }
1015    }
1016}
1017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable::EnableError, R>> for Error
1018where
1019    R: Send + Sync + std::fmt::Debug + 'static,
1020{
1021    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable::EnableError, R>) -> Self {
1022        match err {
1023            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1024            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1025                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1026                source: err.into(),
1027            }),
1028        }
1029    }
1030}
1031impl From<crate::operation::enable::EnableError> for Error {
1032    fn from(err: crate::operation::enable::EnableError) -> Self {
1033        match err {
1034            crate::operation::enable::EnableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1035            crate::operation::enable::EnableError::InternalServerException(inner) => Error::InternalServerException(inner),
1036            crate::operation::enable::EnableError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1037            crate::operation::enable::EnableError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1038            crate::operation::enable::EnableError::ValidationException(inner) => Error::ValidationException(inner),
1039            crate::operation::enable::EnableError::Unhandled(inner) => Error::Unhandled(inner),
1040        }
1041    }
1042}
1043impl<R>
1044    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError, R>>
1045    for Error
1046where
1047    R: Send + Sync + std::fmt::Debug + 'static,
1048{
1049    fn from(
1050        err: ::aws_smithy_runtime_api::client::result::SdkError<
1051            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError,
1052            R,
1053        >,
1054    ) -> Self {
1055        match err {
1056            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1057            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1058                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1059                source: err.into(),
1060            }),
1061        }
1062    }
1063}
1064impl From<crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError> for Error {
1065    fn from(err: crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError) -> Self {
1066        match err {
1067            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::AccessDeniedException(inner) => {
1068                Error::AccessDeniedException(inner)
1069            }
1070            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ConflictException(inner) => {
1071                Error::ConflictException(inner)
1072            }
1073            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::InternalServerException(inner) => {
1074                Error::InternalServerException(inner)
1075            }
1076            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ResourceNotFoundException(inner) => {
1077                Error::ResourceNotFoundException(inner)
1078            }
1079            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ThrottlingException(inner) => {
1080                Error::ThrottlingException(inner)
1081            }
1082            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ValidationException(inner) => {
1083                Error::ValidationException(inner)
1084            }
1085            crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
1086        }
1087    }
1088}
1089impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_report::GetCisScanReportError, R>> for Error
1090where
1091    R: Send + Sync + std::fmt::Debug + 'static,
1092{
1093    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_report::GetCisScanReportError, R>) -> Self {
1094        match err {
1095            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1096            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1097                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1098                source: err.into(),
1099            }),
1100        }
1101    }
1102}
1103impl From<crate::operation::get_cis_scan_report::GetCisScanReportError> for Error {
1104    fn from(err: crate::operation::get_cis_scan_report::GetCisScanReportError) -> Self {
1105        match err {
1106            crate::operation::get_cis_scan_report::GetCisScanReportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1107            crate::operation::get_cis_scan_report::GetCisScanReportError::InternalServerException(inner) => Error::InternalServerException(inner),
1108            crate::operation::get_cis_scan_report::GetCisScanReportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1109            crate::operation::get_cis_scan_report::GetCisScanReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1110            crate::operation::get_cis_scan_report::GetCisScanReportError::ValidationException(inner) => Error::ValidationException(inner),
1111            crate::operation::get_cis_scan_report::GetCisScanReportError::Unhandled(inner) => Error::Unhandled(inner),
1112        }
1113    }
1114}
1115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError, R>>
1116    for Error
1117where
1118    R: Send + Sync + std::fmt::Debug + 'static,
1119{
1120    fn from(
1121        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError, R>,
1122    ) -> Self {
1123        match err {
1124            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1125            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1126                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1127                source: err.into(),
1128            }),
1129        }
1130    }
1131}
1132impl From<crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError> for Error {
1133    fn from(err: crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError) -> Self {
1134        match err {
1135            crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::AccessDeniedException(inner) => {
1136                Error::AccessDeniedException(inner)
1137            }
1138            crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::InternalServerException(inner) => {
1139                Error::InternalServerException(inner)
1140            }
1141            crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::ThrottlingException(inner) => {
1142                Error::ThrottlingException(inner)
1143            }
1144            crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::ValidationException(inner) => {
1145                Error::ValidationException(inner)
1146            }
1147            crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::Unhandled(inner) => Error::Unhandled(inner),
1148        }
1149    }
1150}
1151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_clusters_for_image::GetClustersForImageError, R>> for Error
1152where
1153    R: Send + Sync + std::fmt::Debug + 'static,
1154{
1155    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_clusters_for_image::GetClustersForImageError, R>) -> Self {
1156        match err {
1157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1160                source: err.into(),
1161            }),
1162        }
1163    }
1164}
1165impl From<crate::operation::get_clusters_for_image::GetClustersForImageError> for Error {
1166    fn from(err: crate::operation::get_clusters_for_image::GetClustersForImageError) -> Self {
1167        match err {
1168            crate::operation::get_clusters_for_image::GetClustersForImageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1169            crate::operation::get_clusters_for_image::GetClustersForImageError::InternalServerException(inner) => {
1170                Error::InternalServerException(inner)
1171            }
1172            crate::operation::get_clusters_for_image::GetClustersForImageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1173            crate::operation::get_clusters_for_image::GetClustersForImageError::ValidationException(inner) => Error::ValidationException(inner),
1174            crate::operation::get_clusters_for_image::GetClustersForImageError::Unhandled(inner) => Error::Unhandled(inner),
1175        }
1176    }
1177}
1178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError, R>>
1179    for Error
1180where
1181    R: Send + Sync + std::fmt::Debug + 'static,
1182{
1183    fn from(
1184        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError, R>,
1185    ) -> Self {
1186        match err {
1187            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1188            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1189                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1190                source: err.into(),
1191            }),
1192        }
1193    }
1194}
1195impl From<crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError> for Error {
1196    fn from(err: crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError) -> Self {
1197        match err {
1198            crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::AccessDeniedException(inner) => {
1199                Error::AccessDeniedException(inner)
1200            }
1201            crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::InternalServerException(inner) => {
1202                Error::InternalServerException(inner)
1203            }
1204            crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::ResourceNotFoundException(inner) => {
1205                Error::ResourceNotFoundException(inner)
1206            }
1207            crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::ThrottlingException(inner) => {
1208                Error::ThrottlingException(inner)
1209            }
1210            crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::ValidationException(inner) => {
1211                Error::ValidationException(inner)
1212            }
1213            crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1214        }
1215    }
1216}
1217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_scan::GetCodeSecurityScanError, R>> for Error
1218where
1219    R: Send + Sync + std::fmt::Debug + 'static,
1220{
1221    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_scan::GetCodeSecurityScanError, R>) -> Self {
1222        match err {
1223            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1224            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1225                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1226                source: err.into(),
1227            }),
1228        }
1229    }
1230}
1231impl From<crate::operation::get_code_security_scan::GetCodeSecurityScanError> for Error {
1232    fn from(err: crate::operation::get_code_security_scan::GetCodeSecurityScanError) -> Self {
1233        match err {
1234            crate::operation::get_code_security_scan::GetCodeSecurityScanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1235            crate::operation::get_code_security_scan::GetCodeSecurityScanError::ConflictException(inner) => Error::ConflictException(inner),
1236            crate::operation::get_code_security_scan::GetCodeSecurityScanError::InternalServerException(inner) => {
1237                Error::InternalServerException(inner)
1238            }
1239            crate::operation::get_code_security_scan::GetCodeSecurityScanError::ResourceNotFoundException(inner) => {
1240                Error::ResourceNotFoundException(inner)
1241            }
1242            crate::operation::get_code_security_scan::GetCodeSecurityScanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1243            crate::operation::get_code_security_scan::GetCodeSecurityScanError::ValidationException(inner) => Error::ValidationException(inner),
1244            crate::operation::get_code_security_scan::GetCodeSecurityScanError::Unhandled(inner) => Error::Unhandled(inner),
1245        }
1246    }
1247}
1248impl<R>
1249    From<
1250        ::aws_smithy_runtime_api::client::result::SdkError<
1251            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError,
1252            R,
1253        >,
1254    > for Error
1255where
1256    R: Send + Sync + std::fmt::Debug + 'static,
1257{
1258    fn from(
1259        err: ::aws_smithy_runtime_api::client::result::SdkError<
1260            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError,
1261            R,
1262        >,
1263    ) -> Self {
1264        match err {
1265            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1266            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1267                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1268                source: err.into(),
1269            }),
1270        }
1271    }
1272}
1273impl From<crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError> for Error {
1274    fn from(err: crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError) -> Self {
1275        match err {
1276            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::AccessDeniedException(inner) => {
1277                Error::AccessDeniedException(inner)
1278            }
1279            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::InternalServerException(inner) => {
1280                Error::InternalServerException(inner)
1281            }
1282            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => {
1283                Error::ResourceNotFoundException(inner)
1284            }
1285            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::ThrottlingException(inner) => {
1286                Error::ThrottlingException(inner)
1287            }
1288            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::ValidationException(inner) => {
1289                Error::ValidationException(inner)
1290            }
1291            crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::Unhandled(inner) => {
1292                Error::Unhandled(inner)
1293            }
1294        }
1295    }
1296}
1297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration::GetConfigurationError, R>> for Error
1298where
1299    R: Send + Sync + std::fmt::Debug + 'static,
1300{
1301    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration::GetConfigurationError, R>) -> Self {
1302        match err {
1303            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1304            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1305                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1306                source: err.into(),
1307            }),
1308        }
1309    }
1310}
1311impl From<crate::operation::get_configuration::GetConfigurationError> for Error {
1312    fn from(err: crate::operation::get_configuration::GetConfigurationError) -> Self {
1313        match err {
1314            crate::operation::get_configuration::GetConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1315            crate::operation::get_configuration::GetConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
1316            crate::operation::get_configuration::GetConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1317            crate::operation::get_configuration::GetConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1318            crate::operation::get_configuration::GetConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
1319            crate::operation::get_configuration::GetConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1320        }
1321    }
1322}
1323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError, R>>
1324    for Error
1325where
1326    R: Send + Sync + std::fmt::Debug + 'static,
1327{
1328    fn from(
1329        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError, R>,
1330    ) -> Self {
1331        match err {
1332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1335                source: err.into(),
1336            }),
1337        }
1338    }
1339}
1340impl From<crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError> for Error {
1341    fn from(err: crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError) -> Self {
1342        match err {
1343            crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::AccessDeniedException(inner) => {
1344                Error::AccessDeniedException(inner)
1345            }
1346            crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::InternalServerException(inner) => {
1347                Error::InternalServerException(inner)
1348            }
1349            crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::ResourceNotFoundException(inner) => {
1350                Error::ResourceNotFoundException(inner)
1351            }
1352            crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::ThrottlingException(inner) => {
1353                Error::ThrottlingException(inner)
1354            }
1355            crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::ValidationException(inner) => {
1356                Error::ValidationException(inner)
1357            }
1358            crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
1359        }
1360    }
1361}
1362impl<R>
1363    From<
1364        ::aws_smithy_runtime_api::client::result::SdkError<
1365            crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError,
1366            R,
1367        >,
1368    > for Error
1369where
1370    R: Send + Sync + std::fmt::Debug + 'static,
1371{
1372    fn from(
1373        err: ::aws_smithy_runtime_api::client::result::SdkError<
1374            crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError,
1375            R,
1376        >,
1377    ) -> Self {
1378        match err {
1379            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1380            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1381                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1382                source: err.into(),
1383            }),
1384        }
1385    }
1386}
1387impl From<crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError> for Error {
1388    fn from(err: crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError) -> Self {
1389        match err {
1390            crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::AccessDeniedException(inner) => {
1391                Error::AccessDeniedException(inner)
1392            }
1393            crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::InternalServerException(inner) => {
1394                Error::InternalServerException(inner)
1395            }
1396            crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::ResourceNotFoundException(inner) => {
1397                Error::ResourceNotFoundException(inner)
1398            }
1399            crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::ThrottlingException(inner) => {
1400                Error::ThrottlingException(inner)
1401            }
1402            crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::Unhandled(inner) => {
1403                Error::Unhandled(inner)
1404            }
1405        }
1406    }
1407}
1408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_encryption_key::GetEncryptionKeyError, R>> for Error
1409where
1410    R: Send + Sync + std::fmt::Debug + 'static,
1411{
1412    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_encryption_key::GetEncryptionKeyError, R>) -> Self {
1413        match err {
1414            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1415            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1416                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1417                source: err.into(),
1418            }),
1419        }
1420    }
1421}
1422impl From<crate::operation::get_encryption_key::GetEncryptionKeyError> for Error {
1423    fn from(err: crate::operation::get_encryption_key::GetEncryptionKeyError) -> Self {
1424        match err {
1425            crate::operation::get_encryption_key::GetEncryptionKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1426            crate::operation::get_encryption_key::GetEncryptionKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
1427            crate::operation::get_encryption_key::GetEncryptionKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1428            crate::operation::get_encryption_key::GetEncryptionKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1429            crate::operation::get_encryption_key::GetEncryptionKeyError::ValidationException(inner) => Error::ValidationException(inner),
1430            crate::operation::get_encryption_key::GetEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
1431        }
1432    }
1433}
1434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings_report_status::GetFindingsReportStatusError, R>>
1435    for Error
1436where
1437    R: Send + Sync + std::fmt::Debug + 'static,
1438{
1439    fn from(
1440        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings_report_status::GetFindingsReportStatusError, R>,
1441    ) -> Self {
1442        match err {
1443            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1444            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1445                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1446                source: err.into(),
1447            }),
1448        }
1449    }
1450}
1451impl From<crate::operation::get_findings_report_status::GetFindingsReportStatusError> for Error {
1452    fn from(err: crate::operation::get_findings_report_status::GetFindingsReportStatusError) -> Self {
1453        match err {
1454            crate::operation::get_findings_report_status::GetFindingsReportStatusError::AccessDeniedException(inner) => {
1455                Error::AccessDeniedException(inner)
1456            }
1457            crate::operation::get_findings_report_status::GetFindingsReportStatusError::InternalServerException(inner) => {
1458                Error::InternalServerException(inner)
1459            }
1460            crate::operation::get_findings_report_status::GetFindingsReportStatusError::ResourceNotFoundException(inner) => {
1461                Error::ResourceNotFoundException(inner)
1462            }
1463            crate::operation::get_findings_report_status::GetFindingsReportStatusError::ThrottlingException(inner) => {
1464                Error::ThrottlingException(inner)
1465            }
1466            crate::operation::get_findings_report_status::GetFindingsReportStatusError::ValidationException(inner) => {
1467                Error::ValidationException(inner)
1468            }
1469            crate::operation::get_findings_report_status::GetFindingsReportStatusError::Unhandled(inner) => Error::Unhandled(inner),
1470        }
1471    }
1472}
1473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member::GetMemberError, R>> for Error
1474where
1475    R: Send + Sync + std::fmt::Debug + 'static,
1476{
1477    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member::GetMemberError, R>) -> Self {
1478        match err {
1479            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1480            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1481                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1482                source: err.into(),
1483            }),
1484        }
1485    }
1486}
1487impl From<crate::operation::get_member::GetMemberError> for Error {
1488    fn from(err: crate::operation::get_member::GetMemberError) -> Self {
1489        match err {
1490            crate::operation::get_member::GetMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1491            crate::operation::get_member::GetMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
1492            crate::operation::get_member::GetMemberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1493            crate::operation::get_member::GetMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1494            crate::operation::get_member::GetMemberError::ValidationException(inner) => Error::ValidationException(inner),
1495            crate::operation::get_member::GetMemberError::Unhandled(inner) => Error::Unhandled(inner),
1496        }
1497    }
1498}
1499impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sbom_export::GetSbomExportError, R>> for Error
1500where
1501    R: Send + Sync + std::fmt::Debug + 'static,
1502{
1503    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sbom_export::GetSbomExportError, R>) -> Self {
1504        match err {
1505            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1506            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1507                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1508                source: err.into(),
1509            }),
1510        }
1511    }
1512}
1513impl From<crate::operation::get_sbom_export::GetSbomExportError> for Error {
1514    fn from(err: crate::operation::get_sbom_export::GetSbomExportError) -> Self {
1515        match err {
1516            crate::operation::get_sbom_export::GetSbomExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1517            crate::operation::get_sbom_export::GetSbomExportError::InternalServerException(inner) => Error::InternalServerException(inner),
1518            crate::operation::get_sbom_export::GetSbomExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1519            crate::operation::get_sbom_export::GetSbomExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1520            crate::operation::get_sbom_export::GetSbomExportError::ValidationException(inner) => Error::ValidationException(inner),
1521            crate::operation::get_sbom_export::GetSbomExportError::Unhandled(inner) => Error::Unhandled(inner),
1522        }
1523    }
1524}
1525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_permissions::ListAccountPermissionsError, R>> for Error
1526where
1527    R: Send + Sync + std::fmt::Debug + 'static,
1528{
1529    fn from(
1530        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_permissions::ListAccountPermissionsError, R>,
1531    ) -> Self {
1532        match err {
1533            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1534            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1535                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1536                source: err.into(),
1537            }),
1538        }
1539    }
1540}
1541impl From<crate::operation::list_account_permissions::ListAccountPermissionsError> for Error {
1542    fn from(err: crate::operation::list_account_permissions::ListAccountPermissionsError) -> Self {
1543        match err {
1544            crate::operation::list_account_permissions::ListAccountPermissionsError::AccessDeniedException(inner) => {
1545                Error::AccessDeniedException(inner)
1546            }
1547            crate::operation::list_account_permissions::ListAccountPermissionsError::InternalServerException(inner) => {
1548                Error::InternalServerException(inner)
1549            }
1550            crate::operation::list_account_permissions::ListAccountPermissionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1551            crate::operation::list_account_permissions::ListAccountPermissionsError::ValidationException(inner) => Error::ValidationException(inner),
1552            crate::operation::list_account_permissions::ListAccountPermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1553        }
1554    }
1555}
1556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError, R>>
1557    for Error
1558where
1559    R: Send + Sync + std::fmt::Debug + 'static,
1560{
1561    fn from(
1562        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError, R>,
1563    ) -> Self {
1564        match err {
1565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1568                source: err.into(),
1569            }),
1570        }
1571    }
1572}
1573impl From<crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError> for Error {
1574    fn from(err: crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError) -> Self {
1575        match err {
1576            crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::AccessDeniedException(inner) => {
1577                Error::AccessDeniedException(inner)
1578            }
1579            crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::InternalServerException(inner) => {
1580                Error::InternalServerException(inner)
1581            }
1582            crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::ThrottlingException(inner) => {
1583                Error::ThrottlingException(inner)
1584            }
1585            crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::ValidationException(inner) => {
1586                Error::ValidationException(inner)
1587            }
1588            crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1589        }
1590    }
1591}
1592impl<R>
1593    From<
1594        ::aws_smithy_runtime_api::client::result::SdkError<
1595            crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError,
1596            R,
1597        >,
1598    > for Error
1599where
1600    R: Send + Sync + std::fmt::Debug + 'static,
1601{
1602    fn from(
1603        err: ::aws_smithy_runtime_api::client::result::SdkError<
1604            crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError,
1605            R,
1606        >,
1607    ) -> Self {
1608        match err {
1609            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1610            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1611                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1612                source: err.into(),
1613            }),
1614        }
1615    }
1616}
1617impl From<crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError> for Error {
1618    fn from(err: crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError) -> Self {
1619        match err {
1620            crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::AccessDeniedException(inner) => {
1621                Error::AccessDeniedException(inner)
1622            }
1623            crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::InternalServerException(
1624                inner,
1625            ) => Error::InternalServerException(inner),
1626            crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::ThrottlingException(inner) => {
1627                Error::ThrottlingException(inner)
1628            }
1629            crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::ValidationException(inner) => {
1630                Error::ValidationException(inner)
1631            }
1632            crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::Unhandled(inner) => {
1633                Error::Unhandled(inner)
1634            }
1635        }
1636    }
1637}
1638impl<R>
1639    From<
1640        ::aws_smithy_runtime_api::client::result::SdkError<
1641            crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError,
1642            R,
1643        >,
1644    > for Error
1645where
1646    R: Send + Sync + std::fmt::Debug + 'static,
1647{
1648    fn from(
1649        err: ::aws_smithy_runtime_api::client::result::SdkError<
1650            crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError,
1651            R,
1652        >,
1653    ) -> Self {
1654        match err {
1655            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1656            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1657                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1658                source: err.into(),
1659            }),
1660        }
1661    }
1662}
1663impl From<crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError> for Error {
1664    fn from(err: crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError) -> Self {
1665        match err {
1666            crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1667            crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1668            crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1669            crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::ValidationException(inner) => Error::ValidationException(inner),
1670            crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::Unhandled(inner) => Error::Unhandled(inner),
1671        }
1672    }
1673}
1674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scans::ListCisScansError, R>> for Error
1675where
1676    R: Send + Sync + std::fmt::Debug + 'static,
1677{
1678    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scans::ListCisScansError, R>) -> Self {
1679        match err {
1680            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1681            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1682                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1683                source: err.into(),
1684            }),
1685        }
1686    }
1687}
1688impl From<crate::operation::list_cis_scans::ListCisScansError> for Error {
1689    fn from(err: crate::operation::list_cis_scans::ListCisScansError) -> Self {
1690        match err {
1691            crate::operation::list_cis_scans::ListCisScansError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1692            crate::operation::list_cis_scans::ListCisScansError::InternalServerException(inner) => Error::InternalServerException(inner),
1693            crate::operation::list_cis_scans::ListCisScansError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1694            crate::operation::list_cis_scans::ListCisScansError::ValidationException(inner) => Error::ValidationException(inner),
1695            crate::operation::list_cis_scans::ListCisScansError::Unhandled(inner) => Error::Unhandled(inner),
1696        }
1697    }
1698}
1699impl<R>
1700    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError, R>>
1701    for Error
1702where
1703    R: Send + Sync + std::fmt::Debug + 'static,
1704{
1705    fn from(
1706        err: ::aws_smithy_runtime_api::client::result::SdkError<
1707            crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError,
1708            R,
1709        >,
1710    ) -> 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_code_security_integrations::ListCodeSecurityIntegrationsError> for Error {
1721    fn from(err: crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError) -> Self {
1722        match err {
1723            crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::AccessDeniedException(inner) => {
1724                Error::AccessDeniedException(inner)
1725            }
1726            crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::InternalServerException(inner) => {
1727                Error::InternalServerException(inner)
1728            }
1729            crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::ThrottlingException(inner) => {
1730                Error::ThrottlingException(inner)
1731            }
1732            crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::ValidationException(inner) => {
1733                Error::ValidationException(inner)
1734            }
1735            crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
1736        }
1737    }
1738}
1739impl<R>
1740    From<
1741        ::aws_smithy_runtime_api::client::result::SdkError<
1742            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError,
1743            R,
1744        >,
1745    > for Error
1746where
1747    R: Send + Sync + std::fmt::Debug + 'static,
1748{
1749    fn from(
1750        err: ::aws_smithy_runtime_api::client::result::SdkError<
1751            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError,
1752            R,
1753        >,
1754    ) -> Self {
1755        match err {
1756            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1757            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1758                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1759                source: err.into(),
1760            }),
1761        }
1762    }
1763}
1764impl From<crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError> for Error {
1765    fn from(err: crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError) -> Self {
1766        match err {
1767            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1768            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1769            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1770            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1771            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
1772            crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1773        }
1774    }
1775}
1776impl<R>
1777    From<
1778        ::aws_smithy_runtime_api::client::result::SdkError<
1779            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError,
1780            R,
1781        >,
1782    > for Error
1783where
1784    R: Send + Sync + std::fmt::Debug + 'static,
1785{
1786    fn from(
1787        err: ::aws_smithy_runtime_api::client::result::SdkError<
1788            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError,
1789            R,
1790        >,
1791    ) -> Self {
1792        match err {
1793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1796                source: err.into(),
1797            }),
1798        }
1799    }
1800}
1801impl From<crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError> for Error {
1802    fn from(err: crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError) -> Self {
1803        match err {
1804            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::AccessDeniedException(inner) => {
1805                Error::AccessDeniedException(inner)
1806            }
1807            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::InternalServerException(inner) => {
1808                Error::InternalServerException(inner)
1809            }
1810            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::ResourceNotFoundException(inner) => {
1811                Error::ResourceNotFoundException(inner)
1812            }
1813            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::ThrottlingException(inner) => {
1814                Error::ThrottlingException(inner)
1815            }
1816            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::ValidationException(inner) => {
1817                Error::ValidationException(inner)
1818            }
1819            crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::Unhandled(inner) => {
1820                Error::Unhandled(inner)
1821            }
1822        }
1823    }
1824}
1825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>> for Error
1826where
1827    R: Send + Sync + std::fmt::Debug + 'static,
1828{
1829    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>) -> Self {
1830        match err {
1831            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1832            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1833                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1834                source: err.into(),
1835            }),
1836        }
1837    }
1838}
1839impl From<crate::operation::list_connectors::ListConnectorsError> for Error {
1840    fn from(err: crate::operation::list_connectors::ListConnectorsError) -> Self {
1841        match err {
1842            crate::operation::list_connectors::ListConnectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1843            crate::operation::list_connectors::ListConnectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
1844            crate::operation::list_connectors::ListConnectorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1845            crate::operation::list_connectors::ListConnectorsError::ValidationException(inner) => Error::ValidationException(inner),
1846            crate::operation::list_connectors::ListConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
1847        }
1848    }
1849}
1850impl<R>
1851    From<
1852        ::aws_smithy_runtime_api::client::result::SdkError<
1853            crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError,
1854            R,
1855        >,
1856    > for Error
1857where
1858    R: Send + Sync + std::fmt::Debug + 'static,
1859{
1860    fn from(
1861        err: ::aws_smithy_runtime_api::client::result::SdkError<
1862            crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError,
1863            R,
1864        >,
1865    ) -> Self {
1866        match err {
1867            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1868            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1869                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1870                source: err.into(),
1871            }),
1872        }
1873    }
1874}
1875impl From<crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError> for Error {
1876    fn from(err: crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError) -> Self {
1877        match err {
1878            crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError::AccessDeniedException(inner) => {
1879                Error::AccessDeniedException(inner)
1880            }
1881            crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError::InternalServerException(inner) => {
1882                Error::InternalServerException(inner)
1883            }
1884            crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError::ThrottlingException(inner) => {
1885                Error::ThrottlingException(inner)
1886            }
1887            crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError::ValidationException(inner) => {
1888                Error::ValidationException(inner)
1889            }
1890            crate::operation::list_connector_scan_configurations::ListConnectorScanConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1891        }
1892    }
1893}
1894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage::ListCoverageError, R>> for Error
1895where
1896    R: Send + Sync + std::fmt::Debug + 'static,
1897{
1898    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage::ListCoverageError, R>) -> Self {
1899        match err {
1900            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1901            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1902                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1903                source: err.into(),
1904            }),
1905        }
1906    }
1907}
1908impl From<crate::operation::list_coverage::ListCoverageError> for Error {
1909    fn from(err: crate::operation::list_coverage::ListCoverageError) -> Self {
1910        match err {
1911            crate::operation::list_coverage::ListCoverageError::InternalServerException(inner) => Error::InternalServerException(inner),
1912            crate::operation::list_coverage::ListCoverageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1913            crate::operation::list_coverage::ListCoverageError::ValidationException(inner) => Error::ValidationException(inner),
1914            crate::operation::list_coverage::ListCoverageError::Unhandled(inner) => Error::Unhandled(inner),
1915        }
1916    }
1917}
1918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage_statistics::ListCoverageStatisticsError, R>> for Error
1919where
1920    R: Send + Sync + std::fmt::Debug + 'static,
1921{
1922    fn from(
1923        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage_statistics::ListCoverageStatisticsError, R>,
1924    ) -> Self {
1925        match err {
1926            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1927            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1928                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1929                source: err.into(),
1930            }),
1931        }
1932    }
1933}
1934impl From<crate::operation::list_coverage_statistics::ListCoverageStatisticsError> for Error {
1935    fn from(err: crate::operation::list_coverage_statistics::ListCoverageStatisticsError) -> Self {
1936        match err {
1937            crate::operation::list_coverage_statistics::ListCoverageStatisticsError::InternalServerException(inner) => {
1938                Error::InternalServerException(inner)
1939            }
1940            crate::operation::list_coverage_statistics::ListCoverageStatisticsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1941            crate::operation::list_coverage_statistics::ListCoverageStatisticsError::ValidationException(inner) => Error::ValidationException(inner),
1942            crate::operation::list_coverage_statistics::ListCoverageStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
1943        }
1944    }
1945}
1946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError, R>>
1947    for Error
1948where
1949    R: Send + Sync + std::fmt::Debug + 'static,
1950{
1951    fn from(
1952        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError, R>,
1953    ) -> Self {
1954        match err {
1955            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1956            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1957                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1958                source: err.into(),
1959            }),
1960        }
1961    }
1962}
1963impl From<crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError> for Error {
1964    fn from(err: crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError) -> Self {
1965        match err {
1966            crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::AccessDeniedException(inner) => {
1967                Error::AccessDeniedException(inner)
1968            }
1969            crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::InternalServerException(inner) => {
1970                Error::InternalServerException(inner)
1971            }
1972            crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::ThrottlingException(inner) => {
1973                Error::ThrottlingException(inner)
1974            }
1975            crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::ValidationException(inner) => {
1976                Error::ValidationException(inner)
1977            }
1978            crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::Unhandled(inner) => Error::Unhandled(inner),
1979        }
1980    }
1981}
1982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_filters::ListFiltersError, R>> for Error
1983where
1984    R: Send + Sync + std::fmt::Debug + 'static,
1985{
1986    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_filters::ListFiltersError, R>) -> Self {
1987        match err {
1988            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1989            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1990                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1991                source: err.into(),
1992            }),
1993        }
1994    }
1995}
1996impl From<crate::operation::list_filters::ListFiltersError> for Error {
1997    fn from(err: crate::operation::list_filters::ListFiltersError) -> Self {
1998        match err {
1999            crate::operation::list_filters::ListFiltersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2000            crate::operation::list_filters::ListFiltersError::InternalServerException(inner) => Error::InternalServerException(inner),
2001            crate::operation::list_filters::ListFiltersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2002            crate::operation::list_filters::ListFiltersError::ValidationException(inner) => Error::ValidationException(inner),
2003            crate::operation::list_filters::ListFiltersError::Unhandled(inner) => Error::Unhandled(inner),
2004        }
2005    }
2006}
2007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_finding_aggregations::ListFindingAggregationsError, R>>
2008    for Error
2009where
2010    R: Send + Sync + std::fmt::Debug + 'static,
2011{
2012    fn from(
2013        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_finding_aggregations::ListFindingAggregationsError, R>,
2014    ) -> Self {
2015        match err {
2016            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2017            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2018                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2019                source: err.into(),
2020            }),
2021        }
2022    }
2023}
2024impl From<crate::operation::list_finding_aggregations::ListFindingAggregationsError> for Error {
2025    fn from(err: crate::operation::list_finding_aggregations::ListFindingAggregationsError) -> Self {
2026        match err {
2027            crate::operation::list_finding_aggregations::ListFindingAggregationsError::InternalServerException(inner) => {
2028                Error::InternalServerException(inner)
2029            }
2030            crate::operation::list_finding_aggregations::ListFindingAggregationsError::ThrottlingException(inner) => {
2031                Error::ThrottlingException(inner)
2032            }
2033            crate::operation::list_finding_aggregations::ListFindingAggregationsError::ValidationException(inner) => {
2034                Error::ValidationException(inner)
2035            }
2036            crate::operation::list_finding_aggregations::ListFindingAggregationsError::Unhandled(inner) => Error::Unhandled(inner),
2037        }
2038    }
2039}
2040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>> for Error
2041where
2042    R: Send + Sync + std::fmt::Debug + 'static,
2043{
2044    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>) -> Self {
2045        match err {
2046            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2047            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2048                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2049                source: err.into(),
2050            }),
2051        }
2052    }
2053}
2054impl From<crate::operation::list_findings::ListFindingsError> for Error {
2055    fn from(err: crate::operation::list_findings::ListFindingsError) -> Self {
2056        match err {
2057            crate::operation::list_findings::ListFindingsError::InternalServerException(inner) => Error::InternalServerException(inner),
2058            crate::operation::list_findings::ListFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2059            crate::operation::list_findings::ListFindingsError::ValidationException(inner) => Error::ValidationException(inner),
2060            crate::operation::list_findings::ListFindingsError::Unhandled(inner) => Error::Unhandled(inner),
2061        }
2062    }
2063}
2064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members::ListMembersError, R>> for Error
2065where
2066    R: Send + Sync + std::fmt::Debug + 'static,
2067{
2068    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members::ListMembersError, R>) -> Self {
2069        match err {
2070            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2071            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2072                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2073                source: err.into(),
2074            }),
2075        }
2076    }
2077}
2078impl From<crate::operation::list_members::ListMembersError> for Error {
2079    fn from(err: crate::operation::list_members::ListMembersError) -> Self {
2080        match err {
2081            crate::operation::list_members::ListMembersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2082            crate::operation::list_members::ListMembersError::InternalServerException(inner) => Error::InternalServerException(inner),
2083            crate::operation::list_members::ListMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2084            crate::operation::list_members::ListMembersError::ValidationException(inner) => Error::ValidationException(inner),
2085            crate::operation::list_members::ListMembersError::Unhandled(inner) => Error::Unhandled(inner),
2086        }
2087    }
2088}
2089impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2090where
2091    R: Send + Sync + std::fmt::Debug + 'static,
2092{
2093    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2094        match err {
2095            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2096            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2097                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2098                source: err.into(),
2099            }),
2100        }
2101    }
2102}
2103impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2104    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2105        match err {
2106            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2107                Error::InternalServerException(inner)
2108            }
2109            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2110                Error::ResourceNotFoundException(inner)
2111            }
2112            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2113            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2114            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2115        }
2116    }
2117}
2118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_usage_totals::ListUsageTotalsError, R>> for Error
2119where
2120    R: Send + Sync + std::fmt::Debug + 'static,
2121{
2122    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_usage_totals::ListUsageTotalsError, R>) -> Self {
2123        match err {
2124            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2125            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2126                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2127                source: err.into(),
2128            }),
2129        }
2130    }
2131}
2132impl From<crate::operation::list_usage_totals::ListUsageTotalsError> for Error {
2133    fn from(err: crate::operation::list_usage_totals::ListUsageTotalsError) -> Self {
2134        match err {
2135            crate::operation::list_usage_totals::ListUsageTotalsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2136            crate::operation::list_usage_totals::ListUsageTotalsError::InternalServerException(inner) => Error::InternalServerException(inner),
2137            crate::operation::list_usage_totals::ListUsageTotalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2138            crate::operation::list_usage_totals::ListUsageTotalsError::ValidationException(inner) => Error::ValidationException(inner),
2139            crate::operation::list_usage_totals::ListUsageTotalsError::Unhandled(inner) => Error::Unhandled(inner),
2140        }
2141    }
2142}
2143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_encryption_key::ResetEncryptionKeyError, R>> for Error
2144where
2145    R: Send + Sync + std::fmt::Debug + 'static,
2146{
2147    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_encryption_key::ResetEncryptionKeyError, R>) -> Self {
2148        match err {
2149            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2150            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2151                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2152                source: err.into(),
2153            }),
2154        }
2155    }
2156}
2157impl From<crate::operation::reset_encryption_key::ResetEncryptionKeyError> for Error {
2158    fn from(err: crate::operation::reset_encryption_key::ResetEncryptionKeyError) -> Self {
2159        match err {
2160            crate::operation::reset_encryption_key::ResetEncryptionKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2161            crate::operation::reset_encryption_key::ResetEncryptionKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
2162            crate::operation::reset_encryption_key::ResetEncryptionKeyError::ResourceNotFoundException(inner) => {
2163                Error::ResourceNotFoundException(inner)
2164            }
2165            crate::operation::reset_encryption_key::ResetEncryptionKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2166            crate::operation::reset_encryption_key::ResetEncryptionKeyError::ValidationException(inner) => Error::ValidationException(inner),
2167            crate::operation::reset_encryption_key::ResetEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
2168        }
2169    }
2170}
2171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_vulnerabilities::SearchVulnerabilitiesError, R>> for Error
2172where
2173    R: Send + Sync + std::fmt::Debug + 'static,
2174{
2175    fn from(
2176        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_vulnerabilities::SearchVulnerabilitiesError, R>,
2177    ) -> Self {
2178        match err {
2179            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2180            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2181                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2182                source: err.into(),
2183            }),
2184        }
2185    }
2186}
2187impl From<crate::operation::search_vulnerabilities::SearchVulnerabilitiesError> for Error {
2188    fn from(err: crate::operation::search_vulnerabilities::SearchVulnerabilitiesError) -> Self {
2189        match err {
2190            crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2191            crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::InternalServerException(inner) => {
2192                Error::InternalServerException(inner)
2193            }
2194            crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2195            crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::ValidationException(inner) => Error::ValidationException(inner),
2196            crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::Unhandled(inner) => Error::Unhandled(inner),
2197        }
2198    }
2199}
2200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_health::SendCisSessionHealthError, R>> for Error
2201where
2202    R: Send + Sync + std::fmt::Debug + 'static,
2203{
2204    fn from(
2205        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_health::SendCisSessionHealthError, R>,
2206    ) -> Self {
2207        match err {
2208            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2209            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2210                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2211                source: err.into(),
2212            }),
2213        }
2214    }
2215}
2216impl From<crate::operation::send_cis_session_health::SendCisSessionHealthError> for Error {
2217    fn from(err: crate::operation::send_cis_session_health::SendCisSessionHealthError) -> Self {
2218        match err {
2219            crate::operation::send_cis_session_health::SendCisSessionHealthError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2220            crate::operation::send_cis_session_health::SendCisSessionHealthError::ConflictException(inner) => Error::ConflictException(inner),
2221            crate::operation::send_cis_session_health::SendCisSessionHealthError::InternalServerException(inner) => {
2222                Error::InternalServerException(inner)
2223            }
2224            crate::operation::send_cis_session_health::SendCisSessionHealthError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2225            crate::operation::send_cis_session_health::SendCisSessionHealthError::ValidationException(inner) => Error::ValidationException(inner),
2226            crate::operation::send_cis_session_health::SendCisSessionHealthError::Unhandled(inner) => Error::Unhandled(inner),
2227        }
2228    }
2229}
2230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError, R>>
2231    for Error
2232where
2233    R: Send + Sync + std::fmt::Debug + 'static,
2234{
2235    fn from(
2236        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError, R>,
2237    ) -> Self {
2238        match err {
2239            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2240            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2241                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2242                source: err.into(),
2243            }),
2244        }
2245    }
2246}
2247impl From<crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError> for Error {
2248    fn from(err: crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError) -> Self {
2249        match err {
2250            crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::AccessDeniedException(inner) => {
2251                Error::AccessDeniedException(inner)
2252            }
2253            crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::ConflictException(inner) => Error::ConflictException(inner),
2254            crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::InternalServerException(inner) => {
2255                Error::InternalServerException(inner)
2256            }
2257            crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::ThrottlingException(inner) => {
2258                Error::ThrottlingException(inner)
2259            }
2260            crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::ValidationException(inner) => {
2261                Error::ValidationException(inner)
2262            }
2263            crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::Unhandled(inner) => Error::Unhandled(inner),
2264        }
2265    }
2266}
2267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cis_session::StartCisSessionError, R>> for Error
2268where
2269    R: Send + Sync + std::fmt::Debug + 'static,
2270{
2271    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cis_session::StartCisSessionError, R>) -> Self {
2272        match err {
2273            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2274            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2275                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2276                source: err.into(),
2277            }),
2278        }
2279    }
2280}
2281impl From<crate::operation::start_cis_session::StartCisSessionError> for Error {
2282    fn from(err: crate::operation::start_cis_session::StartCisSessionError) -> Self {
2283        match err {
2284            crate::operation::start_cis_session::StartCisSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2285            crate::operation::start_cis_session::StartCisSessionError::ConflictException(inner) => Error::ConflictException(inner),
2286            crate::operation::start_cis_session::StartCisSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
2287            crate::operation::start_cis_session::StartCisSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2288            crate::operation::start_cis_session::StartCisSessionError::ValidationException(inner) => Error::ValidationException(inner),
2289            crate::operation::start_cis_session::StartCisSessionError::Unhandled(inner) => Error::Unhandled(inner),
2290        }
2291    }
2292}
2293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_security_scan::StartCodeSecurityScanError, R>> for Error
2294where
2295    R: Send + Sync + std::fmt::Debug + 'static,
2296{
2297    fn from(
2298        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_security_scan::StartCodeSecurityScanError, R>,
2299    ) -> Self {
2300        match err {
2301            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2302            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2303                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2304                source: err.into(),
2305            }),
2306        }
2307    }
2308}
2309impl From<crate::operation::start_code_security_scan::StartCodeSecurityScanError> for Error {
2310    fn from(err: crate::operation::start_code_security_scan::StartCodeSecurityScanError) -> Self {
2311        match err {
2312            crate::operation::start_code_security_scan::StartCodeSecurityScanError::AccessDeniedException(inner) => {
2313                Error::AccessDeniedException(inner)
2314            }
2315            crate::operation::start_code_security_scan::StartCodeSecurityScanError::ConflictException(inner) => Error::ConflictException(inner),
2316            crate::operation::start_code_security_scan::StartCodeSecurityScanError::InternalServerException(inner) => {
2317                Error::InternalServerException(inner)
2318            }
2319            crate::operation::start_code_security_scan::StartCodeSecurityScanError::ResourceNotFoundException(inner) => {
2320                Error::ResourceNotFoundException(inner)
2321            }
2322            crate::operation::start_code_security_scan::StartCodeSecurityScanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2323            crate::operation::start_code_security_scan::StartCodeSecurityScanError::ValidationException(inner) => Error::ValidationException(inner),
2324            crate::operation::start_code_security_scan::StartCodeSecurityScanError::Unhandled(inner) => Error::Unhandled(inner),
2325        }
2326    }
2327}
2328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_cis_session::StopCisSessionError, R>> for Error
2329where
2330    R: Send + Sync + std::fmt::Debug + 'static,
2331{
2332    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_cis_session::StopCisSessionError, R>) -> Self {
2333        match err {
2334            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2335            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2336                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2337                source: err.into(),
2338            }),
2339        }
2340    }
2341}
2342impl From<crate::operation::stop_cis_session::StopCisSessionError> for Error {
2343    fn from(err: crate::operation::stop_cis_session::StopCisSessionError) -> Self {
2344        match err {
2345            crate::operation::stop_cis_session::StopCisSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2346            crate::operation::stop_cis_session::StopCisSessionError::ConflictException(inner) => Error::ConflictException(inner),
2347            crate::operation::stop_cis_session::StopCisSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
2348            crate::operation::stop_cis_session::StopCisSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2349            crate::operation::stop_cis_session::StopCisSessionError::ValidationException(inner) => Error::ValidationException(inner),
2350            crate::operation::stop_cis_session::StopCisSessionError::Unhandled(inner) => Error::Unhandled(inner),
2351        }
2352    }
2353}
2354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2355where
2356    R: Send + Sync + std::fmt::Debug + 'static,
2357{
2358    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2359        match err {
2360            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2361            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2362                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2363                source: err.into(),
2364            }),
2365        }
2366    }
2367}
2368impl From<crate::operation::tag_resource::TagResourceError> for Error {
2369    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2370        match err {
2371            crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
2372            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2373            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2374            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2375            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2376            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2377        }
2378    }
2379}
2380impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2381where
2382    R: Send + Sync + std::fmt::Debug + 'static,
2383{
2384    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2385        match err {
2386            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2387            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2388                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2389                source: err.into(),
2390            }),
2391        }
2392    }
2393}
2394impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2395    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2396        match err {
2397            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2398            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2399            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2400            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2401            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2402        }
2403    }
2404}
2405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError, R>>
2406    for Error
2407where
2408    R: Send + Sync + std::fmt::Debug + 'static,
2409{
2410    fn from(
2411        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError, R>,
2412    ) -> Self {
2413        match err {
2414            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2415            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2416                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2417                source: err.into(),
2418            }),
2419        }
2420    }
2421}
2422impl From<crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError> for Error {
2423    fn from(err: crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError) -> Self {
2424        match err {
2425            crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::AccessDeniedException(inner) => {
2426                Error::AccessDeniedException(inner)
2427            }
2428            crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::InternalServerException(inner) => {
2429                Error::InternalServerException(inner)
2430            }
2431            crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::ResourceNotFoundException(inner) => {
2432                Error::ResourceNotFoundException(inner)
2433            }
2434            crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::ThrottlingException(inner) => {
2435                Error::ThrottlingException(inner)
2436            }
2437            crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::ValidationException(inner) => {
2438                Error::ValidationException(inner)
2439            }
2440            crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2441        }
2442    }
2443}
2444impl<R>
2445    From<
2446        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError, R>,
2447    > for Error
2448where
2449    R: Send + Sync + std::fmt::Debug + 'static,
2450{
2451    fn from(
2452        err: ::aws_smithy_runtime_api::client::result::SdkError<
2453            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError,
2454            R,
2455        >,
2456    ) -> Self {
2457        match err {
2458            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2459            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2460                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2461                source: err.into(),
2462            }),
2463        }
2464    }
2465}
2466impl From<crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError> for Error {
2467    fn from(err: crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError) -> Self {
2468        match err {
2469            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::AccessDeniedException(inner) => {
2470                Error::AccessDeniedException(inner)
2471            }
2472            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ConflictException(inner) => {
2473                Error::ConflictException(inner)
2474            }
2475            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::InternalServerException(inner) => {
2476                Error::InternalServerException(inner)
2477            }
2478            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ResourceNotFoundException(inner) => {
2479                Error::ResourceNotFoundException(inner)
2480            }
2481            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ThrottlingException(inner) => {
2482                Error::ThrottlingException(inner)
2483            }
2484            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ValidationException(inner) => {
2485                Error::ValidationException(inner)
2486            }
2487            crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
2488        }
2489    }
2490}
2491impl<R>
2492    From<
2493        ::aws_smithy_runtime_api::client::result::SdkError<
2494            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError,
2495            R,
2496        >,
2497    > for Error
2498where
2499    R: Send + Sync + std::fmt::Debug + 'static,
2500{
2501    fn from(
2502        err: ::aws_smithy_runtime_api::client::result::SdkError<
2503            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError,
2504            R,
2505        >,
2506    ) -> Self {
2507        match err {
2508            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2509            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2510                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2511                source: err.into(),
2512            }),
2513        }
2514    }
2515}
2516impl From<crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError> for Error {
2517    fn from(err: crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError) -> Self {
2518        match err {
2519            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::AccessDeniedException(inner) => {
2520                Error::AccessDeniedException(inner)
2521            }
2522            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ConflictException(inner) => {
2523                Error::ConflictException(inner)
2524            }
2525            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::InternalServerException(inner) => {
2526                Error::InternalServerException(inner)
2527            }
2528            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => {
2529                Error::ResourceNotFoundException(inner)
2530            }
2531            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ThrottlingException(inner) => {
2532                Error::ThrottlingException(inner)
2533            }
2534            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ValidationException(inner) => {
2535                Error::ValidationException(inner)
2536            }
2537            crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::Unhandled(inner) => {
2538                Error::Unhandled(inner)
2539            }
2540        }
2541    }
2542}
2543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration::UpdateConfigurationError, R>> for Error
2544where
2545    R: Send + Sync + std::fmt::Debug + 'static,
2546{
2547    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration::UpdateConfigurationError, R>) -> Self {
2548        match err {
2549            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2550            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2551                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2552                source: err.into(),
2553            }),
2554        }
2555    }
2556}
2557impl From<crate::operation::update_configuration::UpdateConfigurationError> for Error {
2558    fn from(err: crate::operation::update_configuration::UpdateConfigurationError) -> Self {
2559        match err {
2560            crate::operation::update_configuration::UpdateConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2561            crate::operation::update_configuration::UpdateConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
2562            crate::operation::update_configuration::UpdateConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2563            crate::operation::update_configuration::UpdateConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
2564            crate::operation::update_configuration::UpdateConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2565        }
2566    }
2567}
2568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector::UpdateConnectorError, R>> for Error
2569where
2570    R: Send + Sync + std::fmt::Debug + 'static,
2571{
2572    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector::UpdateConnectorError, R>) -> Self {
2573        match err {
2574            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2575            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2576                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2577                source: err.into(),
2578            }),
2579        }
2580    }
2581}
2582impl From<crate::operation::update_connector::UpdateConnectorError> for Error {
2583    fn from(err: crate::operation::update_connector::UpdateConnectorError) -> Self {
2584        match err {
2585            crate::operation::update_connector::UpdateConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2586            crate::operation::update_connector::UpdateConnectorError::ConflictException(inner) => Error::ConflictException(inner),
2587            crate::operation::update_connector::UpdateConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
2588            crate::operation::update_connector::UpdateConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2589            crate::operation::update_connector::UpdateConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2590            crate::operation::update_connector::UpdateConnectorError::ValidationException(inner) => Error::ValidationException(inner),
2591            crate::operation::update_connector::UpdateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
2592        }
2593    }
2594}
2595impl<R>
2596    From<
2597        ::aws_smithy_runtime_api::client::result::SdkError<
2598            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError,
2599            R,
2600        >,
2601    > for Error
2602where
2603    R: Send + Sync + std::fmt::Debug + 'static,
2604{
2605    fn from(
2606        err: ::aws_smithy_runtime_api::client::result::SdkError<
2607            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError,
2608            R,
2609        >,
2610    ) -> Self {
2611        match err {
2612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2615                source: err.into(),
2616            }),
2617        }
2618    }
2619}
2620impl From<crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError> for Error {
2621    fn from(err: crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError) -> Self {
2622        match err {
2623            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError::AccessDeniedException(inner) => {
2624                Error::AccessDeniedException(inner)
2625            }
2626            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError::ConflictException(inner) => {
2627                Error::ConflictException(inner)
2628            }
2629            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError::InternalServerException(inner) => {
2630                Error::InternalServerException(inner)
2631            }
2632            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError::ResourceNotFoundException(inner) => {
2633                Error::ResourceNotFoundException(inner)
2634            }
2635            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError::ThrottlingException(inner) => {
2636                Error::ThrottlingException(inner)
2637            }
2638            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError::ValidationException(inner) => {
2639                Error::ValidationException(inner)
2640            }
2641            crate::operation::update_connector_scan_configuration::UpdateConnectorScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2642        }
2643    }
2644}
2645impl<R>
2646    From<
2647        ::aws_smithy_runtime_api::client::result::SdkError<
2648            crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError,
2649            R,
2650        >,
2651    > for Error
2652where
2653    R: Send + Sync + std::fmt::Debug + 'static,
2654{
2655    fn from(
2656        err: ::aws_smithy_runtime_api::client::result::SdkError<
2657            crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError,
2658            R,
2659        >,
2660    ) -> Self {
2661        match err {
2662            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2663            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2664                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2665                source: err.into(),
2666            }),
2667        }
2668    }
2669}
2670impl From<crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError> for Error {
2671    fn from(err: crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError) -> Self {
2672        match err {
2673            crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::AccessDeniedException(inner) => {
2674                Error::AccessDeniedException(inner)
2675            }
2676            crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::InternalServerException(inner) => {
2677                Error::InternalServerException(inner)
2678            }
2679            crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::ThrottlingException(inner) => {
2680                Error::ThrottlingException(inner)
2681            }
2682            crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::ValidationException(inner) => {
2683                Error::ValidationException(inner)
2684            }
2685            crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::Unhandled(inner) => {
2686                Error::Unhandled(inner)
2687            }
2688        }
2689    }
2690}
2691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_encryption_key::UpdateEncryptionKeyError, R>> for Error
2692where
2693    R: Send + Sync + std::fmt::Debug + 'static,
2694{
2695    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_encryption_key::UpdateEncryptionKeyError, R>) -> Self {
2696        match err {
2697            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2698            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2699                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2700                source: err.into(),
2701            }),
2702        }
2703    }
2704}
2705impl From<crate::operation::update_encryption_key::UpdateEncryptionKeyError> for Error {
2706    fn from(err: crate::operation::update_encryption_key::UpdateEncryptionKeyError) -> Self {
2707        match err {
2708            crate::operation::update_encryption_key::UpdateEncryptionKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2709            crate::operation::update_encryption_key::UpdateEncryptionKeyError::InternalServerException(inner) => {
2710                Error::InternalServerException(inner)
2711            }
2712            crate::operation::update_encryption_key::UpdateEncryptionKeyError::ResourceNotFoundException(inner) => {
2713                Error::ResourceNotFoundException(inner)
2714            }
2715            crate::operation::update_encryption_key::UpdateEncryptionKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2716            crate::operation::update_encryption_key::UpdateEncryptionKeyError::ValidationException(inner) => Error::ValidationException(inner),
2717            crate::operation::update_encryption_key::UpdateEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
2718        }
2719    }
2720}
2721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_filter::UpdateFilterError, R>> for Error
2722where
2723    R: Send + Sync + std::fmt::Debug + 'static,
2724{
2725    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_filter::UpdateFilterError, R>) -> Self {
2726        match err {
2727            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2728            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2729                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2730                source: err.into(),
2731            }),
2732        }
2733    }
2734}
2735impl From<crate::operation::update_filter::UpdateFilterError> for Error {
2736    fn from(err: crate::operation::update_filter::UpdateFilterError) -> Self {
2737        match err {
2738            crate::operation::update_filter::UpdateFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2739            crate::operation::update_filter::UpdateFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
2740            crate::operation::update_filter::UpdateFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2741            crate::operation::update_filter::UpdateFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2742            crate::operation::update_filter::UpdateFilterError::ValidationException(inner) => Error::ValidationException(inner),
2743            crate::operation::update_filter::UpdateFilterError::Unhandled(inner) => Error::Unhandled(inner),
2744        }
2745    }
2746}
2747impl<R>
2748    From<
2749        ::aws_smithy_runtime_api::client::result::SdkError<
2750            crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError,
2751            R,
2752        >,
2753    > for Error
2754where
2755    R: Send + Sync + std::fmt::Debug + 'static,
2756{
2757    fn from(
2758        err: ::aws_smithy_runtime_api::client::result::SdkError<
2759            crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError,
2760            R,
2761        >,
2762    ) -> Self {
2763        match err {
2764            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2765            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2766                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2767                source: err.into(),
2768            }),
2769        }
2770    }
2771}
2772impl From<crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError> for Error {
2773    fn from(err: crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError) -> Self {
2774        match err {
2775            crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::AccessDeniedException(inner) => {
2776                Error::AccessDeniedException(inner)
2777            }
2778            crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::InternalServerException(inner) => {
2779                Error::InternalServerException(inner)
2780            }
2781            crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ThrottlingException(inner) => {
2782                Error::ThrottlingException(inner)
2783            }
2784            crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ValidationException(inner) => {
2785                Error::ValidationException(inner)
2786            }
2787            crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2788        }
2789    }
2790}
2791impl<R>
2792    From<
2793        ::aws_smithy_runtime_api::client::result::SdkError<
2794            crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError,
2795            R,
2796        >,
2797    > for Error
2798where
2799    R: Send + Sync + std::fmt::Debug + 'static,
2800{
2801    fn from(
2802        err: ::aws_smithy_runtime_api::client::result::SdkError<
2803            crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError,
2804            R,
2805        >,
2806    ) -> Self {
2807        match err {
2808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2811                source: err.into(),
2812            }),
2813        }
2814    }
2815}
2816impl From<crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError> for Error {
2817    fn from(err: crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError) -> Self {
2818        match err {
2819            crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::AccessDeniedException(
2820                inner,
2821            ) => Error::AccessDeniedException(inner),
2822            crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::InternalServerException(
2823                inner,
2824            ) => Error::InternalServerException(inner),
2825            crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::ThrottlingException(
2826                inner,
2827            ) => Error::ThrottlingException(inner),
2828            crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::ValidationException(
2829                inner,
2830            ) => Error::ValidationException(inner),
2831            crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::Unhandled(inner) => {
2832                Error::Unhandled(inner)
2833            }
2834        }
2835    }
2836}
2837impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2838where
2839    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2840    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2841{
2842    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2843        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2844            meta: ::std::default::Default::default(),
2845            source: err.into(),
2846        })
2847    }
2848}
2849impl ::std::error::Error for Error {
2850    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2851        match self {
2852            Error::AccessDeniedException(inner) => inner.source(),
2853            Error::BadRequestException(inner) => inner.source(),
2854            Error::ConflictException(inner) => inner.source(),
2855            Error::InternalServerException(inner) => inner.source(),
2856            Error::ResourceNotFoundException(inner) => inner.source(),
2857            Error::ServiceQuotaExceededException(inner) => inner.source(),
2858            Error::ThrottlingException(inner) => inner.source(),
2859            Error::ValidationException(inner) => inner.source(),
2860            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2861        }
2862    }
2863}
2864impl ::aws_types::request_id::RequestId for Error {
2865    fn request_id(&self) -> Option<&str> {
2866        match self {
2867            Self::AccessDeniedException(e) => e.request_id(),
2868            Self::BadRequestException(e) => e.request_id(),
2869            Self::ConflictException(e) => e.request_id(),
2870            Self::InternalServerException(e) => e.request_id(),
2871            Self::ResourceNotFoundException(e) => e.request_id(),
2872            Self::ServiceQuotaExceededException(e) => e.request_id(),
2873            Self::ThrottlingException(e) => e.request_id(),
2874            Self::ValidationException(e) => e.request_id(),
2875            Self::Unhandled(e) => e.meta.request_id(),
2876        }
2877    }
2878}