1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 BadRequestError(crate::types::error::BadRequestError),
8 ForbiddenError(crate::types::error::ForbiddenError),
10 InternalServerError(crate::types::error::InternalServerError),
12 RateLimitError(crate::types::error::RateLimitError),
14 ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
16 UnauthorizedError(crate::types::error::UnauthorizedError),
18 ValidationError(crate::types::error::ValidationError),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `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_security_group::GetSecurityGroupError, 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_security_group::GetSecurityGroupError, 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_security_group::GetSecurityGroupError> for Error {
778 fn from(err: crate::operation::get_security_group::GetSecurityGroupError) -> Self {
779 match err {
780 crate::operation::get_security_group::GetSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
781 crate::operation::get_security_group::GetSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
782 crate::operation::get_security_group::GetSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
783 crate::operation::get_security_group::GetSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
784 crate::operation::get_security_group::GetSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
785 crate::operation::get_security_group::GetSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
786 crate::operation::get_security_group::GetSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
787 crate::operation::get_security_group::GetSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
788 }
789 }
790}
791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user::GetUserError, 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_user::GetUserError, 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_user::GetUserError> for Error {
806 fn from(err: crate::operation::get_user::GetUserError) -> Self {
807 match err {
808 crate::operation::get_user::GetUserError::BadRequestError(inner) => Error::BadRequestError(inner),
809 crate::operation::get_user::GetUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
810 crate::operation::get_user::GetUserError::InternalServerError(inner) => Error::InternalServerError(inner),
811 crate::operation::get_user::GetUserError::RateLimitError(inner) => Error::RateLimitError(inner),
812 crate::operation::get_user::GetUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
813 crate::operation::get_user::GetUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
814 crate::operation::get_user::GetUserError::ValidationError(inner) => Error::ValidationError(inner),
815 crate::operation::get_user::GetUserError::Unhandled(inner) => Error::Unhandled(inner),
816 }
817 }
818}
819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_users_count::GetUsersCountError, 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_users_count::GetUsersCountError, 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_users_count::GetUsersCountError> for Error {
834 fn from(err: crate::operation::get_users_count::GetUsersCountError) -> Self {
835 match err {
836 crate::operation::get_users_count::GetUsersCountError::BadRequestError(inner) => Error::BadRequestError(inner),
837 crate::operation::get_users_count::GetUsersCountError::ForbiddenError(inner) => Error::ForbiddenError(inner),
838 crate::operation::get_users_count::GetUsersCountError::InternalServerError(inner) => Error::InternalServerError(inner),
839 crate::operation::get_users_count::GetUsersCountError::RateLimitError(inner) => Error::RateLimitError(inner),
840 crate::operation::get_users_count::GetUsersCountError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
841 crate::operation::get_users_count::GetUsersCountError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
842 crate::operation::get_users_count::GetUsersCountError::ValidationError(inner) => Error::ValidationError(inner),
843 crate::operation::get_users_count::GetUsersCountError::Unhandled(inner) => Error::Unhandled(inner),
844 }
845 }
846}
847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError, R>> for Error
848where
849 R: Send + Sync + std::fmt::Debug + 'static,
850{
851 fn from(
852 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError, R>,
853 ) -> Self {
854 match err {
855 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
856 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
857 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
858 source: err.into(),
859 }),
860 }
861 }
862}
863impl From<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError> for Error {
864 fn from(err: crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError) -> Self {
865 match err {
866 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
867 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
868 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
869 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
870 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ResourceNotFoundError(inner) => {
871 Error::ResourceNotFoundError(inner)
872 }
873 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
874 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ValidationError(inner) => Error::ValidationError(inner),
875 crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::Unhandled(inner) => Error::Unhandled(inner),
876 }
877 }
878}
879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>> for Error
880where
881 R: Send + Sync + std::fmt::Debug + 'static,
882{
883 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>) -> Self {
884 match err {
885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
888 source: err.into(),
889 }),
890 }
891 }
892}
893impl From<crate::operation::list_bots::ListBotsError> for Error {
894 fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
895 match err {
896 crate::operation::list_bots::ListBotsError::BadRequestError(inner) => Error::BadRequestError(inner),
897 crate::operation::list_bots::ListBotsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
898 crate::operation::list_bots::ListBotsError::InternalServerError(inner) => Error::InternalServerError(inner),
899 crate::operation::list_bots::ListBotsError::RateLimitError(inner) => Error::RateLimitError(inner),
900 crate::operation::list_bots::ListBotsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
901 crate::operation::list_bots::ListBotsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
902 crate::operation::list_bots::ListBotsError::ValidationError(inner) => Error::ValidationError(inner),
903 crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
904 }
905 }
906}
907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices_for_user::ListDevicesForUserError, 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_devices_for_user::ListDevicesForUserError, 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_devices_for_user::ListDevicesForUserError> for Error {
922 fn from(err: crate::operation::list_devices_for_user::ListDevicesForUserError) -> Self {
923 match err {
924 crate::operation::list_devices_for_user::ListDevicesForUserError::BadRequestError(inner) => Error::BadRequestError(inner),
925 crate::operation::list_devices_for_user::ListDevicesForUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
926 crate::operation::list_devices_for_user::ListDevicesForUserError::InternalServerError(inner) => Error::InternalServerError(inner),
927 crate::operation::list_devices_for_user::ListDevicesForUserError::RateLimitError(inner) => Error::RateLimitError(inner),
928 crate::operation::list_devices_for_user::ListDevicesForUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
929 crate::operation::list_devices_for_user::ListDevicesForUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
930 crate::operation::list_devices_for_user::ListDevicesForUserError::ValidationError(inner) => Error::ValidationError(inner),
931 crate::operation::list_devices_for_user::ListDevicesForUserError::Unhandled(inner) => Error::Unhandled(inner),
932 }
933 }
934}
935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_guest_users::ListGuestUsersError, 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_guest_users::ListGuestUsersError, 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_guest_users::ListGuestUsersError> for Error {
950 fn from(err: crate::operation::list_guest_users::ListGuestUsersError) -> Self {
951 match err {
952 crate::operation::list_guest_users::ListGuestUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
953 crate::operation::list_guest_users::ListGuestUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
954 crate::operation::list_guest_users::ListGuestUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
955 crate::operation::list_guest_users::ListGuestUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
956 crate::operation::list_guest_users::ListGuestUsersError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
957 crate::operation::list_guest_users::ListGuestUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
958 crate::operation::list_guest_users::ListGuestUsersError::ValidationError(inner) => Error::ValidationError(inner),
959 crate::operation::list_guest_users::ListGuestUsersError::Unhandled(inner) => Error::Unhandled(inner),
960 }
961 }
962}
963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_networks::ListNetworksError, 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_networks::ListNetworksError, 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_networks::ListNetworksError> for Error {
978 fn from(err: crate::operation::list_networks::ListNetworksError) -> Self {
979 match err {
980 crate::operation::list_networks::ListNetworksError::BadRequestError(inner) => Error::BadRequestError(inner),
981 crate::operation::list_networks::ListNetworksError::ForbiddenError(inner) => Error::ForbiddenError(inner),
982 crate::operation::list_networks::ListNetworksError::InternalServerError(inner) => Error::InternalServerError(inner),
983 crate::operation::list_networks::ListNetworksError::RateLimitError(inner) => Error::RateLimitError(inner),
984 crate::operation::list_networks::ListNetworksError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
985 crate::operation::list_networks::ListNetworksError::ValidationError(inner) => Error::ValidationError(inner),
986 crate::operation::list_networks::ListNetworksError::Unhandled(inner) => Error::Unhandled(inner),
987 }
988 }
989}
990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_groups::ListSecurityGroupsError, R>> for Error
991where
992 R: Send + Sync + std::fmt::Debug + 'static,
993{
994 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_groups::ListSecurityGroupsError, R>) -> Self {
995 match err {
996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
999 source: err.into(),
1000 }),
1001 }
1002 }
1003}
1004impl From<crate::operation::list_security_groups::ListSecurityGroupsError> for Error {
1005 fn from(err: crate::operation::list_security_groups::ListSecurityGroupsError) -> Self {
1006 match err {
1007 crate::operation::list_security_groups::ListSecurityGroupsError::BadRequestError(inner) => Error::BadRequestError(inner),
1008 crate::operation::list_security_groups::ListSecurityGroupsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1009 crate::operation::list_security_groups::ListSecurityGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
1010 crate::operation::list_security_groups::ListSecurityGroupsError::RateLimitError(inner) => Error::RateLimitError(inner),
1011 crate::operation::list_security_groups::ListSecurityGroupsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1012 crate::operation::list_security_groups::ListSecurityGroupsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1013 crate::operation::list_security_groups::ListSecurityGroupsError::ValidationError(inner) => Error::ValidationError(inner),
1014 crate::operation::list_security_groups::ListSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1015 }
1016 }
1017}
1018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_group_users::ListSecurityGroupUsersError, R>>
1019 for Error
1020where
1021 R: Send + Sync + std::fmt::Debug + 'static,
1022{
1023 fn from(
1024 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_group_users::ListSecurityGroupUsersError, R>,
1025 ) -> Self {
1026 match err {
1027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1030 source: err.into(),
1031 }),
1032 }
1033 }
1034}
1035impl From<crate::operation::list_security_group_users::ListSecurityGroupUsersError> for Error {
1036 fn from(err: crate::operation::list_security_group_users::ListSecurityGroupUsersError) -> Self {
1037 match err {
1038 crate::operation::list_security_group_users::ListSecurityGroupUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
1039 crate::operation::list_security_group_users::ListSecurityGroupUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1040 crate::operation::list_security_group_users::ListSecurityGroupUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
1041 crate::operation::list_security_group_users::ListSecurityGroupUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
1042 crate::operation::list_security_group_users::ListSecurityGroupUsersError::ResourceNotFoundError(inner) => {
1043 Error::ResourceNotFoundError(inner)
1044 }
1045 crate::operation::list_security_group_users::ListSecurityGroupUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1046 crate::operation::list_security_group_users::ListSecurityGroupUsersError::ValidationError(inner) => Error::ValidationError(inner),
1047 crate::operation::list_security_group_users::ListSecurityGroupUsersError::Unhandled(inner) => Error::Unhandled(inner),
1048 }
1049 }
1050}
1051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>> for Error
1052where
1053 R: Send + Sync + std::fmt::Debug + 'static,
1054{
1055 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>) -> Self {
1056 match err {
1057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1060 source: err.into(),
1061 }),
1062 }
1063 }
1064}
1065impl From<crate::operation::list_users::ListUsersError> for Error {
1066 fn from(err: crate::operation::list_users::ListUsersError) -> Self {
1067 match err {
1068 crate::operation::list_users::ListUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
1069 crate::operation::list_users::ListUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1070 crate::operation::list_users::ListUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
1071 crate::operation::list_users::ListUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
1072 crate::operation::list_users::ListUsersError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1073 crate::operation::list_users::ListUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1074 crate::operation::list_users::ListUsersError::ValidationError(inner) => Error::ValidationError(inner),
1075 crate::operation::list_users::ListUsersError::Unhandled(inner) => Error::Unhandled(inner),
1076 }
1077 }
1078}
1079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config::RegisterOidcConfigError, 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::register_oidc_config::RegisterOidcConfigError, 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::register_oidc_config::RegisterOidcConfigError> for Error {
1094 fn from(err: crate::operation::register_oidc_config::RegisterOidcConfigError) -> Self {
1095 match err {
1096 crate::operation::register_oidc_config::RegisterOidcConfigError::BadRequestError(inner) => Error::BadRequestError(inner),
1097 crate::operation::register_oidc_config::RegisterOidcConfigError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1098 crate::operation::register_oidc_config::RegisterOidcConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
1099 crate::operation::register_oidc_config::RegisterOidcConfigError::RateLimitError(inner) => Error::RateLimitError(inner),
1100 crate::operation::register_oidc_config::RegisterOidcConfigError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1101 crate::operation::register_oidc_config::RegisterOidcConfigError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1102 crate::operation::register_oidc_config::RegisterOidcConfigError::ValidationError(inner) => Error::ValidationError(inner),
1103 crate::operation::register_oidc_config::RegisterOidcConfigError::Unhandled(inner) => Error::Unhandled(inner),
1104 }
1105 }
1106}
1107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError, R>>
1108 for Error
1109where
1110 R: Send + Sync + std::fmt::Debug + 'static,
1111{
1112 fn from(
1113 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError, R>,
1114 ) -> Self {
1115 match err {
1116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1119 source: err.into(),
1120 }),
1121 }
1122 }
1123}
1124impl From<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError> for Error {
1125 fn from(err: crate::operation::register_oidc_config_test::RegisterOidcConfigTestError) -> Self {
1126 match err {
1127 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::BadRequestError(inner) => Error::BadRequestError(inner),
1128 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1129 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::InternalServerError(inner) => Error::InternalServerError(inner),
1130 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::RateLimitError(inner) => Error::RateLimitError(inner),
1131 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ResourceNotFoundError(inner) => {
1132 Error::ResourceNotFoundError(inner)
1133 }
1134 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1135 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ValidationError(inner) => Error::ValidationError(inner),
1136 crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::Unhandled(inner) => Error::Unhandled(inner),
1137 }
1138 }
1139}
1140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>> for Error
1141where
1142 R: Send + Sync + std::fmt::Debug + 'static,
1143{
1144 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>) -> Self {
1145 match err {
1146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1149 source: err.into(),
1150 }),
1151 }
1152 }
1153}
1154impl From<crate::operation::update_bot::UpdateBotError> for Error {
1155 fn from(err: crate::operation::update_bot::UpdateBotError) -> Self {
1156 match err {
1157 crate::operation::update_bot::UpdateBotError::BadRequestError(inner) => Error::BadRequestError(inner),
1158 crate::operation::update_bot::UpdateBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1159 crate::operation::update_bot::UpdateBotError::InternalServerError(inner) => Error::InternalServerError(inner),
1160 crate::operation::update_bot::UpdateBotError::RateLimitError(inner) => Error::RateLimitError(inner),
1161 crate::operation::update_bot::UpdateBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1162 crate::operation::update_bot::UpdateBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1163 crate::operation::update_bot::UpdateBotError::ValidationError(inner) => Error::ValidationError(inner),
1164 crate::operation::update_bot::UpdateBotError::Unhandled(inner) => Error::Unhandled(inner),
1165 }
1166 }
1167}
1168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_retention::UpdateDataRetentionError, R>> for Error
1169where
1170 R: Send + Sync + std::fmt::Debug + 'static,
1171{
1172 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_retention::UpdateDataRetentionError, R>) -> Self {
1173 match err {
1174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1177 source: err.into(),
1178 }),
1179 }
1180 }
1181}
1182impl From<crate::operation::update_data_retention::UpdateDataRetentionError> for Error {
1183 fn from(err: crate::operation::update_data_retention::UpdateDataRetentionError) -> Self {
1184 match err {
1185 crate::operation::update_data_retention::UpdateDataRetentionError::BadRequestError(inner) => Error::BadRequestError(inner),
1186 crate::operation::update_data_retention::UpdateDataRetentionError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1187 crate::operation::update_data_retention::UpdateDataRetentionError::InternalServerError(inner) => Error::InternalServerError(inner),
1188 crate::operation::update_data_retention::UpdateDataRetentionError::RateLimitError(inner) => Error::RateLimitError(inner),
1189 crate::operation::update_data_retention::UpdateDataRetentionError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1190 crate::operation::update_data_retention::UpdateDataRetentionError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1191 crate::operation::update_data_retention::UpdateDataRetentionError::ValidationError(inner) => Error::ValidationError(inner),
1192 crate::operation::update_data_retention::UpdateDataRetentionError::Unhandled(inner) => Error::Unhandled(inner),
1193 }
1194 }
1195}
1196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_guest_user::UpdateGuestUserError, R>> for Error
1197where
1198 R: Send + Sync + std::fmt::Debug + 'static,
1199{
1200 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_guest_user::UpdateGuestUserError, R>) -> Self {
1201 match err {
1202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1205 source: err.into(),
1206 }),
1207 }
1208 }
1209}
1210impl From<crate::operation::update_guest_user::UpdateGuestUserError> for Error {
1211 fn from(err: crate::operation::update_guest_user::UpdateGuestUserError) -> Self {
1212 match err {
1213 crate::operation::update_guest_user::UpdateGuestUserError::BadRequestError(inner) => Error::BadRequestError(inner),
1214 crate::operation::update_guest_user::UpdateGuestUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1215 crate::operation::update_guest_user::UpdateGuestUserError::InternalServerError(inner) => Error::InternalServerError(inner),
1216 crate::operation::update_guest_user::UpdateGuestUserError::RateLimitError(inner) => Error::RateLimitError(inner),
1217 crate::operation::update_guest_user::UpdateGuestUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1218 crate::operation::update_guest_user::UpdateGuestUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1219 crate::operation::update_guest_user::UpdateGuestUserError::ValidationError(inner) => Error::ValidationError(inner),
1220 crate::operation::update_guest_user::UpdateGuestUserError::Unhandled(inner) => Error::Unhandled(inner),
1221 }
1222 }
1223}
1224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network::UpdateNetworkError, R>> for Error
1225where
1226 R: Send + Sync + std::fmt::Debug + 'static,
1227{
1228 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network::UpdateNetworkError, R>) -> Self {
1229 match err {
1230 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1231 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1232 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1233 source: err.into(),
1234 }),
1235 }
1236 }
1237}
1238impl From<crate::operation::update_network::UpdateNetworkError> for Error {
1239 fn from(err: crate::operation::update_network::UpdateNetworkError) -> Self {
1240 match err {
1241 crate::operation::update_network::UpdateNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
1242 crate::operation::update_network::UpdateNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1243 crate::operation::update_network::UpdateNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
1244 crate::operation::update_network::UpdateNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
1245 crate::operation::update_network::UpdateNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1246 crate::operation::update_network::UpdateNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1247 crate::operation::update_network::UpdateNetworkError::ValidationError(inner) => Error::ValidationError(inner),
1248 crate::operation::update_network::UpdateNetworkError::Unhandled(inner) => Error::Unhandled(inner),
1249 }
1250 }
1251}
1252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>> for Error
1253where
1254 R: Send + Sync + std::fmt::Debug + 'static,
1255{
1256 fn from(
1257 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>,
1258 ) -> Self {
1259 match err {
1260 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1261 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1262 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1263 source: err.into(),
1264 }),
1265 }
1266 }
1267}
1268impl From<crate::operation::update_network_settings::UpdateNetworkSettingsError> for Error {
1269 fn from(err: crate::operation::update_network_settings::UpdateNetworkSettingsError) -> Self {
1270 match err {
1271 crate::operation::update_network_settings::UpdateNetworkSettingsError::BadRequestError(inner) => Error::BadRequestError(inner),
1272 crate::operation::update_network_settings::UpdateNetworkSettingsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1273 crate::operation::update_network_settings::UpdateNetworkSettingsError::InternalServerError(inner) => Error::InternalServerError(inner),
1274 crate::operation::update_network_settings::UpdateNetworkSettingsError::RateLimitError(inner) => Error::RateLimitError(inner),
1275 crate::operation::update_network_settings::UpdateNetworkSettingsError::ResourceNotFoundError(inner) => {
1276 Error::ResourceNotFoundError(inner)
1277 }
1278 crate::operation::update_network_settings::UpdateNetworkSettingsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1279 crate::operation::update_network_settings::UpdateNetworkSettingsError::ValidationError(inner) => Error::ValidationError(inner),
1280 crate::operation::update_network_settings::UpdateNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1281 }
1282 }
1283}
1284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_group::UpdateSecurityGroupError, 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_security_group::UpdateSecurityGroupError, 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_security_group::UpdateSecurityGroupError> for Error {
1299 fn from(err: crate::operation::update_security_group::UpdateSecurityGroupError) -> Self {
1300 match err {
1301 crate::operation::update_security_group::UpdateSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
1302 crate::operation::update_security_group::UpdateSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1303 crate::operation::update_security_group::UpdateSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
1304 crate::operation::update_security_group::UpdateSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
1305 crate::operation::update_security_group::UpdateSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1306 crate::operation::update_security_group::UpdateSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1307 crate::operation::update_security_group::UpdateSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
1308 crate::operation::update_security_group::UpdateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
1309 }
1310 }
1311}
1312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>> for Error
1313where
1314 R: Send + Sync + std::fmt::Debug + 'static,
1315{
1316 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>) -> Self {
1317 match err {
1318 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1319 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1320 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1321 source: err.into(),
1322 }),
1323 }
1324 }
1325}
1326impl From<crate::operation::update_user::UpdateUserError> for Error {
1327 fn from(err: crate::operation::update_user::UpdateUserError) -> Self {
1328 match err {
1329 crate::operation::update_user::UpdateUserError::BadRequestError(inner) => Error::BadRequestError(inner),
1330 crate::operation::update_user::UpdateUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
1331 crate::operation::update_user::UpdateUserError::InternalServerError(inner) => Error::InternalServerError(inner),
1332 crate::operation::update_user::UpdateUserError::RateLimitError(inner) => Error::RateLimitError(inner),
1333 crate::operation::update_user::UpdateUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
1334 crate::operation::update_user::UpdateUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
1335 crate::operation::update_user::UpdateUserError::ValidationError(inner) => Error::ValidationError(inner),
1336 crate::operation::update_user::UpdateUserError::Unhandled(inner) => Error::Unhandled(inner),
1337 }
1338 }
1339}
1340impl ::std::error::Error for Error {
1341 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1342 match self {
1343 Error::BadRequestError(inner) => inner.source(),
1344 Error::ForbiddenError(inner) => inner.source(),
1345 Error::InternalServerError(inner) => inner.source(),
1346 Error::RateLimitError(inner) => inner.source(),
1347 Error::ResourceNotFoundError(inner) => inner.source(),
1348 Error::UnauthorizedError(inner) => inner.source(),
1349 Error::ValidationError(inner) => inner.source(),
1350 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1351 }
1352 }
1353}
1354impl ::aws_types::request_id::RequestId for Error {
1355 fn request_id(&self) -> Option<&str> {
1356 match self {
1357 Self::BadRequestError(e) => e.request_id(),
1358 Self::ForbiddenError(e) => e.request_id(),
1359 Self::InternalServerError(e) => e.request_id(),
1360 Self::RateLimitError(e) => e.request_id(),
1361 Self::ResourceNotFoundError(e) => e.request_id(),
1362 Self::UnauthorizedError(e) => e.request_id(),
1363 Self::ValidationError(e) => e.request_id(),
1364 Self::Unhandled(e) => e.meta.request_id(),
1365 }
1366 }
1367}