1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
9 BadRequestException(crate::types::error::BadRequestException),
11 ConflictException(crate::types::error::ConflictException),
13 InternalServerException(crate::types::error::InternalServerException),
15 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
17 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
19 ThrottlingException(crate::types::error::ThrottlingException),
21 ValidationException(crate::types::error::ValidationException),
23 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
25 variable wildcard pattern and check `.code()`:
26 \
27 `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_filter::CreateFilterError, 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_filter::CreateFilterError, 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_filter::CreateFilterError> for Error {
592 fn from(err: crate::operation::create_filter::CreateFilterError) -> Self {
593 match err {
594 crate::operation::create_filter::CreateFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
595 crate::operation::create_filter::CreateFilterError::BadRequestException(inner) => Error::BadRequestException(inner),
596 crate::operation::create_filter::CreateFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
597 crate::operation::create_filter::CreateFilterError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
598 crate::operation::create_filter::CreateFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
599 crate::operation::create_filter::CreateFilterError::ValidationException(inner) => Error::ValidationException(inner),
600 crate::operation::create_filter::CreateFilterError::Unhandled(inner) => Error::Unhandled(inner),
601 }
602 }
603}
604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_findings_report::CreateFindingsReportError, R>> for Error
605where
606 R: Send + Sync + std::fmt::Debug + 'static,
607{
608 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_findings_report::CreateFindingsReportError, R>) -> Self {
609 match err {
610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
613 source: err.into(),
614 }),
615 }
616 }
617}
618impl From<crate::operation::create_findings_report::CreateFindingsReportError> for Error {
619 fn from(err: crate::operation::create_findings_report::CreateFindingsReportError) -> Self {
620 match err {
621 crate::operation::create_findings_report::CreateFindingsReportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
622 crate::operation::create_findings_report::CreateFindingsReportError::InternalServerException(inner) => {
623 Error::InternalServerException(inner)
624 }
625 crate::operation::create_findings_report::CreateFindingsReportError::ResourceNotFoundException(inner) => {
626 Error::ResourceNotFoundException(inner)
627 }
628 crate::operation::create_findings_report::CreateFindingsReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
629 crate::operation::create_findings_report::CreateFindingsReportError::ValidationException(inner) => Error::ValidationException(inner),
630 crate::operation::create_findings_report::CreateFindingsReportError::Unhandled(inner) => Error::Unhandled(inner),
631 }
632 }
633}
634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sbom_export::CreateSbomExportError, R>> for Error
635where
636 R: Send + Sync + std::fmt::Debug + 'static,
637{
638 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sbom_export::CreateSbomExportError, R>) -> Self {
639 match err {
640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
643 source: err.into(),
644 }),
645 }
646 }
647}
648impl From<crate::operation::create_sbom_export::CreateSbomExportError> for Error {
649 fn from(err: crate::operation::create_sbom_export::CreateSbomExportError) -> Self {
650 match err {
651 crate::operation::create_sbom_export::CreateSbomExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
652 crate::operation::create_sbom_export::CreateSbomExportError::InternalServerException(inner) => Error::InternalServerException(inner),
653 crate::operation::create_sbom_export::CreateSbomExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
654 crate::operation::create_sbom_export::CreateSbomExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
655 crate::operation::create_sbom_export::CreateSbomExportError::ValidationException(inner) => Error::ValidationException(inner),
656 crate::operation::create_sbom_export::CreateSbomExportError::Unhandled(inner) => Error::Unhandled(inner),
657 }
658 }
659}
660impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError, R>>
661 for Error
662where
663 R: Send + Sync + std::fmt::Debug + 'static,
664{
665 fn from(
666 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError, R>,
667 ) -> 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::delete_cis_scan_configuration::DeleteCisScanConfigurationError> for Error {
678 fn from(err: crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError) -> Self {
679 match err {
680 crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::AccessDeniedException(inner) => {
681 Error::AccessDeniedException(inner)
682 }
683 crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::InternalServerException(inner) => {
684 Error::InternalServerException(inner)
685 }
686 crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::ResourceNotFoundException(inner) => {
687 Error::ResourceNotFoundException(inner)
688 }
689 crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::ThrottlingException(inner) => {
690 Error::ThrottlingException(inner)
691 }
692 crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::ValidationException(inner) => {
693 Error::ValidationException(inner)
694 }
695 crate::operation::delete_cis_scan_configuration::DeleteCisScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
696 }
697 }
698}
699impl<R>
700 From<
701 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError, R>,
702 > for Error
703where
704 R: Send + Sync + std::fmt::Debug + 'static,
705{
706 fn from(
707 err: ::aws_smithy_runtime_api::client::result::SdkError<
708 crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError,
709 R,
710 >,
711 ) -> Self {
712 match err {
713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716 source: err.into(),
717 }),
718 }
719 }
720}
721impl From<crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError> for Error {
722 fn from(err: crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError) -> Self {
723 match err {
724 crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::AccessDeniedException(inner) => {
725 Error::AccessDeniedException(inner)
726 }
727 crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::InternalServerException(inner) => {
728 Error::InternalServerException(inner)
729 }
730 crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::ResourceNotFoundException(inner) => {
731 Error::ResourceNotFoundException(inner)
732 }
733 crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::ThrottlingException(inner) => {
734 Error::ThrottlingException(inner)
735 }
736 crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::ValidationException(inner) => {
737 Error::ValidationException(inner)
738 }
739 crate::operation::delete_code_security_integration::DeleteCodeSecurityIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
740 }
741 }
742}
743impl<R>
744 From<
745 ::aws_smithy_runtime_api::client::result::SdkError<
746 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError,
747 R,
748 >,
749 > for Error
750where
751 R: Send + Sync + std::fmt::Debug + 'static,
752{
753 fn from(
754 err: ::aws_smithy_runtime_api::client::result::SdkError<
755 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError,
756 R,
757 >,
758 ) -> Self {
759 match err {
760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
763 source: err.into(),
764 }),
765 }
766 }
767}
768impl From<crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError> for Error {
769 fn from(err: crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError) -> Self {
770 match err {
771 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::AccessDeniedException(inner) => {
772 Error::AccessDeniedException(inner)
773 }
774 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::InternalServerException(inner) => {
775 Error::InternalServerException(inner)
776 }
777 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => {
778 Error::ResourceNotFoundException(inner)
779 }
780 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::ThrottlingException(inner) => {
781 Error::ThrottlingException(inner)
782 }
783 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::ValidationException(inner) => {
784 Error::ValidationException(inner)
785 }
786 crate::operation::delete_code_security_scan_configuration::DeleteCodeSecurityScanConfigurationError::Unhandled(inner) => {
787 Error::Unhandled(inner)
788 }
789 }
790 }
791}
792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_filter::DeleteFilterError, R>> for Error
793where
794 R: Send + Sync + std::fmt::Debug + 'static,
795{
796 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_filter::DeleteFilterError, R>) -> Self {
797 match err {
798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
801 source: err.into(),
802 }),
803 }
804 }
805}
806impl From<crate::operation::delete_filter::DeleteFilterError> for Error {
807 fn from(err: crate::operation::delete_filter::DeleteFilterError) -> Self {
808 match err {
809 crate::operation::delete_filter::DeleteFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
810 crate::operation::delete_filter::DeleteFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
811 crate::operation::delete_filter::DeleteFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
812 crate::operation::delete_filter::DeleteFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
813 crate::operation::delete_filter::DeleteFilterError::ValidationException(inner) => Error::ValidationException(inner),
814 crate::operation::delete_filter::DeleteFilterError::Unhandled(inner) => Error::Unhandled(inner),
815 }
816 }
817}
818impl<R>
819 From<
820 ::aws_smithy_runtime_api::client::result::SdkError<
821 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError,
822 R,
823 >,
824 > for Error
825where
826 R: Send + Sync + std::fmt::Debug + 'static,
827{
828 fn from(
829 err: ::aws_smithy_runtime_api::client::result::SdkError<
830 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError,
831 R,
832 >,
833 ) -> Self {
834 match err {
835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
838 source: err.into(),
839 }),
840 }
841 }
842}
843impl From<crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError> for Error {
844 fn from(err: crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError) -> Self {
845 match err {
846 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::AccessDeniedException(inner) => {
847 Error::AccessDeniedException(inner)
848 }
849 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::InternalServerException(inner) => {
850 Error::InternalServerException(inner)
851 }
852 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ThrottlingException(inner) => {
853 Error::ThrottlingException(inner)
854 }
855 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ValidationException(inner) => {
856 Error::ValidationException(inner)
857 }
858 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::Unhandled(inner) => {
859 Error::Unhandled(inner)
860 }
861 }
862 }
863}
864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable::DisableError, R>> for Error
865where
866 R: Send + Sync + std::fmt::Debug + 'static,
867{
868 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable::DisableError, R>) -> Self {
869 match err {
870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
873 source: err.into(),
874 }),
875 }
876 }
877}
878impl From<crate::operation::disable::DisableError> for Error {
879 fn from(err: crate::operation::disable::DisableError) -> Self {
880 match err {
881 crate::operation::disable::DisableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
882 crate::operation::disable::DisableError::InternalServerException(inner) => Error::InternalServerException(inner),
883 crate::operation::disable::DisableError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
884 crate::operation::disable::DisableError::ThrottlingException(inner) => Error::ThrottlingException(inner),
885 crate::operation::disable::DisableError::ValidationException(inner) => Error::ValidationException(inner),
886 crate::operation::disable::DisableError::Unhandled(inner) => Error::Unhandled(inner),
887 }
888 }
889}
890impl<R>
891 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError, R>>
892 for Error
893where
894 R: Send + Sync + std::fmt::Debug + 'static,
895{
896 fn from(
897 err: ::aws_smithy_runtime_api::client::result::SdkError<
898 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError,
899 R,
900 >,
901 ) -> Self {
902 match err {
903 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
904 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
905 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
906 source: err.into(),
907 }),
908 }
909 }
910}
911impl From<crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError> for Error {
912 fn from(err: crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError) -> Self {
913 match err {
914 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::AccessDeniedException(inner) => {
915 Error::AccessDeniedException(inner)
916 }
917 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ConflictException(inner) => {
918 Error::ConflictException(inner)
919 }
920 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::InternalServerException(inner) => {
921 Error::InternalServerException(inner)
922 }
923 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ResourceNotFoundException(inner) => {
924 Error::ResourceNotFoundException(inner)
925 }
926 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ThrottlingException(inner) => {
927 Error::ThrottlingException(inner)
928 }
929 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::ValidationException(inner) => {
930 Error::ValidationException(inner)
931 }
932 crate::operation::disable_delegated_admin_account::DisableDelegatedAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
933 }
934 }
935}
936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member::DisassociateMemberError, R>> for Error
937where
938 R: Send + Sync + std::fmt::Debug + 'static,
939{
940 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member::DisassociateMemberError, R>) -> Self {
941 match err {
942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
945 source: err.into(),
946 }),
947 }
948 }
949}
950impl From<crate::operation::disassociate_member::DisassociateMemberError> for Error {
951 fn from(err: crate::operation::disassociate_member::DisassociateMemberError) -> Self {
952 match err {
953 crate::operation::disassociate_member::DisassociateMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
954 crate::operation::disassociate_member::DisassociateMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
955 crate::operation::disassociate_member::DisassociateMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
956 crate::operation::disassociate_member::DisassociateMemberError::ValidationException(inner) => Error::ValidationException(inner),
957 crate::operation::disassociate_member::DisassociateMemberError::Unhandled(inner) => Error::Unhandled(inner),
958 }
959 }
960}
961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable::EnableError, R>> for Error
962where
963 R: Send + Sync + std::fmt::Debug + 'static,
964{
965 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable::EnableError, R>) -> Self {
966 match err {
967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
970 source: err.into(),
971 }),
972 }
973 }
974}
975impl From<crate::operation::enable::EnableError> for Error {
976 fn from(err: crate::operation::enable::EnableError) -> Self {
977 match err {
978 crate::operation::enable::EnableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
979 crate::operation::enable::EnableError::InternalServerException(inner) => Error::InternalServerException(inner),
980 crate::operation::enable::EnableError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
981 crate::operation::enable::EnableError::ThrottlingException(inner) => Error::ThrottlingException(inner),
982 crate::operation::enable::EnableError::ValidationException(inner) => Error::ValidationException(inner),
983 crate::operation::enable::EnableError::Unhandled(inner) => Error::Unhandled(inner),
984 }
985 }
986}
987impl<R>
988 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError, R>>
989 for Error
990where
991 R: Send + Sync + std::fmt::Debug + 'static,
992{
993 fn from(
994 err: ::aws_smithy_runtime_api::client::result::SdkError<
995 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError,
996 R,
997 >,
998 ) -> Self {
999 match err {
1000 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1001 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1002 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1003 source: err.into(),
1004 }),
1005 }
1006 }
1007}
1008impl From<crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError> for Error {
1009 fn from(err: crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError) -> Self {
1010 match err {
1011 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::AccessDeniedException(inner) => {
1012 Error::AccessDeniedException(inner)
1013 }
1014 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ConflictException(inner) => {
1015 Error::ConflictException(inner)
1016 }
1017 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::InternalServerException(inner) => {
1018 Error::InternalServerException(inner)
1019 }
1020 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ResourceNotFoundException(inner) => {
1021 Error::ResourceNotFoundException(inner)
1022 }
1023 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ThrottlingException(inner) => {
1024 Error::ThrottlingException(inner)
1025 }
1026 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::ValidationException(inner) => {
1027 Error::ValidationException(inner)
1028 }
1029 crate::operation::enable_delegated_admin_account::EnableDelegatedAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
1030 }
1031 }
1032}
1033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_report::GetCisScanReportError, R>> for Error
1034where
1035 R: Send + Sync + std::fmt::Debug + 'static,
1036{
1037 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_report::GetCisScanReportError, R>) -> Self {
1038 match err {
1039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042 source: err.into(),
1043 }),
1044 }
1045 }
1046}
1047impl From<crate::operation::get_cis_scan_report::GetCisScanReportError> for Error {
1048 fn from(err: crate::operation::get_cis_scan_report::GetCisScanReportError) -> Self {
1049 match err {
1050 crate::operation::get_cis_scan_report::GetCisScanReportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1051 crate::operation::get_cis_scan_report::GetCisScanReportError::InternalServerException(inner) => Error::InternalServerException(inner),
1052 crate::operation::get_cis_scan_report::GetCisScanReportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1053 crate::operation::get_cis_scan_report::GetCisScanReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1054 crate::operation::get_cis_scan_report::GetCisScanReportError::ValidationException(inner) => Error::ValidationException(inner),
1055 crate::operation::get_cis_scan_report::GetCisScanReportError::Unhandled(inner) => Error::Unhandled(inner),
1056 }
1057 }
1058}
1059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError, R>>
1060 for Error
1061where
1062 R: Send + Sync + std::fmt::Debug + 'static,
1063{
1064 fn from(
1065 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError, R>,
1066 ) -> Self {
1067 match err {
1068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1071 source: err.into(),
1072 }),
1073 }
1074 }
1075}
1076impl From<crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError> for Error {
1077 fn from(err: crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError) -> Self {
1078 match err {
1079 crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::AccessDeniedException(inner) => {
1080 Error::AccessDeniedException(inner)
1081 }
1082 crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::InternalServerException(inner) => {
1083 Error::InternalServerException(inner)
1084 }
1085 crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::ThrottlingException(inner) => {
1086 Error::ThrottlingException(inner)
1087 }
1088 crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::ValidationException(inner) => {
1089 Error::ValidationException(inner)
1090 }
1091 crate::operation::get_cis_scan_result_details::GetCisScanResultDetailsError::Unhandled(inner) => Error::Unhandled(inner),
1092 }
1093 }
1094}
1095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_clusters_for_image::GetClustersForImageError, R>> for Error
1096where
1097 R: Send + Sync + std::fmt::Debug + 'static,
1098{
1099 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_clusters_for_image::GetClustersForImageError, R>) -> Self {
1100 match err {
1101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1104 source: err.into(),
1105 }),
1106 }
1107 }
1108}
1109impl From<crate::operation::get_clusters_for_image::GetClustersForImageError> for Error {
1110 fn from(err: crate::operation::get_clusters_for_image::GetClustersForImageError) -> Self {
1111 match err {
1112 crate::operation::get_clusters_for_image::GetClustersForImageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1113 crate::operation::get_clusters_for_image::GetClustersForImageError::InternalServerException(inner) => {
1114 Error::InternalServerException(inner)
1115 }
1116 crate::operation::get_clusters_for_image::GetClustersForImageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1117 crate::operation::get_clusters_for_image::GetClustersForImageError::ValidationException(inner) => Error::ValidationException(inner),
1118 crate::operation::get_clusters_for_image::GetClustersForImageError::Unhandled(inner) => Error::Unhandled(inner),
1119 }
1120 }
1121}
1122impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError, R>>
1123 for Error
1124where
1125 R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127 fn from(
1128 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError, R>,
1129 ) -> Self {
1130 match err {
1131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1134 source: err.into(),
1135 }),
1136 }
1137 }
1138}
1139impl From<crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError> for Error {
1140 fn from(err: crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError) -> Self {
1141 match err {
1142 crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::AccessDeniedException(inner) => {
1143 Error::AccessDeniedException(inner)
1144 }
1145 crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::InternalServerException(inner) => {
1146 Error::InternalServerException(inner)
1147 }
1148 crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::ResourceNotFoundException(inner) => {
1149 Error::ResourceNotFoundException(inner)
1150 }
1151 crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::ThrottlingException(inner) => {
1152 Error::ThrottlingException(inner)
1153 }
1154 crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::ValidationException(inner) => {
1155 Error::ValidationException(inner)
1156 }
1157 crate::operation::get_code_security_integration::GetCodeSecurityIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1158 }
1159 }
1160}
1161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_scan::GetCodeSecurityScanError, R>> for Error
1162where
1163 R: Send + Sync + std::fmt::Debug + 'static,
1164{
1165 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_security_scan::GetCodeSecurityScanError, R>) -> Self {
1166 match err {
1167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1170 source: err.into(),
1171 }),
1172 }
1173 }
1174}
1175impl From<crate::operation::get_code_security_scan::GetCodeSecurityScanError> for Error {
1176 fn from(err: crate::operation::get_code_security_scan::GetCodeSecurityScanError) -> Self {
1177 match err {
1178 crate::operation::get_code_security_scan::GetCodeSecurityScanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1179 crate::operation::get_code_security_scan::GetCodeSecurityScanError::ConflictException(inner) => Error::ConflictException(inner),
1180 crate::operation::get_code_security_scan::GetCodeSecurityScanError::InternalServerException(inner) => {
1181 Error::InternalServerException(inner)
1182 }
1183 crate::operation::get_code_security_scan::GetCodeSecurityScanError::ResourceNotFoundException(inner) => {
1184 Error::ResourceNotFoundException(inner)
1185 }
1186 crate::operation::get_code_security_scan::GetCodeSecurityScanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1187 crate::operation::get_code_security_scan::GetCodeSecurityScanError::ValidationException(inner) => Error::ValidationException(inner),
1188 crate::operation::get_code_security_scan::GetCodeSecurityScanError::Unhandled(inner) => Error::Unhandled(inner),
1189 }
1190 }
1191}
1192impl<R>
1193 From<
1194 ::aws_smithy_runtime_api::client::result::SdkError<
1195 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError,
1196 R,
1197 >,
1198 > for Error
1199where
1200 R: Send + Sync + std::fmt::Debug + 'static,
1201{
1202 fn from(
1203 err: ::aws_smithy_runtime_api::client::result::SdkError<
1204 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError,
1205 R,
1206 >,
1207 ) -> Self {
1208 match err {
1209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1212 source: err.into(),
1213 }),
1214 }
1215 }
1216}
1217impl From<crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError> for Error {
1218 fn from(err: crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError) -> Self {
1219 match err {
1220 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::AccessDeniedException(inner) => {
1221 Error::AccessDeniedException(inner)
1222 }
1223 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::InternalServerException(inner) => {
1224 Error::InternalServerException(inner)
1225 }
1226 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => {
1227 Error::ResourceNotFoundException(inner)
1228 }
1229 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::ThrottlingException(inner) => {
1230 Error::ThrottlingException(inner)
1231 }
1232 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::ValidationException(inner) => {
1233 Error::ValidationException(inner)
1234 }
1235 crate::operation::get_code_security_scan_configuration::GetCodeSecurityScanConfigurationError::Unhandled(inner) => {
1236 Error::Unhandled(inner)
1237 }
1238 }
1239 }
1240}
1241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration::GetConfigurationError, R>> for Error
1242where
1243 R: Send + Sync + std::fmt::Debug + 'static,
1244{
1245 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration::GetConfigurationError, R>) -> Self {
1246 match err {
1247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1250 source: err.into(),
1251 }),
1252 }
1253 }
1254}
1255impl From<crate::operation::get_configuration::GetConfigurationError> for Error {
1256 fn from(err: crate::operation::get_configuration::GetConfigurationError) -> Self {
1257 match err {
1258 crate::operation::get_configuration::GetConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
1259 crate::operation::get_configuration::GetConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1260 crate::operation::get_configuration::GetConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1261 crate::operation::get_configuration::GetConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1262 }
1263 }
1264}
1265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError, R>>
1266 for Error
1267where
1268 R: Send + Sync + std::fmt::Debug + 'static,
1269{
1270 fn from(
1271 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError, R>,
1272 ) -> Self {
1273 match err {
1274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1277 source: err.into(),
1278 }),
1279 }
1280 }
1281}
1282impl From<crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError> for Error {
1283 fn from(err: crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError) -> Self {
1284 match err {
1285 crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::AccessDeniedException(inner) => {
1286 Error::AccessDeniedException(inner)
1287 }
1288 crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::InternalServerException(inner) => {
1289 Error::InternalServerException(inner)
1290 }
1291 crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::ResourceNotFoundException(inner) => {
1292 Error::ResourceNotFoundException(inner)
1293 }
1294 crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::ThrottlingException(inner) => {
1295 Error::ThrottlingException(inner)
1296 }
1297 crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::ValidationException(inner) => {
1298 Error::ValidationException(inner)
1299 }
1300 crate::operation::get_delegated_admin_account::GetDelegatedAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
1301 }
1302 }
1303}
1304impl<R>
1305 From<
1306 ::aws_smithy_runtime_api::client::result::SdkError<
1307 crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError,
1308 R,
1309 >,
1310 > for Error
1311where
1312 R: Send + Sync + std::fmt::Debug + 'static,
1313{
1314 fn from(
1315 err: ::aws_smithy_runtime_api::client::result::SdkError<
1316 crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError,
1317 R,
1318 >,
1319 ) -> Self {
1320 match err {
1321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1324 source: err.into(),
1325 }),
1326 }
1327 }
1328}
1329impl From<crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError> for Error {
1330 fn from(err: crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError) -> Self {
1331 match err {
1332 crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::AccessDeniedException(inner) => {
1333 Error::AccessDeniedException(inner)
1334 }
1335 crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::InternalServerException(inner) => {
1336 Error::InternalServerException(inner)
1337 }
1338 crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::ResourceNotFoundException(inner) => {
1339 Error::ResourceNotFoundException(inner)
1340 }
1341 crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::ThrottlingException(inner) => {
1342 Error::ThrottlingException(inner)
1343 }
1344 crate::operation::get_ec2_deep_inspection_configuration::GetEc2DeepInspectionConfigurationError::Unhandled(inner) => {
1345 Error::Unhandled(inner)
1346 }
1347 }
1348 }
1349}
1350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_encryption_key::GetEncryptionKeyError, R>> for Error
1351where
1352 R: Send + Sync + std::fmt::Debug + 'static,
1353{
1354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_encryption_key::GetEncryptionKeyError, R>) -> Self {
1355 match err {
1356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1359 source: err.into(),
1360 }),
1361 }
1362 }
1363}
1364impl From<crate::operation::get_encryption_key::GetEncryptionKeyError> for Error {
1365 fn from(err: crate::operation::get_encryption_key::GetEncryptionKeyError) -> Self {
1366 match err {
1367 crate::operation::get_encryption_key::GetEncryptionKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1368 crate::operation::get_encryption_key::GetEncryptionKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
1369 crate::operation::get_encryption_key::GetEncryptionKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1370 crate::operation::get_encryption_key::GetEncryptionKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1371 crate::operation::get_encryption_key::GetEncryptionKeyError::ValidationException(inner) => Error::ValidationException(inner),
1372 crate::operation::get_encryption_key::GetEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
1373 }
1374 }
1375}
1376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings_report_status::GetFindingsReportStatusError, R>>
1377 for Error
1378where
1379 R: Send + Sync + std::fmt::Debug + 'static,
1380{
1381 fn from(
1382 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings_report_status::GetFindingsReportStatusError, R>,
1383 ) -> Self {
1384 match err {
1385 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1386 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1387 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1388 source: err.into(),
1389 }),
1390 }
1391 }
1392}
1393impl From<crate::operation::get_findings_report_status::GetFindingsReportStatusError> for Error {
1394 fn from(err: crate::operation::get_findings_report_status::GetFindingsReportStatusError) -> Self {
1395 match err {
1396 crate::operation::get_findings_report_status::GetFindingsReportStatusError::AccessDeniedException(inner) => {
1397 Error::AccessDeniedException(inner)
1398 }
1399 crate::operation::get_findings_report_status::GetFindingsReportStatusError::InternalServerException(inner) => {
1400 Error::InternalServerException(inner)
1401 }
1402 crate::operation::get_findings_report_status::GetFindingsReportStatusError::ResourceNotFoundException(inner) => {
1403 Error::ResourceNotFoundException(inner)
1404 }
1405 crate::operation::get_findings_report_status::GetFindingsReportStatusError::ThrottlingException(inner) => {
1406 Error::ThrottlingException(inner)
1407 }
1408 crate::operation::get_findings_report_status::GetFindingsReportStatusError::ValidationException(inner) => {
1409 Error::ValidationException(inner)
1410 }
1411 crate::operation::get_findings_report_status::GetFindingsReportStatusError::Unhandled(inner) => Error::Unhandled(inner),
1412 }
1413 }
1414}
1415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member::GetMemberError, R>> for Error
1416where
1417 R: Send + Sync + std::fmt::Debug + 'static,
1418{
1419 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member::GetMemberError, R>) -> Self {
1420 match err {
1421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1424 source: err.into(),
1425 }),
1426 }
1427 }
1428}
1429impl From<crate::operation::get_member::GetMemberError> for Error {
1430 fn from(err: crate::operation::get_member::GetMemberError) -> Self {
1431 match err {
1432 crate::operation::get_member::GetMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1433 crate::operation::get_member::GetMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
1434 crate::operation::get_member::GetMemberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1435 crate::operation::get_member::GetMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1436 crate::operation::get_member::GetMemberError::ValidationException(inner) => Error::ValidationException(inner),
1437 crate::operation::get_member::GetMemberError::Unhandled(inner) => Error::Unhandled(inner),
1438 }
1439 }
1440}
1441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sbom_export::GetSbomExportError, R>> for Error
1442where
1443 R: Send + Sync + std::fmt::Debug + 'static,
1444{
1445 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sbom_export::GetSbomExportError, R>) -> Self {
1446 match err {
1447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1450 source: err.into(),
1451 }),
1452 }
1453 }
1454}
1455impl From<crate::operation::get_sbom_export::GetSbomExportError> for Error {
1456 fn from(err: crate::operation::get_sbom_export::GetSbomExportError) -> Self {
1457 match err {
1458 crate::operation::get_sbom_export::GetSbomExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1459 crate::operation::get_sbom_export::GetSbomExportError::InternalServerException(inner) => Error::InternalServerException(inner),
1460 crate::operation::get_sbom_export::GetSbomExportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1461 crate::operation::get_sbom_export::GetSbomExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1462 crate::operation::get_sbom_export::GetSbomExportError::ValidationException(inner) => Error::ValidationException(inner),
1463 crate::operation::get_sbom_export::GetSbomExportError::Unhandled(inner) => Error::Unhandled(inner),
1464 }
1465 }
1466}
1467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_permissions::ListAccountPermissionsError, R>> for Error
1468where
1469 R: Send + Sync + std::fmt::Debug + 'static,
1470{
1471 fn from(
1472 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_permissions::ListAccountPermissionsError, R>,
1473 ) -> Self {
1474 match err {
1475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1478 source: err.into(),
1479 }),
1480 }
1481 }
1482}
1483impl From<crate::operation::list_account_permissions::ListAccountPermissionsError> for Error {
1484 fn from(err: crate::operation::list_account_permissions::ListAccountPermissionsError) -> Self {
1485 match err {
1486 crate::operation::list_account_permissions::ListAccountPermissionsError::AccessDeniedException(inner) => {
1487 Error::AccessDeniedException(inner)
1488 }
1489 crate::operation::list_account_permissions::ListAccountPermissionsError::InternalServerException(inner) => {
1490 Error::InternalServerException(inner)
1491 }
1492 crate::operation::list_account_permissions::ListAccountPermissionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1493 crate::operation::list_account_permissions::ListAccountPermissionsError::ValidationException(inner) => Error::ValidationException(inner),
1494 crate::operation::list_account_permissions::ListAccountPermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1495 }
1496 }
1497}
1498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError, R>>
1499 for Error
1500where
1501 R: Send + Sync + std::fmt::Debug + 'static,
1502{
1503 fn from(
1504 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError, R>,
1505 ) -> Self {
1506 match err {
1507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1510 source: err.into(),
1511 }),
1512 }
1513 }
1514}
1515impl From<crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError> for Error {
1516 fn from(err: crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError) -> Self {
1517 match err {
1518 crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::AccessDeniedException(inner) => {
1519 Error::AccessDeniedException(inner)
1520 }
1521 crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::InternalServerException(inner) => {
1522 Error::InternalServerException(inner)
1523 }
1524 crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::ThrottlingException(inner) => {
1525 Error::ThrottlingException(inner)
1526 }
1527 crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::ValidationException(inner) => {
1528 Error::ValidationException(inner)
1529 }
1530 crate::operation::list_cis_scan_configurations::ListCisScanConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1531 }
1532 }
1533}
1534impl<R>
1535 From<
1536 ::aws_smithy_runtime_api::client::result::SdkError<
1537 crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError,
1538 R,
1539 >,
1540 > for Error
1541where
1542 R: Send + Sync + std::fmt::Debug + 'static,
1543{
1544 fn from(
1545 err: ::aws_smithy_runtime_api::client::result::SdkError<
1546 crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError,
1547 R,
1548 >,
1549 ) -> Self {
1550 match err {
1551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1554 source: err.into(),
1555 }),
1556 }
1557 }
1558}
1559impl From<crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError> for Error {
1560 fn from(err: crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError) -> Self {
1561 match err {
1562 crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::AccessDeniedException(inner) => {
1563 Error::AccessDeniedException(inner)
1564 }
1565 crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::InternalServerException(
1566 inner,
1567 ) => Error::InternalServerException(inner),
1568 crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::ThrottlingException(inner) => {
1569 Error::ThrottlingException(inner)
1570 }
1571 crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::ValidationException(inner) => {
1572 Error::ValidationException(inner)
1573 }
1574 crate::operation::list_cis_scan_results_aggregated_by_checks::ListCisScanResultsAggregatedByChecksError::Unhandled(inner) => {
1575 Error::Unhandled(inner)
1576 }
1577 }
1578 }
1579}
1580impl<R>
1581 From<
1582 ::aws_smithy_runtime_api::client::result::SdkError<
1583 crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError,
1584 R,
1585 >,
1586 > for Error
1587where
1588 R: Send + Sync + std::fmt::Debug + 'static,
1589{
1590 fn from(
1591 err: ::aws_smithy_runtime_api::client::result::SdkError<
1592 crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError,
1593 R,
1594 >,
1595 ) -> Self {
1596 match err {
1597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1600 source: err.into(),
1601 }),
1602 }
1603 }
1604}
1605impl From<crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError> for Error {
1606 fn from(err: crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError) -> Self {
1607 match err {
1608 crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1609 crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1610 crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1611 crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::ValidationException(inner) => Error::ValidationException(inner),
1612 crate::operation::list_cis_scan_results_aggregated_by_target_resource::ListCisScanResultsAggregatedByTargetResourceError::Unhandled(inner) => Error::Unhandled(inner),
1613 }
1614 }
1615}
1616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scans::ListCisScansError, R>> for Error
1617where
1618 R: Send + Sync + std::fmt::Debug + 'static,
1619{
1620 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cis_scans::ListCisScansError, R>) -> Self {
1621 match err {
1622 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1623 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1624 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1625 source: err.into(),
1626 }),
1627 }
1628 }
1629}
1630impl From<crate::operation::list_cis_scans::ListCisScansError> for Error {
1631 fn from(err: crate::operation::list_cis_scans::ListCisScansError) -> Self {
1632 match err {
1633 crate::operation::list_cis_scans::ListCisScansError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1634 crate::operation::list_cis_scans::ListCisScansError::InternalServerException(inner) => Error::InternalServerException(inner),
1635 crate::operation::list_cis_scans::ListCisScansError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1636 crate::operation::list_cis_scans::ListCisScansError::ValidationException(inner) => Error::ValidationException(inner),
1637 crate::operation::list_cis_scans::ListCisScansError::Unhandled(inner) => Error::Unhandled(inner),
1638 }
1639 }
1640}
1641impl<R>
1642 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError, R>>
1643 for Error
1644where
1645 R: Send + Sync + std::fmt::Debug + 'static,
1646{
1647 fn from(
1648 err: ::aws_smithy_runtime_api::client::result::SdkError<
1649 crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError,
1650 R,
1651 >,
1652 ) -> Self {
1653 match err {
1654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1657 source: err.into(),
1658 }),
1659 }
1660 }
1661}
1662impl From<crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError> for Error {
1663 fn from(err: crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError) -> Self {
1664 match err {
1665 crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::AccessDeniedException(inner) => {
1666 Error::AccessDeniedException(inner)
1667 }
1668 crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::InternalServerException(inner) => {
1669 Error::InternalServerException(inner)
1670 }
1671 crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::ThrottlingException(inner) => {
1672 Error::ThrottlingException(inner)
1673 }
1674 crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::ValidationException(inner) => {
1675 Error::ValidationException(inner)
1676 }
1677 crate::operation::list_code_security_integrations::ListCodeSecurityIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
1678 }
1679 }
1680}
1681impl<R>
1682 From<
1683 ::aws_smithy_runtime_api::client::result::SdkError<
1684 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError,
1685 R,
1686 >,
1687 > for Error
1688where
1689 R: Send + Sync + std::fmt::Debug + 'static,
1690{
1691 fn from(
1692 err: ::aws_smithy_runtime_api::client::result::SdkError<
1693 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError,
1694 R,
1695 >,
1696 ) -> Self {
1697 match err {
1698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1701 source: err.into(),
1702 }),
1703 }
1704 }
1705}
1706impl From<crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError> for Error {
1707 fn from(err: crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError) -> Self {
1708 match err {
1709 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1710 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1711 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1712 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1713 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
1714 crate::operation::list_code_security_scan_configuration_associations::ListCodeSecurityScanConfigurationAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1715 }
1716 }
1717}
1718impl<R>
1719 From<
1720 ::aws_smithy_runtime_api::client::result::SdkError<
1721 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError,
1722 R,
1723 >,
1724 > for Error
1725where
1726 R: Send + Sync + std::fmt::Debug + 'static,
1727{
1728 fn from(
1729 err: ::aws_smithy_runtime_api::client::result::SdkError<
1730 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError,
1731 R,
1732 >,
1733 ) -> Self {
1734 match err {
1735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1738 source: err.into(),
1739 }),
1740 }
1741 }
1742}
1743impl From<crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError> for Error {
1744 fn from(err: crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError) -> Self {
1745 match err {
1746 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::AccessDeniedException(inner) => {
1747 Error::AccessDeniedException(inner)
1748 }
1749 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::InternalServerException(inner) => {
1750 Error::InternalServerException(inner)
1751 }
1752 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::ResourceNotFoundException(inner) => {
1753 Error::ResourceNotFoundException(inner)
1754 }
1755 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::ThrottlingException(inner) => {
1756 Error::ThrottlingException(inner)
1757 }
1758 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::ValidationException(inner) => {
1759 Error::ValidationException(inner)
1760 }
1761 crate::operation::list_code_security_scan_configurations::ListCodeSecurityScanConfigurationsError::Unhandled(inner) => {
1762 Error::Unhandled(inner)
1763 }
1764 }
1765 }
1766}
1767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage::ListCoverageError, R>> for Error
1768where
1769 R: Send + Sync + std::fmt::Debug + 'static,
1770{
1771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage::ListCoverageError, R>) -> Self {
1772 match err {
1773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1776 source: err.into(),
1777 }),
1778 }
1779 }
1780}
1781impl From<crate::operation::list_coverage::ListCoverageError> for Error {
1782 fn from(err: crate::operation::list_coverage::ListCoverageError) -> Self {
1783 match err {
1784 crate::operation::list_coverage::ListCoverageError::InternalServerException(inner) => Error::InternalServerException(inner),
1785 crate::operation::list_coverage::ListCoverageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1786 crate::operation::list_coverage::ListCoverageError::ValidationException(inner) => Error::ValidationException(inner),
1787 crate::operation::list_coverage::ListCoverageError::Unhandled(inner) => Error::Unhandled(inner),
1788 }
1789 }
1790}
1791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage_statistics::ListCoverageStatisticsError, R>> for Error
1792where
1793 R: Send + Sync + std::fmt::Debug + 'static,
1794{
1795 fn from(
1796 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_coverage_statistics::ListCoverageStatisticsError, R>,
1797 ) -> Self {
1798 match err {
1799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1802 source: err.into(),
1803 }),
1804 }
1805 }
1806}
1807impl From<crate::operation::list_coverage_statistics::ListCoverageStatisticsError> for Error {
1808 fn from(err: crate::operation::list_coverage_statistics::ListCoverageStatisticsError) -> Self {
1809 match err {
1810 crate::operation::list_coverage_statistics::ListCoverageStatisticsError::InternalServerException(inner) => {
1811 Error::InternalServerException(inner)
1812 }
1813 crate::operation::list_coverage_statistics::ListCoverageStatisticsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1814 crate::operation::list_coverage_statistics::ListCoverageStatisticsError::ValidationException(inner) => Error::ValidationException(inner),
1815 crate::operation::list_coverage_statistics::ListCoverageStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
1816 }
1817 }
1818}
1819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError, R>>
1820 for Error
1821where
1822 R: Send + Sync + std::fmt::Debug + 'static,
1823{
1824 fn from(
1825 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError, R>,
1826 ) -> Self {
1827 match err {
1828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1831 source: err.into(),
1832 }),
1833 }
1834 }
1835}
1836impl From<crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError> for Error {
1837 fn from(err: crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError) -> Self {
1838 match err {
1839 crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::AccessDeniedException(inner) => {
1840 Error::AccessDeniedException(inner)
1841 }
1842 crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::InternalServerException(inner) => {
1843 Error::InternalServerException(inner)
1844 }
1845 crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::ThrottlingException(inner) => {
1846 Error::ThrottlingException(inner)
1847 }
1848 crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::ValidationException(inner) => {
1849 Error::ValidationException(inner)
1850 }
1851 crate::operation::list_delegated_admin_accounts::ListDelegatedAdminAccountsError::Unhandled(inner) => Error::Unhandled(inner),
1852 }
1853 }
1854}
1855impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_filters::ListFiltersError, R>> for Error
1856where
1857 R: Send + Sync + std::fmt::Debug + 'static,
1858{
1859 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_filters::ListFiltersError, R>) -> Self {
1860 match err {
1861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1864 source: err.into(),
1865 }),
1866 }
1867 }
1868}
1869impl From<crate::operation::list_filters::ListFiltersError> for Error {
1870 fn from(err: crate::operation::list_filters::ListFiltersError) -> Self {
1871 match err {
1872 crate::operation::list_filters::ListFiltersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1873 crate::operation::list_filters::ListFiltersError::InternalServerException(inner) => Error::InternalServerException(inner),
1874 crate::operation::list_filters::ListFiltersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1875 crate::operation::list_filters::ListFiltersError::ValidationException(inner) => Error::ValidationException(inner),
1876 crate::operation::list_filters::ListFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1877 }
1878 }
1879}
1880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_finding_aggregations::ListFindingAggregationsError, R>>
1881 for Error
1882where
1883 R: Send + Sync + std::fmt::Debug + 'static,
1884{
1885 fn from(
1886 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_finding_aggregations::ListFindingAggregationsError, R>,
1887 ) -> Self {
1888 match err {
1889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1892 source: err.into(),
1893 }),
1894 }
1895 }
1896}
1897impl From<crate::operation::list_finding_aggregations::ListFindingAggregationsError> for Error {
1898 fn from(err: crate::operation::list_finding_aggregations::ListFindingAggregationsError) -> Self {
1899 match err {
1900 crate::operation::list_finding_aggregations::ListFindingAggregationsError::InternalServerException(inner) => {
1901 Error::InternalServerException(inner)
1902 }
1903 crate::operation::list_finding_aggregations::ListFindingAggregationsError::ThrottlingException(inner) => {
1904 Error::ThrottlingException(inner)
1905 }
1906 crate::operation::list_finding_aggregations::ListFindingAggregationsError::ValidationException(inner) => {
1907 Error::ValidationException(inner)
1908 }
1909 crate::operation::list_finding_aggregations::ListFindingAggregationsError::Unhandled(inner) => Error::Unhandled(inner),
1910 }
1911 }
1912}
1913impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>> for Error
1914where
1915 R: Send + Sync + std::fmt::Debug + 'static,
1916{
1917 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>) -> Self {
1918 match err {
1919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1922 source: err.into(),
1923 }),
1924 }
1925 }
1926}
1927impl From<crate::operation::list_findings::ListFindingsError> for Error {
1928 fn from(err: crate::operation::list_findings::ListFindingsError) -> Self {
1929 match err {
1930 crate::operation::list_findings::ListFindingsError::InternalServerException(inner) => Error::InternalServerException(inner),
1931 crate::operation::list_findings::ListFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1932 crate::operation::list_findings::ListFindingsError::ValidationException(inner) => Error::ValidationException(inner),
1933 crate::operation::list_findings::ListFindingsError::Unhandled(inner) => Error::Unhandled(inner),
1934 }
1935 }
1936}
1937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members::ListMembersError, R>> for Error
1938where
1939 R: Send + Sync + std::fmt::Debug + 'static,
1940{
1941 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members::ListMembersError, R>) -> Self {
1942 match err {
1943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1946 source: err.into(),
1947 }),
1948 }
1949 }
1950}
1951impl From<crate::operation::list_members::ListMembersError> for Error {
1952 fn from(err: crate::operation::list_members::ListMembersError) -> Self {
1953 match err {
1954 crate::operation::list_members::ListMembersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1955 crate::operation::list_members::ListMembersError::InternalServerException(inner) => Error::InternalServerException(inner),
1956 crate::operation::list_members::ListMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1957 crate::operation::list_members::ListMembersError::ValidationException(inner) => Error::ValidationException(inner),
1958 crate::operation::list_members::ListMembersError::Unhandled(inner) => Error::Unhandled(inner),
1959 }
1960 }
1961}
1962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1963where
1964 R: Send + Sync + std::fmt::Debug + 'static,
1965{
1966 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1967 match err {
1968 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1969 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1970 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1971 source: err.into(),
1972 }),
1973 }
1974 }
1975}
1976impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1977 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1978 match err {
1979 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1980 Error::InternalServerException(inner)
1981 }
1982 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1983 Error::ResourceNotFoundException(inner)
1984 }
1985 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1986 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1987 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1988 }
1989 }
1990}
1991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_usage_totals::ListUsageTotalsError, R>> for Error
1992where
1993 R: Send + Sync + std::fmt::Debug + 'static,
1994{
1995 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_usage_totals::ListUsageTotalsError, R>) -> Self {
1996 match err {
1997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2000 source: err.into(),
2001 }),
2002 }
2003 }
2004}
2005impl From<crate::operation::list_usage_totals::ListUsageTotalsError> for Error {
2006 fn from(err: crate::operation::list_usage_totals::ListUsageTotalsError) -> Self {
2007 match err {
2008 crate::operation::list_usage_totals::ListUsageTotalsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2009 crate::operation::list_usage_totals::ListUsageTotalsError::InternalServerException(inner) => Error::InternalServerException(inner),
2010 crate::operation::list_usage_totals::ListUsageTotalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2011 crate::operation::list_usage_totals::ListUsageTotalsError::ValidationException(inner) => Error::ValidationException(inner),
2012 crate::operation::list_usage_totals::ListUsageTotalsError::Unhandled(inner) => Error::Unhandled(inner),
2013 }
2014 }
2015}
2016impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_encryption_key::ResetEncryptionKeyError, R>> for Error
2017where
2018 R: Send + Sync + std::fmt::Debug + 'static,
2019{
2020 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_encryption_key::ResetEncryptionKeyError, R>) -> Self {
2021 match err {
2022 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2023 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2024 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2025 source: err.into(),
2026 }),
2027 }
2028 }
2029}
2030impl From<crate::operation::reset_encryption_key::ResetEncryptionKeyError> for Error {
2031 fn from(err: crate::operation::reset_encryption_key::ResetEncryptionKeyError) -> Self {
2032 match err {
2033 crate::operation::reset_encryption_key::ResetEncryptionKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2034 crate::operation::reset_encryption_key::ResetEncryptionKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
2035 crate::operation::reset_encryption_key::ResetEncryptionKeyError::ResourceNotFoundException(inner) => {
2036 Error::ResourceNotFoundException(inner)
2037 }
2038 crate::operation::reset_encryption_key::ResetEncryptionKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2039 crate::operation::reset_encryption_key::ResetEncryptionKeyError::ValidationException(inner) => Error::ValidationException(inner),
2040 crate::operation::reset_encryption_key::ResetEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
2041 }
2042 }
2043}
2044impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_vulnerabilities::SearchVulnerabilitiesError, R>> for Error
2045where
2046 R: Send + Sync + std::fmt::Debug + 'static,
2047{
2048 fn from(
2049 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_vulnerabilities::SearchVulnerabilitiesError, R>,
2050 ) -> Self {
2051 match err {
2052 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2053 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2054 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2055 source: err.into(),
2056 }),
2057 }
2058 }
2059}
2060impl From<crate::operation::search_vulnerabilities::SearchVulnerabilitiesError> for Error {
2061 fn from(err: crate::operation::search_vulnerabilities::SearchVulnerabilitiesError) -> Self {
2062 match err {
2063 crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2064 crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::InternalServerException(inner) => {
2065 Error::InternalServerException(inner)
2066 }
2067 crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2068 crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::ValidationException(inner) => Error::ValidationException(inner),
2069 crate::operation::search_vulnerabilities::SearchVulnerabilitiesError::Unhandled(inner) => Error::Unhandled(inner),
2070 }
2071 }
2072}
2073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_health::SendCisSessionHealthError, R>> for Error
2074where
2075 R: Send + Sync + std::fmt::Debug + 'static,
2076{
2077 fn from(
2078 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_health::SendCisSessionHealthError, R>,
2079 ) -> Self {
2080 match err {
2081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2084 source: err.into(),
2085 }),
2086 }
2087 }
2088}
2089impl From<crate::operation::send_cis_session_health::SendCisSessionHealthError> for Error {
2090 fn from(err: crate::operation::send_cis_session_health::SendCisSessionHealthError) -> Self {
2091 match err {
2092 crate::operation::send_cis_session_health::SendCisSessionHealthError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2093 crate::operation::send_cis_session_health::SendCisSessionHealthError::ConflictException(inner) => Error::ConflictException(inner),
2094 crate::operation::send_cis_session_health::SendCisSessionHealthError::InternalServerException(inner) => {
2095 Error::InternalServerException(inner)
2096 }
2097 crate::operation::send_cis_session_health::SendCisSessionHealthError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2098 crate::operation::send_cis_session_health::SendCisSessionHealthError::ValidationException(inner) => Error::ValidationException(inner),
2099 crate::operation::send_cis_session_health::SendCisSessionHealthError::Unhandled(inner) => Error::Unhandled(inner),
2100 }
2101 }
2102}
2103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError, R>>
2104 for Error
2105where
2106 R: Send + Sync + std::fmt::Debug + 'static,
2107{
2108 fn from(
2109 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError, R>,
2110 ) -> Self {
2111 match err {
2112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2115 source: err.into(),
2116 }),
2117 }
2118 }
2119}
2120impl From<crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError> for Error {
2121 fn from(err: crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError) -> Self {
2122 match err {
2123 crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::AccessDeniedException(inner) => {
2124 Error::AccessDeniedException(inner)
2125 }
2126 crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::ConflictException(inner) => Error::ConflictException(inner),
2127 crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::InternalServerException(inner) => {
2128 Error::InternalServerException(inner)
2129 }
2130 crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::ThrottlingException(inner) => {
2131 Error::ThrottlingException(inner)
2132 }
2133 crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::ValidationException(inner) => {
2134 Error::ValidationException(inner)
2135 }
2136 crate::operation::send_cis_session_telemetry::SendCisSessionTelemetryError::Unhandled(inner) => Error::Unhandled(inner),
2137 }
2138 }
2139}
2140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cis_session::StartCisSessionError, R>> for Error
2141where
2142 R: Send + Sync + std::fmt::Debug + 'static,
2143{
2144 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cis_session::StartCisSessionError, R>) -> Self {
2145 match err {
2146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2149 source: err.into(),
2150 }),
2151 }
2152 }
2153}
2154impl From<crate::operation::start_cis_session::StartCisSessionError> for Error {
2155 fn from(err: crate::operation::start_cis_session::StartCisSessionError) -> Self {
2156 match err {
2157 crate::operation::start_cis_session::StartCisSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2158 crate::operation::start_cis_session::StartCisSessionError::ConflictException(inner) => Error::ConflictException(inner),
2159 crate::operation::start_cis_session::StartCisSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
2160 crate::operation::start_cis_session::StartCisSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2161 crate::operation::start_cis_session::StartCisSessionError::ValidationException(inner) => Error::ValidationException(inner),
2162 crate::operation::start_cis_session::StartCisSessionError::Unhandled(inner) => Error::Unhandled(inner),
2163 }
2164 }
2165}
2166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_security_scan::StartCodeSecurityScanError, R>> for Error
2167where
2168 R: Send + Sync + std::fmt::Debug + 'static,
2169{
2170 fn from(
2171 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_code_security_scan::StartCodeSecurityScanError, R>,
2172 ) -> Self {
2173 match err {
2174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2177 source: err.into(),
2178 }),
2179 }
2180 }
2181}
2182impl From<crate::operation::start_code_security_scan::StartCodeSecurityScanError> for Error {
2183 fn from(err: crate::operation::start_code_security_scan::StartCodeSecurityScanError) -> Self {
2184 match err {
2185 crate::operation::start_code_security_scan::StartCodeSecurityScanError::AccessDeniedException(inner) => {
2186 Error::AccessDeniedException(inner)
2187 }
2188 crate::operation::start_code_security_scan::StartCodeSecurityScanError::ConflictException(inner) => Error::ConflictException(inner),
2189 crate::operation::start_code_security_scan::StartCodeSecurityScanError::InternalServerException(inner) => {
2190 Error::InternalServerException(inner)
2191 }
2192 crate::operation::start_code_security_scan::StartCodeSecurityScanError::ResourceNotFoundException(inner) => {
2193 Error::ResourceNotFoundException(inner)
2194 }
2195 crate::operation::start_code_security_scan::StartCodeSecurityScanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2196 crate::operation::start_code_security_scan::StartCodeSecurityScanError::ValidationException(inner) => Error::ValidationException(inner),
2197 crate::operation::start_code_security_scan::StartCodeSecurityScanError::Unhandled(inner) => Error::Unhandled(inner),
2198 }
2199 }
2200}
2201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_cis_session::StopCisSessionError, R>> for Error
2202where
2203 R: Send + Sync + std::fmt::Debug + 'static,
2204{
2205 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_cis_session::StopCisSessionError, R>) -> Self {
2206 match err {
2207 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2208 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2209 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2210 source: err.into(),
2211 }),
2212 }
2213 }
2214}
2215impl From<crate::operation::stop_cis_session::StopCisSessionError> for Error {
2216 fn from(err: crate::operation::stop_cis_session::StopCisSessionError) -> Self {
2217 match err {
2218 crate::operation::stop_cis_session::StopCisSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2219 crate::operation::stop_cis_session::StopCisSessionError::ConflictException(inner) => Error::ConflictException(inner),
2220 crate::operation::stop_cis_session::StopCisSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
2221 crate::operation::stop_cis_session::StopCisSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2222 crate::operation::stop_cis_session::StopCisSessionError::ValidationException(inner) => Error::ValidationException(inner),
2223 crate::operation::stop_cis_session::StopCisSessionError::Unhandled(inner) => Error::Unhandled(inner),
2224 }
2225 }
2226}
2227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2228where
2229 R: Send + Sync + std::fmt::Debug + 'static,
2230{
2231 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2232 match err {
2233 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2234 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2235 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2236 source: err.into(),
2237 }),
2238 }
2239 }
2240}
2241impl From<crate::operation::tag_resource::TagResourceError> for Error {
2242 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2243 match err {
2244 crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
2245 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2246 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2247 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2248 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2249 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2250 }
2251 }
2252}
2253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2254where
2255 R: Send + Sync + std::fmt::Debug + 'static,
2256{
2257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2258 match err {
2259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2262 source: err.into(),
2263 }),
2264 }
2265 }
2266}
2267impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2268 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2269 match err {
2270 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2271 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2272 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2273 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2274 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2275 }
2276 }
2277}
2278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError, R>>
2279 for Error
2280where
2281 R: Send + Sync + std::fmt::Debug + 'static,
2282{
2283 fn from(
2284 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError, R>,
2285 ) -> Self {
2286 match err {
2287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2290 source: err.into(),
2291 }),
2292 }
2293 }
2294}
2295impl From<crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError> for Error {
2296 fn from(err: crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError) -> Self {
2297 match err {
2298 crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::AccessDeniedException(inner) => {
2299 Error::AccessDeniedException(inner)
2300 }
2301 crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::InternalServerException(inner) => {
2302 Error::InternalServerException(inner)
2303 }
2304 crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::ResourceNotFoundException(inner) => {
2305 Error::ResourceNotFoundException(inner)
2306 }
2307 crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::ThrottlingException(inner) => {
2308 Error::ThrottlingException(inner)
2309 }
2310 crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::ValidationException(inner) => {
2311 Error::ValidationException(inner)
2312 }
2313 crate::operation::update_cis_scan_configuration::UpdateCisScanConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2314 }
2315 }
2316}
2317impl<R>
2318 From<
2319 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError, R>,
2320 > for Error
2321where
2322 R: Send + Sync + std::fmt::Debug + 'static,
2323{
2324 fn from(
2325 err: ::aws_smithy_runtime_api::client::result::SdkError<
2326 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError,
2327 R,
2328 >,
2329 ) -> Self {
2330 match err {
2331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2334 source: err.into(),
2335 }),
2336 }
2337 }
2338}
2339impl From<crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError> for Error {
2340 fn from(err: crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError) -> Self {
2341 match err {
2342 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::AccessDeniedException(inner) => {
2343 Error::AccessDeniedException(inner)
2344 }
2345 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ConflictException(inner) => {
2346 Error::ConflictException(inner)
2347 }
2348 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::InternalServerException(inner) => {
2349 Error::InternalServerException(inner)
2350 }
2351 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ResourceNotFoundException(inner) => {
2352 Error::ResourceNotFoundException(inner)
2353 }
2354 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ThrottlingException(inner) => {
2355 Error::ThrottlingException(inner)
2356 }
2357 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::ValidationException(inner) => {
2358 Error::ValidationException(inner)
2359 }
2360 crate::operation::update_code_security_integration::UpdateCodeSecurityIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
2361 }
2362 }
2363}
2364impl<R>
2365 From<
2366 ::aws_smithy_runtime_api::client::result::SdkError<
2367 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError,
2368 R,
2369 >,
2370 > for Error
2371where
2372 R: Send + Sync + std::fmt::Debug + 'static,
2373{
2374 fn from(
2375 err: ::aws_smithy_runtime_api::client::result::SdkError<
2376 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError,
2377 R,
2378 >,
2379 ) -> Self {
2380 match err {
2381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2384 source: err.into(),
2385 }),
2386 }
2387 }
2388}
2389impl From<crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError> for Error {
2390 fn from(err: crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError) -> Self {
2391 match err {
2392 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::AccessDeniedException(inner) => {
2393 Error::AccessDeniedException(inner)
2394 }
2395 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ConflictException(inner) => {
2396 Error::ConflictException(inner)
2397 }
2398 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::InternalServerException(inner) => {
2399 Error::InternalServerException(inner)
2400 }
2401 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ResourceNotFoundException(inner) => {
2402 Error::ResourceNotFoundException(inner)
2403 }
2404 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ThrottlingException(inner) => {
2405 Error::ThrottlingException(inner)
2406 }
2407 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::ValidationException(inner) => {
2408 Error::ValidationException(inner)
2409 }
2410 crate::operation::update_code_security_scan_configuration::UpdateCodeSecurityScanConfigurationError::Unhandled(inner) => {
2411 Error::Unhandled(inner)
2412 }
2413 }
2414 }
2415}
2416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration::UpdateConfigurationError, R>> for Error
2417where
2418 R: Send + Sync + std::fmt::Debug + 'static,
2419{
2420 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration::UpdateConfigurationError, R>) -> Self {
2421 match err {
2422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2425 source: err.into(),
2426 }),
2427 }
2428 }
2429}
2430impl From<crate::operation::update_configuration::UpdateConfigurationError> for Error {
2431 fn from(err: crate::operation::update_configuration::UpdateConfigurationError) -> Self {
2432 match err {
2433 crate::operation::update_configuration::UpdateConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2434 crate::operation::update_configuration::UpdateConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
2435 crate::operation::update_configuration::UpdateConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2436 crate::operation::update_configuration::UpdateConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
2437 crate::operation::update_configuration::UpdateConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2438 }
2439 }
2440}
2441impl<R>
2442 From<
2443 ::aws_smithy_runtime_api::client::result::SdkError<
2444 crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError,
2445 R,
2446 >,
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_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError,
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_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError> for Error {
2467 fn from(err: crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError) -> Self {
2468 match err {
2469 crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::AccessDeniedException(inner) => {
2470 Error::AccessDeniedException(inner)
2471 }
2472 crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::InternalServerException(inner) => {
2473 Error::InternalServerException(inner)
2474 }
2475 crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::ThrottlingException(inner) => {
2476 Error::ThrottlingException(inner)
2477 }
2478 crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::ValidationException(inner) => {
2479 Error::ValidationException(inner)
2480 }
2481 crate::operation::update_ec2_deep_inspection_configuration::UpdateEc2DeepInspectionConfigurationError::Unhandled(inner) => {
2482 Error::Unhandled(inner)
2483 }
2484 }
2485 }
2486}
2487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_encryption_key::UpdateEncryptionKeyError, R>> for Error
2488where
2489 R: Send + Sync + std::fmt::Debug + 'static,
2490{
2491 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_encryption_key::UpdateEncryptionKeyError, R>) -> Self {
2492 match err {
2493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2496 source: err.into(),
2497 }),
2498 }
2499 }
2500}
2501impl From<crate::operation::update_encryption_key::UpdateEncryptionKeyError> for Error {
2502 fn from(err: crate::operation::update_encryption_key::UpdateEncryptionKeyError) -> Self {
2503 match err {
2504 crate::operation::update_encryption_key::UpdateEncryptionKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2505 crate::operation::update_encryption_key::UpdateEncryptionKeyError::InternalServerException(inner) => {
2506 Error::InternalServerException(inner)
2507 }
2508 crate::operation::update_encryption_key::UpdateEncryptionKeyError::ResourceNotFoundException(inner) => {
2509 Error::ResourceNotFoundException(inner)
2510 }
2511 crate::operation::update_encryption_key::UpdateEncryptionKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2512 crate::operation::update_encryption_key::UpdateEncryptionKeyError::ValidationException(inner) => Error::ValidationException(inner),
2513 crate::operation::update_encryption_key::UpdateEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
2514 }
2515 }
2516}
2517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_filter::UpdateFilterError, R>> for Error
2518where
2519 R: Send + Sync + std::fmt::Debug + 'static,
2520{
2521 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_filter::UpdateFilterError, R>) -> Self {
2522 match err {
2523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2526 source: err.into(),
2527 }),
2528 }
2529 }
2530}
2531impl From<crate::operation::update_filter::UpdateFilterError> for Error {
2532 fn from(err: crate::operation::update_filter::UpdateFilterError) -> Self {
2533 match err {
2534 crate::operation::update_filter::UpdateFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2535 crate::operation::update_filter::UpdateFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
2536 crate::operation::update_filter::UpdateFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2537 crate::operation::update_filter::UpdateFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2538 crate::operation::update_filter::UpdateFilterError::ValidationException(inner) => Error::ValidationException(inner),
2539 crate::operation::update_filter::UpdateFilterError::Unhandled(inner) => Error::Unhandled(inner),
2540 }
2541 }
2542}
2543impl<R>
2544 From<
2545 ::aws_smithy_runtime_api::client::result::SdkError<
2546 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError,
2547 R,
2548 >,
2549 > for Error
2550where
2551 R: Send + Sync + std::fmt::Debug + 'static,
2552{
2553 fn from(
2554 err: ::aws_smithy_runtime_api::client::result::SdkError<
2555 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError,
2556 R,
2557 >,
2558 ) -> Self {
2559 match err {
2560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2563 source: err.into(),
2564 }),
2565 }
2566 }
2567}
2568impl From<crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError> for Error {
2569 fn from(err: crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError) -> Self {
2570 match err {
2571 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::AccessDeniedException(inner) => {
2572 Error::AccessDeniedException(inner)
2573 }
2574 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::InternalServerException(inner) => {
2575 Error::InternalServerException(inner)
2576 }
2577 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ThrottlingException(inner) => {
2578 Error::ThrottlingException(inner)
2579 }
2580 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ValidationException(inner) => {
2581 Error::ValidationException(inner)
2582 }
2583 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2584 }
2585 }
2586}
2587impl<R>
2588 From<
2589 ::aws_smithy_runtime_api::client::result::SdkError<
2590 crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError,
2591 R,
2592 >,
2593 > for Error
2594where
2595 R: Send + Sync + std::fmt::Debug + 'static,
2596{
2597 fn from(
2598 err: ::aws_smithy_runtime_api::client::result::SdkError<
2599 crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError,
2600 R,
2601 >,
2602 ) -> Self {
2603 match err {
2604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2607 source: err.into(),
2608 }),
2609 }
2610 }
2611}
2612impl From<crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError> for Error {
2613 fn from(err: crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError) -> Self {
2614 match err {
2615 crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::AccessDeniedException(
2616 inner,
2617 ) => Error::AccessDeniedException(inner),
2618 crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::InternalServerException(
2619 inner,
2620 ) => Error::InternalServerException(inner),
2621 crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::ThrottlingException(
2622 inner,
2623 ) => Error::ThrottlingException(inner),
2624 crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::ValidationException(
2625 inner,
2626 ) => Error::ValidationException(inner),
2627 crate::operation::update_org_ec2_deep_inspection_configuration::UpdateOrgEc2DeepInspectionConfigurationError::Unhandled(inner) => {
2628 Error::Unhandled(inner)
2629 }
2630 }
2631 }
2632}
2633impl ::std::error::Error for Error {
2634 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2635 match self {
2636 Error::AccessDeniedException(inner) => inner.source(),
2637 Error::BadRequestException(inner) => inner.source(),
2638 Error::ConflictException(inner) => inner.source(),
2639 Error::InternalServerException(inner) => inner.source(),
2640 Error::ResourceNotFoundException(inner) => inner.source(),
2641 Error::ServiceQuotaExceededException(inner) => inner.source(),
2642 Error::ThrottlingException(inner) => inner.source(),
2643 Error::ValidationException(inner) => inner.source(),
2644 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2645 }
2646 }
2647}
2648impl ::aws_types::request_id::RequestId for Error {
2649 fn request_id(&self) -> Option<&str> {
2650 match self {
2651 Self::AccessDeniedException(e) => e.request_id(),
2652 Self::BadRequestException(e) => e.request_id(),
2653 Self::ConflictException(e) => e.request_id(),
2654 Self::InternalServerException(e) => e.request_id(),
2655 Self::ResourceNotFoundException(e) => e.request_id(),
2656 Self::ServiceQuotaExceededException(e) => e.request_id(),
2657 Self::ThrottlingException(e) => e.request_id(),
2658 Self::ValidationException(e) => e.request_id(),
2659 Self::Unhandled(e) => e.meta.request_id(),
2660 }
2661 }
2662}