Skip to main content

aws_sdk_networksecuritymanager/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You do not have sufficient permissions to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request would exceed a service quota.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The service is temporarily unavailable. This is a retryable error.</p>
17    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
18    /// <p>The request violates a tag policy that is in effect for the account or organization.</p>
19    TagPolicyViolationException(crate::types::error::TagPolicyViolationException),
20    /// <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
21    ThrottlingException(crate::types::error::ThrottlingException),
22    /// <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
23    ValidationException(crate::types::error::ValidationException),
24    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
25    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
26    variable wildcard pattern and check `.code()`:
27     \
28    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
29     \
30    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
31    Unhandled(crate::error::sealed_unhandled::Unhandled),
32}
33impl ::std::fmt::Display for Error {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        match self {
36            Error::AccessDeniedException(inner) => inner.fmt(f),
37            Error::ConflictException(inner) => inner.fmt(f),
38            Error::InternalServerException(inner) => inner.fmt(f),
39            Error::ResourceNotFoundException(inner) => inner.fmt(f),
40            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
41            Error::ServiceUnavailableException(inner) => inner.fmt(f),
42            Error::TagPolicyViolationException(inner) => inner.fmt(f),
43            Error::ThrottlingException(inner) => inner.fmt(f),
44            Error::ValidationException(inner) => inner.fmt(f),
45            Error::Unhandled(_) => {
46                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
47                    write!(f, "unhandled error ({code})")
48                } else {
49                    f.write_str("unhandled error")
50                }
51            }
52        }
53    }
54}
55impl From<::aws_smithy_types::error::operation::BuildError> for Error {
56    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
57        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
58            source: value.into(),
59            meta: ::std::default::Default::default(),
60        })
61    }
62}
63impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
64    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
65        match self {
66            Self::AccessDeniedException(inner) => inner.meta(),
67            Self::ConflictException(inner) => inner.meta(),
68            Self::InternalServerException(inner) => inner.meta(),
69            Self::ResourceNotFoundException(inner) => inner.meta(),
70            Self::ServiceQuotaExceededException(inner) => inner.meta(),
71            Self::ServiceUnavailableException(inner) => inner.meta(),
72            Self::TagPolicyViolationException(inner) => inner.meta(),
73            Self::ThrottlingException(inner) => inner.meta(),
74            Self::ValidationException(inner) => inner.meta(),
75            Self::Unhandled(inner) => &inner.meta,
76        }
77    }
78}
79impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_deployment::CreateDeploymentError, R>> for Error
80where
81    R: Send + Sync + std::fmt::Debug + 'static,
82{
83    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_deployment::CreateDeploymentError, R>) -> Self {
84        match err {
85            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
86            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
87                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
88                source: err.into(),
89            }),
90        }
91    }
92}
93impl From<crate::operation::create_deployment::CreateDeploymentError> for Error {
94    fn from(err: crate::operation::create_deployment::CreateDeploymentError) -> Self {
95        match err {
96            crate::operation::create_deployment::CreateDeploymentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
97            crate::operation::create_deployment::CreateDeploymentError::ConflictException(inner) => Error::ConflictException(inner),
98            crate::operation::create_deployment::CreateDeploymentError::InternalServerException(inner) => Error::InternalServerException(inner),
99            crate::operation::create_deployment::CreateDeploymentError::ServiceQuotaExceededException(inner) => {
100                Error::ServiceQuotaExceededException(inner)
101            }
102            crate::operation::create_deployment::CreateDeploymentError::ServiceUnavailableException(inner) => {
103                Error::ServiceUnavailableException(inner)
104            }
105            crate::operation::create_deployment::CreateDeploymentError::TagPolicyViolationException(inner) => {
106                Error::TagPolicyViolationException(inner)
107            }
108            crate::operation::create_deployment::CreateDeploymentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
109            crate::operation::create_deployment::CreateDeploymentError::ValidationException(inner) => Error::ValidationException(inner),
110            crate::operation::create_deployment::CreateDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
111        }
112    }
113}
114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError, R>>
115    for Error
116where
117    R: Send + Sync + std::fmt::Debug + 'static,
118{
119    fn from(
120        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError, R>,
121    ) -> Self {
122        match err {
123            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
124            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
125                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
126                source: err.into(),
127            }),
128        }
129    }
130}
131impl From<crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError> for Error {
132    fn from(err: crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError) -> Self {
133        match err {
134            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::AccessDeniedException(inner) => {
135                Error::AccessDeniedException(inner)
136            }
137            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
138            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::InternalServerException(inner) => {
139                Error::InternalServerException(inner)
140            }
141            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::ResourceNotFoundException(inner) => {
142                Error::ResourceNotFoundException(inner)
143            }
144            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::ServiceQuotaExceededException(inner) => {
145                Error::ServiceQuotaExceededException(inner)
146            }
147            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::ThrottlingException(inner) => {
148                Error::ThrottlingException(inner)
149            }
150            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::ValidationException(inner) => {
151                Error::ValidationException(inner)
152            }
153            crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
154        }
155    }
156}
157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy::CreatePolicyError, R>> for Error
158where
159    R: Send + Sync + std::fmt::Debug + 'static,
160{
161    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy::CreatePolicyError, R>) -> Self {
162        match err {
163            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
164            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
165                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
166                source: err.into(),
167            }),
168        }
169    }
170}
171impl From<crate::operation::create_policy::CreatePolicyError> for Error {
172    fn from(err: crate::operation::create_policy::CreatePolicyError) -> Self {
173        match err {
174            crate::operation::create_policy::CreatePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
175            crate::operation::create_policy::CreatePolicyError::ConflictException(inner) => Error::ConflictException(inner),
176            crate::operation::create_policy::CreatePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
177            crate::operation::create_policy::CreatePolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
178            crate::operation::create_policy::CreatePolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
179            crate::operation::create_policy::CreatePolicyError::TagPolicyViolationException(inner) => Error::TagPolicyViolationException(inner),
180            crate::operation::create_policy::CreatePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
181            crate::operation::create_policy::CreatePolicyError::ValidationException(inner) => Error::ValidationException(inner),
182            crate::operation::create_policy::CreatePolicyError::Unhandled(inner) => Error::Unhandled(inner),
183        }
184    }
185}
186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy_snapshot::CreatePolicySnapshotError, R>> for Error
187where
188    R: Send + Sync + std::fmt::Debug + 'static,
189{
190    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy_snapshot::CreatePolicySnapshotError, R>) -> Self {
191        match err {
192            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
193            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
194                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
195                source: err.into(),
196            }),
197        }
198    }
199}
200impl From<crate::operation::create_policy_snapshot::CreatePolicySnapshotError> for Error {
201    fn from(err: crate::operation::create_policy_snapshot::CreatePolicySnapshotError) -> Self {
202        match err {
203            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
204            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::ConflictException(inner) => Error::ConflictException(inner),
205            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::InternalServerException(inner) => {
206                Error::InternalServerException(inner)
207            }
208            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::ResourceNotFoundException(inner) => {
209                Error::ResourceNotFoundException(inner)
210            }
211            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::ServiceQuotaExceededException(inner) => {
212                Error::ServiceQuotaExceededException(inner)
213            }
214            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
215            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::ValidationException(inner) => Error::ValidationException(inner),
216            crate::operation::create_policy_snapshot::CreatePolicySnapshotError::Unhandled(inner) => Error::Unhandled(inner),
217        }
218    }
219}
220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>> for Error
221where
222    R: Send + Sync + std::fmt::Debug + 'static,
223{
224    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>) -> Self {
225        match err {
226            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
227            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
228                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
229                source: err.into(),
230            }),
231        }
232    }
233}
234impl From<crate::operation::create_rule::CreateRuleError> for Error {
235    fn from(err: crate::operation::create_rule::CreateRuleError) -> Self {
236        match err {
237            crate::operation::create_rule::CreateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
238            crate::operation::create_rule::CreateRuleError::ConflictException(inner) => Error::ConflictException(inner),
239            crate::operation::create_rule::CreateRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
240            crate::operation::create_rule::CreateRuleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
241            crate::operation::create_rule::CreateRuleError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
242            crate::operation::create_rule::CreateRuleError::TagPolicyViolationException(inner) => Error::TagPolicyViolationException(inner),
243            crate::operation::create_rule::CreateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
244            crate::operation::create_rule::CreateRuleError::ValidationException(inner) => Error::ValidationException(inner),
245            crate::operation::create_rule::CreateRuleError::Unhandled(inner) => Error::Unhandled(inner),
246        }
247    }
248}
249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_snapshot::CreateRuleSnapshotError, R>> for Error
250where
251    R: Send + Sync + std::fmt::Debug + 'static,
252{
253    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_snapshot::CreateRuleSnapshotError, R>) -> Self {
254        match err {
255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
258                source: err.into(),
259            }),
260        }
261    }
262}
263impl From<crate::operation::create_rule_snapshot::CreateRuleSnapshotError> for Error {
264    fn from(err: crate::operation::create_rule_snapshot::CreateRuleSnapshotError) -> Self {
265        match err {
266            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
267            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
268            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::InternalServerException(inner) => Error::InternalServerException(inner),
269            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::ResourceNotFoundException(inner) => {
270                Error::ResourceNotFoundException(inner)
271            }
272            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::ServiceQuotaExceededException(inner) => {
273                Error::ServiceQuotaExceededException(inner)
274            }
275            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
276            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
277            crate::operation::create_rule_snapshot::CreateRuleSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
278        }
279    }
280}
281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scope::CreateScopeError, R>> for Error
282where
283    R: Send + Sync + std::fmt::Debug + 'static,
284{
285    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scope::CreateScopeError, R>) -> Self {
286        match err {
287            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
288            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
289                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
290                source: err.into(),
291            }),
292        }
293    }
294}
295impl From<crate::operation::create_scope::CreateScopeError> for Error {
296    fn from(err: crate::operation::create_scope::CreateScopeError) -> Self {
297        match err {
298            crate::operation::create_scope::CreateScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
299            crate::operation::create_scope::CreateScopeError::ConflictException(inner) => Error::ConflictException(inner),
300            crate::operation::create_scope::CreateScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
301            crate::operation::create_scope::CreateScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
302            crate::operation::create_scope::CreateScopeError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
303            crate::operation::create_scope::CreateScopeError::TagPolicyViolationException(inner) => Error::TagPolicyViolationException(inner),
304            crate::operation::create_scope::CreateScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
305            crate::operation::create_scope::CreateScopeError::ValidationException(inner) => Error::ValidationException(inner),
306            crate::operation::create_scope::CreateScopeError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scope_snapshot::CreateScopeSnapshotError, R>> for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scope_snapshot::CreateScopeSnapshotError, R>) -> Self {
315        match err {
316            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319                source: err.into(),
320            }),
321        }
322    }
323}
324impl From<crate::operation::create_scope_snapshot::CreateScopeSnapshotError> for Error {
325    fn from(err: crate::operation::create_scope_snapshot::CreateScopeSnapshotError) -> Self {
326        match err {
327            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
328            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
329            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::InternalServerException(inner) => {
330                Error::InternalServerException(inner)
331            }
332            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::ResourceNotFoundException(inner) => {
333                Error::ResourceNotFoundException(inner)
334            }
335            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::ServiceQuotaExceededException(inner) => {
336                Error::ServiceQuotaExceededException(inner)
337            }
338            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
339            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
340            crate::operation::create_scope_snapshot::CreateScopeSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
341        }
342    }
343}
344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>> for Error
345where
346    R: Send + Sync + std::fmt::Debug + 'static,
347{
348    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>) -> Self {
349        match err {
350            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
351            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
352                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
353                source: err.into(),
354            }),
355        }
356    }
357}
358impl From<crate::operation::create_template::CreateTemplateError> for Error {
359    fn from(err: crate::operation::create_template::CreateTemplateError) -> Self {
360        match err {
361            crate::operation::create_template::CreateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
362            crate::operation::create_template::CreateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
363            crate::operation::create_template::CreateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
364            crate::operation::create_template::CreateTemplateError::ServiceQuotaExceededException(inner) => {
365                Error::ServiceQuotaExceededException(inner)
366            }
367            crate::operation::create_template::CreateTemplateError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
368            crate::operation::create_template::CreateTemplateError::TagPolicyViolationException(inner) => Error::TagPolicyViolationException(inner),
369            crate::operation::create_template::CreateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
370            crate::operation::create_template::CreateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
371            crate::operation::create_template::CreateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
372        }
373    }
374}
375impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template_snapshot::CreateTemplateSnapshotError, R>> for Error
376where
377    R: Send + Sync + std::fmt::Debug + 'static,
378{
379    fn from(
380        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template_snapshot::CreateTemplateSnapshotError, R>,
381    ) -> Self {
382        match err {
383            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
384            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
385                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
386                source: err.into(),
387            }),
388        }
389    }
390}
391impl From<crate::operation::create_template_snapshot::CreateTemplateSnapshotError> for Error {
392    fn from(err: crate::operation::create_template_snapshot::CreateTemplateSnapshotError) -> Self {
393        match err {
394            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::AccessDeniedException(inner) => {
395                Error::AccessDeniedException(inner)
396            }
397            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
398            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::InternalServerException(inner) => {
399                Error::InternalServerException(inner)
400            }
401            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::ResourceNotFoundException(inner) => {
402                Error::ResourceNotFoundException(inner)
403            }
404            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::ServiceQuotaExceededException(inner) => {
405                Error::ServiceQuotaExceededException(inner)
406            }
407            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
408            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
409            crate::operation::create_template_snapshot::CreateTemplateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
410        }
411    }
412}
413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_admin_account::DeleteAdminAccountError, R>> for Error
414where
415    R: Send + Sync + std::fmt::Debug + 'static,
416{
417    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_admin_account::DeleteAdminAccountError, R>) -> Self {
418        match err {
419            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
420            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
421                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
422                source: err.into(),
423            }),
424        }
425    }
426}
427impl From<crate::operation::delete_admin_account::DeleteAdminAccountError> for Error {
428    fn from(err: crate::operation::delete_admin_account::DeleteAdminAccountError) -> Self {
429        match err {
430            crate::operation::delete_admin_account::DeleteAdminAccountError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
431            crate::operation::delete_admin_account::DeleteAdminAccountError::InternalServerException(inner) => Error::InternalServerException(inner),
432            crate::operation::delete_admin_account::DeleteAdminAccountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
433            crate::operation::delete_admin_account::DeleteAdminAccountError::ValidationException(inner) => Error::ValidationException(inner),
434            crate::operation::delete_admin_account::DeleteAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
435        }
436    }
437}
438impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>> for Error
439where
440    R: Send + Sync + std::fmt::Debug + 'static,
441{
442    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>) -> Self {
443        match err {
444            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
445            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
446                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
447                source: err.into(),
448            }),
449        }
450    }
451}
452impl From<crate::operation::delete_deployment::DeleteDeploymentError> for Error {
453    fn from(err: crate::operation::delete_deployment::DeleteDeploymentError) -> Self {
454        match err {
455            crate::operation::delete_deployment::DeleteDeploymentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
456            crate::operation::delete_deployment::DeleteDeploymentError::ConflictException(inner) => Error::ConflictException(inner),
457            crate::operation::delete_deployment::DeleteDeploymentError::InternalServerException(inner) => Error::InternalServerException(inner),
458            crate::operation::delete_deployment::DeleteDeploymentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
459            crate::operation::delete_deployment::DeleteDeploymentError::ValidationException(inner) => Error::ValidationException(inner),
460            crate::operation::delete_deployment::DeleteDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
461        }
462    }
463}
464impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>> for Error
465where
466    R: Send + Sync + std::fmt::Debug + 'static,
467{
468    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>) -> Self {
469        match err {
470            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
471            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
472                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
473                source: err.into(),
474            }),
475        }
476    }
477}
478impl From<crate::operation::delete_policy::DeletePolicyError> for Error {
479    fn from(err: crate::operation::delete_policy::DeletePolicyError) -> Self {
480        match err {
481            crate::operation::delete_policy::DeletePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
482            crate::operation::delete_policy::DeletePolicyError::ConflictException(inner) => Error::ConflictException(inner),
483            crate::operation::delete_policy::DeletePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
484            crate::operation::delete_policy::DeletePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
485            crate::operation::delete_policy::DeletePolicyError::ValidationException(inner) => Error::ValidationException(inner),
486            crate::operation::delete_policy::DeletePolicyError::Unhandled(inner) => Error::Unhandled(inner),
487        }
488    }
489}
490impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>> for Error
491where
492    R: Send + Sync + std::fmt::Debug + 'static,
493{
494    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>) -> Self {
495        match err {
496            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
497            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
498                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
499                source: err.into(),
500            }),
501        }
502    }
503}
504impl From<crate::operation::delete_rule::DeleteRuleError> for Error {
505    fn from(err: crate::operation::delete_rule::DeleteRuleError) -> Self {
506        match err {
507            crate::operation::delete_rule::DeleteRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
508            crate::operation::delete_rule::DeleteRuleError::ConflictException(inner) => Error::ConflictException(inner),
509            crate::operation::delete_rule::DeleteRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
510            crate::operation::delete_rule::DeleteRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
511            crate::operation::delete_rule::DeleteRuleError::ValidationException(inner) => Error::ValidationException(inner),
512            crate::operation::delete_rule::DeleteRuleError::Unhandled(inner) => Error::Unhandled(inner),
513        }
514    }
515}
516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scope::DeleteScopeError, R>> for Error
517where
518    R: Send + Sync + std::fmt::Debug + 'static,
519{
520    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scope::DeleteScopeError, R>) -> Self {
521        match err {
522            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
523            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
524                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
525                source: err.into(),
526            }),
527        }
528    }
529}
530impl From<crate::operation::delete_scope::DeleteScopeError> for Error {
531    fn from(err: crate::operation::delete_scope::DeleteScopeError) -> Self {
532        match err {
533            crate::operation::delete_scope::DeleteScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
534            crate::operation::delete_scope::DeleteScopeError::ConflictException(inner) => Error::ConflictException(inner),
535            crate::operation::delete_scope::DeleteScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
536            crate::operation::delete_scope::DeleteScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
537            crate::operation::delete_scope::DeleteScopeError::ValidationException(inner) => Error::ValidationException(inner),
538            crate::operation::delete_scope::DeleteScopeError::Unhandled(inner) => Error::Unhandled(inner),
539        }
540    }
541}
542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>> for Error
543where
544    R: Send + Sync + std::fmt::Debug + 'static,
545{
546    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>) -> Self {
547        match err {
548            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551                source: err.into(),
552            }),
553        }
554    }
555}
556impl From<crate::operation::delete_template::DeleteTemplateError> for Error {
557    fn from(err: crate::operation::delete_template::DeleteTemplateError) -> Self {
558        match err {
559            crate::operation::delete_template::DeleteTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
560            crate::operation::delete_template::DeleteTemplateError::ConflictException(inner) => Error::ConflictException(inner),
561            crate::operation::delete_template::DeleteTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
562            crate::operation::delete_template::DeleteTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
563            crate::operation::delete_template::DeleteTemplateError::ValidationException(inner) => Error::ValidationException(inner),
564            crate::operation::delete_template::DeleteTemplateError::Unhandled(inner) => Error::Unhandled(inner),
565        }
566    }
567}
568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_rule_configuration::GenerateRuleConfigurationError, R>>
569    for Error
570where
571    R: Send + Sync + std::fmt::Debug + 'static,
572{
573    fn from(
574        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_rule_configuration::GenerateRuleConfigurationError, R>,
575    ) -> Self {
576        match err {
577            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580                source: err.into(),
581            }),
582        }
583    }
584}
585impl From<crate::operation::generate_rule_configuration::GenerateRuleConfigurationError> for Error {
586    fn from(err: crate::operation::generate_rule_configuration::GenerateRuleConfigurationError) -> Self {
587        match err {
588            crate::operation::generate_rule_configuration::GenerateRuleConfigurationError::AccessDeniedException(inner) => {
589                Error::AccessDeniedException(inner)
590            }
591            crate::operation::generate_rule_configuration::GenerateRuleConfigurationError::InternalServerException(inner) => {
592                Error::InternalServerException(inner)
593            }
594            crate::operation::generate_rule_configuration::GenerateRuleConfigurationError::ThrottlingException(inner) => {
595                Error::ThrottlingException(inner)
596            }
597            crate::operation::generate_rule_configuration::GenerateRuleConfigurationError::ValidationException(inner) => {
598                Error::ValidationException(inner)
599            }
600            crate::operation::generate_rule_configuration::GenerateRuleConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
601        }
602    }
603}
604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_admin_account::GetAdminAccountError, R>> for Error
605where
606    R: Send + Sync + std::fmt::Debug + 'static,
607{
608    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_admin_account::GetAdminAccountError, R>) -> Self {
609        match err {
610            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
611            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
612                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
613                source: err.into(),
614            }),
615        }
616    }
617}
618impl From<crate::operation::get_admin_account::GetAdminAccountError> for Error {
619    fn from(err: crate::operation::get_admin_account::GetAdminAccountError) -> Self {
620        match err {
621            crate::operation::get_admin_account::GetAdminAccountError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
622            crate::operation::get_admin_account::GetAdminAccountError::InternalServerException(inner) => Error::InternalServerException(inner),
623            crate::operation::get_admin_account::GetAdminAccountError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
624            crate::operation::get_admin_account::GetAdminAccountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
625            crate::operation::get_admin_account::GetAdminAccountError::ValidationException(inner) => Error::ValidationException(inner),
626            crate::operation::get_admin_account::GetAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
627        }
628    }
629}
630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>> for Error
631where
632    R: Send + Sync + std::fmt::Debug + 'static,
633{
634    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>) -> Self {
635        match err {
636            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
637            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
638                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
639                source: err.into(),
640            }),
641        }
642    }
643}
644impl From<crate::operation::get_deployment::GetDeploymentError> for Error {
645    fn from(err: crate::operation::get_deployment::GetDeploymentError) -> Self {
646        match err {
647            crate::operation::get_deployment::GetDeploymentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
648            crate::operation::get_deployment::GetDeploymentError::InternalServerException(inner) => Error::InternalServerException(inner),
649            crate::operation::get_deployment::GetDeploymentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
650            crate::operation::get_deployment::GetDeploymentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
651            crate::operation::get_deployment::GetDeploymentError::ValidationException(inner) => Error::ValidationException(inner),
652            crate::operation::get_deployment::GetDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
653        }
654    }
655}
656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>> for Error
657where
658    R: Send + Sync + std::fmt::Debug + 'static,
659{
660    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>) -> Self {
661        match err {
662            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
663            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
664                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
665                source: err.into(),
666            }),
667        }
668    }
669}
670impl From<crate::operation::get_policy::GetPolicyError> for Error {
671    fn from(err: crate::operation::get_policy::GetPolicyError) -> Self {
672        match err {
673            crate::operation::get_policy::GetPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
674            crate::operation::get_policy::GetPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
675            crate::operation::get_policy::GetPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
676            crate::operation::get_policy::GetPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
677            crate::operation::get_policy::GetPolicyError::ValidationException(inner) => Error::ValidationException(inner),
678            crate::operation::get_policy::GetPolicyError::Unhandled(inner) => Error::Unhandled(inner),
679        }
680    }
681}
682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule::GetRuleError, R>> for Error
683where
684    R: Send + Sync + std::fmt::Debug + 'static,
685{
686    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule::GetRuleError, R>) -> Self {
687        match err {
688            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
689            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
690                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
691                source: err.into(),
692            }),
693        }
694    }
695}
696impl From<crate::operation::get_rule::GetRuleError> for Error {
697    fn from(err: crate::operation::get_rule::GetRuleError) -> Self {
698        match err {
699            crate::operation::get_rule::GetRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
700            crate::operation::get_rule::GetRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
701            crate::operation::get_rule::GetRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
702            crate::operation::get_rule::GetRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
703            crate::operation::get_rule::GetRuleError::ValidationException(inner) => Error::ValidationException(inner),
704            crate::operation::get_rule::GetRuleError::Unhandled(inner) => Error::Unhandled(inner),
705        }
706    }
707}
708impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scope::GetScopeError, R>> for Error
709where
710    R: Send + Sync + std::fmt::Debug + 'static,
711{
712    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scope::GetScopeError, R>) -> Self {
713        match err {
714            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
715            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
716                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
717                source: err.into(),
718            }),
719        }
720    }
721}
722impl From<crate::operation::get_scope::GetScopeError> for Error {
723    fn from(err: crate::operation::get_scope::GetScopeError) -> Self {
724        match err {
725            crate::operation::get_scope::GetScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
726            crate::operation::get_scope::GetScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
727            crate::operation::get_scope::GetScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
728            crate::operation::get_scope::GetScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
729            crate::operation::get_scope::GetScopeError::ValidationException(inner) => Error::ValidationException(inner),
730            crate::operation::get_scope::GetScopeError::Unhandled(inner) => Error::Unhandled(inner),
731        }
732    }
733}
734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
735where
736    R: Send + Sync + std::fmt::Debug + 'static,
737{
738    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
739        match err {
740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743                source: err.into(),
744            }),
745        }
746    }
747}
748impl From<crate::operation::get_template::GetTemplateError> for Error {
749    fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
750        match err {
751            crate::operation::get_template::GetTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
752            crate::operation::get_template::GetTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
753            crate::operation::get_template::GetTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
754            crate::operation::get_template::GetTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
755            crate::operation::get_template::GetTemplateError::ValidationException(inner) => Error::ValidationException(inner),
756            crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
757        }
758    }
759}
760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_admin_accounts::ListAdminAccountsError, R>> for Error
761where
762    R: Send + Sync + std::fmt::Debug + 'static,
763{
764    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_admin_accounts::ListAdminAccountsError, R>) -> Self {
765        match err {
766            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
767            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
768                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
769                source: err.into(),
770            }),
771        }
772    }
773}
774impl From<crate::operation::list_admin_accounts::ListAdminAccountsError> for Error {
775    fn from(err: crate::operation::list_admin_accounts::ListAdminAccountsError) -> Self {
776        match err {
777            crate::operation::list_admin_accounts::ListAdminAccountsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
778            crate::operation::list_admin_accounts::ListAdminAccountsError::InternalServerException(inner) => Error::InternalServerException(inner),
779            crate::operation::list_admin_accounts::ListAdminAccountsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
780            crate::operation::list_admin_accounts::ListAdminAccountsError::ValidationException(inner) => Error::ValidationException(inner),
781            crate::operation::list_admin_accounts::ListAdminAccountsError::Unhandled(inner) => Error::Unhandled(inner),
782        }
783    }
784}
785impl<R>
786    From<
787        ::aws_smithy_runtime_api::client::result::SdkError<
788            crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError,
789            R,
790        >,
791    > for Error
792where
793    R: Send + Sync + std::fmt::Debug + 'static,
794{
795    fn from(
796        err: ::aws_smithy_runtime_api::client::result::SdkError<
797            crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError,
798            R,
799        >,
800    ) -> Self {
801        match err {
802            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
803            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
804                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
805                source: err.into(),
806            }),
807        }
808    }
809}
810impl From<crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError> for Error {
811    fn from(err: crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError) -> Self {
812        match err {
813            crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
814            crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError::InternalServerException(inner) => Error::InternalServerException(inner),
815            crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
816            crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError::ValidationException(inner) => Error::ValidationException(inner),
817            crate::operation::list_aggregate_resource_synchronization_statuses::ListAggregateResourceSynchronizationStatusesError::Unhandled(inner) => Error::Unhandled(inner),
818        }
819    }
820}
821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deployments::ListDeploymentsError, R>> for Error
822where
823    R: Send + Sync + std::fmt::Debug + 'static,
824{
825    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deployments::ListDeploymentsError, R>) -> Self {
826        match err {
827            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
828            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
829                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
830                source: err.into(),
831            }),
832        }
833    }
834}
835impl From<crate::operation::list_deployments::ListDeploymentsError> for Error {
836    fn from(err: crate::operation::list_deployments::ListDeploymentsError) -> Self {
837        match err {
838            crate::operation::list_deployments::ListDeploymentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
839            crate::operation::list_deployments::ListDeploymentsError::InternalServerException(inner) => Error::InternalServerException(inner),
840            crate::operation::list_deployments::ListDeploymentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
841            crate::operation::list_deployments::ListDeploymentsError::ValidationException(inner) => Error::ValidationException(inner),
842            crate::operation::list_deployments::ListDeploymentsError::Unhandled(inner) => Error::Unhandled(inner),
843        }
844    }
845}
846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError, R>>
847    for Error
848where
849    R: Send + Sync + std::fmt::Debug + 'static,
850{
851    fn from(
852        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError, R>,
853    ) -> Self {
854        match err {
855            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
856            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
857                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
858                source: err.into(),
859            }),
860        }
861    }
862}
863impl From<crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError> for Error {
864    fn from(err: crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError) -> Self {
865        match err {
866            crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError::AccessDeniedException(inner) => {
867                Error::AccessDeniedException(inner)
868            }
869            crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError::InternalServerException(inner) => {
870                Error::InternalServerException(inner)
871            }
872            crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError::ResourceNotFoundException(inner) => {
873                Error::ResourceNotFoundException(inner)
874            }
875            crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError::ThrottlingException(inner) => {
876                Error::ThrottlingException(inner)
877            }
878            crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError::ValidationException(inner) => {
879                Error::ValidationException(inner)
880            }
881            crate::operation::list_deployment_snapshots::ListDeploymentSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
882        }
883    }
884}
885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policies::ListPoliciesError, R>> for Error
886where
887    R: Send + Sync + std::fmt::Debug + 'static,
888{
889    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policies::ListPoliciesError, R>) -> Self {
890        match err {
891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
894                source: err.into(),
895            }),
896        }
897    }
898}
899impl From<crate::operation::list_policies::ListPoliciesError> for Error {
900    fn from(err: crate::operation::list_policies::ListPoliciesError) -> Self {
901        match err {
902            crate::operation::list_policies::ListPoliciesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
903            crate::operation::list_policies::ListPoliciesError::InternalServerException(inner) => Error::InternalServerException(inner),
904            crate::operation::list_policies::ListPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
905            crate::operation::list_policies::ListPoliciesError::ValidationException(inner) => Error::ValidationException(inner),
906            crate::operation::list_policies::ListPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
907        }
908    }
909}
910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_snapshots::ListPolicySnapshotsError, R>> for Error
911where
912    R: Send + Sync + std::fmt::Debug + 'static,
913{
914    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_snapshots::ListPolicySnapshotsError, R>) -> Self {
915        match err {
916            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
917            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
918                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
919                source: err.into(),
920            }),
921        }
922    }
923}
924impl From<crate::operation::list_policy_snapshots::ListPolicySnapshotsError> for Error {
925    fn from(err: crate::operation::list_policy_snapshots::ListPolicySnapshotsError) -> Self {
926        match err {
927            crate::operation::list_policy_snapshots::ListPolicySnapshotsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
928            crate::operation::list_policy_snapshots::ListPolicySnapshotsError::InternalServerException(inner) => {
929                Error::InternalServerException(inner)
930            }
931            crate::operation::list_policy_snapshots::ListPolicySnapshotsError::ResourceNotFoundException(inner) => {
932                Error::ResourceNotFoundException(inner)
933            }
934            crate::operation::list_policy_snapshots::ListPolicySnapshotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
935            crate::operation::list_policy_snapshots::ListPolicySnapshotsError::ValidationException(inner) => Error::ValidationException(inner),
936            crate::operation::list_policy_snapshots::ListPolicySnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
937        }
938    }
939}
940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_associations::ListResourceAssociationsError, R>>
941    for Error
942where
943    R: Send + Sync + std::fmt::Debug + 'static,
944{
945    fn from(
946        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_associations::ListResourceAssociationsError, R>,
947    ) -> Self {
948        match err {
949            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
950            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
951                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
952                source: err.into(),
953            }),
954        }
955    }
956}
957impl From<crate::operation::list_resource_associations::ListResourceAssociationsError> for Error {
958    fn from(err: crate::operation::list_resource_associations::ListResourceAssociationsError) -> Self {
959        match err {
960            crate::operation::list_resource_associations::ListResourceAssociationsError::AccessDeniedException(inner) => {
961                Error::AccessDeniedException(inner)
962            }
963            crate::operation::list_resource_associations::ListResourceAssociationsError::InternalServerException(inner) => {
964                Error::InternalServerException(inner)
965            }
966            crate::operation::list_resource_associations::ListResourceAssociationsError::ThrottlingException(inner) => {
967                Error::ThrottlingException(inner)
968            }
969            crate::operation::list_resource_associations::ListResourceAssociationsError::ValidationException(inner) => {
970                Error::ValidationException(inner)
971            }
972            crate::operation::list_resource_associations::ListResourceAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
973        }
974    }
975}
976impl<R>
977    From<
978        ::aws_smithy_runtime_api::client::result::SdkError<
979            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError,
980            R,
981        >,
982    > for Error
983where
984    R: Send + Sync + std::fmt::Debug + 'static,
985{
986    fn from(
987        err: ::aws_smithy_runtime_api::client::result::SdkError<
988            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError,
989            R,
990        >,
991    ) -> Self {
992        match err {
993            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
994            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
995                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
996                source: err.into(),
997            }),
998        }
999    }
1000}
1001impl From<crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError> for Error {
1002    fn from(err: crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError) -> Self {
1003        match err {
1004            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError::AccessDeniedException(inner) => {
1005                Error::AccessDeniedException(inner)
1006            }
1007            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError::InternalServerException(inner) => {
1008                Error::InternalServerException(inner)
1009            }
1010            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError::ResourceNotFoundException(inner) => {
1011                Error::ResourceNotFoundException(inner)
1012            }
1013            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError::ThrottlingException(inner) => {
1014                Error::ThrottlingException(inner)
1015            }
1016            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError::ValidationException(inner) => {
1017                Error::ValidationException(inner)
1018            }
1019            crate::operation::list_resource_synchronization_statuses::ListResourceSynchronizationStatusesError::Unhandled(inner) => {
1020                Error::Unhandled(inner)
1021            }
1022        }
1023    }
1024}
1025impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>> for Error
1026where
1027    R: Send + Sync + std::fmt::Debug + 'static,
1028{
1029    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>) -> Self {
1030        match err {
1031            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1032            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1033                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1034                source: err.into(),
1035            }),
1036        }
1037    }
1038}
1039impl From<crate::operation::list_rules::ListRulesError> for Error {
1040    fn from(err: crate::operation::list_rules::ListRulesError) -> Self {
1041        match err {
1042            crate::operation::list_rules::ListRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1043            crate::operation::list_rules::ListRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
1044            crate::operation::list_rules::ListRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1045            crate::operation::list_rules::ListRulesError::ValidationException(inner) => Error::ValidationException(inner),
1046            crate::operation::list_rules::ListRulesError::Unhandled(inner) => Error::Unhandled(inner),
1047        }
1048    }
1049}
1050impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_snapshots::ListRuleSnapshotsError, R>> for Error
1051where
1052    R: Send + Sync + std::fmt::Debug + 'static,
1053{
1054    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_snapshots::ListRuleSnapshotsError, R>) -> Self {
1055        match err {
1056            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1057            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1058                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1059                source: err.into(),
1060            }),
1061        }
1062    }
1063}
1064impl From<crate::operation::list_rule_snapshots::ListRuleSnapshotsError> for Error {
1065    fn from(err: crate::operation::list_rule_snapshots::ListRuleSnapshotsError) -> Self {
1066        match err {
1067            crate::operation::list_rule_snapshots::ListRuleSnapshotsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1068            crate::operation::list_rule_snapshots::ListRuleSnapshotsError::InternalServerException(inner) => Error::InternalServerException(inner),
1069            crate::operation::list_rule_snapshots::ListRuleSnapshotsError::ResourceNotFoundException(inner) => {
1070                Error::ResourceNotFoundException(inner)
1071            }
1072            crate::operation::list_rule_snapshots::ListRuleSnapshotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1073            crate::operation::list_rule_snapshots::ListRuleSnapshotsError::ValidationException(inner) => Error::ValidationException(inner),
1074            crate::operation::list_rule_snapshots::ListRuleSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
1075        }
1076    }
1077}
1078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scopes::ListScopesError, R>> for Error
1079where
1080    R: Send + Sync + std::fmt::Debug + 'static,
1081{
1082    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scopes::ListScopesError, R>) -> Self {
1083        match err {
1084            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1085            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1086                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1087                source: err.into(),
1088            }),
1089        }
1090    }
1091}
1092impl From<crate::operation::list_scopes::ListScopesError> for Error {
1093    fn from(err: crate::operation::list_scopes::ListScopesError) -> Self {
1094        match err {
1095            crate::operation::list_scopes::ListScopesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1096            crate::operation::list_scopes::ListScopesError::InternalServerException(inner) => Error::InternalServerException(inner),
1097            crate::operation::list_scopes::ListScopesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1098            crate::operation::list_scopes::ListScopesError::ValidationException(inner) => Error::ValidationException(inner),
1099            crate::operation::list_scopes::ListScopesError::Unhandled(inner) => Error::Unhandled(inner),
1100        }
1101    }
1102}
1103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scope_snapshots::ListScopeSnapshotsError, R>> for Error
1104where
1105    R: Send + Sync + std::fmt::Debug + 'static,
1106{
1107    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scope_snapshots::ListScopeSnapshotsError, R>) -> Self {
1108        match err {
1109            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1110            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1111                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1112                source: err.into(),
1113            }),
1114        }
1115    }
1116}
1117impl From<crate::operation::list_scope_snapshots::ListScopeSnapshotsError> for Error {
1118    fn from(err: crate::operation::list_scope_snapshots::ListScopeSnapshotsError) -> Self {
1119        match err {
1120            crate::operation::list_scope_snapshots::ListScopeSnapshotsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1121            crate::operation::list_scope_snapshots::ListScopeSnapshotsError::InternalServerException(inner) => Error::InternalServerException(inner),
1122            crate::operation::list_scope_snapshots::ListScopeSnapshotsError::ResourceNotFoundException(inner) => {
1123                Error::ResourceNotFoundException(inner)
1124            }
1125            crate::operation::list_scope_snapshots::ListScopeSnapshotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1126            crate::operation::list_scope_snapshots::ListScopeSnapshotsError::ValidationException(inner) => Error::ValidationException(inner),
1127            crate::operation::list_scope_snapshots::ListScopeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
1128        }
1129    }
1130}
1131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1132where
1133    R: Send + Sync + std::fmt::Debug + 'static,
1134{
1135    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1136        match err {
1137            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1138            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1139                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1140                source: err.into(),
1141            }),
1142        }
1143    }
1144}
1145impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1146    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1147        match err {
1148            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1149            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1150                Error::InternalServerException(inner)
1151            }
1152            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1153                Error::ResourceNotFoundException(inner)
1154            }
1155            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1156            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1157            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1158        }
1159    }
1160}
1161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
1162where
1163    R: Send + Sync + std::fmt::Debug + 'static,
1164{
1165    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> Self {
1166        match err {
1167            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1168            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1169                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1170                source: err.into(),
1171            }),
1172        }
1173    }
1174}
1175impl From<crate::operation::list_templates::ListTemplatesError> for Error {
1176    fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
1177        match err {
1178            crate::operation::list_templates::ListTemplatesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1179            crate::operation::list_templates::ListTemplatesError::InternalServerException(inner) => Error::InternalServerException(inner),
1180            crate::operation::list_templates::ListTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1181            crate::operation::list_templates::ListTemplatesError::ValidationException(inner) => Error::ValidationException(inner),
1182            crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1183        }
1184    }
1185}
1186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_snapshots::ListTemplateSnapshotsError, R>> for Error
1187where
1188    R: Send + Sync + std::fmt::Debug + 'static,
1189{
1190    fn from(
1191        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_snapshots::ListTemplateSnapshotsError, R>,
1192    ) -> Self {
1193        match err {
1194            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1195            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1196                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1197                source: err.into(),
1198            }),
1199        }
1200    }
1201}
1202impl From<crate::operation::list_template_snapshots::ListTemplateSnapshotsError> for Error {
1203    fn from(err: crate::operation::list_template_snapshots::ListTemplateSnapshotsError) -> Self {
1204        match err {
1205            crate::operation::list_template_snapshots::ListTemplateSnapshotsError::AccessDeniedException(inner) => {
1206                Error::AccessDeniedException(inner)
1207            }
1208            crate::operation::list_template_snapshots::ListTemplateSnapshotsError::InternalServerException(inner) => {
1209                Error::InternalServerException(inner)
1210            }
1211            crate::operation::list_template_snapshots::ListTemplateSnapshotsError::ResourceNotFoundException(inner) => {
1212                Error::ResourceNotFoundException(inner)
1213            }
1214            crate::operation::list_template_snapshots::ListTemplateSnapshotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1215            crate::operation::list_template_snapshots::ListTemplateSnapshotsError::ValidationException(inner) => Error::ValidationException(inner),
1216            crate::operation::list_template_snapshots::ListTemplateSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
1217        }
1218    }
1219}
1220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_admin_account::PutAdminAccountError, R>> for Error
1221where
1222    R: Send + Sync + std::fmt::Debug + 'static,
1223{
1224    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_admin_account::PutAdminAccountError, R>) -> Self {
1225        match err {
1226            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1227            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1228                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1229                source: err.into(),
1230            }),
1231        }
1232    }
1233}
1234impl From<crate::operation::put_admin_account::PutAdminAccountError> for Error {
1235    fn from(err: crate::operation::put_admin_account::PutAdminAccountError) -> Self {
1236        match err {
1237            crate::operation::put_admin_account::PutAdminAccountError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1238            crate::operation::put_admin_account::PutAdminAccountError::ConflictException(inner) => Error::ConflictException(inner),
1239            crate::operation::put_admin_account::PutAdminAccountError::InternalServerException(inner) => Error::InternalServerException(inner),
1240            crate::operation::put_admin_account::PutAdminAccountError::ServiceQuotaExceededException(inner) => {
1241                Error::ServiceQuotaExceededException(inner)
1242            }
1243            crate::operation::put_admin_account::PutAdminAccountError::ServiceUnavailableException(inner) => {
1244                Error::ServiceUnavailableException(inner)
1245            }
1246            crate::operation::put_admin_account::PutAdminAccountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1247            crate::operation::put_admin_account::PutAdminAccountError::ValidationException(inner) => Error::ValidationException(inner),
1248            crate::operation::put_admin_account::PutAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
1249        }
1250    }
1251}
1252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1253where
1254    R: Send + Sync + std::fmt::Debug + 'static,
1255{
1256    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1257        match err {
1258            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1259            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1260                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1261                source: err.into(),
1262            }),
1263        }
1264    }
1265}
1266impl From<crate::operation::tag_resource::TagResourceError> for Error {
1267    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1268        match err {
1269            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1270            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1271            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1272            crate::operation::tag_resource::TagResourceError::TagPolicyViolationException(inner) => Error::TagPolicyViolationException(inner),
1273            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1274            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1275            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1276        }
1277    }
1278}
1279impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1280where
1281    R: Send + Sync + std::fmt::Debug + 'static,
1282{
1283    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1284        match err {
1285            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1286            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1287                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1288                source: err.into(),
1289            }),
1290        }
1291    }
1292}
1293impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1294    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1295        match err {
1296            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1297            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1298            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1299            crate::operation::untag_resource::UntagResourceError::TagPolicyViolationException(inner) => Error::TagPolicyViolationException(inner),
1300            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1301            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1302            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1303        }
1304    }
1305}
1306impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deployment::UpdateDeploymentError, R>> for Error
1307where
1308    R: Send + Sync + std::fmt::Debug + 'static,
1309{
1310    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deployment::UpdateDeploymentError, R>) -> Self {
1311        match err {
1312            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1313            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1314                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1315                source: err.into(),
1316            }),
1317        }
1318    }
1319}
1320impl From<crate::operation::update_deployment::UpdateDeploymentError> for Error {
1321    fn from(err: crate::operation::update_deployment::UpdateDeploymentError) -> Self {
1322        match err {
1323            crate::operation::update_deployment::UpdateDeploymentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1324            crate::operation::update_deployment::UpdateDeploymentError::ConflictException(inner) => Error::ConflictException(inner),
1325            crate::operation::update_deployment::UpdateDeploymentError::InternalServerException(inner) => Error::InternalServerException(inner),
1326            crate::operation::update_deployment::UpdateDeploymentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1327            crate::operation::update_deployment::UpdateDeploymentError::ServiceQuotaExceededException(inner) => {
1328                Error::ServiceQuotaExceededException(inner)
1329            }
1330            crate::operation::update_deployment::UpdateDeploymentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1331            crate::operation::update_deployment::UpdateDeploymentError::ValidationException(inner) => Error::ValidationException(inner),
1332            crate::operation::update_deployment::UpdateDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
1333        }
1334    }
1335}
1336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_policy::UpdatePolicyError, R>> for Error
1337where
1338    R: Send + Sync + std::fmt::Debug + 'static,
1339{
1340    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_policy::UpdatePolicyError, R>) -> Self {
1341        match err {
1342            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1343            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1344                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1345                source: err.into(),
1346            }),
1347        }
1348    }
1349}
1350impl From<crate::operation::update_policy::UpdatePolicyError> for Error {
1351    fn from(err: crate::operation::update_policy::UpdatePolicyError) -> Self {
1352        match err {
1353            crate::operation::update_policy::UpdatePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1354            crate::operation::update_policy::UpdatePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1355            crate::operation::update_policy::UpdatePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1356            crate::operation::update_policy::UpdatePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1357            crate::operation::update_policy::UpdatePolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1358            crate::operation::update_policy::UpdatePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1359            crate::operation::update_policy::UpdatePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1360            crate::operation::update_policy::UpdatePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1361        }
1362    }
1363}
1364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>> for Error
1365where
1366    R: Send + Sync + std::fmt::Debug + 'static,
1367{
1368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>) -> Self {
1369        match err {
1370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1373                source: err.into(),
1374            }),
1375        }
1376    }
1377}
1378impl From<crate::operation::update_rule::UpdateRuleError> for Error {
1379    fn from(err: crate::operation::update_rule::UpdateRuleError) -> Self {
1380        match err {
1381            crate::operation::update_rule::UpdateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1382            crate::operation::update_rule::UpdateRuleError::ConflictException(inner) => Error::ConflictException(inner),
1383            crate::operation::update_rule::UpdateRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1384            crate::operation::update_rule::UpdateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1385            crate::operation::update_rule::UpdateRuleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1386            crate::operation::update_rule::UpdateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1387            crate::operation::update_rule::UpdateRuleError::ValidationException(inner) => Error::ValidationException(inner),
1388            crate::operation::update_rule::UpdateRuleError::Unhandled(inner) => Error::Unhandled(inner),
1389        }
1390    }
1391}
1392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scope::UpdateScopeError, R>> for Error
1393where
1394    R: Send + Sync + std::fmt::Debug + 'static,
1395{
1396    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scope::UpdateScopeError, R>) -> Self {
1397        match err {
1398            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1399            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1400                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1401                source: err.into(),
1402            }),
1403        }
1404    }
1405}
1406impl From<crate::operation::update_scope::UpdateScopeError> for Error {
1407    fn from(err: crate::operation::update_scope::UpdateScopeError) -> Self {
1408        match err {
1409            crate::operation::update_scope::UpdateScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1410            crate::operation::update_scope::UpdateScopeError::ConflictException(inner) => Error::ConflictException(inner),
1411            crate::operation::update_scope::UpdateScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
1412            crate::operation::update_scope::UpdateScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1413            crate::operation::update_scope::UpdateScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1414            crate::operation::update_scope::UpdateScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1415            crate::operation::update_scope::UpdateScopeError::ValidationException(inner) => Error::ValidationException(inner),
1416            crate::operation::update_scope::UpdateScopeError::Unhandled(inner) => Error::Unhandled(inner),
1417        }
1418    }
1419}
1420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>> for Error
1421where
1422    R: Send + Sync + std::fmt::Debug + 'static,
1423{
1424    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>) -> Self {
1425        match err {
1426            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1427            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1428                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1429                source: err.into(),
1430            }),
1431        }
1432    }
1433}
1434impl From<crate::operation::update_template::UpdateTemplateError> for Error {
1435    fn from(err: crate::operation::update_template::UpdateTemplateError) -> Self {
1436        match err {
1437            crate::operation::update_template::UpdateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1438            crate::operation::update_template::UpdateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
1439            crate::operation::update_template::UpdateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
1440            crate::operation::update_template::UpdateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1441            crate::operation::update_template::UpdateTemplateError::ServiceQuotaExceededException(inner) => {
1442                Error::ServiceQuotaExceededException(inner)
1443            }
1444            crate::operation::update_template::UpdateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1445            crate::operation::update_template::UpdateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1446            crate::operation::update_template::UpdateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1447        }
1448    }
1449}
1450impl ::std::error::Error for Error {
1451    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1452        match self {
1453            Error::AccessDeniedException(inner) => inner.source(),
1454            Error::ConflictException(inner) => inner.source(),
1455            Error::InternalServerException(inner) => inner.source(),
1456            Error::ResourceNotFoundException(inner) => inner.source(),
1457            Error::ServiceQuotaExceededException(inner) => inner.source(),
1458            Error::ServiceUnavailableException(inner) => inner.source(),
1459            Error::TagPolicyViolationException(inner) => inner.source(),
1460            Error::ThrottlingException(inner) => inner.source(),
1461            Error::ValidationException(inner) => inner.source(),
1462            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1463        }
1464    }
1465}
1466impl ::aws_types::request_id::RequestId for Error {
1467    fn request_id(&self) -> Option<&str> {
1468        match self {
1469            Self::AccessDeniedException(e) => e.request_id(),
1470            Self::ConflictException(e) => e.request_id(),
1471            Self::InternalServerException(e) => e.request_id(),
1472            Self::ResourceNotFoundException(e) => e.request_id(),
1473            Self::ServiceQuotaExceededException(e) => e.request_id(),
1474            Self::ServiceUnavailableException(e) => e.request_id(),
1475            Self::TagPolicyViolationException(e) => e.request_id(),
1476            Self::ThrottlingException(e) => e.request_id(),
1477            Self::ValidationException(e) => e.request_id(),
1478            Self::Unhandled(e) => e.meta.request_id(),
1479        }
1480    }
1481}