aws_sdk_aiops/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You don't have sufficient permissions to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>This operation couldn't be completed because of a conflict in resource states.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Access id denied for this operation, or this operation is not valid for the specified resource.</p>
11    ForbiddenException(crate::types::error::ForbiddenException),
12    /// <p>An internal server error occurred. You can try again later.</p>
13    InternalServerException(crate::types::error::InternalServerException),
14    /// <p>The specified resource doesn't exist.</p>
15    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16    /// <p>This request exceeds a service quota.</p>
17    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18    /// <p>The request was throttled because of quota limits. You can try again later.</p>
19    ThrottlingException(crate::types::error::ThrottlingException),
20    /// <p>This operation or its parameters aren't formatted correctly.</p>
21    ValidationException(crate::types::error::ValidationException),
22    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
23    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24    variable wildcard pattern and check `.code()`:
25     \
26    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27     \
28    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29    Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        match self {
34            Error::AccessDeniedException(inner) => inner.fmt(f),
35            Error::ConflictException(inner) => inner.fmt(f),
36            Error::ForbiddenException(inner) => inner.fmt(f),
37            Error::InternalServerException(inner) => inner.fmt(f),
38            Error::ResourceNotFoundException(inner) => inner.fmt(f),
39            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
40            Error::ThrottlingException(inner) => inner.fmt(f),
41            Error::ValidationException(inner) => inner.fmt(f),
42            Error::Unhandled(_) => {
43                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44                    write!(f, "unhandled error ({code})")
45                } else {
46                    f.write_str("unhandled error")
47                }
48            }
49        }
50    }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55            source: value.into(),
56            meta: ::std::default::Default::default(),
57        })
58    }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62        match self {
63            Self::AccessDeniedException(inner) => inner.meta(),
64            Self::ConflictException(inner) => inner.meta(),
65            Self::ForbiddenException(inner) => inner.meta(),
66            Self::InternalServerException(inner) => inner.meta(),
67            Self::ResourceNotFoundException(inner) => inner.meta(),
68            Self::ServiceQuotaExceededException(inner) => inner.meta(),
69            Self::ThrottlingException(inner) => inner.meta(),
70            Self::ValidationException(inner) => inner.meta(),
71            Self::Unhandled(inner) => &inner.meta,
72        }
73    }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_investigation_group::CreateInvestigationGroupError, R>>
76    for Error
77where
78    R: Send + Sync + std::fmt::Debug + 'static,
79{
80    fn from(
81        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_investigation_group::CreateInvestigationGroupError, R>,
82    ) -> Self {
83        match err {
84            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
85            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
86                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
87                source: err.into(),
88            }),
89        }
90    }
91}
92impl From<crate::operation::create_investigation_group::CreateInvestigationGroupError> for Error {
93    fn from(err: crate::operation::create_investigation_group::CreateInvestigationGroupError) -> Self {
94        match err {
95            crate::operation::create_investigation_group::CreateInvestigationGroupError::AccessDeniedException(inner) => {
96                Error::AccessDeniedException(inner)
97            }
98            crate::operation::create_investigation_group::CreateInvestigationGroupError::ConflictException(inner) => Error::ConflictException(inner),
99            crate::operation::create_investigation_group::CreateInvestigationGroupError::InternalServerException(inner) => {
100                Error::InternalServerException(inner)
101            }
102            crate::operation::create_investigation_group::CreateInvestigationGroupError::ResourceNotFoundException(inner) => {
103                Error::ResourceNotFoundException(inner)
104            }
105            crate::operation::create_investigation_group::CreateInvestigationGroupError::ServiceQuotaExceededException(inner) => {
106                Error::ServiceQuotaExceededException(inner)
107            }
108            crate::operation::create_investigation_group::CreateInvestigationGroupError::ThrottlingException(inner) => {
109                Error::ThrottlingException(inner)
110            }
111            crate::operation::create_investigation_group::CreateInvestigationGroupError::ValidationException(inner) => {
112                Error::ValidationException(inner)
113            }
114            crate::operation::create_investigation_group::CreateInvestigationGroupError::ForbiddenException(inner) => {
115                Error::ForbiddenException(inner)
116            }
117            crate::operation::create_investigation_group::CreateInvestigationGroupError::Unhandled(inner) => Error::Unhandled(inner),
118        }
119    }
120}
121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_investigation_group::DeleteInvestigationGroupError, R>>
122    for Error
123where
124    R: Send + Sync + std::fmt::Debug + 'static,
125{
126    fn from(
127        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_investigation_group::DeleteInvestigationGroupError, R>,
128    ) -> Self {
129        match err {
130            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
131            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
132                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
133                source: err.into(),
134            }),
135        }
136    }
137}
138impl From<crate::operation::delete_investigation_group::DeleteInvestigationGroupError> for Error {
139    fn from(err: crate::operation::delete_investigation_group::DeleteInvestigationGroupError) -> Self {
140        match err {
141            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::AccessDeniedException(inner) => {
142                Error::AccessDeniedException(inner)
143            }
144            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::InternalServerException(inner) => {
145                Error::InternalServerException(inner)
146            }
147            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::ResourceNotFoundException(inner) => {
148                Error::ResourceNotFoundException(inner)
149            }
150            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::ThrottlingException(inner) => {
151                Error::ThrottlingException(inner)
152            }
153            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::ConflictException(inner) => Error::ConflictException(inner),
154            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::ForbiddenException(inner) => {
155                Error::ForbiddenException(inner)
156            }
157            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::ValidationException(inner) => {
158                Error::ValidationException(inner)
159            }
160            crate::operation::delete_investigation_group::DeleteInvestigationGroupError::Unhandled(inner) => Error::Unhandled(inner),
161        }
162    }
163}
164impl<R>
165    From<
166        ::aws_smithy_runtime_api::client::result::SdkError<
167            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError,
168            R,
169        >,
170    > for Error
171where
172    R: Send + Sync + std::fmt::Debug + 'static,
173{
174    fn from(
175        err: ::aws_smithy_runtime_api::client::result::SdkError<
176            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError,
177            R,
178        >,
179    ) -> Self {
180        match err {
181            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
182            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
183                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
184                source: err.into(),
185            }),
186        }
187    }
188}
189impl From<crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError> for Error {
190    fn from(err: crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError) -> Self {
191        match err {
192            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::AccessDeniedException(inner) => {
193                Error::AccessDeniedException(inner)
194            }
195            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::InternalServerException(inner) => {
196                Error::InternalServerException(inner)
197            }
198            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::ResourceNotFoundException(inner) => {
199                Error::ResourceNotFoundException(inner)
200            }
201            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::ThrottlingException(inner) => {
202                Error::ThrottlingException(inner)
203            }
204            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::ValidationException(inner) => {
205                Error::ValidationException(inner)
206            }
207            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::ConflictException(inner) => {
208                Error::ConflictException(inner)
209            }
210            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::ForbiddenException(inner) => {
211                Error::ForbiddenException(inner)
212            }
213            crate::operation::delete_investigation_group_policy::DeleteInvestigationGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
214        }
215    }
216}
217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_investigation_group::GetInvestigationGroupError, R>> for Error
218where
219    R: Send + Sync + std::fmt::Debug + 'static,
220{
221    fn from(
222        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_investigation_group::GetInvestigationGroupError, R>,
223    ) -> Self {
224        match err {
225            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
226            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
227                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
228                source: err.into(),
229            }),
230        }
231    }
232}
233impl From<crate::operation::get_investigation_group::GetInvestigationGroupError> for Error {
234    fn from(err: crate::operation::get_investigation_group::GetInvestigationGroupError) -> Self {
235        match err {
236            crate::operation::get_investigation_group::GetInvestigationGroupError::AccessDeniedException(inner) => {
237                Error::AccessDeniedException(inner)
238            }
239            crate::operation::get_investigation_group::GetInvestigationGroupError::InternalServerException(inner) => {
240                Error::InternalServerException(inner)
241            }
242            crate::operation::get_investigation_group::GetInvestigationGroupError::ResourceNotFoundException(inner) => {
243                Error::ResourceNotFoundException(inner)
244            }
245            crate::operation::get_investigation_group::GetInvestigationGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
246            crate::operation::get_investigation_group::GetInvestigationGroupError::ConflictException(inner) => Error::ConflictException(inner),
247            crate::operation::get_investigation_group::GetInvestigationGroupError::ForbiddenException(inner) => Error::ForbiddenException(inner),
248            crate::operation::get_investigation_group::GetInvestigationGroupError::ValidationException(inner) => Error::ValidationException(inner),
249            crate::operation::get_investigation_group::GetInvestigationGroupError::Unhandled(inner) => Error::Unhandled(inner),
250        }
251    }
252}
253impl<R>
254    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError, R>>
255    for Error
256where
257    R: Send + Sync + std::fmt::Debug + 'static,
258{
259    fn from(
260        err: ::aws_smithy_runtime_api::client::result::SdkError<
261            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError,
262            R,
263        >,
264    ) -> Self {
265        match err {
266            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
267            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
268                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
269                source: err.into(),
270            }),
271        }
272    }
273}
274impl From<crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError> for Error {
275    fn from(err: crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError) -> Self {
276        match err {
277            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::AccessDeniedException(inner) => {
278                Error::AccessDeniedException(inner)
279            }
280            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::InternalServerException(inner) => {
281                Error::InternalServerException(inner)
282            }
283            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::ResourceNotFoundException(inner) => {
284                Error::ResourceNotFoundException(inner)
285            }
286            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::ThrottlingException(inner) => {
287                Error::ThrottlingException(inner)
288            }
289            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::ValidationException(inner) => {
290                Error::ValidationException(inner)
291            }
292            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::ConflictException(inner) => {
293                Error::ConflictException(inner)
294            }
295            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::ForbiddenException(inner) => {
296                Error::ForbiddenException(inner)
297            }
298            crate::operation::get_investigation_group_policy::GetInvestigationGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
299        }
300    }
301}
302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_investigation_groups::ListInvestigationGroupsError, R>>
303    for Error
304where
305    R: Send + Sync + std::fmt::Debug + 'static,
306{
307    fn from(
308        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_investigation_groups::ListInvestigationGroupsError, R>,
309    ) -> Self {
310        match err {
311            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
312            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
313                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
314                source: err.into(),
315            }),
316        }
317    }
318}
319impl From<crate::operation::list_investigation_groups::ListInvestigationGroupsError> for Error {
320    fn from(err: crate::operation::list_investigation_groups::ListInvestigationGroupsError) -> Self {
321        match err {
322            crate::operation::list_investigation_groups::ListInvestigationGroupsError::AccessDeniedException(inner) => {
323                Error::AccessDeniedException(inner)
324            }
325            crate::operation::list_investigation_groups::ListInvestigationGroupsError::InternalServerException(inner) => {
326                Error::InternalServerException(inner)
327            }
328            crate::operation::list_investigation_groups::ListInvestigationGroupsError::ThrottlingException(inner) => {
329                Error::ThrottlingException(inner)
330            }
331            crate::operation::list_investigation_groups::ListInvestigationGroupsError::ConflictException(inner) => Error::ConflictException(inner),
332            crate::operation::list_investigation_groups::ListInvestigationGroupsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
333            crate::operation::list_investigation_groups::ListInvestigationGroupsError::ResourceNotFoundException(inner) => {
334                Error::ResourceNotFoundException(inner)
335            }
336            crate::operation::list_investigation_groups::ListInvestigationGroupsError::ValidationException(inner) => {
337                Error::ValidationException(inner)
338            }
339            crate::operation::list_investigation_groups::ListInvestigationGroupsError::Unhandled(inner) => Error::Unhandled(inner),
340        }
341    }
342}
343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
344where
345    R: Send + Sync + std::fmt::Debug + 'static,
346{
347    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
348        match err {
349            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
350            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
351                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
352                source: err.into(),
353            }),
354        }
355    }
356}
357impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
358    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
359        match err {
360            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
361            crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
362            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
363                Error::InternalServerException(inner)
364            }
365            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
366                Error::ResourceNotFoundException(inner)
367            }
368            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
369            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
370            crate::operation::list_tags_for_resource::ListTagsForResourceError::ForbiddenException(inner) => Error::ForbiddenException(inner),
371            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
372        }
373    }
374}
375impl<R>
376    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError, R>>
377    for Error
378where
379    R: Send + Sync + std::fmt::Debug + 'static,
380{
381    fn from(
382        err: ::aws_smithy_runtime_api::client::result::SdkError<
383            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError,
384            R,
385        >,
386    ) -> Self {
387        match err {
388            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
389            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
390                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
391                source: err.into(),
392            }),
393        }
394    }
395}
396impl From<crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError> for Error {
397    fn from(err: crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError) -> Self {
398        match err {
399            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::AccessDeniedException(inner) => {
400                Error::AccessDeniedException(inner)
401            }
402            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::ConflictException(inner) => {
403                Error::ConflictException(inner)
404            }
405            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::InternalServerException(inner) => {
406                Error::InternalServerException(inner)
407            }
408            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::ResourceNotFoundException(inner) => {
409                Error::ResourceNotFoundException(inner)
410            }
411            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::ThrottlingException(inner) => {
412                Error::ThrottlingException(inner)
413            }
414            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::ValidationException(inner) => {
415                Error::ValidationException(inner)
416            }
417            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::ForbiddenException(inner) => {
418                Error::ForbiddenException(inner)
419            }
420            crate::operation::put_investigation_group_policy::PutInvestigationGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
421        }
422    }
423}
424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
425where
426    R: Send + Sync + std::fmt::Debug + 'static,
427{
428    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
429        match err {
430            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
431            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
432                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
433                source: err.into(),
434            }),
435        }
436    }
437}
438impl From<crate::operation::tag_resource::TagResourceError> for Error {
439    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
440        match err {
441            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
442            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
443            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
444            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
445            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
446            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
447            crate::operation::tag_resource::TagResourceError::ForbiddenException(inner) => Error::ForbiddenException(inner),
448            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
449        }
450    }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
453where
454    R: Send + Sync + std::fmt::Debug + 'static,
455{
456    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
457        match err {
458            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
459            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
460                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
461                source: err.into(),
462            }),
463        }
464    }
465}
466impl From<crate::operation::untag_resource::UntagResourceError> for Error {
467    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
468        match err {
469            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
470            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
471            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
472            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
473            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
474            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
475            crate::operation::untag_resource::UntagResourceError::ForbiddenException(inner) => Error::ForbiddenException(inner),
476            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
477        }
478    }
479}
480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_investigation_group::UpdateInvestigationGroupError, 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<crate::operation::update_investigation_group::UpdateInvestigationGroupError, R>,
487    ) -> Self {
488        match err {
489            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
490            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
491                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
492                source: err.into(),
493            }),
494        }
495    }
496}
497impl From<crate::operation::update_investigation_group::UpdateInvestigationGroupError> for Error {
498    fn from(err: crate::operation::update_investigation_group::UpdateInvestigationGroupError) -> Self {
499        match err {
500            crate::operation::update_investigation_group::UpdateInvestigationGroupError::AccessDeniedException(inner) => {
501                Error::AccessDeniedException(inner)
502            }
503            crate::operation::update_investigation_group::UpdateInvestigationGroupError::ConflictException(inner) => Error::ConflictException(inner),
504            crate::operation::update_investigation_group::UpdateInvestigationGroupError::InternalServerException(inner) => {
505                Error::InternalServerException(inner)
506            }
507            crate::operation::update_investigation_group::UpdateInvestigationGroupError::ResourceNotFoundException(inner) => {
508                Error::ResourceNotFoundException(inner)
509            }
510            crate::operation::update_investigation_group::UpdateInvestigationGroupError::ThrottlingException(inner) => {
511                Error::ThrottlingException(inner)
512            }
513            crate::operation::update_investigation_group::UpdateInvestigationGroupError::ValidationException(inner) => {
514                Error::ValidationException(inner)
515            }
516            crate::operation::update_investigation_group::UpdateInvestigationGroupError::ForbiddenException(inner) => {
517                Error::ForbiddenException(inner)
518            }
519            crate::operation::update_investigation_group::UpdateInvestigationGroupError::Unhandled(inner) => Error::Unhandled(inner),
520        }
521    }
522}
523impl ::std::error::Error for Error {
524    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
525        match self {
526            Error::AccessDeniedException(inner) => inner.source(),
527            Error::ConflictException(inner) => inner.source(),
528            Error::ForbiddenException(inner) => inner.source(),
529            Error::InternalServerException(inner) => inner.source(),
530            Error::ResourceNotFoundException(inner) => inner.source(),
531            Error::ServiceQuotaExceededException(inner) => inner.source(),
532            Error::ThrottlingException(inner) => inner.source(),
533            Error::ValidationException(inner) => inner.source(),
534            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
535        }
536    }
537}
538impl ::aws_types::request_id::RequestId for Error {
539    fn request_id(&self) -> Option<&str> {
540        match self {
541            Self::AccessDeniedException(e) => e.request_id(),
542            Self::ConflictException(e) => e.request_id(),
543            Self::ForbiddenException(e) => e.request_id(),
544            Self::InternalServerException(e) => e.request_id(),
545            Self::ResourceNotFoundException(e) => e.request_id(),
546            Self::ServiceQuotaExceededException(e) => e.request_id(),
547            Self::ThrottlingException(e) => e.request_id(),
548            Self::ValidationException(e) => e.request_id(),
549            Self::Unhandled(e) => e.meta.request_id(),
550        }
551    }
552}