Skip to main content

aws_sdk_wickr/
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>The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.</p>
7    BadRequestError(crate::types::error::BadRequestError),
8    /// <p>Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.</p>
9    ForbiddenError(crate::types::error::ForbiddenError),
10    /// <p>An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.</p>
11    InternalServerError(crate::types::error::InternalServerError),
12    /// <p>The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.</p>
13    RateLimitError(crate::types::error::RateLimitError),
14    /// <p>The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.</p>
15    ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
16    /// <p>The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.</p>
17    UnauthorizedError(crate::types::error::UnauthorizedError),
18    /// <p>One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.</p>
19    ValidationError(crate::types::error::ValidationError),
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::BadRequestError(inner) => inner.fmt(f),
33            Error::ForbiddenError(inner) => inner.fmt(f),
34            Error::InternalServerError(inner) => inner.fmt(f),
35            Error::RateLimitError(inner) => inner.fmt(f),
36            Error::ResourceNotFoundError(inner) => inner.fmt(f),
37            Error::UnauthorizedError(inner) => inner.fmt(f),
38            Error::ValidationError(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::BadRequestError(inner) => inner.meta(),
61            Self::ForbiddenError(inner) => inner.meta(),
62            Self::InternalServerError(inner) => inner.meta(),
63            Self::RateLimitError(inner) => inner.meta(),
64            Self::ResourceNotFoundError(inner) => inner.meta(),
65            Self::UnauthorizedError(inner) => inner.meta(),
66            Self::ValidationError(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_user::BatchCreateUserError, 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::batch_create_user::BatchCreateUserError, 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::batch_create_user::BatchCreateUserError> for Error {
86    fn from(err: crate::operation::batch_create_user::BatchCreateUserError) -> Self {
87        match err {
88            crate::operation::batch_create_user::BatchCreateUserError::BadRequestError(inner) => Error::BadRequestError(inner),
89            crate::operation::batch_create_user::BatchCreateUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
90            crate::operation::batch_create_user::BatchCreateUserError::InternalServerError(inner) => Error::InternalServerError(inner),
91            crate::operation::batch_create_user::BatchCreateUserError::RateLimitError(inner) => Error::RateLimitError(inner),
92            crate::operation::batch_create_user::BatchCreateUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
93            crate::operation::batch_create_user::BatchCreateUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
94            crate::operation::batch_create_user::BatchCreateUserError::ValidationError(inner) => Error::ValidationError(inner),
95            crate::operation::batch_create_user::BatchCreateUserError::Unhandled(inner) => Error::Unhandled(inner),
96        }
97    }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_user::BatchDeleteUserError, R>> for Error
100where
101    R: Send + Sync + std::fmt::Debug + 'static,
102{
103    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_user::BatchDeleteUserError, R>) -> Self {
104        match err {
105            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
106            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
107                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
108                source: err.into(),
109            }),
110        }
111    }
112}
113impl From<crate::operation::batch_delete_user::BatchDeleteUserError> for Error {
114    fn from(err: crate::operation::batch_delete_user::BatchDeleteUserError) -> Self {
115        match err {
116            crate::operation::batch_delete_user::BatchDeleteUserError::BadRequestError(inner) => Error::BadRequestError(inner),
117            crate::operation::batch_delete_user::BatchDeleteUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
118            crate::operation::batch_delete_user::BatchDeleteUserError::InternalServerError(inner) => Error::InternalServerError(inner),
119            crate::operation::batch_delete_user::BatchDeleteUserError::RateLimitError(inner) => Error::RateLimitError(inner),
120            crate::operation::batch_delete_user::BatchDeleteUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
121            crate::operation::batch_delete_user::BatchDeleteUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
122            crate::operation::batch_delete_user::BatchDeleteUserError::ValidationError(inner) => Error::ValidationError(inner),
123            crate::operation::batch_delete_user::BatchDeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
124        }
125    }
126}
127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError, R>> for Error
128where
129    R: Send + Sync + std::fmt::Debug + 'static,
130{
131    fn from(
132        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError, R>,
133    ) -> Self {
134        match err {
135            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
136            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
137                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
138                source: err.into(),
139            }),
140        }
141    }
142}
143impl From<crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError> for Error {
144    fn from(err: crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError) -> Self {
145        match err {
146            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::BadRequestError(inner) => Error::BadRequestError(inner),
147            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::ForbiddenError(inner) => Error::ForbiddenError(inner),
148            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::InternalServerError(inner) => Error::InternalServerError(inner),
149            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::RateLimitError(inner) => Error::RateLimitError(inner),
150            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
151            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
152            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::ValidationError(inner) => Error::ValidationError(inner),
153            crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::Unhandled(inner) => Error::Unhandled(inner),
154        }
155    }
156}
157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reinvite_user::BatchReinviteUserError, 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::batch_reinvite_user::BatchReinviteUserError, 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::batch_reinvite_user::BatchReinviteUserError> for Error {
172    fn from(err: crate::operation::batch_reinvite_user::BatchReinviteUserError) -> Self {
173        match err {
174            crate::operation::batch_reinvite_user::BatchReinviteUserError::BadRequestError(inner) => Error::BadRequestError(inner),
175            crate::operation::batch_reinvite_user::BatchReinviteUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
176            crate::operation::batch_reinvite_user::BatchReinviteUserError::InternalServerError(inner) => Error::InternalServerError(inner),
177            crate::operation::batch_reinvite_user::BatchReinviteUserError::RateLimitError(inner) => Error::RateLimitError(inner),
178            crate::operation::batch_reinvite_user::BatchReinviteUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
179            crate::operation::batch_reinvite_user::BatchReinviteUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
180            crate::operation::batch_reinvite_user::BatchReinviteUserError::ValidationError(inner) => Error::ValidationError(inner),
181            crate::operation::batch_reinvite_user::BatchReinviteUserError::Unhandled(inner) => Error::Unhandled(inner),
182        }
183    }
184}
185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError, R>>
186    for Error
187where
188    R: Send + Sync + std::fmt::Debug + 'static,
189{
190    fn from(
191        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError, R>,
192    ) -> Self {
193        match err {
194            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
195            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
196                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
197                source: err.into(),
198            }),
199        }
200    }
201}
202impl From<crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError> for Error {
203    fn from(err: crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError) -> Self {
204        match err {
205            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::BadRequestError(inner) => Error::BadRequestError(inner),
206            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
207            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::InternalServerError(inner) => {
208                Error::InternalServerError(inner)
209            }
210            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::RateLimitError(inner) => Error::RateLimitError(inner),
211            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::ResourceNotFoundError(inner) => {
212                Error::ResourceNotFoundError(inner)
213            }
214            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::UnauthorizedError(inner) => {
215                Error::UnauthorizedError(inner)
216            }
217            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::ValidationError(inner) => Error::ValidationError(inner),
218            crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::Unhandled(inner) => Error::Unhandled(inner),
219        }
220    }
221}
222impl<R>
223    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError, R>>
224    for Error
225where
226    R: Send + Sync + std::fmt::Debug + 'static,
227{
228    fn from(
229        err: ::aws_smithy_runtime_api::client::result::SdkError<
230            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError,
231            R,
232        >,
233    ) -> Self {
234        match err {
235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
238                source: err.into(),
239            }),
240        }
241    }
242}
243impl From<crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError> for Error {
244    fn from(err: crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError) -> Self {
245        match err {
246            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::BadRequestError(inner) => {
247                Error::BadRequestError(inner)
248            }
249            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::ForbiddenError(inner) => {
250                Error::ForbiddenError(inner)
251            }
252            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::InternalServerError(inner) => {
253                Error::InternalServerError(inner)
254            }
255            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::RateLimitError(inner) => {
256                Error::RateLimitError(inner)
257            }
258            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::ResourceNotFoundError(inner) => {
259                Error::ResourceNotFoundError(inner)
260            }
261            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::UnauthorizedError(inner) => {
262                Error::UnauthorizedError(inner)
263            }
264            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::ValidationError(inner) => {
265                Error::ValidationError(inner)
266            }
267            crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::Unhandled(inner) => Error::Unhandled(inner),
268        }
269    }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>> for Error
272where
273    R: Send + Sync + std::fmt::Debug + 'static,
274{
275    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>) -> Self {
276        match err {
277            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
278            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
279                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
280                source: err.into(),
281            }),
282        }
283    }
284}
285impl From<crate::operation::create_bot::CreateBotError> for Error {
286    fn from(err: crate::operation::create_bot::CreateBotError) -> Self {
287        match err {
288            crate::operation::create_bot::CreateBotError::BadRequestError(inner) => Error::BadRequestError(inner),
289            crate::operation::create_bot::CreateBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
290            crate::operation::create_bot::CreateBotError::InternalServerError(inner) => Error::InternalServerError(inner),
291            crate::operation::create_bot::CreateBotError::RateLimitError(inner) => Error::RateLimitError(inner),
292            crate::operation::create_bot::CreateBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
293            crate::operation::create_bot::CreateBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
294            crate::operation::create_bot::CreateBotError::ValidationError(inner) => Error::ValidationError(inner),
295            crate::operation::create_bot::CreateBotError::Unhandled(inner) => Error::Unhandled(inner),
296        }
297    }
298}
299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_retention_bot::CreateDataRetentionBotError, R>>
300    for Error
301where
302    R: Send + Sync + std::fmt::Debug + 'static,
303{
304    fn from(
305        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_retention_bot::CreateDataRetentionBotError, R>,
306    ) -> Self {
307        match err {
308            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
309            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
310                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
311                source: err.into(),
312            }),
313        }
314    }
315}
316impl From<crate::operation::create_data_retention_bot::CreateDataRetentionBotError> for Error {
317    fn from(err: crate::operation::create_data_retention_bot::CreateDataRetentionBotError) -> Self {
318        match err {
319            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::BadRequestError(inner) => Error::BadRequestError(inner),
320            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
321            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::InternalServerError(inner) => Error::InternalServerError(inner),
322            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::RateLimitError(inner) => Error::RateLimitError(inner),
323            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::ResourceNotFoundError(inner) => {
324                Error::ResourceNotFoundError(inner)
325            }
326            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
327            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::ValidationError(inner) => Error::ValidationError(inner),
328            crate::operation::create_data_retention_bot::CreateDataRetentionBotError::Unhandled(inner) => Error::Unhandled(inner),
329        }
330    }
331}
332impl<R>
333    From<
334        ::aws_smithy_runtime_api::client::result::SdkError<
335            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError,
336            R,
337        >,
338    > for Error
339where
340    R: Send + Sync + std::fmt::Debug + 'static,
341{
342    fn from(
343        err: ::aws_smithy_runtime_api::client::result::SdkError<
344            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError,
345            R,
346        >,
347    ) -> Self {
348        match err {
349            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
350            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
351                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
352                source: err.into(),
353            }),
354        }
355    }
356}
357impl From<crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError> for Error {
358    fn from(err: crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError) -> Self {
359        match err {
360            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::BadRequestError(inner) => {
361                Error::BadRequestError(inner)
362            }
363            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::ForbiddenError(inner) => {
364                Error::ForbiddenError(inner)
365            }
366            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::InternalServerError(inner) => {
367                Error::InternalServerError(inner)
368            }
369            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::RateLimitError(inner) => {
370                Error::RateLimitError(inner)
371            }
372            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::ResourceNotFoundError(inner) => {
373                Error::ResourceNotFoundError(inner)
374            }
375            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::UnauthorizedError(inner) => {
376                Error::UnauthorizedError(inner)
377            }
378            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::ValidationError(inner) => {
379                Error::ValidationError(inner)
380            }
381            crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::Unhandled(inner) => Error::Unhandled(inner),
382        }
383    }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network::CreateNetworkError, R>> for Error
386where
387    R: Send + Sync + std::fmt::Debug + 'static,
388{
389    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network::CreateNetworkError, R>) -> Self {
390        match err {
391            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394                source: err.into(),
395            }),
396        }
397    }
398}
399impl From<crate::operation::create_network::CreateNetworkError> for Error {
400    fn from(err: crate::operation::create_network::CreateNetworkError) -> Self {
401        match err {
402            crate::operation::create_network::CreateNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
403            crate::operation::create_network::CreateNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
404            crate::operation::create_network::CreateNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
405            crate::operation::create_network::CreateNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
406            crate::operation::create_network::CreateNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
407            crate::operation::create_network::CreateNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
408            crate::operation::create_network::CreateNetworkError::ValidationError(inner) => Error::ValidationError(inner),
409            crate::operation::create_network::CreateNetworkError::Unhandled(inner) => Error::Unhandled(inner),
410        }
411    }
412}
413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, 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::create_security_group::CreateSecurityGroupError, 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::create_security_group::CreateSecurityGroupError> for Error {
428    fn from(err: crate::operation::create_security_group::CreateSecurityGroupError) -> Self {
429        match err {
430            crate::operation::create_security_group::CreateSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
431            crate::operation::create_security_group::CreateSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
432            crate::operation::create_security_group::CreateSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
433            crate::operation::create_security_group::CreateSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
434            crate::operation::create_security_group::CreateSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
435            crate::operation::create_security_group::CreateSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
436            crate::operation::create_security_group::CreateSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
437            crate::operation::create_security_group::CreateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
438        }
439    }
440}
441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>> for Error
442where
443    R: Send + Sync + std::fmt::Debug + 'static,
444{
445    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>) -> Self {
446        match err {
447            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
448            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
449                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
450                source: err.into(),
451            }),
452        }
453    }
454}
455impl From<crate::operation::delete_bot::DeleteBotError> for Error {
456    fn from(err: crate::operation::delete_bot::DeleteBotError) -> Self {
457        match err {
458            crate::operation::delete_bot::DeleteBotError::BadRequestError(inner) => Error::BadRequestError(inner),
459            crate::operation::delete_bot::DeleteBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
460            crate::operation::delete_bot::DeleteBotError::InternalServerError(inner) => Error::InternalServerError(inner),
461            crate::operation::delete_bot::DeleteBotError::RateLimitError(inner) => Error::RateLimitError(inner),
462            crate::operation::delete_bot::DeleteBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
463            crate::operation::delete_bot::DeleteBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
464            crate::operation::delete_bot::DeleteBotError::ValidationError(inner) => Error::ValidationError(inner),
465            crate::operation::delete_bot::DeleteBotError::Unhandled(inner) => Error::Unhandled(inner),
466        }
467    }
468}
469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError, R>>
470    for Error
471where
472    R: Send + Sync + std::fmt::Debug + 'static,
473{
474    fn from(
475        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError, R>,
476    ) -> Self {
477        match err {
478            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
479            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
480                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
481                source: err.into(),
482            }),
483        }
484    }
485}
486impl From<crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError> for Error {
487    fn from(err: crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError) -> Self {
488        match err {
489            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::BadRequestError(inner) => Error::BadRequestError(inner),
490            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
491            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::InternalServerError(inner) => Error::InternalServerError(inner),
492            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::RateLimitError(inner) => Error::RateLimitError(inner),
493            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::ResourceNotFoundError(inner) => {
494                Error::ResourceNotFoundError(inner)
495            }
496            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
497            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::ValidationError(inner) => Error::ValidationError(inner),
498            crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::Unhandled(inner) => Error::Unhandled(inner),
499        }
500    }
501}
502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network::DeleteNetworkError, R>> for Error
503where
504    R: Send + Sync + std::fmt::Debug + 'static,
505{
506    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network::DeleteNetworkError, R>) -> Self {
507        match err {
508            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
509            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
510                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
511                source: err.into(),
512            }),
513        }
514    }
515}
516impl From<crate::operation::delete_network::DeleteNetworkError> for Error {
517    fn from(err: crate::operation::delete_network::DeleteNetworkError) -> Self {
518        match err {
519            crate::operation::delete_network::DeleteNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
520            crate::operation::delete_network::DeleteNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
521            crate::operation::delete_network::DeleteNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
522            crate::operation::delete_network::DeleteNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
523            crate::operation::delete_network::DeleteNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
524            crate::operation::delete_network::DeleteNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
525            crate::operation::delete_network::DeleteNetworkError::ValidationError(inner) => Error::ValidationError(inner),
526            crate::operation::delete_network::DeleteNetworkError::Unhandled(inner) => Error::Unhandled(inner),
527        }
528    }
529}
530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>> for Error
531where
532    R: Send + Sync + std::fmt::Debug + 'static,
533{
534    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>) -> Self {
535        match err {
536            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
537            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
538                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
539                source: err.into(),
540            }),
541        }
542    }
543}
544impl From<crate::operation::delete_security_group::DeleteSecurityGroupError> for Error {
545    fn from(err: crate::operation::delete_security_group::DeleteSecurityGroupError) -> Self {
546        match err {
547            crate::operation::delete_security_group::DeleteSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
548            crate::operation::delete_security_group::DeleteSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
549            crate::operation::delete_security_group::DeleteSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
550            crate::operation::delete_security_group::DeleteSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
551            crate::operation::delete_security_group::DeleteSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
552            crate::operation::delete_security_group::DeleteSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
553            crate::operation::delete_security_group::DeleteSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
554            crate::operation::delete_security_group::DeleteSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
555        }
556    }
557}
558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>> for Error
559where
560    R: Send + Sync + std::fmt::Debug + 'static,
561{
562    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>) -> Self {
563        match err {
564            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
565            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
566                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
567                source: err.into(),
568            }),
569        }
570    }
571}
572impl From<crate::operation::get_bot::GetBotError> for Error {
573    fn from(err: crate::operation::get_bot::GetBotError) -> Self {
574        match err {
575            crate::operation::get_bot::GetBotError::BadRequestError(inner) => Error::BadRequestError(inner),
576            crate::operation::get_bot::GetBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
577            crate::operation::get_bot::GetBotError::InternalServerError(inner) => Error::InternalServerError(inner),
578            crate::operation::get_bot::GetBotError::RateLimitError(inner) => Error::RateLimitError(inner),
579            crate::operation::get_bot::GetBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
580            crate::operation::get_bot::GetBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
581            crate::operation::get_bot::GetBotError::ValidationError(inner) => Error::ValidationError(inner),
582            crate::operation::get_bot::GetBotError::Unhandled(inner) => Error::Unhandled(inner),
583        }
584    }
585}
586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bots_count::GetBotsCountError, R>> for Error
587where
588    R: Send + Sync + std::fmt::Debug + 'static,
589{
590    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bots_count::GetBotsCountError, R>) -> Self {
591        match err {
592            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
593            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
594                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
595                source: err.into(),
596            }),
597        }
598    }
599}
600impl From<crate::operation::get_bots_count::GetBotsCountError> for Error {
601    fn from(err: crate::operation::get_bots_count::GetBotsCountError) -> Self {
602        match err {
603            crate::operation::get_bots_count::GetBotsCountError::BadRequestError(inner) => Error::BadRequestError(inner),
604            crate::operation::get_bots_count::GetBotsCountError::ForbiddenError(inner) => Error::ForbiddenError(inner),
605            crate::operation::get_bots_count::GetBotsCountError::InternalServerError(inner) => Error::InternalServerError(inner),
606            crate::operation::get_bots_count::GetBotsCountError::RateLimitError(inner) => Error::RateLimitError(inner),
607            crate::operation::get_bots_count::GetBotsCountError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
608            crate::operation::get_bots_count::GetBotsCountError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
609            crate::operation::get_bots_count::GetBotsCountError::ValidationError(inner) => Error::ValidationError(inner),
610            crate::operation::get_bots_count::GetBotsCountError::Unhandled(inner) => Error::Unhandled(inner),
611        }
612    }
613}
614impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_retention_bot::GetDataRetentionBotError, R>> for Error
615where
616    R: Send + Sync + std::fmt::Debug + 'static,
617{
618    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_retention_bot::GetDataRetentionBotError, R>) -> Self {
619        match err {
620            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
621            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
622                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
623                source: err.into(),
624            }),
625        }
626    }
627}
628impl From<crate::operation::get_data_retention_bot::GetDataRetentionBotError> for Error {
629    fn from(err: crate::operation::get_data_retention_bot::GetDataRetentionBotError) -> Self {
630        match err {
631            crate::operation::get_data_retention_bot::GetDataRetentionBotError::BadRequestError(inner) => Error::BadRequestError(inner),
632            crate::operation::get_data_retention_bot::GetDataRetentionBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
633            crate::operation::get_data_retention_bot::GetDataRetentionBotError::InternalServerError(inner) => Error::InternalServerError(inner),
634            crate::operation::get_data_retention_bot::GetDataRetentionBotError::RateLimitError(inner) => Error::RateLimitError(inner),
635            crate::operation::get_data_retention_bot::GetDataRetentionBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
636            crate::operation::get_data_retention_bot::GetDataRetentionBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
637            crate::operation::get_data_retention_bot::GetDataRetentionBotError::ValidationError(inner) => Error::ValidationError(inner),
638            crate::operation::get_data_retention_bot::GetDataRetentionBotError::Unhandled(inner) => Error::Unhandled(inner),
639        }
640    }
641}
642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError, 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::get_guest_user_history_count::GetGuestUserHistoryCountError, 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::get_guest_user_history_count::GetGuestUserHistoryCountError> for Error {
660    fn from(err: crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError) -> Self {
661        match err {
662            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::BadRequestError(inner) => Error::BadRequestError(inner),
663            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::ForbiddenError(inner) => Error::ForbiddenError(inner),
664            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::InternalServerError(inner) => {
665                Error::InternalServerError(inner)
666            }
667            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::RateLimitError(inner) => Error::RateLimitError(inner),
668            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::ResourceNotFoundError(inner) => {
669                Error::ResourceNotFoundError(inner)
670            }
671            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::UnauthorizedError(inner) => {
672                Error::UnauthorizedError(inner)
673            }
674            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::ValidationError(inner) => Error::ValidationError(inner),
675            crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::Unhandled(inner) => Error::Unhandled(inner),
676        }
677    }
678}
679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network::GetNetworkError, R>> for Error
680where
681    R: Send + Sync + std::fmt::Debug + 'static,
682{
683    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network::GetNetworkError, R>) -> Self {
684        match err {
685            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
686            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
687                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
688                source: err.into(),
689            }),
690        }
691    }
692}
693impl From<crate::operation::get_network::GetNetworkError> for Error {
694    fn from(err: crate::operation::get_network::GetNetworkError) -> Self {
695        match err {
696            crate::operation::get_network::GetNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
697            crate::operation::get_network::GetNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
698            crate::operation::get_network::GetNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
699            crate::operation::get_network::GetNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
700            crate::operation::get_network::GetNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
701            crate::operation::get_network::GetNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
702            crate::operation::get_network::GetNetworkError::ValidationError(inner) => Error::ValidationError(inner),
703            crate::operation::get_network::GetNetworkError::Unhandled(inner) => Error::Unhandled(inner),
704        }
705    }
706}
707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_settings::GetNetworkSettingsError, R>> for Error
708where
709    R: Send + Sync + std::fmt::Debug + 'static,
710{
711    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_settings::GetNetworkSettingsError, R>) -> Self {
712        match err {
713            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716                source: err.into(),
717            }),
718        }
719    }
720}
721impl From<crate::operation::get_network_settings::GetNetworkSettingsError> for Error {
722    fn from(err: crate::operation::get_network_settings::GetNetworkSettingsError) -> Self {
723        match err {
724            crate::operation::get_network_settings::GetNetworkSettingsError::BadRequestError(inner) => Error::BadRequestError(inner),
725            crate::operation::get_network_settings::GetNetworkSettingsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
726            crate::operation::get_network_settings::GetNetworkSettingsError::InternalServerError(inner) => Error::InternalServerError(inner),
727            crate::operation::get_network_settings::GetNetworkSettingsError::RateLimitError(inner) => Error::RateLimitError(inner),
728            crate::operation::get_network_settings::GetNetworkSettingsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
729            crate::operation::get_network_settings::GetNetworkSettingsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
730            crate::operation::get_network_settings::GetNetworkSettingsError::ValidationError(inner) => Error::ValidationError(inner),
731            crate::operation::get_network_settings::GetNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
732        }
733    }
734}
735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_oidc_info::GetOidcInfoError, R>> for Error
736where
737    R: Send + Sync + std::fmt::Debug + 'static,
738{
739    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_oidc_info::GetOidcInfoError, R>) -> Self {
740        match err {
741            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
742            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
743                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
744                source: err.into(),
745            }),
746        }
747    }
748}
749impl From<crate::operation::get_oidc_info::GetOidcInfoError> for Error {
750    fn from(err: crate::operation::get_oidc_info::GetOidcInfoError) -> Self {
751        match err {
752            crate::operation::get_oidc_info::GetOidcInfoError::BadRequestError(inner) => Error::BadRequestError(inner),
753            crate::operation::get_oidc_info::GetOidcInfoError::ForbiddenError(inner) => Error::ForbiddenError(inner),
754            crate::operation::get_oidc_info::GetOidcInfoError::InternalServerError(inner) => Error::InternalServerError(inner),
755            crate::operation::get_oidc_info::GetOidcInfoError::RateLimitError(inner) => Error::RateLimitError(inner),
756            crate::operation::get_oidc_info::GetOidcInfoError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
757            crate::operation::get_oidc_info::GetOidcInfoError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
758            crate::operation::get_oidc_info::GetOidcInfoError::ValidationError(inner) => Error::ValidationError(inner),
759            crate::operation::get_oidc_info::GetOidcInfoError::Unhandled(inner) => Error::Unhandled(inner),
760        }
761    }
762}
763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_opentdf_config::GetOpentdfConfigError, R>> for Error
764where
765    R: Send + Sync + std::fmt::Debug + 'static,
766{
767    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_opentdf_config::GetOpentdfConfigError, R>) -> Self {
768        match err {
769            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
770            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
771                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
772                source: err.into(),
773            }),
774        }
775    }
776}
777impl From<crate::operation::get_opentdf_config::GetOpentdfConfigError> for Error {
778    fn from(err: crate::operation::get_opentdf_config::GetOpentdfConfigError) -> Self {
779        match err {
780            crate::operation::get_opentdf_config::GetOpentdfConfigError::BadRequestError(inner) => Error::BadRequestError(inner),
781            crate::operation::get_opentdf_config::GetOpentdfConfigError::ForbiddenError(inner) => Error::ForbiddenError(inner),
782            crate::operation::get_opentdf_config::GetOpentdfConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
783            crate::operation::get_opentdf_config::GetOpentdfConfigError::RateLimitError(inner) => Error::RateLimitError(inner),
784            crate::operation::get_opentdf_config::GetOpentdfConfigError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
785            crate::operation::get_opentdf_config::GetOpentdfConfigError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
786            crate::operation::get_opentdf_config::GetOpentdfConfigError::ValidationError(inner) => Error::ValidationError(inner),
787            crate::operation::get_opentdf_config::GetOpentdfConfigError::Unhandled(inner) => Error::Unhandled(inner),
788        }
789    }
790}
791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_group::GetSecurityGroupError, R>> for Error
792where
793    R: Send + Sync + std::fmt::Debug + 'static,
794{
795    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_group::GetSecurityGroupError, R>) -> Self {
796        match err {
797            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
798            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
799                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
800                source: err.into(),
801            }),
802        }
803    }
804}
805impl From<crate::operation::get_security_group::GetSecurityGroupError> for Error {
806    fn from(err: crate::operation::get_security_group::GetSecurityGroupError) -> Self {
807        match err {
808            crate::operation::get_security_group::GetSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
809            crate::operation::get_security_group::GetSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
810            crate::operation::get_security_group::GetSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
811            crate::operation::get_security_group::GetSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
812            crate::operation::get_security_group::GetSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
813            crate::operation::get_security_group::GetSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
814            crate::operation::get_security_group::GetSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
815            crate::operation::get_security_group::GetSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
816        }
817    }
818}
819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user::GetUserError, R>> for Error
820where
821    R: Send + Sync + std::fmt::Debug + 'static,
822{
823    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user::GetUserError, R>) -> Self {
824        match err {
825            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
826            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
827                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
828                source: err.into(),
829            }),
830        }
831    }
832}
833impl From<crate::operation::get_user::GetUserError> for Error {
834    fn from(err: crate::operation::get_user::GetUserError) -> Self {
835        match err {
836            crate::operation::get_user::GetUserError::BadRequestError(inner) => Error::BadRequestError(inner),
837            crate::operation::get_user::GetUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
838            crate::operation::get_user::GetUserError::InternalServerError(inner) => Error::InternalServerError(inner),
839            crate::operation::get_user::GetUserError::RateLimitError(inner) => Error::RateLimitError(inner),
840            crate::operation::get_user::GetUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
841            crate::operation::get_user::GetUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
842            crate::operation::get_user::GetUserError::ValidationError(inner) => Error::ValidationError(inner),
843            crate::operation::get_user::GetUserError::Unhandled(inner) => Error::Unhandled(inner),
844        }
845    }
846}
847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_users_count::GetUsersCountError, R>> for Error
848where
849    R: Send + Sync + std::fmt::Debug + 'static,
850{
851    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_users_count::GetUsersCountError, R>) -> Self {
852        match err {
853            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
854            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
855                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
856                source: err.into(),
857            }),
858        }
859    }
860}
861impl From<crate::operation::get_users_count::GetUsersCountError> for Error {
862    fn from(err: crate::operation::get_users_count::GetUsersCountError) -> Self {
863        match err {
864            crate::operation::get_users_count::GetUsersCountError::BadRequestError(inner) => Error::BadRequestError(inner),
865            crate::operation::get_users_count::GetUsersCountError::ForbiddenError(inner) => Error::ForbiddenError(inner),
866            crate::operation::get_users_count::GetUsersCountError::InternalServerError(inner) => Error::InternalServerError(inner),
867            crate::operation::get_users_count::GetUsersCountError::RateLimitError(inner) => Error::RateLimitError(inner),
868            crate::operation::get_users_count::GetUsersCountError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
869            crate::operation::get_users_count::GetUsersCountError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
870            crate::operation::get_users_count::GetUsersCountError::ValidationError(inner) => Error::ValidationError(inner),
871            crate::operation::get_users_count::GetUsersCountError::Unhandled(inner) => Error::Unhandled(inner),
872        }
873    }
874}
875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError, R>> for Error
876where
877    R: Send + Sync + std::fmt::Debug + 'static,
878{
879    fn from(
880        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError, R>,
881    ) -> Self {
882        match err {
883            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
884            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
885                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
886                source: err.into(),
887            }),
888        }
889    }
890}
891impl From<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError> for Error {
892    fn from(err: crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError) -> Self {
893        match err {
894            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
895            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
896            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
897            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
898            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ResourceNotFoundError(inner) => {
899                Error::ResourceNotFoundError(inner)
900            }
901            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
902            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ValidationError(inner) => Error::ValidationError(inner),
903            crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::Unhandled(inner) => Error::Unhandled(inner),
904        }
905    }
906}
907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>> for Error
908where
909    R: Send + Sync + std::fmt::Debug + 'static,
910{
911    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>) -> Self {
912        match err {
913            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
914            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
915                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
916                source: err.into(),
917            }),
918        }
919    }
920}
921impl From<crate::operation::list_bots::ListBotsError> for Error {
922    fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
923        match err {
924            crate::operation::list_bots::ListBotsError::BadRequestError(inner) => Error::BadRequestError(inner),
925            crate::operation::list_bots::ListBotsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
926            crate::operation::list_bots::ListBotsError::InternalServerError(inner) => Error::InternalServerError(inner),
927            crate::operation::list_bots::ListBotsError::RateLimitError(inner) => Error::RateLimitError(inner),
928            crate::operation::list_bots::ListBotsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
929            crate::operation::list_bots::ListBotsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
930            crate::operation::list_bots::ListBotsError::ValidationError(inner) => Error::ValidationError(inner),
931            crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
932        }
933    }
934}
935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices_for_user::ListDevicesForUserError, R>> for Error
936where
937    R: Send + Sync + std::fmt::Debug + 'static,
938{
939    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices_for_user::ListDevicesForUserError, R>) -> Self {
940        match err {
941            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
942            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
943                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
944                source: err.into(),
945            }),
946        }
947    }
948}
949impl From<crate::operation::list_devices_for_user::ListDevicesForUserError> for Error {
950    fn from(err: crate::operation::list_devices_for_user::ListDevicesForUserError) -> Self {
951        match err {
952            crate::operation::list_devices_for_user::ListDevicesForUserError::BadRequestError(inner) => Error::BadRequestError(inner),
953            crate::operation::list_devices_for_user::ListDevicesForUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
954            crate::operation::list_devices_for_user::ListDevicesForUserError::InternalServerError(inner) => Error::InternalServerError(inner),
955            crate::operation::list_devices_for_user::ListDevicesForUserError::RateLimitError(inner) => Error::RateLimitError(inner),
956            crate::operation::list_devices_for_user::ListDevicesForUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
957            crate::operation::list_devices_for_user::ListDevicesForUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
958            crate::operation::list_devices_for_user::ListDevicesForUserError::ValidationError(inner) => Error::ValidationError(inner),
959            crate::operation::list_devices_for_user::ListDevicesForUserError::Unhandled(inner) => Error::Unhandled(inner),
960        }
961    }
962}
963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_guest_users::ListGuestUsersError, R>> for Error
964where
965    R: Send + Sync + std::fmt::Debug + 'static,
966{
967    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_guest_users::ListGuestUsersError, R>) -> Self {
968        match err {
969            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
970            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
971                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
972                source: err.into(),
973            }),
974        }
975    }
976}
977impl From<crate::operation::list_guest_users::ListGuestUsersError> for Error {
978    fn from(err: crate::operation::list_guest_users::ListGuestUsersError) -> Self {
979        match err {
980            crate::operation::list_guest_users::ListGuestUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
981            crate::operation::list_guest_users::ListGuestUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
982            crate::operation::list_guest_users::ListGuestUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
983            crate::operation::list_guest_users::ListGuestUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
984            crate::operation::list_guest_users::ListGuestUsersError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
985            crate::operation::list_guest_users::ListGuestUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
986            crate::operation::list_guest_users::ListGuestUsersError::ValidationError(inner) => Error::ValidationError(inner),
987            crate::operation::list_guest_users::ListGuestUsersError::Unhandled(inner) => Error::Unhandled(inner),
988        }
989    }
990}
991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_networks::ListNetworksError, R>> for Error
992where
993    R: Send + Sync + std::fmt::Debug + 'static,
994{
995    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_networks::ListNetworksError, R>) -> Self {
996        match err {
997            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
998            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
999                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1000                source: err.into(),
1001            }),
1002        }
1003    }
1004}
1005impl From<crate::operation::list_networks::ListNetworksError> for Error {
1006    fn from(err: crate::operation::list_networks::ListNetworksError) -> Self {
1007        match err {
1008            crate::operation::list_networks::ListNetworksError::BadRequestError(inner) => Error::BadRequestError(inner),
1009            crate::operation::list_networks::ListNetworksError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1010            crate::operation::list_networks::ListNetworksError::InternalServerError(inner) => Error::InternalServerError(inner),
1011            crate::operation::list_networks::ListNetworksError::RateLimitError(inner) => Error::RateLimitError(inner),
1012            crate::operation::list_networks::ListNetworksError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1013            crate::operation::list_networks::ListNetworksError::ValidationError(inner) => Error::ValidationError(inner),
1014            crate::operation::list_networks::ListNetworksError::Unhandled(inner) => Error::Unhandled(inner),
1015        }
1016    }
1017}
1018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_groups::ListSecurityGroupsError, R>> for Error
1019where
1020    R: Send + Sync + std::fmt::Debug + 'static,
1021{
1022    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_groups::ListSecurityGroupsError, R>) -> Self {
1023        match err {
1024            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1025            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1026                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1027                source: err.into(),
1028            }),
1029        }
1030    }
1031}
1032impl From<crate::operation::list_security_groups::ListSecurityGroupsError> for Error {
1033    fn from(err: crate::operation::list_security_groups::ListSecurityGroupsError) -> Self {
1034        match err {
1035            crate::operation::list_security_groups::ListSecurityGroupsError::BadRequestError(inner) => Error::BadRequestError(inner),
1036            crate::operation::list_security_groups::ListSecurityGroupsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1037            crate::operation::list_security_groups::ListSecurityGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
1038            crate::operation::list_security_groups::ListSecurityGroupsError::RateLimitError(inner) => Error::RateLimitError(inner),
1039            crate::operation::list_security_groups::ListSecurityGroupsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1040            crate::operation::list_security_groups::ListSecurityGroupsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1041            crate::operation::list_security_groups::ListSecurityGroupsError::ValidationError(inner) => Error::ValidationError(inner),
1042            crate::operation::list_security_groups::ListSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1043        }
1044    }
1045}
1046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_group_users::ListSecurityGroupUsersError, R>>
1047    for Error
1048where
1049    R: Send + Sync + std::fmt::Debug + 'static,
1050{
1051    fn from(
1052        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_group_users::ListSecurityGroupUsersError, R>,
1053    ) -> Self {
1054        match err {
1055            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1056            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1057                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1058                source: err.into(),
1059            }),
1060        }
1061    }
1062}
1063impl From<crate::operation::list_security_group_users::ListSecurityGroupUsersError> for Error {
1064    fn from(err: crate::operation::list_security_group_users::ListSecurityGroupUsersError) -> Self {
1065        match err {
1066            crate::operation::list_security_group_users::ListSecurityGroupUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
1067            crate::operation::list_security_group_users::ListSecurityGroupUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1068            crate::operation::list_security_group_users::ListSecurityGroupUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
1069            crate::operation::list_security_group_users::ListSecurityGroupUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
1070            crate::operation::list_security_group_users::ListSecurityGroupUsersError::ResourceNotFoundError(inner) => {
1071                Error::ResourceNotFoundError(inner)
1072            }
1073            crate::operation::list_security_group_users::ListSecurityGroupUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1074            crate::operation::list_security_group_users::ListSecurityGroupUsersError::ValidationError(inner) => Error::ValidationError(inner),
1075            crate::operation::list_security_group_users::ListSecurityGroupUsersError::Unhandled(inner) => Error::Unhandled(inner),
1076        }
1077    }
1078}
1079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>> for Error
1080where
1081    R: Send + Sync + std::fmt::Debug + 'static,
1082{
1083    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>) -> Self {
1084        match err {
1085            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1086            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1087                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1088                source: err.into(),
1089            }),
1090        }
1091    }
1092}
1093impl From<crate::operation::list_users::ListUsersError> for Error {
1094    fn from(err: crate::operation::list_users::ListUsersError) -> Self {
1095        match err {
1096            crate::operation::list_users::ListUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
1097            crate::operation::list_users::ListUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1098            crate::operation::list_users::ListUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
1099            crate::operation::list_users::ListUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
1100            crate::operation::list_users::ListUsersError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1101            crate::operation::list_users::ListUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1102            crate::operation::list_users::ListUsersError::ValidationError(inner) => Error::ValidationError(inner),
1103            crate::operation::list_users::ListUsersError::Unhandled(inner) => Error::Unhandled(inner),
1104        }
1105    }
1106}
1107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config::RegisterOidcConfigError, R>> for Error
1108where
1109    R: Send + Sync + std::fmt::Debug + 'static,
1110{
1111    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config::RegisterOidcConfigError, R>) -> Self {
1112        match err {
1113            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1114            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1115                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1116                source: err.into(),
1117            }),
1118        }
1119    }
1120}
1121impl From<crate::operation::register_oidc_config::RegisterOidcConfigError> for Error {
1122    fn from(err: crate::operation::register_oidc_config::RegisterOidcConfigError) -> Self {
1123        match err {
1124            crate::operation::register_oidc_config::RegisterOidcConfigError::BadRequestError(inner) => Error::BadRequestError(inner),
1125            crate::operation::register_oidc_config::RegisterOidcConfigError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1126            crate::operation::register_oidc_config::RegisterOidcConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
1127            crate::operation::register_oidc_config::RegisterOidcConfigError::RateLimitError(inner) => Error::RateLimitError(inner),
1128            crate::operation::register_oidc_config::RegisterOidcConfigError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1129            crate::operation::register_oidc_config::RegisterOidcConfigError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1130            crate::operation::register_oidc_config::RegisterOidcConfigError::ValidationError(inner) => Error::ValidationError(inner),
1131            crate::operation::register_oidc_config::RegisterOidcConfigError::Unhandled(inner) => Error::Unhandled(inner),
1132        }
1133    }
1134}
1135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError, R>>
1136    for Error
1137where
1138    R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140    fn from(
1141        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError, R>,
1142    ) -> Self {
1143        match err {
1144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1147                source: err.into(),
1148            }),
1149        }
1150    }
1151}
1152impl From<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError> for Error {
1153    fn from(err: crate::operation::register_oidc_config_test::RegisterOidcConfigTestError) -> Self {
1154        match err {
1155            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::BadRequestError(inner) => Error::BadRequestError(inner),
1156            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1157            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::InternalServerError(inner) => Error::InternalServerError(inner),
1158            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::RateLimitError(inner) => Error::RateLimitError(inner),
1159            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ResourceNotFoundError(inner) => {
1160                Error::ResourceNotFoundError(inner)
1161            }
1162            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1163            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ValidationError(inner) => Error::ValidationError(inner),
1164            crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::Unhandled(inner) => Error::Unhandled(inner),
1165        }
1166    }
1167}
1168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_opentdf_config::RegisterOpentdfConfigError, R>> for Error
1169where
1170    R: Send + Sync + std::fmt::Debug + 'static,
1171{
1172    fn from(
1173        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_opentdf_config::RegisterOpentdfConfigError, R>,
1174    ) -> Self {
1175        match err {
1176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1179                source: err.into(),
1180            }),
1181        }
1182    }
1183}
1184impl From<crate::operation::register_opentdf_config::RegisterOpentdfConfigError> for Error {
1185    fn from(err: crate::operation::register_opentdf_config::RegisterOpentdfConfigError) -> Self {
1186        match err {
1187            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::BadRequestError(inner) => Error::BadRequestError(inner),
1188            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1189            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
1190            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::RateLimitError(inner) => Error::RateLimitError(inner),
1191            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::ResourceNotFoundError(inner) => {
1192                Error::ResourceNotFoundError(inner)
1193            }
1194            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1195            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::ValidationError(inner) => Error::ValidationError(inner),
1196            crate::operation::register_opentdf_config::RegisterOpentdfConfigError::Unhandled(inner) => Error::Unhandled(inner),
1197        }
1198    }
1199}
1200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>> for Error
1201where
1202    R: Send + Sync + std::fmt::Debug + 'static,
1203{
1204    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>) -> Self {
1205        match err {
1206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1209                source: err.into(),
1210            }),
1211        }
1212    }
1213}
1214impl From<crate::operation::update_bot::UpdateBotError> for Error {
1215    fn from(err: crate::operation::update_bot::UpdateBotError) -> Self {
1216        match err {
1217            crate::operation::update_bot::UpdateBotError::BadRequestError(inner) => Error::BadRequestError(inner),
1218            crate::operation::update_bot::UpdateBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1219            crate::operation::update_bot::UpdateBotError::InternalServerError(inner) => Error::InternalServerError(inner),
1220            crate::operation::update_bot::UpdateBotError::RateLimitError(inner) => Error::RateLimitError(inner),
1221            crate::operation::update_bot::UpdateBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1222            crate::operation::update_bot::UpdateBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1223            crate::operation::update_bot::UpdateBotError::ValidationError(inner) => Error::ValidationError(inner),
1224            crate::operation::update_bot::UpdateBotError::Unhandled(inner) => Error::Unhandled(inner),
1225        }
1226    }
1227}
1228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_retention::UpdateDataRetentionError, R>> for Error
1229where
1230    R: Send + Sync + std::fmt::Debug + 'static,
1231{
1232    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_retention::UpdateDataRetentionError, R>) -> Self {
1233        match err {
1234            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1235            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1236                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1237                source: err.into(),
1238            }),
1239        }
1240    }
1241}
1242impl From<crate::operation::update_data_retention::UpdateDataRetentionError> for Error {
1243    fn from(err: crate::operation::update_data_retention::UpdateDataRetentionError) -> Self {
1244        match err {
1245            crate::operation::update_data_retention::UpdateDataRetentionError::BadRequestError(inner) => Error::BadRequestError(inner),
1246            crate::operation::update_data_retention::UpdateDataRetentionError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1247            crate::operation::update_data_retention::UpdateDataRetentionError::InternalServerError(inner) => Error::InternalServerError(inner),
1248            crate::operation::update_data_retention::UpdateDataRetentionError::RateLimitError(inner) => Error::RateLimitError(inner),
1249            crate::operation::update_data_retention::UpdateDataRetentionError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1250            crate::operation::update_data_retention::UpdateDataRetentionError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1251            crate::operation::update_data_retention::UpdateDataRetentionError::ValidationError(inner) => Error::ValidationError(inner),
1252            crate::operation::update_data_retention::UpdateDataRetentionError::Unhandled(inner) => Error::Unhandled(inner),
1253        }
1254    }
1255}
1256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_guest_user::UpdateGuestUserError, R>> for Error
1257where
1258    R: Send + Sync + std::fmt::Debug + 'static,
1259{
1260    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_guest_user::UpdateGuestUserError, R>) -> Self {
1261        match err {
1262            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1263            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1264                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1265                source: err.into(),
1266            }),
1267        }
1268    }
1269}
1270impl From<crate::operation::update_guest_user::UpdateGuestUserError> for Error {
1271    fn from(err: crate::operation::update_guest_user::UpdateGuestUserError) -> Self {
1272        match err {
1273            crate::operation::update_guest_user::UpdateGuestUserError::BadRequestError(inner) => Error::BadRequestError(inner),
1274            crate::operation::update_guest_user::UpdateGuestUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1275            crate::operation::update_guest_user::UpdateGuestUserError::InternalServerError(inner) => Error::InternalServerError(inner),
1276            crate::operation::update_guest_user::UpdateGuestUserError::RateLimitError(inner) => Error::RateLimitError(inner),
1277            crate::operation::update_guest_user::UpdateGuestUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1278            crate::operation::update_guest_user::UpdateGuestUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1279            crate::operation::update_guest_user::UpdateGuestUserError::ValidationError(inner) => Error::ValidationError(inner),
1280            crate::operation::update_guest_user::UpdateGuestUserError::Unhandled(inner) => Error::Unhandled(inner),
1281        }
1282    }
1283}
1284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network::UpdateNetworkError, R>> for Error
1285where
1286    R: Send + Sync + std::fmt::Debug + 'static,
1287{
1288    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network::UpdateNetworkError, R>) -> Self {
1289        match err {
1290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1293                source: err.into(),
1294            }),
1295        }
1296    }
1297}
1298impl From<crate::operation::update_network::UpdateNetworkError> for Error {
1299    fn from(err: crate::operation::update_network::UpdateNetworkError) -> Self {
1300        match err {
1301            crate::operation::update_network::UpdateNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
1302            crate::operation::update_network::UpdateNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1303            crate::operation::update_network::UpdateNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
1304            crate::operation::update_network::UpdateNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
1305            crate::operation::update_network::UpdateNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1306            crate::operation::update_network::UpdateNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1307            crate::operation::update_network::UpdateNetworkError::ValidationError(inner) => Error::ValidationError(inner),
1308            crate::operation::update_network::UpdateNetworkError::Unhandled(inner) => Error::Unhandled(inner),
1309        }
1310    }
1311}
1312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>> for Error
1313where
1314    R: Send + Sync + std::fmt::Debug + 'static,
1315{
1316    fn from(
1317        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>,
1318    ) -> Self {
1319        match err {
1320            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1321            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1322                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1323                source: err.into(),
1324            }),
1325        }
1326    }
1327}
1328impl From<crate::operation::update_network_settings::UpdateNetworkSettingsError> for Error {
1329    fn from(err: crate::operation::update_network_settings::UpdateNetworkSettingsError) -> Self {
1330        match err {
1331            crate::operation::update_network_settings::UpdateNetworkSettingsError::BadRequestError(inner) => Error::BadRequestError(inner),
1332            crate::operation::update_network_settings::UpdateNetworkSettingsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1333            crate::operation::update_network_settings::UpdateNetworkSettingsError::InternalServerError(inner) => Error::InternalServerError(inner),
1334            crate::operation::update_network_settings::UpdateNetworkSettingsError::RateLimitError(inner) => Error::RateLimitError(inner),
1335            crate::operation::update_network_settings::UpdateNetworkSettingsError::ResourceNotFoundError(inner) => {
1336                Error::ResourceNotFoundError(inner)
1337            }
1338            crate::operation::update_network_settings::UpdateNetworkSettingsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1339            crate::operation::update_network_settings::UpdateNetworkSettingsError::ValidationError(inner) => Error::ValidationError(inner),
1340            crate::operation::update_network_settings::UpdateNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1341        }
1342    }
1343}
1344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_group::UpdateSecurityGroupError, R>> for Error
1345where
1346    R: Send + Sync + std::fmt::Debug + 'static,
1347{
1348    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_group::UpdateSecurityGroupError, R>) -> Self {
1349        match err {
1350            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1351            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1352                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1353                source: err.into(),
1354            }),
1355        }
1356    }
1357}
1358impl From<crate::operation::update_security_group::UpdateSecurityGroupError> for Error {
1359    fn from(err: crate::operation::update_security_group::UpdateSecurityGroupError) -> Self {
1360        match err {
1361            crate::operation::update_security_group::UpdateSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
1362            crate::operation::update_security_group::UpdateSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1363            crate::operation::update_security_group::UpdateSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
1364            crate::operation::update_security_group::UpdateSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
1365            crate::operation::update_security_group::UpdateSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1366            crate::operation::update_security_group::UpdateSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1367            crate::operation::update_security_group::UpdateSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
1368            crate::operation::update_security_group::UpdateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
1369        }
1370    }
1371}
1372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>> for Error
1373where
1374    R: Send + Sync + std::fmt::Debug + 'static,
1375{
1376    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>) -> Self {
1377        match err {
1378            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1379            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1380                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1381                source: err.into(),
1382            }),
1383        }
1384    }
1385}
1386impl From<crate::operation::update_user::UpdateUserError> for Error {
1387    fn from(err: crate::operation::update_user::UpdateUserError) -> Self {
1388        match err {
1389            crate::operation::update_user::UpdateUserError::BadRequestError(inner) => Error::BadRequestError(inner),
1390            crate::operation::update_user::UpdateUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1391            crate::operation::update_user::UpdateUserError::InternalServerError(inner) => Error::InternalServerError(inner),
1392            crate::operation::update_user::UpdateUserError::RateLimitError(inner) => Error::RateLimitError(inner),
1393            crate::operation::update_user::UpdateUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1394            crate::operation::update_user::UpdateUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1395            crate::operation::update_user::UpdateUserError::ValidationError(inner) => Error::ValidationError(inner),
1396            crate::operation::update_user::UpdateUserError::Unhandled(inner) => Error::Unhandled(inner),
1397        }
1398    }
1399}
1400impl ::std::error::Error for Error {
1401    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1402        match self {
1403            Error::BadRequestError(inner) => inner.source(),
1404            Error::ForbiddenError(inner) => inner.source(),
1405            Error::InternalServerError(inner) => inner.source(),
1406            Error::RateLimitError(inner) => inner.source(),
1407            Error::ResourceNotFoundError(inner) => inner.source(),
1408            Error::UnauthorizedError(inner) => inner.source(),
1409            Error::ValidationError(inner) => inner.source(),
1410            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1411        }
1412    }
1413}
1414impl ::aws_types::request_id::RequestId for Error {
1415    fn request_id(&self) -> Option<&str> {
1416        match self {
1417            Self::BadRequestError(e) => e.request_id(),
1418            Self::ForbiddenError(e) => e.request_id(),
1419            Self::InternalServerError(e) => e.request_id(),
1420            Self::RateLimitError(e) => e.request_id(),
1421            Self::ResourceNotFoundError(e) => e.request_id(),
1422            Self::UnauthorizedError(e) => e.request_id(),
1423            Self::ValidationError(e) => e.request_id(),
1424            Self::Unhandled(e) => e.meta.request_id(),
1425        }
1426    }
1427}