aws_sdk_pcaconnectorad/
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 can receive this error if you attempt to create a resource share when you don't have the required permissions. This can be caused by insufficient permissions in policies attached to your Amazon Web Services Identity and Access Management (IAM) principal. It can also happen because of restrictions in place from an Amazon Web Services Organizations service control policy (SCP) that affects your Amazon Web Services account.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>This request cannot be completed for one of the following reasons because the requested resource was being concurrently modified by another request.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The request processing has failed because of an unknown error, exception or failure with an internal server.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>Request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The limit on the number of requests per second was exceeded.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>An input validation error occurred. For example, invalid characters in a template name, or if a pagination token is invalid.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::create_connector::CreateConnectorError> for Error {
86    fn from(err: crate::operation::create_connector::CreateConnectorError) -> Self {
87        match err {
88            crate::operation::create_connector::CreateConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::create_connector::CreateConnectorError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::create_connector::CreateConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::create_connector::CreateConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92            crate::operation::create_connector::CreateConnectorError::ServiceQuotaExceededException(inner) => {
93                Error::ServiceQuotaExceededException(inner)
94            }
95            crate::operation::create_connector::CreateConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
96            crate::operation::create_connector::CreateConnectorError::ValidationException(inner) => Error::ValidationException(inner),
97            crate::operation::create_connector::CreateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
98        }
99    }
100}
101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_directory_registration::CreateDirectoryRegistrationError, R>>
102    for Error
103where
104    R: Send + Sync + std::fmt::Debug + 'static,
105{
106    fn from(
107        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_directory_registration::CreateDirectoryRegistrationError, R>,
108    ) -> Self {
109        match err {
110            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
111            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
112                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
113                source: err.into(),
114            }),
115        }
116    }
117}
118impl From<crate::operation::create_directory_registration::CreateDirectoryRegistrationError> for Error {
119    fn from(err: crate::operation::create_directory_registration::CreateDirectoryRegistrationError) -> Self {
120        match err {
121            crate::operation::create_directory_registration::CreateDirectoryRegistrationError::AccessDeniedException(inner) => {
122                Error::AccessDeniedException(inner)
123            }
124            crate::operation::create_directory_registration::CreateDirectoryRegistrationError::ConflictException(inner) => {
125                Error::ConflictException(inner)
126            }
127            crate::operation::create_directory_registration::CreateDirectoryRegistrationError::InternalServerException(inner) => {
128                Error::InternalServerException(inner)
129            }
130            crate::operation::create_directory_registration::CreateDirectoryRegistrationError::ResourceNotFoundException(inner) => {
131                Error::ResourceNotFoundException(inner)
132            }
133            crate::operation::create_directory_registration::CreateDirectoryRegistrationError::ThrottlingException(inner) => {
134                Error::ThrottlingException(inner)
135            }
136            crate::operation::create_directory_registration::CreateDirectoryRegistrationError::ValidationException(inner) => {
137                Error::ValidationException(inner)
138            }
139            crate::operation::create_directory_registration::CreateDirectoryRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
140        }
141    }
142}
143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_principal_name::CreateServicePrincipalNameError, R>>
144    for Error
145where
146    R: Send + Sync + std::fmt::Debug + 'static,
147{
148    fn from(
149        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_principal_name::CreateServicePrincipalNameError, R>,
150    ) -> Self {
151        match err {
152            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
153            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
154                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
155                source: err.into(),
156            }),
157        }
158    }
159}
160impl From<crate::operation::create_service_principal_name::CreateServicePrincipalNameError> for Error {
161    fn from(err: crate::operation::create_service_principal_name::CreateServicePrincipalNameError) -> Self {
162        match err {
163            crate::operation::create_service_principal_name::CreateServicePrincipalNameError::AccessDeniedException(inner) => {
164                Error::AccessDeniedException(inner)
165            }
166            crate::operation::create_service_principal_name::CreateServicePrincipalNameError::ConflictException(inner) => {
167                Error::ConflictException(inner)
168            }
169            crate::operation::create_service_principal_name::CreateServicePrincipalNameError::InternalServerException(inner) => {
170                Error::InternalServerException(inner)
171            }
172            crate::operation::create_service_principal_name::CreateServicePrincipalNameError::ResourceNotFoundException(inner) => {
173                Error::ResourceNotFoundException(inner)
174            }
175            crate::operation::create_service_principal_name::CreateServicePrincipalNameError::ThrottlingException(inner) => {
176                Error::ThrottlingException(inner)
177            }
178            crate::operation::create_service_principal_name::CreateServicePrincipalNameError::ValidationException(inner) => {
179                Error::ValidationException(inner)
180            }
181            crate::operation::create_service_principal_name::CreateServicePrincipalNameError::Unhandled(inner) => Error::Unhandled(inner),
182        }
183    }
184}
185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>> for Error
186where
187    R: Send + Sync + std::fmt::Debug + 'static,
188{
189    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>) -> Self {
190        match err {
191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
194                source: err.into(),
195            }),
196        }
197    }
198}
199impl From<crate::operation::create_template::CreateTemplateError> for Error {
200    fn from(err: crate::operation::create_template::CreateTemplateError) -> Self {
201        match err {
202            crate::operation::create_template::CreateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
203            crate::operation::create_template::CreateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
204            crate::operation::create_template::CreateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
205            crate::operation::create_template::CreateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
206            crate::operation::create_template::CreateTemplateError::ServiceQuotaExceededException(inner) => {
207                Error::ServiceQuotaExceededException(inner)
208            }
209            crate::operation::create_template::CreateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
210            crate::operation::create_template::CreateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
211            crate::operation::create_template::CreateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
212        }
213    }
214}
215impl<R>
216    From<
217        ::aws_smithy_runtime_api::client::result::SdkError<
218            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError,
219            R,
220        >,
221    > for Error
222where
223    R: Send + Sync + std::fmt::Debug + 'static,
224{
225    fn from(
226        err: ::aws_smithy_runtime_api::client::result::SdkError<
227            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError,
228            R,
229        >,
230    ) -> Self {
231        match err {
232            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
233            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
234                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
235                source: err.into(),
236            }),
237        }
238    }
239}
240impl From<crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError> for Error {
241    fn from(err: crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError) -> Self {
242        match err {
243            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
244            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::ConflictException(inner) => Error::ConflictException(inner),
245            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::InternalServerException(inner) => Error::InternalServerException(inner),
246            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
247            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
248            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
249            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::ValidationException(inner) => Error::ValidationException(inner),
250            crate::operation::create_template_group_access_control_entry::CreateTemplateGroupAccessControlEntryError::Unhandled(inner) => Error::Unhandled(inner),
251        }
252    }
253}
254impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>> for Error
255where
256    R: Send + Sync + std::fmt::Debug + 'static,
257{
258    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>) -> Self {
259        match err {
260            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
261            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
262                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
263                source: err.into(),
264            }),
265        }
266    }
267}
268impl From<crate::operation::delete_connector::DeleteConnectorError> for Error {
269    fn from(err: crate::operation::delete_connector::DeleteConnectorError) -> Self {
270        match err {
271            crate::operation::delete_connector::DeleteConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
272            crate::operation::delete_connector::DeleteConnectorError::ConflictException(inner) => Error::ConflictException(inner),
273            crate::operation::delete_connector::DeleteConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
274            crate::operation::delete_connector::DeleteConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
275            crate::operation::delete_connector::DeleteConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
276            crate::operation::delete_connector::DeleteConnectorError::ValidationException(inner) => Error::ValidationException(inner),
277            crate::operation::delete_connector::DeleteConnectorError::Unhandled(inner) => Error::Unhandled(inner),
278        }
279    }
280}
281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError, R>>
282    for Error
283where
284    R: Send + Sync + std::fmt::Debug + 'static,
285{
286    fn from(
287        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError, R>,
288    ) -> Self {
289        match err {
290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
293                source: err.into(),
294            }),
295        }
296    }
297}
298impl From<crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError> for Error {
299    fn from(err: crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError) -> Self {
300        match err {
301            crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError::AccessDeniedException(inner) => {
302                Error::AccessDeniedException(inner)
303            }
304            crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError::ConflictException(inner) => {
305                Error::ConflictException(inner)
306            }
307            crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError::InternalServerException(inner) => {
308                Error::InternalServerException(inner)
309            }
310            crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError::ThrottlingException(inner) => {
311                Error::ThrottlingException(inner)
312            }
313            crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError::ValidationException(inner) => {
314                Error::ValidationException(inner)
315            }
316            crate::operation::delete_directory_registration::DeleteDirectoryRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
317        }
318    }
319}
320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError, R>>
321    for Error
322where
323    R: Send + Sync + std::fmt::Debug + 'static,
324{
325    fn from(
326        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError, R>,
327    ) -> Self {
328        match err {
329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
332                source: err.into(),
333            }),
334        }
335    }
336}
337impl From<crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError> for Error {
338    fn from(err: crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError) -> Self {
339        match err {
340            crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError::AccessDeniedException(inner) => {
341                Error::AccessDeniedException(inner)
342            }
343            crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError::ConflictException(inner) => {
344                Error::ConflictException(inner)
345            }
346            crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError::InternalServerException(inner) => {
347                Error::InternalServerException(inner)
348            }
349            crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError::ThrottlingException(inner) => {
350                Error::ThrottlingException(inner)
351            }
352            crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError::ValidationException(inner) => {
353                Error::ValidationException(inner)
354            }
355            crate::operation::delete_service_principal_name::DeleteServicePrincipalNameError::Unhandled(inner) => Error::Unhandled(inner),
356        }
357    }
358}
359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>> for Error
360where
361    R: Send + Sync + std::fmt::Debug + 'static,
362{
363    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>) -> Self {
364        match err {
365            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
366            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
367                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
368                source: err.into(),
369            }),
370        }
371    }
372}
373impl From<crate::operation::delete_template::DeleteTemplateError> for Error {
374    fn from(err: crate::operation::delete_template::DeleteTemplateError) -> Self {
375        match err {
376            crate::operation::delete_template::DeleteTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
377            crate::operation::delete_template::DeleteTemplateError::ConflictException(inner) => Error::ConflictException(inner),
378            crate::operation::delete_template::DeleteTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
379            crate::operation::delete_template::DeleteTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
380            crate::operation::delete_template::DeleteTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
381            crate::operation::delete_template::DeleteTemplateError::ValidationException(inner) => Error::ValidationException(inner),
382            crate::operation::delete_template::DeleteTemplateError::Unhandled(inner) => Error::Unhandled(inner),
383        }
384    }
385}
386impl<R>
387    From<
388        ::aws_smithy_runtime_api::client::result::SdkError<
389            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError,
390            R,
391        >,
392    > for Error
393where
394    R: Send + Sync + std::fmt::Debug + 'static,
395{
396    fn from(
397        err: ::aws_smithy_runtime_api::client::result::SdkError<
398            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError,
399            R,
400        >,
401    ) -> Self {
402        match err {
403            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
404            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
405                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
406                source: err.into(),
407            }),
408        }
409    }
410}
411impl From<crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError> for Error {
412    fn from(err: crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError) -> Self {
413        match err {
414            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError::AccessDeniedException(
415                inner,
416            ) => Error::AccessDeniedException(inner),
417            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError::ConflictException(inner) => {
418                Error::ConflictException(inner)
419            }
420            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError::InternalServerException(
421                inner,
422            ) => Error::InternalServerException(inner),
423            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError::ResourceNotFoundException(
424                inner,
425            ) => Error::ResourceNotFoundException(inner),
426            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError::ThrottlingException(inner) => {
427                Error::ThrottlingException(inner)
428            }
429            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError::ValidationException(inner) => {
430                Error::ValidationException(inner)
431            }
432            crate::operation::delete_template_group_access_control_entry::DeleteTemplateGroupAccessControlEntryError::Unhandled(inner) => {
433                Error::Unhandled(inner)
434            }
435        }
436    }
437}
438impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connector::GetConnectorError, 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::get_connector::GetConnectorError, 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::get_connector::GetConnectorError> for Error {
453    fn from(err: crate::operation::get_connector::GetConnectorError) -> Self {
454        match err {
455            crate::operation::get_connector::GetConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
456            crate::operation::get_connector::GetConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
457            crate::operation::get_connector::GetConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
458            crate::operation::get_connector::GetConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
459            crate::operation::get_connector::GetConnectorError::ValidationException(inner) => Error::ValidationException(inner),
460            crate::operation::get_connector::GetConnectorError::Unhandled(inner) => Error::Unhandled(inner),
461        }
462    }
463}
464impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_directory_registration::GetDirectoryRegistrationError, R>>
465    for Error
466where
467    R: Send + Sync + std::fmt::Debug + 'static,
468{
469    fn from(
470        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_directory_registration::GetDirectoryRegistrationError, R>,
471    ) -> Self {
472        match err {
473            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
474            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
475                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
476                source: err.into(),
477            }),
478        }
479    }
480}
481impl From<crate::operation::get_directory_registration::GetDirectoryRegistrationError> for Error {
482    fn from(err: crate::operation::get_directory_registration::GetDirectoryRegistrationError) -> Self {
483        match err {
484            crate::operation::get_directory_registration::GetDirectoryRegistrationError::AccessDeniedException(inner) => {
485                Error::AccessDeniedException(inner)
486            }
487            crate::operation::get_directory_registration::GetDirectoryRegistrationError::InternalServerException(inner) => {
488                Error::InternalServerException(inner)
489            }
490            crate::operation::get_directory_registration::GetDirectoryRegistrationError::ResourceNotFoundException(inner) => {
491                Error::ResourceNotFoundException(inner)
492            }
493            crate::operation::get_directory_registration::GetDirectoryRegistrationError::ThrottlingException(inner) => {
494                Error::ThrottlingException(inner)
495            }
496            crate::operation::get_directory_registration::GetDirectoryRegistrationError::ValidationException(inner) => {
497                Error::ValidationException(inner)
498            }
499            crate::operation::get_directory_registration::GetDirectoryRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
500        }
501    }
502}
503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_principal_name::GetServicePrincipalNameError, R>>
504    for Error
505where
506    R: Send + Sync + std::fmt::Debug + 'static,
507{
508    fn from(
509        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_principal_name::GetServicePrincipalNameError, R>,
510    ) -> Self {
511        match err {
512            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
513            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
514                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
515                source: err.into(),
516            }),
517        }
518    }
519}
520impl From<crate::operation::get_service_principal_name::GetServicePrincipalNameError> for Error {
521    fn from(err: crate::operation::get_service_principal_name::GetServicePrincipalNameError) -> Self {
522        match err {
523            crate::operation::get_service_principal_name::GetServicePrincipalNameError::AccessDeniedException(inner) => {
524                Error::AccessDeniedException(inner)
525            }
526            crate::operation::get_service_principal_name::GetServicePrincipalNameError::InternalServerException(inner) => {
527                Error::InternalServerException(inner)
528            }
529            crate::operation::get_service_principal_name::GetServicePrincipalNameError::ResourceNotFoundException(inner) => {
530                Error::ResourceNotFoundException(inner)
531            }
532            crate::operation::get_service_principal_name::GetServicePrincipalNameError::ThrottlingException(inner) => {
533                Error::ThrottlingException(inner)
534            }
535            crate::operation::get_service_principal_name::GetServicePrincipalNameError::ValidationException(inner) => {
536                Error::ValidationException(inner)
537            }
538            crate::operation::get_service_principal_name::GetServicePrincipalNameError::Unhandled(inner) => Error::Unhandled(inner),
539        }
540    }
541}
542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, 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::get_template::GetTemplateError, 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::get_template::GetTemplateError> for Error {
557    fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
558        match err {
559            crate::operation::get_template::GetTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
560            crate::operation::get_template::GetTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
561            crate::operation::get_template::GetTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
562            crate::operation::get_template::GetTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
563            crate::operation::get_template::GetTemplateError::ValidationException(inner) => Error::ValidationException(inner),
564            crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
565        }
566    }
567}
568impl<R>
569    From<
570        ::aws_smithy_runtime_api::client::result::SdkError<
571            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError,
572            R,
573        >,
574    > for Error
575where
576    R: Send + Sync + std::fmt::Debug + 'static,
577{
578    fn from(
579        err: ::aws_smithy_runtime_api::client::result::SdkError<
580            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError,
581            R,
582        >,
583    ) -> Self {
584        match err {
585            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
586            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
587                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
588                source: err.into(),
589            }),
590        }
591    }
592}
593impl From<crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError> for Error {
594    fn from(err: crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError) -> Self {
595        match err {
596            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError::AccessDeniedException(inner) => {
597                Error::AccessDeniedException(inner)
598            }
599            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError::InternalServerException(inner) => {
600                Error::InternalServerException(inner)
601            }
602            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError::ResourceNotFoundException(inner) => {
603                Error::ResourceNotFoundException(inner)
604            }
605            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError::ThrottlingException(inner) => {
606                Error::ThrottlingException(inner)
607            }
608            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError::ValidationException(inner) => {
609                Error::ValidationException(inner)
610            }
611            crate::operation::get_template_group_access_control_entry::GetTemplateGroupAccessControlEntryError::Unhandled(inner) => {
612                Error::Unhandled(inner)
613            }
614        }
615    }
616}
617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>> for Error
618where
619    R: Send + Sync + std::fmt::Debug + 'static,
620{
621    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>) -> Self {
622        match err {
623            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
624            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
625                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
626                source: err.into(),
627            }),
628        }
629    }
630}
631impl From<crate::operation::list_connectors::ListConnectorsError> for Error {
632    fn from(err: crate::operation::list_connectors::ListConnectorsError) -> Self {
633        match err {
634            crate::operation::list_connectors::ListConnectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
635            crate::operation::list_connectors::ListConnectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
636            crate::operation::list_connectors::ListConnectorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
637            crate::operation::list_connectors::ListConnectorsError::ValidationException(inner) => Error::ValidationException(inner),
638            crate::operation::list_connectors::ListConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
639        }
640    }
641}
642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_directory_registrations::ListDirectoryRegistrationsError, R>>
643    for Error
644where
645    R: Send + Sync + std::fmt::Debug + 'static,
646{
647    fn from(
648        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_directory_registrations::ListDirectoryRegistrationsError, R>,
649    ) -> Self {
650        match err {
651            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
652            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
653                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
654                source: err.into(),
655            }),
656        }
657    }
658}
659impl From<crate::operation::list_directory_registrations::ListDirectoryRegistrationsError> for Error {
660    fn from(err: crate::operation::list_directory_registrations::ListDirectoryRegistrationsError) -> Self {
661        match err {
662            crate::operation::list_directory_registrations::ListDirectoryRegistrationsError::AccessDeniedException(inner) => {
663                Error::AccessDeniedException(inner)
664            }
665            crate::operation::list_directory_registrations::ListDirectoryRegistrationsError::InternalServerException(inner) => {
666                Error::InternalServerException(inner)
667            }
668            crate::operation::list_directory_registrations::ListDirectoryRegistrationsError::ThrottlingException(inner) => {
669                Error::ThrottlingException(inner)
670            }
671            crate::operation::list_directory_registrations::ListDirectoryRegistrationsError::ValidationException(inner) => {
672                Error::ValidationException(inner)
673            }
674            crate::operation::list_directory_registrations::ListDirectoryRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
675        }
676    }
677}
678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_principal_names::ListServicePrincipalNamesError, R>>
679    for Error
680where
681    R: Send + Sync + std::fmt::Debug + 'static,
682{
683    fn from(
684        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_principal_names::ListServicePrincipalNamesError, R>,
685    ) -> Self {
686        match err {
687            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
688            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
689                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
690                source: err.into(),
691            }),
692        }
693    }
694}
695impl From<crate::operation::list_service_principal_names::ListServicePrincipalNamesError> for Error {
696    fn from(err: crate::operation::list_service_principal_names::ListServicePrincipalNamesError) -> Self {
697        match err {
698            crate::operation::list_service_principal_names::ListServicePrincipalNamesError::AccessDeniedException(inner) => {
699                Error::AccessDeniedException(inner)
700            }
701            crate::operation::list_service_principal_names::ListServicePrincipalNamesError::InternalServerException(inner) => {
702                Error::InternalServerException(inner)
703            }
704            crate::operation::list_service_principal_names::ListServicePrincipalNamesError::ResourceNotFoundException(inner) => {
705                Error::ResourceNotFoundException(inner)
706            }
707            crate::operation::list_service_principal_names::ListServicePrincipalNamesError::ThrottlingException(inner) => {
708                Error::ThrottlingException(inner)
709            }
710            crate::operation::list_service_principal_names::ListServicePrincipalNamesError::ValidationException(inner) => {
711                Error::ValidationException(inner)
712            }
713            crate::operation::list_service_principal_names::ListServicePrincipalNamesError::Unhandled(inner) => Error::Unhandled(inner),
714        }
715    }
716}
717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
718where
719    R: Send + Sync + std::fmt::Debug + 'static,
720{
721    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
722        match err {
723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726                source: err.into(),
727            }),
728        }
729    }
730}
731impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
732    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
733        match err {
734            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
735            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
736                Error::InternalServerException(inner)
737            }
738            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
739                Error::ResourceNotFoundException(inner)
740            }
741            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
742            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
743            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
744        }
745    }
746}
747impl<R>
748    From<
749        ::aws_smithy_runtime_api::client::result::SdkError<
750            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError,
751            R,
752        >,
753    > for Error
754where
755    R: Send + Sync + std::fmt::Debug + 'static,
756{
757    fn from(
758        err: ::aws_smithy_runtime_api::client::result::SdkError<
759            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError,
760            R,
761        >,
762    ) -> Self {
763        match err {
764            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
765            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
766                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
767                source: err.into(),
768            }),
769        }
770    }
771}
772impl From<crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError> for Error {
773    fn from(err: crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError) -> Self {
774        match err {
775            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError::AccessDeniedException(
776                inner,
777            ) => Error::AccessDeniedException(inner),
778            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError::InternalServerException(
779                inner,
780            ) => Error::InternalServerException(inner),
781            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError::ResourceNotFoundException(
782                inner,
783            ) => Error::ResourceNotFoundException(inner),
784            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError::ThrottlingException(inner) => {
785                Error::ThrottlingException(inner)
786            }
787            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError::ValidationException(inner) => {
788                Error::ValidationException(inner)
789            }
790            crate::operation::list_template_group_access_control_entries::ListTemplateGroupAccessControlEntriesError::Unhandled(inner) => {
791                Error::Unhandled(inner)
792            }
793        }
794    }
795}
796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
797where
798    R: Send + Sync + std::fmt::Debug + 'static,
799{
800    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> 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_templates::ListTemplatesError> for Error {
811    fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
812        match err {
813            crate::operation::list_templates::ListTemplatesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
814            crate::operation::list_templates::ListTemplatesError::InternalServerException(inner) => Error::InternalServerException(inner),
815            crate::operation::list_templates::ListTemplatesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
816            crate::operation::list_templates::ListTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
817            crate::operation::list_templates::ListTemplatesError::ValidationException(inner) => Error::ValidationException(inner),
818            crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
819        }
820    }
821}
822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
823where
824    R: Send + Sync + std::fmt::Debug + 'static,
825{
826    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
827        match err {
828            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
829            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
830                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
831                source: err.into(),
832            }),
833        }
834    }
835}
836impl From<crate::operation::tag_resource::TagResourceError> for Error {
837    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
838        match err {
839            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
840            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
841            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
842            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
843            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
844            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
845        }
846    }
847}
848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
849where
850    R: Send + Sync + std::fmt::Debug + 'static,
851{
852    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
853        match err {
854            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
855            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
856                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
857                source: err.into(),
858            }),
859        }
860    }
861}
862impl From<crate::operation::untag_resource::UntagResourceError> for Error {
863    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
864        match err {
865            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
866            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
867            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
868            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
869            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
870            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
871        }
872    }
873}
874impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>> for Error
875where
876    R: Send + Sync + std::fmt::Debug + 'static,
877{
878    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>) -> Self {
879        match err {
880            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
881            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
882                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
883                source: err.into(),
884            }),
885        }
886    }
887}
888impl From<crate::operation::update_template::UpdateTemplateError> for Error {
889    fn from(err: crate::operation::update_template::UpdateTemplateError) -> Self {
890        match err {
891            crate::operation::update_template::UpdateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
892            crate::operation::update_template::UpdateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
893            crate::operation::update_template::UpdateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
894            crate::operation::update_template::UpdateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
895            crate::operation::update_template::UpdateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
896            crate::operation::update_template::UpdateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
897            crate::operation::update_template::UpdateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
898        }
899    }
900}
901impl<R>
902    From<
903        ::aws_smithy_runtime_api::client::result::SdkError<
904            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError,
905            R,
906        >,
907    > for Error
908where
909    R: Send + Sync + std::fmt::Debug + 'static,
910{
911    fn from(
912        err: ::aws_smithy_runtime_api::client::result::SdkError<
913            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError,
914            R,
915        >,
916    ) -> Self {
917        match err {
918            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
919            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
920                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
921                source: err.into(),
922            }),
923        }
924    }
925}
926impl From<crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError> for Error {
927    fn from(err: crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError) -> Self {
928        match err {
929            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError::AccessDeniedException(
930                inner,
931            ) => Error::AccessDeniedException(inner),
932            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError::ConflictException(inner) => {
933                Error::ConflictException(inner)
934            }
935            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError::InternalServerException(
936                inner,
937            ) => Error::InternalServerException(inner),
938            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError::ResourceNotFoundException(
939                inner,
940            ) => Error::ResourceNotFoundException(inner),
941            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError::ThrottlingException(inner) => {
942                Error::ThrottlingException(inner)
943            }
944            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError::ValidationException(inner) => {
945                Error::ValidationException(inner)
946            }
947            crate::operation::update_template_group_access_control_entry::UpdateTemplateGroupAccessControlEntryError::Unhandled(inner) => {
948                Error::Unhandled(inner)
949            }
950        }
951    }
952}
953impl ::std::error::Error for Error {
954    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
955        match self {
956            Error::AccessDeniedException(inner) => inner.source(),
957            Error::ConflictException(inner) => inner.source(),
958            Error::InternalServerException(inner) => inner.source(),
959            Error::ResourceNotFoundException(inner) => inner.source(),
960            Error::ServiceQuotaExceededException(inner) => inner.source(),
961            Error::ThrottlingException(inner) => inner.source(),
962            Error::ValidationException(inner) => inner.source(),
963            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
964        }
965    }
966}
967impl ::aws_types::request_id::RequestId for Error {
968    fn request_id(&self) -> Option<&str> {
969        match self {
970            Self::AccessDeniedException(e) => e.request_id(),
971            Self::ConflictException(e) => e.request_id(),
972            Self::InternalServerException(e) => e.request_id(),
973            Self::ResourceNotFoundException(e) => e.request_id(),
974            Self::ServiceQuotaExceededException(e) => e.request_id(),
975            Self::ThrottlingException(e) => e.request_id(),
976            Self::ValidationException(e) => e.request_id(),
977            Self::Unhandled(e) => e.meta.request_id(),
978        }
979    }
980}