1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerException(crate::types::error::InternalServerException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 TooManyTagsException(crate::types::error::TooManyTagsException),
20 ValidationException(crate::types::error::ValidationException),
22 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24 variable wildcard pattern and check `.code()`:
25 \
26 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27 \
28 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29 Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 match self {
34 Error::AccessDeniedException(inner) => inner.fmt(f),
35 Error::ConflictException(inner) => inner.fmt(f),
36 Error::InternalServerException(inner) => inner.fmt(f),
37 Error::ResourceNotFoundException(inner) => inner.fmt(f),
38 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
39 Error::ThrottlingException(inner) => inner.fmt(f),
40 Error::TooManyTagsException(inner) => inner.fmt(f),
41 Error::ValidationException(inner) => inner.fmt(f),
42 Error::Unhandled(_) => {
43 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44 write!(f, "unhandled error ({code})")
45 } else {
46 f.write_str("unhandled error")
47 }
48 }
49 }
50 }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55 source: value.into(),
56 meta: ::std::default::Default::default(),
57 })
58 }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62 match self {
63 Self::AccessDeniedException(inner) => inner.meta(),
64 Self::ConflictException(inner) => inner.meta(),
65 Self::InternalServerException(inner) => inner.meta(),
66 Self::ResourceNotFoundException(inner) => inner.meta(),
67 Self::ServiceQuotaExceededException(inner) => inner.meta(),
68 Self::ThrottlingException(inner) => inner.meta(),
69 Self::TooManyTagsException(inner) => inner.meta(),
70 Self::ValidationException(inner) => inner.meta(),
71 Self::Unhandled(inner) => &inner.meta,
72 }
73 }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_browser_settings::AssociateBrowserSettingsError, R>>
76 for Error
77where
78 R: Send + Sync + std::fmt::Debug + 'static,
79{
80 fn from(
81 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_browser_settings::AssociateBrowserSettingsError, R>,
82 ) -> Self {
83 match err {
84 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
85 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
86 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
87 source: err.into(),
88 }),
89 }
90 }
91}
92impl From<crate::operation::associate_browser_settings::AssociateBrowserSettingsError> for Error {
93 fn from(err: crate::operation::associate_browser_settings::AssociateBrowserSettingsError) -> Self {
94 match err {
95 crate::operation::associate_browser_settings::AssociateBrowserSettingsError::AccessDeniedException(inner) => {
96 Error::AccessDeniedException(inner)
97 }
98 crate::operation::associate_browser_settings::AssociateBrowserSettingsError::ConflictException(inner) => Error::ConflictException(inner),
99 crate::operation::associate_browser_settings::AssociateBrowserSettingsError::InternalServerException(inner) => {
100 Error::InternalServerException(inner)
101 }
102 crate::operation::associate_browser_settings::AssociateBrowserSettingsError::ResourceNotFoundException(inner) => {
103 Error::ResourceNotFoundException(inner)
104 }
105 crate::operation::associate_browser_settings::AssociateBrowserSettingsError::ThrottlingException(inner) => {
106 Error::ThrottlingException(inner)
107 }
108 crate::operation::associate_browser_settings::AssociateBrowserSettingsError::ValidationException(inner) => {
109 Error::ValidationException(inner)
110 }
111 crate::operation::associate_browser_settings::AssociateBrowserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
112 }
113 }
114}
115impl<R>
116 From<
117 ::aws_smithy_runtime_api::client::result::SdkError<
118 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError,
119 R,
120 >,
121 > for Error
122where
123 R: Send + Sync + std::fmt::Debug + 'static,
124{
125 fn from(
126 err: ::aws_smithy_runtime_api::client::result::SdkError<
127 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError,
128 R,
129 >,
130 ) -> Self {
131 match err {
132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
135 source: err.into(),
136 }),
137 }
138 }
139}
140impl From<crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError> for Error {
141 fn from(err: crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError) -> Self {
142 match err {
143 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError::AccessDeniedException(inner) => {
144 Error::AccessDeniedException(inner)
145 }
146 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError::ConflictException(inner) => {
147 Error::ConflictException(inner)
148 }
149 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError::InternalServerException(inner) => {
150 Error::InternalServerException(inner)
151 }
152 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError::ResourceNotFoundException(inner) => {
153 Error::ResourceNotFoundException(inner)
154 }
155 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError::ThrottlingException(inner) => {
156 Error::ThrottlingException(inner)
157 }
158 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError::ValidationException(inner) => {
159 Error::ValidationException(inner)
160 }
161 crate::operation::associate_data_protection_settings::AssociateDataProtectionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
162 }
163 }
164}
165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError, R>>
166 for Error
167where
168 R: Send + Sync + std::fmt::Debug + 'static,
169{
170 fn from(
171 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError, R>,
172 ) -> Self {
173 match err {
174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
177 source: err.into(),
178 }),
179 }
180 }
181}
182impl From<crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError> for Error {
183 fn from(err: crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError) -> Self {
184 match err {
185 crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError::AccessDeniedException(inner) => {
186 Error::AccessDeniedException(inner)
187 }
188 crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError::ConflictException(inner) => {
189 Error::ConflictException(inner)
190 }
191 crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError::InternalServerException(inner) => {
192 Error::InternalServerException(inner)
193 }
194 crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError::ResourceNotFoundException(inner) => {
195 Error::ResourceNotFoundException(inner)
196 }
197 crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError::ThrottlingException(inner) => {
198 Error::ThrottlingException(inner)
199 }
200 crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError::ValidationException(inner) => {
201 Error::ValidationException(inner)
202 }
203 crate::operation::associate_ip_access_settings::AssociateIpAccessSettingsError::Unhandled(inner) => Error::Unhandled(inner),
204 }
205 }
206}
207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_network_settings::AssociateNetworkSettingsError, R>>
208 for Error
209where
210 R: Send + Sync + std::fmt::Debug + 'static,
211{
212 fn from(
213 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_network_settings::AssociateNetworkSettingsError, R>,
214 ) -> Self {
215 match err {
216 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
217 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
218 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
219 source: err.into(),
220 }),
221 }
222 }
223}
224impl From<crate::operation::associate_network_settings::AssociateNetworkSettingsError> for Error {
225 fn from(err: crate::operation::associate_network_settings::AssociateNetworkSettingsError) -> Self {
226 match err {
227 crate::operation::associate_network_settings::AssociateNetworkSettingsError::AccessDeniedException(inner) => {
228 Error::AccessDeniedException(inner)
229 }
230 crate::operation::associate_network_settings::AssociateNetworkSettingsError::ConflictException(inner) => Error::ConflictException(inner),
231 crate::operation::associate_network_settings::AssociateNetworkSettingsError::InternalServerException(inner) => {
232 Error::InternalServerException(inner)
233 }
234 crate::operation::associate_network_settings::AssociateNetworkSettingsError::ResourceNotFoundException(inner) => {
235 Error::ResourceNotFoundException(inner)
236 }
237 crate::operation::associate_network_settings::AssociateNetworkSettingsError::ThrottlingException(inner) => {
238 Error::ThrottlingException(inner)
239 }
240 crate::operation::associate_network_settings::AssociateNetworkSettingsError::ValidationException(inner) => {
241 Error::ValidationException(inner)
242 }
243 crate::operation::associate_network_settings::AssociateNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
244 }
245 }
246}
247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_session_logger::AssociateSessionLoggerError, R>> for Error
248where
249 R: Send + Sync + std::fmt::Debug + 'static,
250{
251 fn from(
252 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_session_logger::AssociateSessionLoggerError, R>,
253 ) -> Self {
254 match err {
255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
258 source: err.into(),
259 }),
260 }
261 }
262}
263impl From<crate::operation::associate_session_logger::AssociateSessionLoggerError> for Error {
264 fn from(err: crate::operation::associate_session_logger::AssociateSessionLoggerError) -> Self {
265 match err {
266 crate::operation::associate_session_logger::AssociateSessionLoggerError::AccessDeniedException(inner) => {
267 Error::AccessDeniedException(inner)
268 }
269 crate::operation::associate_session_logger::AssociateSessionLoggerError::ConflictException(inner) => Error::ConflictException(inner),
270 crate::operation::associate_session_logger::AssociateSessionLoggerError::InternalServerException(inner) => {
271 Error::InternalServerException(inner)
272 }
273 crate::operation::associate_session_logger::AssociateSessionLoggerError::ResourceNotFoundException(inner) => {
274 Error::ResourceNotFoundException(inner)
275 }
276 crate::operation::associate_session_logger::AssociateSessionLoggerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
277 crate::operation::associate_session_logger::AssociateSessionLoggerError::ValidationException(inner) => Error::ValidationException(inner),
278 crate::operation::associate_session_logger::AssociateSessionLoggerError::Unhandled(inner) => Error::Unhandled(inner),
279 }
280 }
281}
282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trust_store::AssociateTrustStoreError, R>> for Error
283where
284 R: Send + Sync + std::fmt::Debug + 'static,
285{
286 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trust_store::AssociateTrustStoreError, R>) -> Self {
287 match err {
288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
291 source: err.into(),
292 }),
293 }
294 }
295}
296impl From<crate::operation::associate_trust_store::AssociateTrustStoreError> for Error {
297 fn from(err: crate::operation::associate_trust_store::AssociateTrustStoreError) -> Self {
298 match err {
299 crate::operation::associate_trust_store::AssociateTrustStoreError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
300 crate::operation::associate_trust_store::AssociateTrustStoreError::ConflictException(inner) => Error::ConflictException(inner),
301 crate::operation::associate_trust_store::AssociateTrustStoreError::InternalServerException(inner) => {
302 Error::InternalServerException(inner)
303 }
304 crate::operation::associate_trust_store::AssociateTrustStoreError::ResourceNotFoundException(inner) => {
305 Error::ResourceNotFoundException(inner)
306 }
307 crate::operation::associate_trust_store::AssociateTrustStoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
308 crate::operation::associate_trust_store::AssociateTrustStoreError::ValidationException(inner) => Error::ValidationException(inner),
309 crate::operation::associate_trust_store::AssociateTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
310 }
311 }
312}
313impl<R>
314 From<
315 ::aws_smithy_runtime_api::client::result::SdkError<
316 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError,
317 R,
318 >,
319 > for Error
320where
321 R: Send + Sync + std::fmt::Debug + 'static,
322{
323 fn from(
324 err: ::aws_smithy_runtime_api::client::result::SdkError<
325 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError,
326 R,
327 >,
328 ) -> Self {
329 match err {
330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
333 source: err.into(),
334 }),
335 }
336 }
337}
338impl From<crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError> for Error {
339 fn from(err: crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError) -> Self {
340 match err {
341 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError::AccessDeniedException(inner) => {
342 Error::AccessDeniedException(inner)
343 }
344 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError::ConflictException(inner) => {
345 Error::ConflictException(inner)
346 }
347 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError::InternalServerException(inner) => {
348 Error::InternalServerException(inner)
349 }
350 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError::ResourceNotFoundException(inner) => {
351 Error::ResourceNotFoundException(inner)
352 }
353 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError::ThrottlingException(inner) => {
354 Error::ThrottlingException(inner)
355 }
356 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError::ValidationException(inner) => {
357 Error::ValidationException(inner)
358 }
359 crate::operation::associate_user_access_logging_settings::AssociateUserAccessLoggingSettingsError::Unhandled(inner) => {
360 Error::Unhandled(inner)
361 }
362 }
363 }
364}
365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_user_settings::AssociateUserSettingsError, R>> for Error
366where
367 R: Send + Sync + std::fmt::Debug + 'static,
368{
369 fn from(
370 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_user_settings::AssociateUserSettingsError, R>,
371 ) -> Self {
372 match err {
373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
376 source: err.into(),
377 }),
378 }
379 }
380}
381impl From<crate::operation::associate_user_settings::AssociateUserSettingsError> for Error {
382 fn from(err: crate::operation::associate_user_settings::AssociateUserSettingsError) -> Self {
383 match err {
384 crate::operation::associate_user_settings::AssociateUserSettingsError::AccessDeniedException(inner) => {
385 Error::AccessDeniedException(inner)
386 }
387 crate::operation::associate_user_settings::AssociateUserSettingsError::ConflictException(inner) => Error::ConflictException(inner),
388 crate::operation::associate_user_settings::AssociateUserSettingsError::InternalServerException(inner) => {
389 Error::InternalServerException(inner)
390 }
391 crate::operation::associate_user_settings::AssociateUserSettingsError::ResourceNotFoundException(inner) => {
392 Error::ResourceNotFoundException(inner)
393 }
394 crate::operation::associate_user_settings::AssociateUserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
395 crate::operation::associate_user_settings::AssociateUserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
396 crate::operation::associate_user_settings::AssociateUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
397 }
398 }
399}
400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_browser_settings::CreateBrowserSettingsError, R>> for Error
401where
402 R: Send + Sync + std::fmt::Debug + 'static,
403{
404 fn from(
405 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_browser_settings::CreateBrowserSettingsError, R>,
406 ) -> Self {
407 match err {
408 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
409 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
410 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
411 source: err.into(),
412 }),
413 }
414 }
415}
416impl From<crate::operation::create_browser_settings::CreateBrowserSettingsError> for Error {
417 fn from(err: crate::operation::create_browser_settings::CreateBrowserSettingsError) -> Self {
418 match err {
419 crate::operation::create_browser_settings::CreateBrowserSettingsError::AccessDeniedException(inner) => {
420 Error::AccessDeniedException(inner)
421 }
422 crate::operation::create_browser_settings::CreateBrowserSettingsError::ConflictException(inner) => Error::ConflictException(inner),
423 crate::operation::create_browser_settings::CreateBrowserSettingsError::InternalServerException(inner) => {
424 Error::InternalServerException(inner)
425 }
426 crate::operation::create_browser_settings::CreateBrowserSettingsError::ResourceNotFoundException(inner) => {
427 Error::ResourceNotFoundException(inner)
428 }
429 crate::operation::create_browser_settings::CreateBrowserSettingsError::ServiceQuotaExceededException(inner) => {
430 Error::ServiceQuotaExceededException(inner)
431 }
432 crate::operation::create_browser_settings::CreateBrowserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
433 crate::operation::create_browser_settings::CreateBrowserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
434 crate::operation::create_browser_settings::CreateBrowserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
435 }
436 }
437}
438impl<R>
439 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError, R>>
440 for Error
441where
442 R: Send + Sync + std::fmt::Debug + 'static,
443{
444 fn from(
445 err: ::aws_smithy_runtime_api::client::result::SdkError<
446 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError,
447 R,
448 >,
449 ) -> Self {
450 match err {
451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
454 source: err.into(),
455 }),
456 }
457 }
458}
459impl From<crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError> for Error {
460 fn from(err: crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError) -> Self {
461 match err {
462 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::AccessDeniedException(inner) => {
463 Error::AccessDeniedException(inner)
464 }
465 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::ConflictException(inner) => {
466 Error::ConflictException(inner)
467 }
468 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::InternalServerException(inner) => {
469 Error::InternalServerException(inner)
470 }
471 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::ResourceNotFoundException(inner) => {
472 Error::ResourceNotFoundException(inner)
473 }
474 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::ServiceQuotaExceededException(inner) => {
475 Error::ServiceQuotaExceededException(inner)
476 }
477 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::ThrottlingException(inner) => {
478 Error::ThrottlingException(inner)
479 }
480 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::ValidationException(inner) => {
481 Error::ValidationException(inner)
482 }
483 crate::operation::create_data_protection_settings::CreateDataProtectionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
484 }
485 }
486}
487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_identity_provider::CreateIdentityProviderError, R>> for Error
488where
489 R: Send + Sync + std::fmt::Debug + 'static,
490{
491 fn from(
492 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_identity_provider::CreateIdentityProviderError, R>,
493 ) -> Self {
494 match err {
495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
498 source: err.into(),
499 }),
500 }
501 }
502}
503impl From<crate::operation::create_identity_provider::CreateIdentityProviderError> for Error {
504 fn from(err: crate::operation::create_identity_provider::CreateIdentityProviderError) -> Self {
505 match err {
506 crate::operation::create_identity_provider::CreateIdentityProviderError::AccessDeniedException(inner) => {
507 Error::AccessDeniedException(inner)
508 }
509 crate::operation::create_identity_provider::CreateIdentityProviderError::ConflictException(inner) => Error::ConflictException(inner),
510 crate::operation::create_identity_provider::CreateIdentityProviderError::InternalServerException(inner) => {
511 Error::InternalServerException(inner)
512 }
513 crate::operation::create_identity_provider::CreateIdentityProviderError::ResourceNotFoundException(inner) => {
514 Error::ResourceNotFoundException(inner)
515 }
516 crate::operation::create_identity_provider::CreateIdentityProviderError::ServiceQuotaExceededException(inner) => {
517 Error::ServiceQuotaExceededException(inner)
518 }
519 crate::operation::create_identity_provider::CreateIdentityProviderError::ThrottlingException(inner) => Error::ThrottlingException(inner),
520 crate::operation::create_identity_provider::CreateIdentityProviderError::ValidationException(inner) => Error::ValidationException(inner),
521 crate::operation::create_identity_provider::CreateIdentityProviderError::Unhandled(inner) => Error::Unhandled(inner),
522 }
523 }
524}
525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ip_access_settings::CreateIpAccessSettingsError, R>>
526 for Error
527where
528 R: Send + Sync + std::fmt::Debug + 'static,
529{
530 fn from(
531 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ip_access_settings::CreateIpAccessSettingsError, R>,
532 ) -> Self {
533 match err {
534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
537 source: err.into(),
538 }),
539 }
540 }
541}
542impl From<crate::operation::create_ip_access_settings::CreateIpAccessSettingsError> for Error {
543 fn from(err: crate::operation::create_ip_access_settings::CreateIpAccessSettingsError) -> Self {
544 match err {
545 crate::operation::create_ip_access_settings::CreateIpAccessSettingsError::AccessDeniedException(inner) => {
546 Error::AccessDeniedException(inner)
547 }
548 crate::operation::create_ip_access_settings::CreateIpAccessSettingsError::ConflictException(inner) => Error::ConflictException(inner),
549 crate::operation::create_ip_access_settings::CreateIpAccessSettingsError::InternalServerException(inner) => {
550 Error::InternalServerException(inner)
551 }
552 crate::operation::create_ip_access_settings::CreateIpAccessSettingsError::ServiceQuotaExceededException(inner) => {
553 Error::ServiceQuotaExceededException(inner)
554 }
555 crate::operation::create_ip_access_settings::CreateIpAccessSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
556 crate::operation::create_ip_access_settings::CreateIpAccessSettingsError::ValidationException(inner) => Error::ValidationException(inner),
557 crate::operation::create_ip_access_settings::CreateIpAccessSettingsError::Unhandled(inner) => Error::Unhandled(inner),
558 }
559 }
560}
561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_settings::CreateNetworkSettingsError, R>> for Error
562where
563 R: Send + Sync + std::fmt::Debug + 'static,
564{
565 fn from(
566 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_settings::CreateNetworkSettingsError, R>,
567 ) -> Self {
568 match err {
569 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
570 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
571 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
572 source: err.into(),
573 }),
574 }
575 }
576}
577impl From<crate::operation::create_network_settings::CreateNetworkSettingsError> for Error {
578 fn from(err: crate::operation::create_network_settings::CreateNetworkSettingsError) -> Self {
579 match err {
580 crate::operation::create_network_settings::CreateNetworkSettingsError::AccessDeniedException(inner) => {
581 Error::AccessDeniedException(inner)
582 }
583 crate::operation::create_network_settings::CreateNetworkSettingsError::ConflictException(inner) => Error::ConflictException(inner),
584 crate::operation::create_network_settings::CreateNetworkSettingsError::InternalServerException(inner) => {
585 Error::InternalServerException(inner)
586 }
587 crate::operation::create_network_settings::CreateNetworkSettingsError::ServiceQuotaExceededException(inner) => {
588 Error::ServiceQuotaExceededException(inner)
589 }
590 crate::operation::create_network_settings::CreateNetworkSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
591 crate::operation::create_network_settings::CreateNetworkSettingsError::ValidationException(inner) => Error::ValidationException(inner),
592 crate::operation::create_network_settings::CreateNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
593 }
594 }
595}
596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_portal::CreatePortalError, R>> for Error
597where
598 R: Send + Sync + std::fmt::Debug + 'static,
599{
600 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_portal::CreatePortalError, R>) -> Self {
601 match err {
602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
605 source: err.into(),
606 }),
607 }
608 }
609}
610impl From<crate::operation::create_portal::CreatePortalError> for Error {
611 fn from(err: crate::operation::create_portal::CreatePortalError) -> Self {
612 match err {
613 crate::operation::create_portal::CreatePortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
614 crate::operation::create_portal::CreatePortalError::ConflictException(inner) => Error::ConflictException(inner),
615 crate::operation::create_portal::CreatePortalError::InternalServerException(inner) => Error::InternalServerException(inner),
616 crate::operation::create_portal::CreatePortalError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
617 crate::operation::create_portal::CreatePortalError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
618 crate::operation::create_portal::CreatePortalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
619 crate::operation::create_portal::CreatePortalError::ValidationException(inner) => Error::ValidationException(inner),
620 crate::operation::create_portal::CreatePortalError::Unhandled(inner) => Error::Unhandled(inner),
621 }
622 }
623}
624impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_session_logger::CreateSessionLoggerError, R>> for Error
625where
626 R: Send + Sync + std::fmt::Debug + 'static,
627{
628 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_session_logger::CreateSessionLoggerError, R>) -> Self {
629 match err {
630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
633 source: err.into(),
634 }),
635 }
636 }
637}
638impl From<crate::operation::create_session_logger::CreateSessionLoggerError> for Error {
639 fn from(err: crate::operation::create_session_logger::CreateSessionLoggerError) -> Self {
640 match err {
641 crate::operation::create_session_logger::CreateSessionLoggerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
642 crate::operation::create_session_logger::CreateSessionLoggerError::ConflictException(inner) => Error::ConflictException(inner),
643 crate::operation::create_session_logger::CreateSessionLoggerError::InternalServerException(inner) => {
644 Error::InternalServerException(inner)
645 }
646 crate::operation::create_session_logger::CreateSessionLoggerError::ServiceQuotaExceededException(inner) => {
647 Error::ServiceQuotaExceededException(inner)
648 }
649 crate::operation::create_session_logger::CreateSessionLoggerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
650 crate::operation::create_session_logger::CreateSessionLoggerError::ValidationException(inner) => Error::ValidationException(inner),
651 crate::operation::create_session_logger::CreateSessionLoggerError::Unhandled(inner) => Error::Unhandled(inner),
652 }
653 }
654}
655impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trust_store::CreateTrustStoreError, R>> for Error
656where
657 R: Send + Sync + std::fmt::Debug + 'static,
658{
659 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trust_store::CreateTrustStoreError, R>) -> Self {
660 match err {
661 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
662 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
663 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
664 source: err.into(),
665 }),
666 }
667 }
668}
669impl From<crate::operation::create_trust_store::CreateTrustStoreError> for Error {
670 fn from(err: crate::operation::create_trust_store::CreateTrustStoreError) -> Self {
671 match err {
672 crate::operation::create_trust_store::CreateTrustStoreError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
673 crate::operation::create_trust_store::CreateTrustStoreError::ConflictException(inner) => Error::ConflictException(inner),
674 crate::operation::create_trust_store::CreateTrustStoreError::InternalServerException(inner) => Error::InternalServerException(inner),
675 crate::operation::create_trust_store::CreateTrustStoreError::ServiceQuotaExceededException(inner) => {
676 Error::ServiceQuotaExceededException(inner)
677 }
678 crate::operation::create_trust_store::CreateTrustStoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
679 crate::operation::create_trust_store::CreateTrustStoreError::ValidationException(inner) => Error::ValidationException(inner),
680 crate::operation::create_trust_store::CreateTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
681 }
682 }
683}
684impl<R>
685 From<
686 ::aws_smithy_runtime_api::client::result::SdkError<
687 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError,
688 R,
689 >,
690 > for Error
691where
692 R: Send + Sync + std::fmt::Debug + 'static,
693{
694 fn from(
695 err: ::aws_smithy_runtime_api::client::result::SdkError<
696 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError,
697 R,
698 >,
699 ) -> Self {
700 match err {
701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
704 source: err.into(),
705 }),
706 }
707 }
708}
709impl From<crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError> for Error {
710 fn from(err: crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError) -> Self {
711 match err {
712 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError::AccessDeniedException(inner) => {
713 Error::AccessDeniedException(inner)
714 }
715 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError::ConflictException(inner) => {
716 Error::ConflictException(inner)
717 }
718 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError::InternalServerException(inner) => {
719 Error::InternalServerException(inner)
720 }
721 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError::ServiceQuotaExceededException(inner) => {
722 Error::ServiceQuotaExceededException(inner)
723 }
724 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError::ThrottlingException(inner) => {
725 Error::ThrottlingException(inner)
726 }
727 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError::ValidationException(inner) => {
728 Error::ValidationException(inner)
729 }
730 crate::operation::create_user_access_logging_settings::CreateUserAccessLoggingSettingsError::Unhandled(inner) => Error::Unhandled(inner),
731 }
732 }
733}
734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_settings::CreateUserSettingsError, R>> for Error
735where
736 R: Send + Sync + std::fmt::Debug + 'static,
737{
738 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_settings::CreateUserSettingsError, R>) -> Self {
739 match err {
740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743 source: err.into(),
744 }),
745 }
746 }
747}
748impl From<crate::operation::create_user_settings::CreateUserSettingsError> for Error {
749 fn from(err: crate::operation::create_user_settings::CreateUserSettingsError) -> Self {
750 match err {
751 crate::operation::create_user_settings::CreateUserSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
752 crate::operation::create_user_settings::CreateUserSettingsError::ConflictException(inner) => Error::ConflictException(inner),
753 crate::operation::create_user_settings::CreateUserSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
754 crate::operation::create_user_settings::CreateUserSettingsError::ServiceQuotaExceededException(inner) => {
755 Error::ServiceQuotaExceededException(inner)
756 }
757 crate::operation::create_user_settings::CreateUserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
758 crate::operation::create_user_settings::CreateUserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
759 crate::operation::create_user_settings::CreateUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
760 }
761 }
762}
763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_browser_settings::DeleteBrowserSettingsError, R>> for Error
764where
765 R: Send + Sync + std::fmt::Debug + 'static,
766{
767 fn from(
768 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_browser_settings::DeleteBrowserSettingsError, R>,
769 ) -> Self {
770 match err {
771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
774 source: err.into(),
775 }),
776 }
777 }
778}
779impl From<crate::operation::delete_browser_settings::DeleteBrowserSettingsError> for Error {
780 fn from(err: crate::operation::delete_browser_settings::DeleteBrowserSettingsError) -> Self {
781 match err {
782 crate::operation::delete_browser_settings::DeleteBrowserSettingsError::AccessDeniedException(inner) => {
783 Error::AccessDeniedException(inner)
784 }
785 crate::operation::delete_browser_settings::DeleteBrowserSettingsError::ConflictException(inner) => Error::ConflictException(inner),
786 crate::operation::delete_browser_settings::DeleteBrowserSettingsError::InternalServerException(inner) => {
787 Error::InternalServerException(inner)
788 }
789 crate::operation::delete_browser_settings::DeleteBrowserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
790 crate::operation::delete_browser_settings::DeleteBrowserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
791 crate::operation::delete_browser_settings::DeleteBrowserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
792 }
793 }
794}
795impl<R>
796 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError, R>>
797 for Error
798where
799 R: Send + Sync + std::fmt::Debug + 'static,
800{
801 fn from(
802 err: ::aws_smithy_runtime_api::client::result::SdkError<
803 crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError,
804 R,
805 >,
806 ) -> Self {
807 match err {
808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
811 source: err.into(),
812 }),
813 }
814 }
815}
816impl From<crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError> for Error {
817 fn from(err: crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError) -> Self {
818 match err {
819 crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError::AccessDeniedException(inner) => {
820 Error::AccessDeniedException(inner)
821 }
822 crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError::ConflictException(inner) => {
823 Error::ConflictException(inner)
824 }
825 crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError::InternalServerException(inner) => {
826 Error::InternalServerException(inner)
827 }
828 crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError::ThrottlingException(inner) => {
829 Error::ThrottlingException(inner)
830 }
831 crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError::ValidationException(inner) => {
832 Error::ValidationException(inner)
833 }
834 crate::operation::delete_data_protection_settings::DeleteDataProtectionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
835 }
836 }
837}
838impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_provider::DeleteIdentityProviderError, R>> for Error
839where
840 R: Send + Sync + std::fmt::Debug + 'static,
841{
842 fn from(
843 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_provider::DeleteIdentityProviderError, R>,
844 ) -> Self {
845 match err {
846 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
847 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
848 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
849 source: err.into(),
850 }),
851 }
852 }
853}
854impl From<crate::operation::delete_identity_provider::DeleteIdentityProviderError> for Error {
855 fn from(err: crate::operation::delete_identity_provider::DeleteIdentityProviderError) -> Self {
856 match err {
857 crate::operation::delete_identity_provider::DeleteIdentityProviderError::AccessDeniedException(inner) => {
858 Error::AccessDeniedException(inner)
859 }
860 crate::operation::delete_identity_provider::DeleteIdentityProviderError::ConflictException(inner) => Error::ConflictException(inner),
861 crate::operation::delete_identity_provider::DeleteIdentityProviderError::InternalServerException(inner) => {
862 Error::InternalServerException(inner)
863 }
864 crate::operation::delete_identity_provider::DeleteIdentityProviderError::ThrottlingException(inner) => Error::ThrottlingException(inner),
865 crate::operation::delete_identity_provider::DeleteIdentityProviderError::ValidationException(inner) => Error::ValidationException(inner),
866 crate::operation::delete_identity_provider::DeleteIdentityProviderError::Unhandled(inner) => Error::Unhandled(inner),
867 }
868 }
869}
870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError, R>>
871 for Error
872where
873 R: Send + Sync + std::fmt::Debug + 'static,
874{
875 fn from(
876 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError, R>,
877 ) -> Self {
878 match err {
879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
882 source: err.into(),
883 }),
884 }
885 }
886}
887impl From<crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError> for Error {
888 fn from(err: crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError) -> Self {
889 match err {
890 crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError::AccessDeniedException(inner) => {
891 Error::AccessDeniedException(inner)
892 }
893 crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError::ConflictException(inner) => Error::ConflictException(inner),
894 crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError::InternalServerException(inner) => {
895 Error::InternalServerException(inner)
896 }
897 crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
898 crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError::ValidationException(inner) => Error::ValidationException(inner),
899 crate::operation::delete_ip_access_settings::DeleteIpAccessSettingsError::Unhandled(inner) => Error::Unhandled(inner),
900 }
901 }
902}
903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_settings::DeleteNetworkSettingsError, R>> for Error
904where
905 R: Send + Sync + std::fmt::Debug + 'static,
906{
907 fn from(
908 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_settings::DeleteNetworkSettingsError, R>,
909 ) -> Self {
910 match err {
911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
914 source: err.into(),
915 }),
916 }
917 }
918}
919impl From<crate::operation::delete_network_settings::DeleteNetworkSettingsError> for Error {
920 fn from(err: crate::operation::delete_network_settings::DeleteNetworkSettingsError) -> Self {
921 match err {
922 crate::operation::delete_network_settings::DeleteNetworkSettingsError::AccessDeniedException(inner) => {
923 Error::AccessDeniedException(inner)
924 }
925 crate::operation::delete_network_settings::DeleteNetworkSettingsError::ConflictException(inner) => Error::ConflictException(inner),
926 crate::operation::delete_network_settings::DeleteNetworkSettingsError::InternalServerException(inner) => {
927 Error::InternalServerException(inner)
928 }
929 crate::operation::delete_network_settings::DeleteNetworkSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
930 crate::operation::delete_network_settings::DeleteNetworkSettingsError::ValidationException(inner) => Error::ValidationException(inner),
931 crate::operation::delete_network_settings::DeleteNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
932 }
933 }
934}
935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_portal::DeletePortalError, 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::delete_portal::DeletePortalError, 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::delete_portal::DeletePortalError> for Error {
950 fn from(err: crate::operation::delete_portal::DeletePortalError) -> Self {
951 match err {
952 crate::operation::delete_portal::DeletePortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
953 crate::operation::delete_portal::DeletePortalError::ConflictException(inner) => Error::ConflictException(inner),
954 crate::operation::delete_portal::DeletePortalError::InternalServerException(inner) => Error::InternalServerException(inner),
955 crate::operation::delete_portal::DeletePortalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
956 crate::operation::delete_portal::DeletePortalError::ValidationException(inner) => Error::ValidationException(inner),
957 crate::operation::delete_portal::DeletePortalError::Unhandled(inner) => Error::Unhandled(inner),
958 }
959 }
960}
961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_session_logger::DeleteSessionLoggerError, R>> for Error
962where
963 R: Send + Sync + std::fmt::Debug + 'static,
964{
965 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_session_logger::DeleteSessionLoggerError, R>) -> Self {
966 match err {
967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
970 source: err.into(),
971 }),
972 }
973 }
974}
975impl From<crate::operation::delete_session_logger::DeleteSessionLoggerError> for Error {
976 fn from(err: crate::operation::delete_session_logger::DeleteSessionLoggerError) -> Self {
977 match err {
978 crate::operation::delete_session_logger::DeleteSessionLoggerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
979 crate::operation::delete_session_logger::DeleteSessionLoggerError::ConflictException(inner) => Error::ConflictException(inner),
980 crate::operation::delete_session_logger::DeleteSessionLoggerError::InternalServerException(inner) => {
981 Error::InternalServerException(inner)
982 }
983 crate::operation::delete_session_logger::DeleteSessionLoggerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
984 crate::operation::delete_session_logger::DeleteSessionLoggerError::ValidationException(inner) => Error::ValidationException(inner),
985 crate::operation::delete_session_logger::DeleteSessionLoggerError::Unhandled(inner) => Error::Unhandled(inner),
986 }
987 }
988}
989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trust_store::DeleteTrustStoreError, R>> for Error
990where
991 R: Send + Sync + std::fmt::Debug + 'static,
992{
993 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trust_store::DeleteTrustStoreError, R>) -> Self {
994 match err {
995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
998 source: err.into(),
999 }),
1000 }
1001 }
1002}
1003impl From<crate::operation::delete_trust_store::DeleteTrustStoreError> for Error {
1004 fn from(err: crate::operation::delete_trust_store::DeleteTrustStoreError) -> Self {
1005 match err {
1006 crate::operation::delete_trust_store::DeleteTrustStoreError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1007 crate::operation::delete_trust_store::DeleteTrustStoreError::ConflictException(inner) => Error::ConflictException(inner),
1008 crate::operation::delete_trust_store::DeleteTrustStoreError::InternalServerException(inner) => Error::InternalServerException(inner),
1009 crate::operation::delete_trust_store::DeleteTrustStoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1010 crate::operation::delete_trust_store::DeleteTrustStoreError::ValidationException(inner) => Error::ValidationException(inner),
1011 crate::operation::delete_trust_store::DeleteTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
1012 }
1013 }
1014}
1015impl<R>
1016 From<
1017 ::aws_smithy_runtime_api::client::result::SdkError<
1018 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError,
1019 R,
1020 >,
1021 > for Error
1022where
1023 R: Send + Sync + std::fmt::Debug + 'static,
1024{
1025 fn from(
1026 err: ::aws_smithy_runtime_api::client::result::SdkError<
1027 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError,
1028 R,
1029 >,
1030 ) -> Self {
1031 match err {
1032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1035 source: err.into(),
1036 }),
1037 }
1038 }
1039}
1040impl From<crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError> for Error {
1041 fn from(err: crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError) -> Self {
1042 match err {
1043 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError::AccessDeniedException(inner) => {
1044 Error::AccessDeniedException(inner)
1045 }
1046 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError::ConflictException(inner) => {
1047 Error::ConflictException(inner)
1048 }
1049 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError::InternalServerException(inner) => {
1050 Error::InternalServerException(inner)
1051 }
1052 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError::ThrottlingException(inner) => {
1053 Error::ThrottlingException(inner)
1054 }
1055 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError::ValidationException(inner) => {
1056 Error::ValidationException(inner)
1057 }
1058 crate::operation::delete_user_access_logging_settings::DeleteUserAccessLoggingSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1059 }
1060 }
1061}
1062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_settings::DeleteUserSettingsError, R>> for Error
1063where
1064 R: Send + Sync + std::fmt::Debug + 'static,
1065{
1066 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_settings::DeleteUserSettingsError, R>) -> Self {
1067 match err {
1068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1071 source: err.into(),
1072 }),
1073 }
1074 }
1075}
1076impl From<crate::operation::delete_user_settings::DeleteUserSettingsError> for Error {
1077 fn from(err: crate::operation::delete_user_settings::DeleteUserSettingsError) -> Self {
1078 match err {
1079 crate::operation::delete_user_settings::DeleteUserSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1080 crate::operation::delete_user_settings::DeleteUserSettingsError::ConflictException(inner) => Error::ConflictException(inner),
1081 crate::operation::delete_user_settings::DeleteUserSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
1082 crate::operation::delete_user_settings::DeleteUserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1083 crate::operation::delete_user_settings::DeleteUserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1084 crate::operation::delete_user_settings::DeleteUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1085 }
1086 }
1087}
1088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError, R>>
1089 for Error
1090where
1091 R: Send + Sync + std::fmt::Debug + 'static,
1092{
1093 fn from(
1094 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError, R>,
1095 ) -> Self {
1096 match err {
1097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1100 source: err.into(),
1101 }),
1102 }
1103 }
1104}
1105impl From<crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError> for Error {
1106 fn from(err: crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError) -> Self {
1107 match err {
1108 crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError::AccessDeniedException(inner) => {
1109 Error::AccessDeniedException(inner)
1110 }
1111 crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError::ConflictException(inner) => {
1112 Error::ConflictException(inner)
1113 }
1114 crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError::InternalServerException(inner) => {
1115 Error::InternalServerException(inner)
1116 }
1117 crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError::ResourceNotFoundException(inner) => {
1118 Error::ResourceNotFoundException(inner)
1119 }
1120 crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError::ThrottlingException(inner) => {
1121 Error::ThrottlingException(inner)
1122 }
1123 crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError::ValidationException(inner) => {
1124 Error::ValidationException(inner)
1125 }
1126 crate::operation::disassociate_browser_settings::DisassociateBrowserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1127 }
1128 }
1129}
1130impl<R>
1131 From<
1132 ::aws_smithy_runtime_api::client::result::SdkError<
1133 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError,
1134 R,
1135 >,
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<
1142 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError,
1143 R,
1144 >,
1145 ) -> Self {
1146 match err {
1147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1150 source: err.into(),
1151 }),
1152 }
1153 }
1154}
1155impl From<crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError> for Error {
1156 fn from(err: crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError) -> Self {
1157 match err {
1158 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError::AccessDeniedException(inner) => {
1159 Error::AccessDeniedException(inner)
1160 }
1161 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError::ConflictException(inner) => {
1162 Error::ConflictException(inner)
1163 }
1164 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError::InternalServerException(inner) => {
1165 Error::InternalServerException(inner)
1166 }
1167 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError::ResourceNotFoundException(inner) => {
1168 Error::ResourceNotFoundException(inner)
1169 }
1170 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError::ThrottlingException(inner) => {
1171 Error::ThrottlingException(inner)
1172 }
1173 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError::ValidationException(inner) => {
1174 Error::ValidationException(inner)
1175 }
1176 crate::operation::disassociate_data_protection_settings::DisassociateDataProtectionSettingsError::Unhandled(inner) => {
1177 Error::Unhandled(inner)
1178 }
1179 }
1180 }
1181}
1182impl<R>
1183 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError, R>>
1184 for Error
1185where
1186 R: Send + Sync + std::fmt::Debug + 'static,
1187{
1188 fn from(
1189 err: ::aws_smithy_runtime_api::client::result::SdkError<
1190 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError,
1191 R,
1192 >,
1193 ) -> Self {
1194 match err {
1195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1198 source: err.into(),
1199 }),
1200 }
1201 }
1202}
1203impl From<crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError> for Error {
1204 fn from(err: crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError) -> Self {
1205 match err {
1206 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError::AccessDeniedException(inner) => {
1207 Error::AccessDeniedException(inner)
1208 }
1209 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError::ConflictException(inner) => {
1210 Error::ConflictException(inner)
1211 }
1212 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError::InternalServerException(inner) => {
1213 Error::InternalServerException(inner)
1214 }
1215 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError::ResourceNotFoundException(inner) => {
1216 Error::ResourceNotFoundException(inner)
1217 }
1218 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError::ThrottlingException(inner) => {
1219 Error::ThrottlingException(inner)
1220 }
1221 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError::ValidationException(inner) => {
1222 Error::ValidationException(inner)
1223 }
1224 crate::operation::disassociate_ip_access_settings::DisassociateIpAccessSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1225 }
1226 }
1227}
1228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError, R>>
1229 for Error
1230where
1231 R: Send + Sync + std::fmt::Debug + 'static,
1232{
1233 fn from(
1234 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError, R>,
1235 ) -> Self {
1236 match err {
1237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1240 source: err.into(),
1241 }),
1242 }
1243 }
1244}
1245impl From<crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError> for Error {
1246 fn from(err: crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError) -> Self {
1247 match err {
1248 crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError::AccessDeniedException(inner) => {
1249 Error::AccessDeniedException(inner)
1250 }
1251 crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError::ConflictException(inner) => {
1252 Error::ConflictException(inner)
1253 }
1254 crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError::InternalServerException(inner) => {
1255 Error::InternalServerException(inner)
1256 }
1257 crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError::ResourceNotFoundException(inner) => {
1258 Error::ResourceNotFoundException(inner)
1259 }
1260 crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError::ThrottlingException(inner) => {
1261 Error::ThrottlingException(inner)
1262 }
1263 crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError::ValidationException(inner) => {
1264 Error::ValidationException(inner)
1265 }
1266 crate::operation::disassociate_network_settings::DisassociateNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1267 }
1268 }
1269}
1270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_session_logger::DisassociateSessionLoggerError, R>>
1271 for Error
1272where
1273 R: Send + Sync + std::fmt::Debug + 'static,
1274{
1275 fn from(
1276 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_session_logger::DisassociateSessionLoggerError, R>,
1277 ) -> Self {
1278 match err {
1279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1282 source: err.into(),
1283 }),
1284 }
1285 }
1286}
1287impl From<crate::operation::disassociate_session_logger::DisassociateSessionLoggerError> for Error {
1288 fn from(err: crate::operation::disassociate_session_logger::DisassociateSessionLoggerError) -> Self {
1289 match err {
1290 crate::operation::disassociate_session_logger::DisassociateSessionLoggerError::AccessDeniedException(inner) => {
1291 Error::AccessDeniedException(inner)
1292 }
1293 crate::operation::disassociate_session_logger::DisassociateSessionLoggerError::InternalServerException(inner) => {
1294 Error::InternalServerException(inner)
1295 }
1296 crate::operation::disassociate_session_logger::DisassociateSessionLoggerError::ResourceNotFoundException(inner) => {
1297 Error::ResourceNotFoundException(inner)
1298 }
1299 crate::operation::disassociate_session_logger::DisassociateSessionLoggerError::ThrottlingException(inner) => {
1300 Error::ThrottlingException(inner)
1301 }
1302 crate::operation::disassociate_session_logger::DisassociateSessionLoggerError::ValidationException(inner) => {
1303 Error::ValidationException(inner)
1304 }
1305 crate::operation::disassociate_session_logger::DisassociateSessionLoggerError::Unhandled(inner) => Error::Unhandled(inner),
1306 }
1307 }
1308}
1309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trust_store::DisassociateTrustStoreError, R>> for Error
1310where
1311 R: Send + Sync + std::fmt::Debug + 'static,
1312{
1313 fn from(
1314 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trust_store::DisassociateTrustStoreError, R>,
1315 ) -> Self {
1316 match err {
1317 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1318 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1319 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1320 source: err.into(),
1321 }),
1322 }
1323 }
1324}
1325impl From<crate::operation::disassociate_trust_store::DisassociateTrustStoreError> for Error {
1326 fn from(err: crate::operation::disassociate_trust_store::DisassociateTrustStoreError) -> Self {
1327 match err {
1328 crate::operation::disassociate_trust_store::DisassociateTrustStoreError::AccessDeniedException(inner) => {
1329 Error::AccessDeniedException(inner)
1330 }
1331 crate::operation::disassociate_trust_store::DisassociateTrustStoreError::ConflictException(inner) => Error::ConflictException(inner),
1332 crate::operation::disassociate_trust_store::DisassociateTrustStoreError::InternalServerException(inner) => {
1333 Error::InternalServerException(inner)
1334 }
1335 crate::operation::disassociate_trust_store::DisassociateTrustStoreError::ResourceNotFoundException(inner) => {
1336 Error::ResourceNotFoundException(inner)
1337 }
1338 crate::operation::disassociate_trust_store::DisassociateTrustStoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1339 crate::operation::disassociate_trust_store::DisassociateTrustStoreError::ValidationException(inner) => Error::ValidationException(inner),
1340 crate::operation::disassociate_trust_store::DisassociateTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
1341 }
1342 }
1343}
1344impl<R>
1345 From<
1346 ::aws_smithy_runtime_api::client::result::SdkError<
1347 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError,
1348 R,
1349 >,
1350 > for Error
1351where
1352 R: Send + Sync + std::fmt::Debug + 'static,
1353{
1354 fn from(
1355 err: ::aws_smithy_runtime_api::client::result::SdkError<
1356 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError,
1357 R,
1358 >,
1359 ) -> Self {
1360 match err {
1361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1364 source: err.into(),
1365 }),
1366 }
1367 }
1368}
1369impl From<crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError> for Error {
1370 fn from(err: crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError) -> Self {
1371 match err {
1372 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError::AccessDeniedException(inner) => {
1373 Error::AccessDeniedException(inner)
1374 }
1375 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError::ConflictException(inner) => {
1376 Error::ConflictException(inner)
1377 }
1378 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError::InternalServerException(
1379 inner,
1380 ) => Error::InternalServerException(inner),
1381 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError::ResourceNotFoundException(
1382 inner,
1383 ) => Error::ResourceNotFoundException(inner),
1384 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError::ThrottlingException(inner) => {
1385 Error::ThrottlingException(inner)
1386 }
1387 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError::ValidationException(inner) => {
1388 Error::ValidationException(inner)
1389 }
1390 crate::operation::disassociate_user_access_logging_settings::DisassociateUserAccessLoggingSettingsError::Unhandled(inner) => {
1391 Error::Unhandled(inner)
1392 }
1393 }
1394 }
1395}
1396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_user_settings::DisassociateUserSettingsError, R>>
1397 for Error
1398where
1399 R: Send + Sync + std::fmt::Debug + 'static,
1400{
1401 fn from(
1402 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_user_settings::DisassociateUserSettingsError, R>,
1403 ) -> Self {
1404 match err {
1405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1408 source: err.into(),
1409 }),
1410 }
1411 }
1412}
1413impl From<crate::operation::disassociate_user_settings::DisassociateUserSettingsError> for Error {
1414 fn from(err: crate::operation::disassociate_user_settings::DisassociateUserSettingsError) -> Self {
1415 match err {
1416 crate::operation::disassociate_user_settings::DisassociateUserSettingsError::AccessDeniedException(inner) => {
1417 Error::AccessDeniedException(inner)
1418 }
1419 crate::operation::disassociate_user_settings::DisassociateUserSettingsError::ConflictException(inner) => Error::ConflictException(inner),
1420 crate::operation::disassociate_user_settings::DisassociateUserSettingsError::InternalServerException(inner) => {
1421 Error::InternalServerException(inner)
1422 }
1423 crate::operation::disassociate_user_settings::DisassociateUserSettingsError::ResourceNotFoundException(inner) => {
1424 Error::ResourceNotFoundException(inner)
1425 }
1426 crate::operation::disassociate_user_settings::DisassociateUserSettingsError::ThrottlingException(inner) => {
1427 Error::ThrottlingException(inner)
1428 }
1429 crate::operation::disassociate_user_settings::DisassociateUserSettingsError::ValidationException(inner) => {
1430 Error::ValidationException(inner)
1431 }
1432 crate::operation::disassociate_user_settings::DisassociateUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1433 }
1434 }
1435}
1436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>> for Error
1437where
1438 R: Send + Sync + std::fmt::Debug + 'static,
1439{
1440 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>) -> Self {
1441 match err {
1442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1445 source: err.into(),
1446 }),
1447 }
1448 }
1449}
1450impl From<crate::operation::expire_session::ExpireSessionError> for Error {
1451 fn from(err: crate::operation::expire_session::ExpireSessionError) -> Self {
1452 match err {
1453 crate::operation::expire_session::ExpireSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1454 crate::operation::expire_session::ExpireSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
1455 crate::operation::expire_session::ExpireSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1456 crate::operation::expire_session::ExpireSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1457 crate::operation::expire_session::ExpireSessionError::ValidationException(inner) => Error::ValidationException(inner),
1458 crate::operation::expire_session::ExpireSessionError::Unhandled(inner) => Error::Unhandled(inner),
1459 }
1460 }
1461}
1462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_settings::GetBrowserSettingsError, R>> for Error
1463where
1464 R: Send + Sync + std::fmt::Debug + 'static,
1465{
1466 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_settings::GetBrowserSettingsError, R>) -> Self {
1467 match err {
1468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1471 source: err.into(),
1472 }),
1473 }
1474 }
1475}
1476impl From<crate::operation::get_browser_settings::GetBrowserSettingsError> for Error {
1477 fn from(err: crate::operation::get_browser_settings::GetBrowserSettingsError) -> Self {
1478 match err {
1479 crate::operation::get_browser_settings::GetBrowserSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1480 crate::operation::get_browser_settings::GetBrowserSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
1481 crate::operation::get_browser_settings::GetBrowserSettingsError::ResourceNotFoundException(inner) => {
1482 Error::ResourceNotFoundException(inner)
1483 }
1484 crate::operation::get_browser_settings::GetBrowserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1485 crate::operation::get_browser_settings::GetBrowserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1486 crate::operation::get_browser_settings::GetBrowserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1487 }
1488 }
1489}
1490impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_settings::GetDataProtectionSettingsError, R>>
1491 for Error
1492where
1493 R: Send + Sync + std::fmt::Debug + 'static,
1494{
1495 fn from(
1496 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_settings::GetDataProtectionSettingsError, R>,
1497 ) -> Self {
1498 match err {
1499 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1500 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1501 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1502 source: err.into(),
1503 }),
1504 }
1505 }
1506}
1507impl From<crate::operation::get_data_protection_settings::GetDataProtectionSettingsError> for Error {
1508 fn from(err: crate::operation::get_data_protection_settings::GetDataProtectionSettingsError) -> Self {
1509 match err {
1510 crate::operation::get_data_protection_settings::GetDataProtectionSettingsError::AccessDeniedException(inner) => {
1511 Error::AccessDeniedException(inner)
1512 }
1513 crate::operation::get_data_protection_settings::GetDataProtectionSettingsError::InternalServerException(inner) => {
1514 Error::InternalServerException(inner)
1515 }
1516 crate::operation::get_data_protection_settings::GetDataProtectionSettingsError::ResourceNotFoundException(inner) => {
1517 Error::ResourceNotFoundException(inner)
1518 }
1519 crate::operation::get_data_protection_settings::GetDataProtectionSettingsError::ThrottlingException(inner) => {
1520 Error::ThrottlingException(inner)
1521 }
1522 crate::operation::get_data_protection_settings::GetDataProtectionSettingsError::ValidationException(inner) => {
1523 Error::ValidationException(inner)
1524 }
1525 crate::operation::get_data_protection_settings::GetDataProtectionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1526 }
1527 }
1528}
1529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_provider::GetIdentityProviderError, R>> for Error
1530where
1531 R: Send + Sync + std::fmt::Debug + 'static,
1532{
1533 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_provider::GetIdentityProviderError, R>) -> Self {
1534 match err {
1535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1538 source: err.into(),
1539 }),
1540 }
1541 }
1542}
1543impl From<crate::operation::get_identity_provider::GetIdentityProviderError> for Error {
1544 fn from(err: crate::operation::get_identity_provider::GetIdentityProviderError) -> Self {
1545 match err {
1546 crate::operation::get_identity_provider::GetIdentityProviderError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1547 crate::operation::get_identity_provider::GetIdentityProviderError::InternalServerException(inner) => {
1548 Error::InternalServerException(inner)
1549 }
1550 crate::operation::get_identity_provider::GetIdentityProviderError::ResourceNotFoundException(inner) => {
1551 Error::ResourceNotFoundException(inner)
1552 }
1553 crate::operation::get_identity_provider::GetIdentityProviderError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1554 crate::operation::get_identity_provider::GetIdentityProviderError::ValidationException(inner) => Error::ValidationException(inner),
1555 crate::operation::get_identity_provider::GetIdentityProviderError::Unhandled(inner) => Error::Unhandled(inner),
1556 }
1557 }
1558}
1559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ip_access_settings::GetIpAccessSettingsError, R>> for Error
1560where
1561 R: Send + Sync + std::fmt::Debug + 'static,
1562{
1563 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ip_access_settings::GetIpAccessSettingsError, R>) -> Self {
1564 match err {
1565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1568 source: err.into(),
1569 }),
1570 }
1571 }
1572}
1573impl From<crate::operation::get_ip_access_settings::GetIpAccessSettingsError> for Error {
1574 fn from(err: crate::operation::get_ip_access_settings::GetIpAccessSettingsError) -> Self {
1575 match err {
1576 crate::operation::get_ip_access_settings::GetIpAccessSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1577 crate::operation::get_ip_access_settings::GetIpAccessSettingsError::InternalServerException(inner) => {
1578 Error::InternalServerException(inner)
1579 }
1580 crate::operation::get_ip_access_settings::GetIpAccessSettingsError::ResourceNotFoundException(inner) => {
1581 Error::ResourceNotFoundException(inner)
1582 }
1583 crate::operation::get_ip_access_settings::GetIpAccessSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1584 crate::operation::get_ip_access_settings::GetIpAccessSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1585 crate::operation::get_ip_access_settings::GetIpAccessSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1586 }
1587 }
1588}
1589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_settings::GetNetworkSettingsError, R>> for Error
1590where
1591 R: Send + Sync + std::fmt::Debug + 'static,
1592{
1593 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_settings::GetNetworkSettingsError, R>) -> Self {
1594 match err {
1595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1598 source: err.into(),
1599 }),
1600 }
1601 }
1602}
1603impl From<crate::operation::get_network_settings::GetNetworkSettingsError> for Error {
1604 fn from(err: crate::operation::get_network_settings::GetNetworkSettingsError) -> Self {
1605 match err {
1606 crate::operation::get_network_settings::GetNetworkSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1607 crate::operation::get_network_settings::GetNetworkSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
1608 crate::operation::get_network_settings::GetNetworkSettingsError::ResourceNotFoundException(inner) => {
1609 Error::ResourceNotFoundException(inner)
1610 }
1611 crate::operation::get_network_settings::GetNetworkSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1612 crate::operation::get_network_settings::GetNetworkSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1613 crate::operation::get_network_settings::GetNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1614 }
1615 }
1616}
1617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_portal::GetPortalError, R>> for Error
1618where
1619 R: Send + Sync + std::fmt::Debug + 'static,
1620{
1621 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_portal::GetPortalError, R>) -> Self {
1622 match err {
1623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1626 source: err.into(),
1627 }),
1628 }
1629 }
1630}
1631impl From<crate::operation::get_portal::GetPortalError> for Error {
1632 fn from(err: crate::operation::get_portal::GetPortalError) -> Self {
1633 match err {
1634 crate::operation::get_portal::GetPortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1635 crate::operation::get_portal::GetPortalError::InternalServerException(inner) => Error::InternalServerException(inner),
1636 crate::operation::get_portal::GetPortalError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1637 crate::operation::get_portal::GetPortalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1638 crate::operation::get_portal::GetPortalError::ValidationException(inner) => Error::ValidationException(inner),
1639 crate::operation::get_portal::GetPortalError::Unhandled(inner) => Error::Unhandled(inner),
1640 }
1641 }
1642}
1643impl<R>
1644 From<
1645 ::aws_smithy_runtime_api::client::result::SdkError<
1646 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError,
1647 R,
1648 >,
1649 > for Error
1650where
1651 R: Send + Sync + std::fmt::Debug + 'static,
1652{
1653 fn from(
1654 err: ::aws_smithy_runtime_api::client::result::SdkError<
1655 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError,
1656 R,
1657 >,
1658 ) -> Self {
1659 match err {
1660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1663 source: err.into(),
1664 }),
1665 }
1666 }
1667}
1668impl From<crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError> for Error {
1669 fn from(err: crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError) -> Self {
1670 match err {
1671 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError::AccessDeniedException(inner) => {
1672 Error::AccessDeniedException(inner)
1673 }
1674 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError::InternalServerException(inner) => {
1675 Error::InternalServerException(inner)
1676 }
1677 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError::ResourceNotFoundException(inner) => {
1678 Error::ResourceNotFoundException(inner)
1679 }
1680 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError::ThrottlingException(inner) => {
1681 Error::ThrottlingException(inner)
1682 }
1683 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError::ValidationException(inner) => {
1684 Error::ValidationException(inner)
1685 }
1686 crate::operation::get_portal_service_provider_metadata::GetPortalServiceProviderMetadataError::Unhandled(inner) => {
1687 Error::Unhandled(inner)
1688 }
1689 }
1690 }
1691}
1692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session::GetSessionError, R>> for Error
1693where
1694 R: Send + Sync + std::fmt::Debug + 'static,
1695{
1696 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session::GetSessionError, R>) -> Self {
1697 match err {
1698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1701 source: err.into(),
1702 }),
1703 }
1704 }
1705}
1706impl From<crate::operation::get_session::GetSessionError> for Error {
1707 fn from(err: crate::operation::get_session::GetSessionError) -> Self {
1708 match err {
1709 crate::operation::get_session::GetSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1710 crate::operation::get_session::GetSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
1711 crate::operation::get_session::GetSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1712 crate::operation::get_session::GetSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1713 crate::operation::get_session::GetSessionError::ValidationException(inner) => Error::ValidationException(inner),
1714 crate::operation::get_session::GetSessionError::Unhandled(inner) => Error::Unhandled(inner),
1715 }
1716 }
1717}
1718impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session_logger::GetSessionLoggerError, R>> for Error
1719where
1720 R: Send + Sync + std::fmt::Debug + 'static,
1721{
1722 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session_logger::GetSessionLoggerError, R>) -> Self {
1723 match err {
1724 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1725 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1726 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1727 source: err.into(),
1728 }),
1729 }
1730 }
1731}
1732impl From<crate::operation::get_session_logger::GetSessionLoggerError> for Error {
1733 fn from(err: crate::operation::get_session_logger::GetSessionLoggerError) -> Self {
1734 match err {
1735 crate::operation::get_session_logger::GetSessionLoggerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1736 crate::operation::get_session_logger::GetSessionLoggerError::InternalServerException(inner) => Error::InternalServerException(inner),
1737 crate::operation::get_session_logger::GetSessionLoggerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1738 crate::operation::get_session_logger::GetSessionLoggerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1739 crate::operation::get_session_logger::GetSessionLoggerError::ValidationException(inner) => Error::ValidationException(inner),
1740 crate::operation::get_session_logger::GetSessionLoggerError::Unhandled(inner) => Error::Unhandled(inner),
1741 }
1742 }
1743}
1744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_trust_store::GetTrustStoreError, R>> for Error
1745where
1746 R: Send + Sync + std::fmt::Debug + 'static,
1747{
1748 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_trust_store::GetTrustStoreError, R>) -> Self {
1749 match err {
1750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1753 source: err.into(),
1754 }),
1755 }
1756 }
1757}
1758impl From<crate::operation::get_trust_store::GetTrustStoreError> for Error {
1759 fn from(err: crate::operation::get_trust_store::GetTrustStoreError) -> Self {
1760 match err {
1761 crate::operation::get_trust_store::GetTrustStoreError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1762 crate::operation::get_trust_store::GetTrustStoreError::InternalServerException(inner) => Error::InternalServerException(inner),
1763 crate::operation::get_trust_store::GetTrustStoreError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1764 crate::operation::get_trust_store::GetTrustStoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1765 crate::operation::get_trust_store::GetTrustStoreError::ValidationException(inner) => Error::ValidationException(inner),
1766 crate::operation::get_trust_store::GetTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
1767 }
1768 }
1769}
1770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError, R>>
1771 for Error
1772where
1773 R: Send + Sync + std::fmt::Debug + 'static,
1774{
1775 fn from(
1776 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError, R>,
1777 ) -> Self {
1778 match err {
1779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1782 source: err.into(),
1783 }),
1784 }
1785 }
1786}
1787impl From<crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError> for Error {
1788 fn from(err: crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError) -> Self {
1789 match err {
1790 crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError::AccessDeniedException(inner) => {
1791 Error::AccessDeniedException(inner)
1792 }
1793 crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError::InternalServerException(inner) => {
1794 Error::InternalServerException(inner)
1795 }
1796 crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError::ResourceNotFoundException(inner) => {
1797 Error::ResourceNotFoundException(inner)
1798 }
1799 crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError::ThrottlingException(inner) => {
1800 Error::ThrottlingException(inner)
1801 }
1802 crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError::ValidationException(inner) => {
1803 Error::ValidationException(inner)
1804 }
1805 crate::operation::get_trust_store_certificate::GetTrustStoreCertificateError::Unhandled(inner) => Error::Unhandled(inner),
1806 }
1807 }
1808}
1809impl<R>
1810 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError, R>>
1811 for Error
1812where
1813 R: Send + Sync + std::fmt::Debug + 'static,
1814{
1815 fn from(
1816 err: ::aws_smithy_runtime_api::client::result::SdkError<
1817 crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError,
1818 R,
1819 >,
1820 ) -> Self {
1821 match err {
1822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1825 source: err.into(),
1826 }),
1827 }
1828 }
1829}
1830impl From<crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError> for Error {
1831 fn from(err: crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError) -> Self {
1832 match err {
1833 crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError::AccessDeniedException(inner) => {
1834 Error::AccessDeniedException(inner)
1835 }
1836 crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError::InternalServerException(inner) => {
1837 Error::InternalServerException(inner)
1838 }
1839 crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError::ResourceNotFoundException(inner) => {
1840 Error::ResourceNotFoundException(inner)
1841 }
1842 crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError::ThrottlingException(inner) => {
1843 Error::ThrottlingException(inner)
1844 }
1845 crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError::ValidationException(inner) => {
1846 Error::ValidationException(inner)
1847 }
1848 crate::operation::get_user_access_logging_settings::GetUserAccessLoggingSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1849 }
1850 }
1851}
1852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_settings::GetUserSettingsError, R>> for Error
1853where
1854 R: Send + Sync + std::fmt::Debug + 'static,
1855{
1856 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_settings::GetUserSettingsError, R>) -> Self {
1857 match err {
1858 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1859 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1860 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1861 source: err.into(),
1862 }),
1863 }
1864 }
1865}
1866impl From<crate::operation::get_user_settings::GetUserSettingsError> for Error {
1867 fn from(err: crate::operation::get_user_settings::GetUserSettingsError) -> Self {
1868 match err {
1869 crate::operation::get_user_settings::GetUserSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1870 crate::operation::get_user_settings::GetUserSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
1871 crate::operation::get_user_settings::GetUserSettingsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1872 crate::operation::get_user_settings::GetUserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1873 crate::operation::get_user_settings::GetUserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1874 crate::operation::get_user_settings::GetUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1875 }
1876 }
1877}
1878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_settings::ListBrowserSettingsError, R>> for Error
1879where
1880 R: Send + Sync + std::fmt::Debug + 'static,
1881{
1882 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_settings::ListBrowserSettingsError, R>) -> Self {
1883 match err {
1884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1887 source: err.into(),
1888 }),
1889 }
1890 }
1891}
1892impl From<crate::operation::list_browser_settings::ListBrowserSettingsError> for Error {
1893 fn from(err: crate::operation::list_browser_settings::ListBrowserSettingsError) -> Self {
1894 match err {
1895 crate::operation::list_browser_settings::ListBrowserSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1896 crate::operation::list_browser_settings::ListBrowserSettingsError::InternalServerException(inner) => {
1897 Error::InternalServerException(inner)
1898 }
1899 crate::operation::list_browser_settings::ListBrowserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1900 crate::operation::list_browser_settings::ListBrowserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1901 crate::operation::list_browser_settings::ListBrowserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1902 }
1903 }
1904}
1905impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_protection_settings::ListDataProtectionSettingsError, R>>
1906 for Error
1907where
1908 R: Send + Sync + std::fmt::Debug + 'static,
1909{
1910 fn from(
1911 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_protection_settings::ListDataProtectionSettingsError, R>,
1912 ) -> Self {
1913 match err {
1914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1917 source: err.into(),
1918 }),
1919 }
1920 }
1921}
1922impl From<crate::operation::list_data_protection_settings::ListDataProtectionSettingsError> for Error {
1923 fn from(err: crate::operation::list_data_protection_settings::ListDataProtectionSettingsError) -> Self {
1924 match err {
1925 crate::operation::list_data_protection_settings::ListDataProtectionSettingsError::AccessDeniedException(inner) => {
1926 Error::AccessDeniedException(inner)
1927 }
1928 crate::operation::list_data_protection_settings::ListDataProtectionSettingsError::InternalServerException(inner) => {
1929 Error::InternalServerException(inner)
1930 }
1931 crate::operation::list_data_protection_settings::ListDataProtectionSettingsError::ThrottlingException(inner) => {
1932 Error::ThrottlingException(inner)
1933 }
1934 crate::operation::list_data_protection_settings::ListDataProtectionSettingsError::ValidationException(inner) => {
1935 Error::ValidationException(inner)
1936 }
1937 crate::operation::list_data_protection_settings::ListDataProtectionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1938 }
1939 }
1940}
1941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_providers::ListIdentityProvidersError, R>> for Error
1942where
1943 R: Send + Sync + std::fmt::Debug + 'static,
1944{
1945 fn from(
1946 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_providers::ListIdentityProvidersError, R>,
1947 ) -> Self {
1948 match err {
1949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1952 source: err.into(),
1953 }),
1954 }
1955 }
1956}
1957impl From<crate::operation::list_identity_providers::ListIdentityProvidersError> for Error {
1958 fn from(err: crate::operation::list_identity_providers::ListIdentityProvidersError) -> Self {
1959 match err {
1960 crate::operation::list_identity_providers::ListIdentityProvidersError::AccessDeniedException(inner) => {
1961 Error::AccessDeniedException(inner)
1962 }
1963 crate::operation::list_identity_providers::ListIdentityProvidersError::InternalServerException(inner) => {
1964 Error::InternalServerException(inner)
1965 }
1966 crate::operation::list_identity_providers::ListIdentityProvidersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1967 crate::operation::list_identity_providers::ListIdentityProvidersError::ValidationException(inner) => Error::ValidationException(inner),
1968 crate::operation::list_identity_providers::ListIdentityProvidersError::Unhandled(inner) => Error::Unhandled(inner),
1969 }
1970 }
1971}
1972impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ip_access_settings::ListIpAccessSettingsError, R>> for Error
1973where
1974 R: Send + Sync + std::fmt::Debug + 'static,
1975{
1976 fn from(
1977 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ip_access_settings::ListIpAccessSettingsError, R>,
1978 ) -> Self {
1979 match err {
1980 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1981 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1982 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1983 source: err.into(),
1984 }),
1985 }
1986 }
1987}
1988impl From<crate::operation::list_ip_access_settings::ListIpAccessSettingsError> for Error {
1989 fn from(err: crate::operation::list_ip_access_settings::ListIpAccessSettingsError) -> Self {
1990 match err {
1991 crate::operation::list_ip_access_settings::ListIpAccessSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1992 crate::operation::list_ip_access_settings::ListIpAccessSettingsError::InternalServerException(inner) => {
1993 Error::InternalServerException(inner)
1994 }
1995 crate::operation::list_ip_access_settings::ListIpAccessSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1996 crate::operation::list_ip_access_settings::ListIpAccessSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1997 crate::operation::list_ip_access_settings::ListIpAccessSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1998 }
1999 }
2000}
2001impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_network_settings::ListNetworkSettingsError, R>> for Error
2002where
2003 R: Send + Sync + std::fmt::Debug + 'static,
2004{
2005 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_network_settings::ListNetworkSettingsError, R>) -> Self {
2006 match err {
2007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2010 source: err.into(),
2011 }),
2012 }
2013 }
2014}
2015impl From<crate::operation::list_network_settings::ListNetworkSettingsError> for Error {
2016 fn from(err: crate::operation::list_network_settings::ListNetworkSettingsError) -> Self {
2017 match err {
2018 crate::operation::list_network_settings::ListNetworkSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2019 crate::operation::list_network_settings::ListNetworkSettingsError::InternalServerException(inner) => {
2020 Error::InternalServerException(inner)
2021 }
2022 crate::operation::list_network_settings::ListNetworkSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2023 crate::operation::list_network_settings::ListNetworkSettingsError::ValidationException(inner) => Error::ValidationException(inner),
2024 crate::operation::list_network_settings::ListNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2025 }
2026 }
2027}
2028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_portals::ListPortalsError, R>> for Error
2029where
2030 R: Send + Sync + std::fmt::Debug + 'static,
2031{
2032 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_portals::ListPortalsError, R>) -> Self {
2033 match err {
2034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2037 source: err.into(),
2038 }),
2039 }
2040 }
2041}
2042impl From<crate::operation::list_portals::ListPortalsError> for Error {
2043 fn from(err: crate::operation::list_portals::ListPortalsError) -> Self {
2044 match err {
2045 crate::operation::list_portals::ListPortalsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2046 crate::operation::list_portals::ListPortalsError::InternalServerException(inner) => Error::InternalServerException(inner),
2047 crate::operation::list_portals::ListPortalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2048 crate::operation::list_portals::ListPortalsError::ValidationException(inner) => Error::ValidationException(inner),
2049 crate::operation::list_portals::ListPortalsError::Unhandled(inner) => Error::Unhandled(inner),
2050 }
2051 }
2052}
2053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_loggers::ListSessionLoggersError, R>> for Error
2054where
2055 R: Send + Sync + std::fmt::Debug + 'static,
2056{
2057 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_loggers::ListSessionLoggersError, R>) -> Self {
2058 match err {
2059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2062 source: err.into(),
2063 }),
2064 }
2065 }
2066}
2067impl From<crate::operation::list_session_loggers::ListSessionLoggersError> for Error {
2068 fn from(err: crate::operation::list_session_loggers::ListSessionLoggersError) -> Self {
2069 match err {
2070 crate::operation::list_session_loggers::ListSessionLoggersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2071 crate::operation::list_session_loggers::ListSessionLoggersError::InternalServerException(inner) => Error::InternalServerException(inner),
2072 crate::operation::list_session_loggers::ListSessionLoggersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2073 crate::operation::list_session_loggers::ListSessionLoggersError::ValidationException(inner) => Error::ValidationException(inner),
2074 crate::operation::list_session_loggers::ListSessionLoggersError::Unhandled(inner) => Error::Unhandled(inner),
2075 }
2076 }
2077}
2078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>> for Error
2079where
2080 R: Send + Sync + std::fmt::Debug + 'static,
2081{
2082 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>) -> Self {
2083 match err {
2084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2087 source: err.into(),
2088 }),
2089 }
2090 }
2091}
2092impl From<crate::operation::list_sessions::ListSessionsError> for Error {
2093 fn from(err: crate::operation::list_sessions::ListSessionsError) -> Self {
2094 match err {
2095 crate::operation::list_sessions::ListSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2096 crate::operation::list_sessions::ListSessionsError::InternalServerException(inner) => Error::InternalServerException(inner),
2097 crate::operation::list_sessions::ListSessionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2098 crate::operation::list_sessions::ListSessionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2099 crate::operation::list_sessions::ListSessionsError::ValidationException(inner) => Error::ValidationException(inner),
2100 crate::operation::list_sessions::ListSessionsError::Unhandled(inner) => Error::Unhandled(inner),
2101 }
2102 }
2103}
2104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2105where
2106 R: Send + Sync + std::fmt::Debug + 'static,
2107{
2108 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2109 match err {
2110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2113 source: err.into(),
2114 }),
2115 }
2116 }
2117}
2118impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2119 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2120 match err {
2121 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2122 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2123 Error::InternalServerException(inner)
2124 }
2125 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2126 Error::ResourceNotFoundException(inner)
2127 }
2128 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2129 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2130 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2131 }
2132 }
2133}
2134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError, R>>
2135 for Error
2136where
2137 R: Send + Sync + std::fmt::Debug + 'static,
2138{
2139 fn from(
2140 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError, R>,
2141 ) -> Self {
2142 match err {
2143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2146 source: err.into(),
2147 }),
2148 }
2149 }
2150}
2151impl From<crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError> for Error {
2152 fn from(err: crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError) -> Self {
2153 match err {
2154 crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError::AccessDeniedException(inner) => {
2155 Error::AccessDeniedException(inner)
2156 }
2157 crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError::InternalServerException(inner) => {
2158 Error::InternalServerException(inner)
2159 }
2160 crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError::ResourceNotFoundException(inner) => {
2161 Error::ResourceNotFoundException(inner)
2162 }
2163 crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError::ThrottlingException(inner) => {
2164 Error::ThrottlingException(inner)
2165 }
2166 crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError::ValidationException(inner) => {
2167 Error::ValidationException(inner)
2168 }
2169 crate::operation::list_trust_store_certificates::ListTrustStoreCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
2170 }
2171 }
2172}
2173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trust_stores::ListTrustStoresError, R>> for Error
2174where
2175 R: Send + Sync + std::fmt::Debug + 'static,
2176{
2177 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trust_stores::ListTrustStoresError, R>) -> Self {
2178 match err {
2179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2182 source: err.into(),
2183 }),
2184 }
2185 }
2186}
2187impl From<crate::operation::list_trust_stores::ListTrustStoresError> for Error {
2188 fn from(err: crate::operation::list_trust_stores::ListTrustStoresError) -> Self {
2189 match err {
2190 crate::operation::list_trust_stores::ListTrustStoresError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2191 crate::operation::list_trust_stores::ListTrustStoresError::InternalServerException(inner) => Error::InternalServerException(inner),
2192 crate::operation::list_trust_stores::ListTrustStoresError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2193 crate::operation::list_trust_stores::ListTrustStoresError::ValidationException(inner) => Error::ValidationException(inner),
2194 crate::operation::list_trust_stores::ListTrustStoresError::Unhandled(inner) => Error::Unhandled(inner),
2195 }
2196 }
2197}
2198impl<R>
2199 From<
2200 ::aws_smithy_runtime_api::client::result::SdkError<
2201 crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError,
2202 R,
2203 >,
2204 > for Error
2205where
2206 R: Send + Sync + std::fmt::Debug + 'static,
2207{
2208 fn from(
2209 err: ::aws_smithy_runtime_api::client::result::SdkError<
2210 crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError,
2211 R,
2212 >,
2213 ) -> Self {
2214 match err {
2215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2218 source: err.into(),
2219 }),
2220 }
2221 }
2222}
2223impl From<crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError> for Error {
2224 fn from(err: crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError) -> Self {
2225 match err {
2226 crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError::AccessDeniedException(inner) => {
2227 Error::AccessDeniedException(inner)
2228 }
2229 crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError::InternalServerException(inner) => {
2230 Error::InternalServerException(inner)
2231 }
2232 crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError::ThrottlingException(inner) => {
2233 Error::ThrottlingException(inner)
2234 }
2235 crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError::ValidationException(inner) => {
2236 Error::ValidationException(inner)
2237 }
2238 crate::operation::list_user_access_logging_settings::ListUserAccessLoggingSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2239 }
2240 }
2241}
2242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_settings::ListUserSettingsError, R>> for Error
2243where
2244 R: Send + Sync + std::fmt::Debug + 'static,
2245{
2246 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_settings::ListUserSettingsError, R>) -> Self {
2247 match err {
2248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2251 source: err.into(),
2252 }),
2253 }
2254 }
2255}
2256impl From<crate::operation::list_user_settings::ListUserSettingsError> for Error {
2257 fn from(err: crate::operation::list_user_settings::ListUserSettingsError) -> Self {
2258 match err {
2259 crate::operation::list_user_settings::ListUserSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2260 crate::operation::list_user_settings::ListUserSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
2261 crate::operation::list_user_settings::ListUserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2262 crate::operation::list_user_settings::ListUserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
2263 crate::operation::list_user_settings::ListUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2264 }
2265 }
2266}
2267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2268where
2269 R: Send + Sync + std::fmt::Debug + 'static,
2270{
2271 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2272 match err {
2273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2276 source: err.into(),
2277 }),
2278 }
2279 }
2280}
2281impl From<crate::operation::tag_resource::TagResourceError> for Error {
2282 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2283 match err {
2284 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2285 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2286 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2287 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2288 crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
2289 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2290 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2291 }
2292 }
2293}
2294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2295where
2296 R: Send + Sync + std::fmt::Debug + 'static,
2297{
2298 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2299 match err {
2300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2303 source: err.into(),
2304 }),
2305 }
2306 }
2307}
2308impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2309 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2310 match err {
2311 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2312 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2313 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2314 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2315 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2316 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2317 }
2318 }
2319}
2320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_browser_settings::UpdateBrowserSettingsError, R>> for Error
2321where
2322 R: Send + Sync + std::fmt::Debug + 'static,
2323{
2324 fn from(
2325 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_browser_settings::UpdateBrowserSettingsError, R>,
2326 ) -> Self {
2327 match err {
2328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2331 source: err.into(),
2332 }),
2333 }
2334 }
2335}
2336impl From<crate::operation::update_browser_settings::UpdateBrowserSettingsError> for Error {
2337 fn from(err: crate::operation::update_browser_settings::UpdateBrowserSettingsError) -> Self {
2338 match err {
2339 crate::operation::update_browser_settings::UpdateBrowserSettingsError::AccessDeniedException(inner) => {
2340 Error::AccessDeniedException(inner)
2341 }
2342 crate::operation::update_browser_settings::UpdateBrowserSettingsError::InternalServerException(inner) => {
2343 Error::InternalServerException(inner)
2344 }
2345 crate::operation::update_browser_settings::UpdateBrowserSettingsError::ResourceNotFoundException(inner) => {
2346 Error::ResourceNotFoundException(inner)
2347 }
2348 crate::operation::update_browser_settings::UpdateBrowserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2349 crate::operation::update_browser_settings::UpdateBrowserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
2350 crate::operation::update_browser_settings::UpdateBrowserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2351 }
2352 }
2353}
2354impl<R>
2355 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError, R>>
2356 for Error
2357where
2358 R: Send + Sync + std::fmt::Debug + 'static,
2359{
2360 fn from(
2361 err: ::aws_smithy_runtime_api::client::result::SdkError<
2362 crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError,
2363 R,
2364 >,
2365 ) -> Self {
2366 match err {
2367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2370 source: err.into(),
2371 }),
2372 }
2373 }
2374}
2375impl From<crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError> for Error {
2376 fn from(err: crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError) -> Self {
2377 match err {
2378 crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError::AccessDeniedException(inner) => {
2379 Error::AccessDeniedException(inner)
2380 }
2381 crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError::InternalServerException(inner) => {
2382 Error::InternalServerException(inner)
2383 }
2384 crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError::ResourceNotFoundException(inner) => {
2385 Error::ResourceNotFoundException(inner)
2386 }
2387 crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError::ThrottlingException(inner) => {
2388 Error::ThrottlingException(inner)
2389 }
2390 crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError::ValidationException(inner) => {
2391 Error::ValidationException(inner)
2392 }
2393 crate::operation::update_data_protection_settings::UpdateDataProtectionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2394 }
2395 }
2396}
2397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_identity_provider::UpdateIdentityProviderError, R>> for Error
2398where
2399 R: Send + Sync + std::fmt::Debug + 'static,
2400{
2401 fn from(
2402 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_identity_provider::UpdateIdentityProviderError, R>,
2403 ) -> Self {
2404 match err {
2405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2408 source: err.into(),
2409 }),
2410 }
2411 }
2412}
2413impl From<crate::operation::update_identity_provider::UpdateIdentityProviderError> for Error {
2414 fn from(err: crate::operation::update_identity_provider::UpdateIdentityProviderError) -> Self {
2415 match err {
2416 crate::operation::update_identity_provider::UpdateIdentityProviderError::AccessDeniedException(inner) => {
2417 Error::AccessDeniedException(inner)
2418 }
2419 crate::operation::update_identity_provider::UpdateIdentityProviderError::InternalServerException(inner) => {
2420 Error::InternalServerException(inner)
2421 }
2422 crate::operation::update_identity_provider::UpdateIdentityProviderError::ResourceNotFoundException(inner) => {
2423 Error::ResourceNotFoundException(inner)
2424 }
2425 crate::operation::update_identity_provider::UpdateIdentityProviderError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2426 crate::operation::update_identity_provider::UpdateIdentityProviderError::ValidationException(inner) => Error::ValidationException(inner),
2427 crate::operation::update_identity_provider::UpdateIdentityProviderError::Unhandled(inner) => Error::Unhandled(inner),
2428 }
2429 }
2430}
2431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError, R>>
2432 for Error
2433where
2434 R: Send + Sync + std::fmt::Debug + 'static,
2435{
2436 fn from(
2437 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError, R>,
2438 ) -> Self {
2439 match err {
2440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2443 source: err.into(),
2444 }),
2445 }
2446 }
2447}
2448impl From<crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError> for Error {
2449 fn from(err: crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError) -> Self {
2450 match err {
2451 crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError::AccessDeniedException(inner) => {
2452 Error::AccessDeniedException(inner)
2453 }
2454 crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError::InternalServerException(inner) => {
2455 Error::InternalServerException(inner)
2456 }
2457 crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError::ResourceNotFoundException(inner) => {
2458 Error::ResourceNotFoundException(inner)
2459 }
2460 crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2461 crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError::ValidationException(inner) => Error::ValidationException(inner),
2462 crate::operation::update_ip_access_settings::UpdateIpAccessSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2463 }
2464 }
2465}
2466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>> for Error
2467where
2468 R: Send + Sync + std::fmt::Debug + 'static,
2469{
2470 fn from(
2471 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>,
2472 ) -> Self {
2473 match err {
2474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2477 source: err.into(),
2478 }),
2479 }
2480 }
2481}
2482impl From<crate::operation::update_network_settings::UpdateNetworkSettingsError> for Error {
2483 fn from(err: crate::operation::update_network_settings::UpdateNetworkSettingsError) -> Self {
2484 match err {
2485 crate::operation::update_network_settings::UpdateNetworkSettingsError::AccessDeniedException(inner) => {
2486 Error::AccessDeniedException(inner)
2487 }
2488 crate::operation::update_network_settings::UpdateNetworkSettingsError::InternalServerException(inner) => {
2489 Error::InternalServerException(inner)
2490 }
2491 crate::operation::update_network_settings::UpdateNetworkSettingsError::ResourceNotFoundException(inner) => {
2492 Error::ResourceNotFoundException(inner)
2493 }
2494 crate::operation::update_network_settings::UpdateNetworkSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2495 crate::operation::update_network_settings::UpdateNetworkSettingsError::ValidationException(inner) => Error::ValidationException(inner),
2496 crate::operation::update_network_settings::UpdateNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2497 }
2498 }
2499}
2500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_portal::UpdatePortalError, R>> for Error
2501where
2502 R: Send + Sync + std::fmt::Debug + 'static,
2503{
2504 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_portal::UpdatePortalError, R>) -> Self {
2505 match err {
2506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2509 source: err.into(),
2510 }),
2511 }
2512 }
2513}
2514impl From<crate::operation::update_portal::UpdatePortalError> for Error {
2515 fn from(err: crate::operation::update_portal::UpdatePortalError) -> Self {
2516 match err {
2517 crate::operation::update_portal::UpdatePortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2518 crate::operation::update_portal::UpdatePortalError::ConflictException(inner) => Error::ConflictException(inner),
2519 crate::operation::update_portal::UpdatePortalError::InternalServerException(inner) => Error::InternalServerException(inner),
2520 crate::operation::update_portal::UpdatePortalError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2521 crate::operation::update_portal::UpdatePortalError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2522 crate::operation::update_portal::UpdatePortalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2523 crate::operation::update_portal::UpdatePortalError::ValidationException(inner) => Error::ValidationException(inner),
2524 crate::operation::update_portal::UpdatePortalError::Unhandled(inner) => Error::Unhandled(inner),
2525 }
2526 }
2527}
2528impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_session_logger::UpdateSessionLoggerError, R>> for Error
2529where
2530 R: Send + Sync + std::fmt::Debug + 'static,
2531{
2532 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_session_logger::UpdateSessionLoggerError, R>) -> Self {
2533 match err {
2534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2537 source: err.into(),
2538 }),
2539 }
2540 }
2541}
2542impl From<crate::operation::update_session_logger::UpdateSessionLoggerError> for Error {
2543 fn from(err: crate::operation::update_session_logger::UpdateSessionLoggerError) -> Self {
2544 match err {
2545 crate::operation::update_session_logger::UpdateSessionLoggerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2546 crate::operation::update_session_logger::UpdateSessionLoggerError::InternalServerException(inner) => {
2547 Error::InternalServerException(inner)
2548 }
2549 crate::operation::update_session_logger::UpdateSessionLoggerError::ResourceNotFoundException(inner) => {
2550 Error::ResourceNotFoundException(inner)
2551 }
2552 crate::operation::update_session_logger::UpdateSessionLoggerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2553 crate::operation::update_session_logger::UpdateSessionLoggerError::ValidationException(inner) => Error::ValidationException(inner),
2554 crate::operation::update_session_logger::UpdateSessionLoggerError::Unhandled(inner) => Error::Unhandled(inner),
2555 }
2556 }
2557}
2558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trust_store::UpdateTrustStoreError, R>> for Error
2559where
2560 R: Send + Sync + std::fmt::Debug + 'static,
2561{
2562 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trust_store::UpdateTrustStoreError, R>) -> Self {
2563 match err {
2564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2567 source: err.into(),
2568 }),
2569 }
2570 }
2571}
2572impl From<crate::operation::update_trust_store::UpdateTrustStoreError> for Error {
2573 fn from(err: crate::operation::update_trust_store::UpdateTrustStoreError) -> Self {
2574 match err {
2575 crate::operation::update_trust_store::UpdateTrustStoreError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2576 crate::operation::update_trust_store::UpdateTrustStoreError::InternalServerException(inner) => Error::InternalServerException(inner),
2577 crate::operation::update_trust_store::UpdateTrustStoreError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2578 crate::operation::update_trust_store::UpdateTrustStoreError::ServiceQuotaExceededException(inner) => {
2579 Error::ServiceQuotaExceededException(inner)
2580 }
2581 crate::operation::update_trust_store::UpdateTrustStoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2582 crate::operation::update_trust_store::UpdateTrustStoreError::ValidationException(inner) => Error::ValidationException(inner),
2583 crate::operation::update_trust_store::UpdateTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
2584 }
2585 }
2586}
2587impl<R>
2588 From<
2589 ::aws_smithy_runtime_api::client::result::SdkError<
2590 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError,
2591 R,
2592 >,
2593 > for Error
2594where
2595 R: Send + Sync + std::fmt::Debug + 'static,
2596{
2597 fn from(
2598 err: ::aws_smithy_runtime_api::client::result::SdkError<
2599 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError,
2600 R,
2601 >,
2602 ) -> Self {
2603 match err {
2604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2607 source: err.into(),
2608 }),
2609 }
2610 }
2611}
2612impl From<crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError> for Error {
2613 fn from(err: crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError) -> Self {
2614 match err {
2615 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError::AccessDeniedException(inner) => {
2616 Error::AccessDeniedException(inner)
2617 }
2618 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError::InternalServerException(inner) => {
2619 Error::InternalServerException(inner)
2620 }
2621 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError::ResourceNotFoundException(inner) => {
2622 Error::ResourceNotFoundException(inner)
2623 }
2624 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError::ThrottlingException(inner) => {
2625 Error::ThrottlingException(inner)
2626 }
2627 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError::ValidationException(inner) => {
2628 Error::ValidationException(inner)
2629 }
2630 crate::operation::update_user_access_logging_settings::UpdateUserAccessLoggingSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2631 }
2632 }
2633}
2634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_settings::UpdateUserSettingsError, R>> for Error
2635where
2636 R: Send + Sync + std::fmt::Debug + 'static,
2637{
2638 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_settings::UpdateUserSettingsError, R>) -> Self {
2639 match err {
2640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2643 source: err.into(),
2644 }),
2645 }
2646 }
2647}
2648impl From<crate::operation::update_user_settings::UpdateUserSettingsError> for Error {
2649 fn from(err: crate::operation::update_user_settings::UpdateUserSettingsError) -> Self {
2650 match err {
2651 crate::operation::update_user_settings::UpdateUserSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2652 crate::operation::update_user_settings::UpdateUserSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
2653 crate::operation::update_user_settings::UpdateUserSettingsError::ResourceNotFoundException(inner) => {
2654 Error::ResourceNotFoundException(inner)
2655 }
2656 crate::operation::update_user_settings::UpdateUserSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2657 crate::operation::update_user_settings::UpdateUserSettingsError::ValidationException(inner) => Error::ValidationException(inner),
2658 crate::operation::update_user_settings::UpdateUserSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2659 }
2660 }
2661}
2662impl ::std::error::Error for Error {
2663 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2664 match self {
2665 Error::AccessDeniedException(inner) => inner.source(),
2666 Error::ConflictException(inner) => inner.source(),
2667 Error::InternalServerException(inner) => inner.source(),
2668 Error::ResourceNotFoundException(inner) => inner.source(),
2669 Error::ServiceQuotaExceededException(inner) => inner.source(),
2670 Error::ThrottlingException(inner) => inner.source(),
2671 Error::TooManyTagsException(inner) => inner.source(),
2672 Error::ValidationException(inner) => inner.source(),
2673 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2674 }
2675 }
2676}
2677impl ::aws_types::request_id::RequestId for Error {
2678 fn request_id(&self) -> Option<&str> {
2679 match self {
2680 Self::AccessDeniedException(e) => e.request_id(),
2681 Self::ConflictException(e) => e.request_id(),
2682 Self::InternalServerException(e) => e.request_id(),
2683 Self::ResourceNotFoundException(e) => e.request_id(),
2684 Self::ServiceQuotaExceededException(e) => e.request_id(),
2685 Self::ThrottlingException(e) => e.request_id(),
2686 Self::TooManyTagsException(e) => e.request_id(),
2687 Self::ValidationException(e) => e.request_id(),
2688 Self::Unhandled(e) => e.meta.request_id(),
2689 }
2690 }
2691}