Skip to main content

aws_sdk_ssmincidents/
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 access to perform this operation.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>Updating or deleting a resource causes an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The request processing has failed because of an unknown error, exception or failure.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>Request references a resource which doesn't exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>Request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError, R>>
72    for Error
73where
74    R: Send + Sync + std::fmt::Debug + 'static,
75{
76    fn from(
77        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError, R>,
78    ) -> Self {
79        match err {
80            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
81            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
82                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
83                source: err.into(),
84            }),
85        }
86    }
87}
88impl From<crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError> for Error {
89    fn from(err: crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError) -> Self {
90        match err {
91            crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError::AccessDeniedException(inner) => {
92                Error::AccessDeniedException(inner)
93            }
94            crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError::InternalServerException(inner) => {
95                Error::InternalServerException(inner)
96            }
97            crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError::ResourceNotFoundException(inner) => {
98                Error::ResourceNotFoundException(inner)
99            }
100            crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError::ThrottlingException(inner) => {
101                Error::ThrottlingException(inner)
102            }
103            crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError::ValidationException(inner) => {
104                Error::ValidationException(inner)
105            }
106            crate::operation::batch_get_incident_findings::BatchGetIncidentFindingsError::Unhandled(inner) => Error::Unhandled(inner),
107        }
108    }
109}
110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_replication_set::CreateReplicationSetError, R>> for Error
111where
112    R: Send + Sync + std::fmt::Debug + 'static,
113{
114    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_replication_set::CreateReplicationSetError, R>) -> Self {
115        match err {
116            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
117            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
118                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
119                source: err.into(),
120            }),
121        }
122    }
123}
124impl From<crate::operation::create_replication_set::CreateReplicationSetError> for Error {
125    fn from(err: crate::operation::create_replication_set::CreateReplicationSetError) -> Self {
126        match err {
127            crate::operation::create_replication_set::CreateReplicationSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
128            crate::operation::create_replication_set::CreateReplicationSetError::ConflictException(inner) => Error::ConflictException(inner),
129            crate::operation::create_replication_set::CreateReplicationSetError::InternalServerException(inner) => {
130                Error::InternalServerException(inner)
131            }
132            crate::operation::create_replication_set::CreateReplicationSetError::ServiceQuotaExceededException(inner) => {
133                Error::ServiceQuotaExceededException(inner)
134            }
135            crate::operation::create_replication_set::CreateReplicationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
136            crate::operation::create_replication_set::CreateReplicationSetError::ValidationException(inner) => Error::ValidationException(inner),
137            crate::operation::create_replication_set::CreateReplicationSetError::Unhandled(inner) => Error::Unhandled(inner),
138        }
139    }
140}
141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_response_plan::CreateResponsePlanError, R>> for Error
142where
143    R: Send + Sync + std::fmt::Debug + 'static,
144{
145    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_response_plan::CreateResponsePlanError, R>) -> Self {
146        match err {
147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
150                source: err.into(),
151            }),
152        }
153    }
154}
155impl From<crate::operation::create_response_plan::CreateResponsePlanError> for Error {
156    fn from(err: crate::operation::create_response_plan::CreateResponsePlanError) -> Self {
157        match err {
158            crate::operation::create_response_plan::CreateResponsePlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
159            crate::operation::create_response_plan::CreateResponsePlanError::ConflictException(inner) => Error::ConflictException(inner),
160            crate::operation::create_response_plan::CreateResponsePlanError::InternalServerException(inner) => Error::InternalServerException(inner),
161            crate::operation::create_response_plan::CreateResponsePlanError::ResourceNotFoundException(inner) => {
162                Error::ResourceNotFoundException(inner)
163            }
164            crate::operation::create_response_plan::CreateResponsePlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
165            crate::operation::create_response_plan::CreateResponsePlanError::ValidationException(inner) => Error::ValidationException(inner),
166            crate::operation::create_response_plan::CreateResponsePlanError::Unhandled(inner) => Error::Unhandled(inner),
167        }
168    }
169}
170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_timeline_event::CreateTimelineEventError, R>> for Error
171where
172    R: Send + Sync + std::fmt::Debug + 'static,
173{
174    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_timeline_event::CreateTimelineEventError, R>) -> Self {
175        match err {
176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
179                source: err.into(),
180            }),
181        }
182    }
183}
184impl From<crate::operation::create_timeline_event::CreateTimelineEventError> for Error {
185    fn from(err: crate::operation::create_timeline_event::CreateTimelineEventError) -> Self {
186        match err {
187            crate::operation::create_timeline_event::CreateTimelineEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
188            crate::operation::create_timeline_event::CreateTimelineEventError::ConflictException(inner) => Error::ConflictException(inner),
189            crate::operation::create_timeline_event::CreateTimelineEventError::InternalServerException(inner) => {
190                Error::InternalServerException(inner)
191            }
192            crate::operation::create_timeline_event::CreateTimelineEventError::ResourceNotFoundException(inner) => {
193                Error::ResourceNotFoundException(inner)
194            }
195            crate::operation::create_timeline_event::CreateTimelineEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
196            crate::operation::create_timeline_event::CreateTimelineEventError::ValidationException(inner) => Error::ValidationException(inner),
197            crate::operation::create_timeline_event::CreateTimelineEventError::Unhandled(inner) => Error::Unhandled(inner),
198        }
199    }
200}
201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_incident_record::DeleteIncidentRecordError, R>> for Error
202where
203    R: Send + Sync + std::fmt::Debug + 'static,
204{
205    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_incident_record::DeleteIncidentRecordError, R>) -> Self {
206        match err {
207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
210                source: err.into(),
211            }),
212        }
213    }
214}
215impl From<crate::operation::delete_incident_record::DeleteIncidentRecordError> for Error {
216    fn from(err: crate::operation::delete_incident_record::DeleteIncidentRecordError) -> Self {
217        match err {
218            crate::operation::delete_incident_record::DeleteIncidentRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
219            crate::operation::delete_incident_record::DeleteIncidentRecordError::InternalServerException(inner) => {
220                Error::InternalServerException(inner)
221            }
222            crate::operation::delete_incident_record::DeleteIncidentRecordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
223            crate::operation::delete_incident_record::DeleteIncidentRecordError::ValidationException(inner) => Error::ValidationException(inner),
224            crate::operation::delete_incident_record::DeleteIncidentRecordError::Unhandled(inner) => Error::Unhandled(inner),
225        }
226    }
227}
228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_replication_set::DeleteReplicationSetError, R>> for Error
229where
230    R: Send + Sync + std::fmt::Debug + 'static,
231{
232    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_replication_set::DeleteReplicationSetError, R>) -> Self {
233        match err {
234            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
235            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
236                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
237                source: err.into(),
238            }),
239        }
240    }
241}
242impl From<crate::operation::delete_replication_set::DeleteReplicationSetError> for Error {
243    fn from(err: crate::operation::delete_replication_set::DeleteReplicationSetError) -> Self {
244        match err {
245            crate::operation::delete_replication_set::DeleteReplicationSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
246            crate::operation::delete_replication_set::DeleteReplicationSetError::InternalServerException(inner) => {
247                Error::InternalServerException(inner)
248            }
249            crate::operation::delete_replication_set::DeleteReplicationSetError::ResourceNotFoundException(inner) => {
250                Error::ResourceNotFoundException(inner)
251            }
252            crate::operation::delete_replication_set::DeleteReplicationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
253            crate::operation::delete_replication_set::DeleteReplicationSetError::ValidationException(inner) => Error::ValidationException(inner),
254            crate::operation::delete_replication_set::DeleteReplicationSetError::Unhandled(inner) => Error::Unhandled(inner),
255        }
256    }
257}
258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
259where
260    R: Send + Sync + std::fmt::Debug + 'static,
261{
262    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
263        match err {
264            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
265            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
266                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
267                source: err.into(),
268            }),
269        }
270    }
271}
272impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
273    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
274        match err {
275            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
276            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
277                Error::InternalServerException(inner)
278            }
279            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
280                Error::ResourceNotFoundException(inner)
281            }
282            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
283            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
284            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
285        }
286    }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_response_plan::DeleteResponsePlanError, R>> for Error
289where
290    R: Send + Sync + std::fmt::Debug + 'static,
291{
292    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_response_plan::DeleteResponsePlanError, R>) -> Self {
293        match err {
294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
297                source: err.into(),
298            }),
299        }
300    }
301}
302impl From<crate::operation::delete_response_plan::DeleteResponsePlanError> for Error {
303    fn from(err: crate::operation::delete_response_plan::DeleteResponsePlanError) -> Self {
304        match err {
305            crate::operation::delete_response_plan::DeleteResponsePlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
306            crate::operation::delete_response_plan::DeleteResponsePlanError::InternalServerException(inner) => Error::InternalServerException(inner),
307            crate::operation::delete_response_plan::DeleteResponsePlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
308            crate::operation::delete_response_plan::DeleteResponsePlanError::ValidationException(inner) => Error::ValidationException(inner),
309            crate::operation::delete_response_plan::DeleteResponsePlanError::Unhandled(inner) => Error::Unhandled(inner),
310        }
311    }
312}
313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_timeline_event::DeleteTimelineEventError, R>> for Error
314where
315    R: Send + Sync + std::fmt::Debug + 'static,
316{
317    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_timeline_event::DeleteTimelineEventError, R>) -> Self {
318        match err {
319            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
320            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
321                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
322                source: err.into(),
323            }),
324        }
325    }
326}
327impl From<crate::operation::delete_timeline_event::DeleteTimelineEventError> for Error {
328    fn from(err: crate::operation::delete_timeline_event::DeleteTimelineEventError) -> Self {
329        match err {
330            crate::operation::delete_timeline_event::DeleteTimelineEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
331            crate::operation::delete_timeline_event::DeleteTimelineEventError::InternalServerException(inner) => {
332                Error::InternalServerException(inner)
333            }
334            crate::operation::delete_timeline_event::DeleteTimelineEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
335            crate::operation::delete_timeline_event::DeleteTimelineEventError::ValidationException(inner) => Error::ValidationException(inner),
336            crate::operation::delete_timeline_event::DeleteTimelineEventError::Unhandled(inner) => Error::Unhandled(inner),
337        }
338    }
339}
340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_incident_record::GetIncidentRecordError, R>> for Error
341where
342    R: Send + Sync + std::fmt::Debug + 'static,
343{
344    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_incident_record::GetIncidentRecordError, R>) -> Self {
345        match err {
346            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349                source: err.into(),
350            }),
351        }
352    }
353}
354impl From<crate::operation::get_incident_record::GetIncidentRecordError> for Error {
355    fn from(err: crate::operation::get_incident_record::GetIncidentRecordError) -> Self {
356        match err {
357            crate::operation::get_incident_record::GetIncidentRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
358            crate::operation::get_incident_record::GetIncidentRecordError::InternalServerException(inner) => Error::InternalServerException(inner),
359            crate::operation::get_incident_record::GetIncidentRecordError::ResourceNotFoundException(inner) => {
360                Error::ResourceNotFoundException(inner)
361            }
362            crate::operation::get_incident_record::GetIncidentRecordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
363            crate::operation::get_incident_record::GetIncidentRecordError::ValidationException(inner) => Error::ValidationException(inner),
364            crate::operation::get_incident_record::GetIncidentRecordError::Unhandled(inner) => Error::Unhandled(inner),
365        }
366    }
367}
368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_replication_set::GetReplicationSetError, R>> for Error
369where
370    R: Send + Sync + std::fmt::Debug + 'static,
371{
372    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_replication_set::GetReplicationSetError, R>) -> Self {
373        match err {
374            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377                source: err.into(),
378            }),
379        }
380    }
381}
382impl From<crate::operation::get_replication_set::GetReplicationSetError> for Error {
383    fn from(err: crate::operation::get_replication_set::GetReplicationSetError) -> Self {
384        match err {
385            crate::operation::get_replication_set::GetReplicationSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
386            crate::operation::get_replication_set::GetReplicationSetError::InternalServerException(inner) => Error::InternalServerException(inner),
387            crate::operation::get_replication_set::GetReplicationSetError::ResourceNotFoundException(inner) => {
388                Error::ResourceNotFoundException(inner)
389            }
390            crate::operation::get_replication_set::GetReplicationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
391            crate::operation::get_replication_set::GetReplicationSetError::ValidationException(inner) => Error::ValidationException(inner),
392            crate::operation::get_replication_set::GetReplicationSetError::Unhandled(inner) => Error::Unhandled(inner),
393        }
394    }
395}
396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policies::GetResourcePoliciesError, R>> for Error
397where
398    R: Send + Sync + std::fmt::Debug + 'static,
399{
400    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policies::GetResourcePoliciesError, R>) -> Self {
401        match err {
402            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
403            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
404                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
405                source: err.into(),
406            }),
407        }
408    }
409}
410impl From<crate::operation::get_resource_policies::GetResourcePoliciesError> for Error {
411    fn from(err: crate::operation::get_resource_policies::GetResourcePoliciesError) -> Self {
412        match err {
413            crate::operation::get_resource_policies::GetResourcePoliciesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
414            crate::operation::get_resource_policies::GetResourcePoliciesError::InternalServerException(inner) => {
415                Error::InternalServerException(inner)
416            }
417            crate::operation::get_resource_policies::GetResourcePoliciesError::ResourceNotFoundException(inner) => {
418                Error::ResourceNotFoundException(inner)
419            }
420            crate::operation::get_resource_policies::GetResourcePoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
421            crate::operation::get_resource_policies::GetResourcePoliciesError::ValidationException(inner) => Error::ValidationException(inner),
422            crate::operation::get_resource_policies::GetResourcePoliciesError::Unhandled(inner) => Error::Unhandled(inner),
423        }
424    }
425}
426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_response_plan::GetResponsePlanError, R>> for Error
427where
428    R: Send + Sync + std::fmt::Debug + 'static,
429{
430    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_response_plan::GetResponsePlanError, R>) -> Self {
431        match err {
432            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
433            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
434                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
435                source: err.into(),
436            }),
437        }
438    }
439}
440impl From<crate::operation::get_response_plan::GetResponsePlanError> for Error {
441    fn from(err: crate::operation::get_response_plan::GetResponsePlanError) -> Self {
442        match err {
443            crate::operation::get_response_plan::GetResponsePlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
444            crate::operation::get_response_plan::GetResponsePlanError::InternalServerException(inner) => Error::InternalServerException(inner),
445            crate::operation::get_response_plan::GetResponsePlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
446            crate::operation::get_response_plan::GetResponsePlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
447            crate::operation::get_response_plan::GetResponsePlanError::ValidationException(inner) => Error::ValidationException(inner),
448            crate::operation::get_response_plan::GetResponsePlanError::Unhandled(inner) => Error::Unhandled(inner),
449        }
450    }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_timeline_event::GetTimelineEventError, 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::get_timeline_event::GetTimelineEventError, 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::get_timeline_event::GetTimelineEventError> for Error {
467    fn from(err: crate::operation::get_timeline_event::GetTimelineEventError) -> Self {
468        match err {
469            crate::operation::get_timeline_event::GetTimelineEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
470            crate::operation::get_timeline_event::GetTimelineEventError::InternalServerException(inner) => Error::InternalServerException(inner),
471            crate::operation::get_timeline_event::GetTimelineEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
472            crate::operation::get_timeline_event::GetTimelineEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
473            crate::operation::get_timeline_event::GetTimelineEventError::ValidationException(inner) => Error::ValidationException(inner),
474            crate::operation::get_timeline_event::GetTimelineEventError::Unhandled(inner) => Error::Unhandled(inner),
475        }
476    }
477}
478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_incident_findings::ListIncidentFindingsError, R>> for Error
479where
480    R: Send + Sync + std::fmt::Debug + 'static,
481{
482    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_incident_findings::ListIncidentFindingsError, R>) -> Self {
483        match err {
484            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
485            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
486                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
487                source: err.into(),
488            }),
489        }
490    }
491}
492impl From<crate::operation::list_incident_findings::ListIncidentFindingsError> for Error {
493    fn from(err: crate::operation::list_incident_findings::ListIncidentFindingsError) -> Self {
494        match err {
495            crate::operation::list_incident_findings::ListIncidentFindingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
496            crate::operation::list_incident_findings::ListIncidentFindingsError::InternalServerException(inner) => {
497                Error::InternalServerException(inner)
498            }
499            crate::operation::list_incident_findings::ListIncidentFindingsError::ResourceNotFoundException(inner) => {
500                Error::ResourceNotFoundException(inner)
501            }
502            crate::operation::list_incident_findings::ListIncidentFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
503            crate::operation::list_incident_findings::ListIncidentFindingsError::ValidationException(inner) => Error::ValidationException(inner),
504            crate::operation::list_incident_findings::ListIncidentFindingsError::Unhandled(inner) => Error::Unhandled(inner),
505        }
506    }
507}
508impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_incident_records::ListIncidentRecordsError, R>> for Error
509where
510    R: Send + Sync + std::fmt::Debug + 'static,
511{
512    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_incident_records::ListIncidentRecordsError, R>) -> Self {
513        match err {
514            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
515            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
516                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
517                source: err.into(),
518            }),
519        }
520    }
521}
522impl From<crate::operation::list_incident_records::ListIncidentRecordsError> for Error {
523    fn from(err: crate::operation::list_incident_records::ListIncidentRecordsError) -> Self {
524        match err {
525            crate::operation::list_incident_records::ListIncidentRecordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
526            crate::operation::list_incident_records::ListIncidentRecordsError::InternalServerException(inner) => {
527                Error::InternalServerException(inner)
528            }
529            crate::operation::list_incident_records::ListIncidentRecordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
530            crate::operation::list_incident_records::ListIncidentRecordsError::ValidationException(inner) => Error::ValidationException(inner),
531            crate::operation::list_incident_records::ListIncidentRecordsError::Unhandled(inner) => Error::Unhandled(inner),
532        }
533    }
534}
535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_related_items::ListRelatedItemsError, R>> for Error
536where
537    R: Send + Sync + std::fmt::Debug + 'static,
538{
539    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_related_items::ListRelatedItemsError, R>) -> Self {
540        match err {
541            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
542            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
543                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
544                source: err.into(),
545            }),
546        }
547    }
548}
549impl From<crate::operation::list_related_items::ListRelatedItemsError> for Error {
550    fn from(err: crate::operation::list_related_items::ListRelatedItemsError) -> Self {
551        match err {
552            crate::operation::list_related_items::ListRelatedItemsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
553            crate::operation::list_related_items::ListRelatedItemsError::InternalServerException(inner) => Error::InternalServerException(inner),
554            crate::operation::list_related_items::ListRelatedItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
555            crate::operation::list_related_items::ListRelatedItemsError::ValidationException(inner) => Error::ValidationException(inner),
556            crate::operation::list_related_items::ListRelatedItemsError::Unhandled(inner) => Error::Unhandled(inner),
557        }
558    }
559}
560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_replication_sets::ListReplicationSetsError, R>> for Error
561where
562    R: Send + Sync + std::fmt::Debug + 'static,
563{
564    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_replication_sets::ListReplicationSetsError, R>) -> Self {
565        match err {
566            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
567            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
568                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
569                source: err.into(),
570            }),
571        }
572    }
573}
574impl From<crate::operation::list_replication_sets::ListReplicationSetsError> for Error {
575    fn from(err: crate::operation::list_replication_sets::ListReplicationSetsError) -> Self {
576        match err {
577            crate::operation::list_replication_sets::ListReplicationSetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
578            crate::operation::list_replication_sets::ListReplicationSetsError::InternalServerException(inner) => {
579                Error::InternalServerException(inner)
580            }
581            crate::operation::list_replication_sets::ListReplicationSetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
582            crate::operation::list_replication_sets::ListReplicationSetsError::ValidationException(inner) => Error::ValidationException(inner),
583            crate::operation::list_replication_sets::ListReplicationSetsError::Unhandled(inner) => Error::Unhandled(inner),
584        }
585    }
586}
587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_response_plans::ListResponsePlansError, R>> for Error
588where
589    R: Send + Sync + std::fmt::Debug + 'static,
590{
591    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_response_plans::ListResponsePlansError, R>) -> Self {
592        match err {
593            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
594            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
595                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
596                source: err.into(),
597            }),
598        }
599    }
600}
601impl From<crate::operation::list_response_plans::ListResponsePlansError> for Error {
602    fn from(err: crate::operation::list_response_plans::ListResponsePlansError) -> Self {
603        match err {
604            crate::operation::list_response_plans::ListResponsePlansError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
605            crate::operation::list_response_plans::ListResponsePlansError::InternalServerException(inner) => Error::InternalServerException(inner),
606            crate::operation::list_response_plans::ListResponsePlansError::ThrottlingException(inner) => Error::ThrottlingException(inner),
607            crate::operation::list_response_plans::ListResponsePlansError::ValidationException(inner) => Error::ValidationException(inner),
608            crate::operation::list_response_plans::ListResponsePlansError::Unhandled(inner) => Error::Unhandled(inner),
609        }
610    }
611}
612impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
613where
614    R: Send + Sync + std::fmt::Debug + 'static,
615{
616    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
617        match err {
618            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
619            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
620                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
621                source: err.into(),
622            }),
623        }
624    }
625}
626impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
627    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
628        match err {
629            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
630            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
631                Error::InternalServerException(inner)
632            }
633            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
634                Error::ResourceNotFoundException(inner)
635            }
636            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
637            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
638            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
639        }
640    }
641}
642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_timeline_events::ListTimelineEventsError, R>> for Error
643where
644    R: Send + Sync + std::fmt::Debug + 'static,
645{
646    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_timeline_events::ListTimelineEventsError, R>) -> Self {
647        match err {
648            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
649            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
650                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
651                source: err.into(),
652            }),
653        }
654    }
655}
656impl From<crate::operation::list_timeline_events::ListTimelineEventsError> for Error {
657    fn from(err: crate::operation::list_timeline_events::ListTimelineEventsError) -> Self {
658        match err {
659            crate::operation::list_timeline_events::ListTimelineEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
660            crate::operation::list_timeline_events::ListTimelineEventsError::InternalServerException(inner) => Error::InternalServerException(inner),
661            crate::operation::list_timeline_events::ListTimelineEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
662            crate::operation::list_timeline_events::ListTimelineEventsError::ValidationException(inner) => Error::ValidationException(inner),
663            crate::operation::list_timeline_events::ListTimelineEventsError::Unhandled(inner) => Error::Unhandled(inner),
664        }
665    }
666}
667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
668where
669    R: Send + Sync + std::fmt::Debug + 'static,
670{
671    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
672        match err {
673            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
674            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
675                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
676                source: err.into(),
677            }),
678        }
679    }
680}
681impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
682    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
683        match err {
684            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
685            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
686            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
687                Error::ResourceNotFoundException(inner)
688            }
689            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
690            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
691            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
692        }
693    }
694}
695impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_incident::StartIncidentError, R>> for Error
696where
697    R: Send + Sync + std::fmt::Debug + 'static,
698{
699    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_incident::StartIncidentError, R>) -> Self {
700        match err {
701            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
702            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
703                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
704                source: err.into(),
705            }),
706        }
707    }
708}
709impl From<crate::operation::start_incident::StartIncidentError> for Error {
710    fn from(err: crate::operation::start_incident::StartIncidentError) -> Self {
711        match err {
712            crate::operation::start_incident::StartIncidentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
713            crate::operation::start_incident::StartIncidentError::ConflictException(inner) => Error::ConflictException(inner),
714            crate::operation::start_incident::StartIncidentError::InternalServerException(inner) => Error::InternalServerException(inner),
715            crate::operation::start_incident::StartIncidentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
716            crate::operation::start_incident::StartIncidentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
717            crate::operation::start_incident::StartIncidentError::ValidationException(inner) => Error::ValidationException(inner),
718            crate::operation::start_incident::StartIncidentError::Unhandled(inner) => Error::Unhandled(inner),
719        }
720    }
721}
722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
723where
724    R: Send + Sync + std::fmt::Debug + 'static,
725{
726    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
727        match err {
728            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
729            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
730                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
731                source: err.into(),
732            }),
733        }
734    }
735}
736impl From<crate::operation::tag_resource::TagResourceError> for Error {
737    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
738        match err {
739            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
740            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
741            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
742            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
743            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
744            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
745            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
746            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
747        }
748    }
749}
750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
751where
752    R: Send + Sync + std::fmt::Debug + 'static,
753{
754    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
755        match err {
756            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
757            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
758                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
759                source: err.into(),
760            }),
761        }
762    }
763}
764impl From<crate::operation::untag_resource::UntagResourceError> for Error {
765    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
766        match err {
767            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
768            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
769            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
770            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
771            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
772            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
773            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
774        }
775    }
776}
777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deletion_protection::UpdateDeletionProtectionError, R>>
778    for Error
779where
780    R: Send + Sync + std::fmt::Debug + 'static,
781{
782    fn from(
783        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deletion_protection::UpdateDeletionProtectionError, R>,
784    ) -> Self {
785        match err {
786            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
787            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
788                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
789                source: err.into(),
790            }),
791        }
792    }
793}
794impl From<crate::operation::update_deletion_protection::UpdateDeletionProtectionError> for Error {
795    fn from(err: crate::operation::update_deletion_protection::UpdateDeletionProtectionError) -> Self {
796        match err {
797            crate::operation::update_deletion_protection::UpdateDeletionProtectionError::AccessDeniedException(inner) => {
798                Error::AccessDeniedException(inner)
799            }
800            crate::operation::update_deletion_protection::UpdateDeletionProtectionError::InternalServerException(inner) => {
801                Error::InternalServerException(inner)
802            }
803            crate::operation::update_deletion_protection::UpdateDeletionProtectionError::ResourceNotFoundException(inner) => {
804                Error::ResourceNotFoundException(inner)
805            }
806            crate::operation::update_deletion_protection::UpdateDeletionProtectionError::ThrottlingException(inner) => {
807                Error::ThrottlingException(inner)
808            }
809            crate::operation::update_deletion_protection::UpdateDeletionProtectionError::ValidationException(inner) => {
810                Error::ValidationException(inner)
811            }
812            crate::operation::update_deletion_protection::UpdateDeletionProtectionError::Unhandled(inner) => Error::Unhandled(inner),
813        }
814    }
815}
816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_incident_record::UpdateIncidentRecordError, R>> for Error
817where
818    R: Send + Sync + std::fmt::Debug + 'static,
819{
820    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_incident_record::UpdateIncidentRecordError, R>) -> Self {
821        match err {
822            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
823            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
824                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
825                source: err.into(),
826            }),
827        }
828    }
829}
830impl From<crate::operation::update_incident_record::UpdateIncidentRecordError> for Error {
831    fn from(err: crate::operation::update_incident_record::UpdateIncidentRecordError) -> Self {
832        match err {
833            crate::operation::update_incident_record::UpdateIncidentRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
834            crate::operation::update_incident_record::UpdateIncidentRecordError::ConflictException(inner) => Error::ConflictException(inner),
835            crate::operation::update_incident_record::UpdateIncidentRecordError::InternalServerException(inner) => {
836                Error::InternalServerException(inner)
837            }
838            crate::operation::update_incident_record::UpdateIncidentRecordError::ResourceNotFoundException(inner) => {
839                Error::ResourceNotFoundException(inner)
840            }
841            crate::operation::update_incident_record::UpdateIncidentRecordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
842            crate::operation::update_incident_record::UpdateIncidentRecordError::ValidationException(inner) => Error::ValidationException(inner),
843            crate::operation::update_incident_record::UpdateIncidentRecordError::Unhandled(inner) => Error::Unhandled(inner),
844        }
845    }
846}
847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_related_items::UpdateRelatedItemsError, R>> for Error
848where
849    R: Send + Sync + std::fmt::Debug + 'static,
850{
851    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_related_items::UpdateRelatedItemsError, R>) -> Self {
852        match err {
853            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
854            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
855                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
856                source: err.into(),
857            }),
858        }
859    }
860}
861impl From<crate::operation::update_related_items::UpdateRelatedItemsError> for Error {
862    fn from(err: crate::operation::update_related_items::UpdateRelatedItemsError) -> Self {
863        match err {
864            crate::operation::update_related_items::UpdateRelatedItemsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
865            crate::operation::update_related_items::UpdateRelatedItemsError::ConflictException(inner) => Error::ConflictException(inner),
866            crate::operation::update_related_items::UpdateRelatedItemsError::InternalServerException(inner) => Error::InternalServerException(inner),
867            crate::operation::update_related_items::UpdateRelatedItemsError::ResourceNotFoundException(inner) => {
868                Error::ResourceNotFoundException(inner)
869            }
870            crate::operation::update_related_items::UpdateRelatedItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
871            crate::operation::update_related_items::UpdateRelatedItemsError::ValidationException(inner) => Error::ValidationException(inner),
872            crate::operation::update_related_items::UpdateRelatedItemsError::Unhandled(inner) => Error::Unhandled(inner),
873        }
874    }
875}
876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_replication_set::UpdateReplicationSetError, R>> for Error
877where
878    R: Send + Sync + std::fmt::Debug + 'static,
879{
880    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_replication_set::UpdateReplicationSetError, R>) -> Self {
881        match err {
882            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
883            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
884                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
885                source: err.into(),
886            }),
887        }
888    }
889}
890impl From<crate::operation::update_replication_set::UpdateReplicationSetError> for Error {
891    fn from(err: crate::operation::update_replication_set::UpdateReplicationSetError) -> Self {
892        match err {
893            crate::operation::update_replication_set::UpdateReplicationSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
894            crate::operation::update_replication_set::UpdateReplicationSetError::ConflictException(inner) => Error::ConflictException(inner),
895            crate::operation::update_replication_set::UpdateReplicationSetError::InternalServerException(inner) => {
896                Error::InternalServerException(inner)
897            }
898            crate::operation::update_replication_set::UpdateReplicationSetError::ResourceNotFoundException(inner) => {
899                Error::ResourceNotFoundException(inner)
900            }
901            crate::operation::update_replication_set::UpdateReplicationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
902            crate::operation::update_replication_set::UpdateReplicationSetError::ValidationException(inner) => Error::ValidationException(inner),
903            crate::operation::update_replication_set::UpdateReplicationSetError::Unhandled(inner) => Error::Unhandled(inner),
904        }
905    }
906}
907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_response_plan::UpdateResponsePlanError, R>> for Error
908where
909    R: Send + Sync + std::fmt::Debug + 'static,
910{
911    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_response_plan::UpdateResponsePlanError, R>) -> Self {
912        match err {
913            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
914            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
915                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
916                source: err.into(),
917            }),
918        }
919    }
920}
921impl From<crate::operation::update_response_plan::UpdateResponsePlanError> for Error {
922    fn from(err: crate::operation::update_response_plan::UpdateResponsePlanError) -> Self {
923        match err {
924            crate::operation::update_response_plan::UpdateResponsePlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
925            crate::operation::update_response_plan::UpdateResponsePlanError::ConflictException(inner) => Error::ConflictException(inner),
926            crate::operation::update_response_plan::UpdateResponsePlanError::InternalServerException(inner) => Error::InternalServerException(inner),
927            crate::operation::update_response_plan::UpdateResponsePlanError::ResourceNotFoundException(inner) => {
928                Error::ResourceNotFoundException(inner)
929            }
930            crate::operation::update_response_plan::UpdateResponsePlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
931            crate::operation::update_response_plan::UpdateResponsePlanError::ValidationException(inner) => Error::ValidationException(inner),
932            crate::operation::update_response_plan::UpdateResponsePlanError::Unhandled(inner) => Error::Unhandled(inner),
933        }
934    }
935}
936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_timeline_event::UpdateTimelineEventError, 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::update_timeline_event::UpdateTimelineEventError, 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::update_timeline_event::UpdateTimelineEventError> for Error {
951    fn from(err: crate::operation::update_timeline_event::UpdateTimelineEventError) -> Self {
952        match err {
953            crate::operation::update_timeline_event::UpdateTimelineEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
954            crate::operation::update_timeline_event::UpdateTimelineEventError::ConflictException(inner) => Error::ConflictException(inner),
955            crate::operation::update_timeline_event::UpdateTimelineEventError::InternalServerException(inner) => {
956                Error::InternalServerException(inner)
957            }
958            crate::operation::update_timeline_event::UpdateTimelineEventError::ResourceNotFoundException(inner) => {
959                Error::ResourceNotFoundException(inner)
960            }
961            crate::operation::update_timeline_event::UpdateTimelineEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
962            crate::operation::update_timeline_event::UpdateTimelineEventError::ValidationException(inner) => Error::ValidationException(inner),
963            crate::operation::update_timeline_event::UpdateTimelineEventError::Unhandled(inner) => Error::Unhandled(inner),
964        }
965    }
966}
967impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
968where
969    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
970    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
971{
972    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
973        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
974            meta: ::std::default::Default::default(),
975            source: err.into(),
976        })
977    }
978}
979impl ::std::error::Error for Error {
980    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
981        match self {
982            Error::AccessDeniedException(inner) => inner.source(),
983            Error::ConflictException(inner) => inner.source(),
984            Error::InternalServerException(inner) => inner.source(),
985            Error::ResourceNotFoundException(inner) => inner.source(),
986            Error::ServiceQuotaExceededException(inner) => inner.source(),
987            Error::ThrottlingException(inner) => inner.source(),
988            Error::ValidationException(inner) => inner.source(),
989            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
990        }
991    }
992}
993impl ::aws_types::request_id::RequestId for Error {
994    fn request_id(&self) -> Option<&str> {
995        match self {
996            Self::AccessDeniedException(e) => e.request_id(),
997            Self::ConflictException(e) => e.request_id(),
998            Self::InternalServerException(e) => e.request_id(),
999            Self::ResourceNotFoundException(e) => e.request_id(),
1000            Self::ServiceQuotaExceededException(e) => e.request_id(),
1001            Self::ThrottlingException(e) => e.request_id(),
1002            Self::ValidationException(e) => e.request_id(),
1003            Self::Unhandled(e) => e.meta.request_id(),
1004        }
1005    }
1006}