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 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::AccessDeniedException(inner) => inner.fmt(f),
33 Error::ConflictException(inner) => inner.fmt(f),
34 Error::InternalServerException(inner) => inner.fmt(f),
35 Error::ResourceNotFoundException(inner) => inner.fmt(f),
36 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37 Error::ThrottlingException(inner) => inner.fmt(f),
38 Error::ValidationException(inner) => inner.fmt(f),
39 Error::Unhandled(_) => {
40 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41 write!(f, "unhandled error ({code})")
42 } else {
43 f.write_str("unhandled error")
44 }
45 }
46 }
47 }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52 source: value.into(),
53 meta: ::std::default::Default::default(),
54 })
55 }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59 match self {
60 Self::AccessDeniedException(inner) => inner.meta(),
61 Self::ConflictException(inner) => inner.meta(),
62 Self::InternalServerException(inner) => inner.meta(),
63 Self::ResourceNotFoundException(inner) => inner.meta(),
64 Self::ServiceQuotaExceededException(inner) => inner.meta(),
65 Self::ThrottlingException(inner) => inner.meta(),
66 Self::ValidationException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R>
72 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError, R>>
73 for Error
74where
75 R: Send + Sync + std::fmt::Debug + 'static,
76{
77 fn from(
78 err: ::aws_smithy_runtime_api::client::result::SdkError<
79 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError,
80 R,
81 >,
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::create_alert_manager_definition::CreateAlertManagerDefinitionError> for Error {
93 fn from(err: crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError) -> Self {
94 match err {
95 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::AccessDeniedException(inner) => {
96 Error::AccessDeniedException(inner)
97 }
98 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ConflictException(inner) => {
99 Error::ConflictException(inner)
100 }
101 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::InternalServerException(inner) => {
102 Error::InternalServerException(inner)
103 }
104 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
105 Error::ResourceNotFoundException(inner)
106 }
107 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ServiceQuotaExceededException(inner) => {
108 Error::ServiceQuotaExceededException(inner)
109 }
110 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ThrottlingException(inner) => {
111 Error::ThrottlingException(inner)
112 }
113 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ValidationException(inner) => {
114 Error::ValidationException(inner)
115 }
116 crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
117 }
118 }
119}
120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_logging_configuration::CreateLoggingConfigurationError, R>>
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<crate::operation::create_logging_configuration::CreateLoggingConfigurationError, R>,
127 ) -> Self {
128 match err {
129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
132 source: err.into(),
133 }),
134 }
135 }
136}
137impl From<crate::operation::create_logging_configuration::CreateLoggingConfigurationError> for Error {
138 fn from(err: crate::operation::create_logging_configuration::CreateLoggingConfigurationError) -> Self {
139 match err {
140 crate::operation::create_logging_configuration::CreateLoggingConfigurationError::AccessDeniedException(inner) => {
141 Error::AccessDeniedException(inner)
142 }
143 crate::operation::create_logging_configuration::CreateLoggingConfigurationError::InternalServerException(inner) => {
144 Error::InternalServerException(inner)
145 }
146 crate::operation::create_logging_configuration::CreateLoggingConfigurationError::ResourceNotFoundException(inner) => {
147 Error::ResourceNotFoundException(inner)
148 }
149 crate::operation::create_logging_configuration::CreateLoggingConfigurationError::ValidationException(inner) => {
150 Error::ValidationException(inner)
151 }
152 crate::operation::create_logging_configuration::CreateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
153 }
154 }
155}
156impl<R>
157 From<
158 ::aws_smithy_runtime_api::client::result::SdkError<
159 crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError,
160 R,
161 >,
162 > for Error
163where
164 R: Send + Sync + std::fmt::Debug + 'static,
165{
166 fn from(
167 err: ::aws_smithy_runtime_api::client::result::SdkError<
168 crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError,
169 R,
170 >,
171 ) -> Self {
172 match err {
173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
176 source: err.into(),
177 }),
178 }
179 }
180}
181impl From<crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError> for Error {
182 fn from(err: crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError) -> Self {
183 match err {
184 crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::AccessDeniedException(inner) => {
185 Error::AccessDeniedException(inner)
186 }
187 crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::InternalServerException(inner) => {
188 Error::InternalServerException(inner)
189 }
190 crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
191 Error::ResourceNotFoundException(inner)
192 }
193 crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::ValidationException(inner) => {
194 Error::ValidationException(inner)
195 }
196 crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
197 }
198 }
199}
200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError, R>>
201 for Error
202where
203 R: Send + Sync + std::fmt::Debug + 'static,
204{
205 fn from(
206 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError, R>,
207 ) -> Self {
208 match err {
209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
212 source: err.into(),
213 }),
214 }
215 }
216}
217impl From<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError> for Error {
218 fn from(err: crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError) -> Self {
219 match err {
220 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::AccessDeniedException(inner) => {
221 Error::AccessDeniedException(inner)
222 }
223 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ConflictException(inner) => {
224 Error::ConflictException(inner)
225 }
226 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::InternalServerException(inner) => {
227 Error::InternalServerException(inner)
228 }
229 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
230 Error::ResourceNotFoundException(inner)
231 }
232 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ServiceQuotaExceededException(inner) => {
233 Error::ServiceQuotaExceededException(inner)
234 }
235 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ThrottlingException(inner) => {
236 Error::ThrottlingException(inner)
237 }
238 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ValidationException(inner) => {
239 Error::ValidationException(inner)
240 }
241 crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
242 }
243 }
244}
245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scraper::CreateScraperError, R>> for Error
246where
247 R: Send + Sync + std::fmt::Debug + 'static,
248{
249 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scraper::CreateScraperError, R>) -> Self {
250 match err {
251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
254 source: err.into(),
255 }),
256 }
257 }
258}
259impl From<crate::operation::create_scraper::CreateScraperError> for Error {
260 fn from(err: crate::operation::create_scraper::CreateScraperError) -> Self {
261 match err {
262 crate::operation::create_scraper::CreateScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
263 crate::operation::create_scraper::CreateScraperError::ConflictException(inner) => Error::ConflictException(inner),
264 crate::operation::create_scraper::CreateScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
265 crate::operation::create_scraper::CreateScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
266 crate::operation::create_scraper::CreateScraperError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
267 crate::operation::create_scraper::CreateScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
268 crate::operation::create_scraper::CreateScraperError::ValidationException(inner) => Error::ValidationException(inner),
269 crate::operation::create_scraper::CreateScraperError::Unhandled(inner) => Error::Unhandled(inner),
270 }
271 }
272}
273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>> for Error
274where
275 R: Send + Sync + std::fmt::Debug + 'static,
276{
277 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>) -> Self {
278 match err {
279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
282 source: err.into(),
283 }),
284 }
285 }
286}
287impl From<crate::operation::create_workspace::CreateWorkspaceError> for Error {
288 fn from(err: crate::operation::create_workspace::CreateWorkspaceError) -> Self {
289 match err {
290 crate::operation::create_workspace::CreateWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
291 crate::operation::create_workspace::CreateWorkspaceError::ConflictException(inner) => Error::ConflictException(inner),
292 crate::operation::create_workspace::CreateWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
293 crate::operation::create_workspace::CreateWorkspaceError::ServiceQuotaExceededException(inner) => {
294 Error::ServiceQuotaExceededException(inner)
295 }
296 crate::operation::create_workspace::CreateWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
297 crate::operation::create_workspace::CreateWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
298 crate::operation::create_workspace::CreateWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
299 }
300 }
301}
302impl<R>
303 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError, R>>
304 for Error
305where
306 R: Send + Sync + std::fmt::Debug + 'static,
307{
308 fn from(
309 err: ::aws_smithy_runtime_api::client::result::SdkError<
310 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError,
311 R,
312 >,
313 ) -> Self {
314 match err {
315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
318 source: err.into(),
319 }),
320 }
321 }
322}
323impl From<crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError> for Error {
324 fn from(err: crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError) -> Self {
325 match err {
326 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::AccessDeniedException(inner) => {
327 Error::AccessDeniedException(inner)
328 }
329 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ConflictException(inner) => {
330 Error::ConflictException(inner)
331 }
332 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::InternalServerException(inner) => {
333 Error::InternalServerException(inner)
334 }
335 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
336 Error::ResourceNotFoundException(inner)
337 }
338 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ThrottlingException(inner) => {
339 Error::ThrottlingException(inner)
340 }
341 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ValidationException(inner) => {
342 Error::ValidationException(inner)
343 }
344 crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
345 }
346 }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, R>>
349 for Error
350where
351 R: Send + Sync + std::fmt::Debug + 'static,
352{
353 fn from(
354 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, R>,
355 ) -> Self {
356 match err {
357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
360 source: err.into(),
361 }),
362 }
363 }
364}
365impl From<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError> for Error {
366 fn from(err: crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError) -> Self {
367 match err {
368 crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::AccessDeniedException(inner) => {
369 Error::AccessDeniedException(inner)
370 }
371 crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ConflictException(inner) => {
372 Error::ConflictException(inner)
373 }
374 crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::InternalServerException(inner) => {
375 Error::InternalServerException(inner)
376 }
377 crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ResourceNotFoundException(inner) => {
378 Error::ResourceNotFoundException(inner)
379 }
380 crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ValidationException(inner) => {
381 Error::ValidationException(inner)
382 }
383 crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
384 }
385 }
386}
387impl<R>
388 From<
389 ::aws_smithy_runtime_api::client::result::SdkError<
390 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError,
391 R,
392 >,
393 > for Error
394where
395 R: Send + Sync + std::fmt::Debug + 'static,
396{
397 fn from(
398 err: ::aws_smithy_runtime_api::client::result::SdkError<
399 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError,
400 R,
401 >,
402 ) -> Self {
403 match err {
404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
407 source: err.into(),
408 }),
409 }
410 }
411}
412impl From<crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError> for Error {
413 fn from(err: crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError) -> Self {
414 match err {
415 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::AccessDeniedException(inner) => {
416 Error::AccessDeniedException(inner)
417 }
418 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ConflictException(inner) => {
419 Error::ConflictException(inner)
420 }
421 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::InternalServerException(inner) => {
422 Error::InternalServerException(inner)
423 }
424 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
425 Error::ResourceNotFoundException(inner)
426 }
427 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ValidationException(inner) => {
428 Error::ValidationException(inner)
429 }
430 crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
431 }
432 }
433}
434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
435where
436 R: Send + Sync + std::fmt::Debug + 'static,
437{
438 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
439 match err {
440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
443 source: err.into(),
444 }),
445 }
446 }
447}
448impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
449 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
450 match err {
451 crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
452 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
453 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
454 Error::InternalServerException(inner)
455 }
456 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
457 Error::ResourceNotFoundException(inner)
458 }
459 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
460 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
461 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
462 }
463 }
464}
465impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>>
466 for Error
467where
468 R: Send + Sync + std::fmt::Debug + 'static,
469{
470 fn from(
471 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>,
472 ) -> Self {
473 match err {
474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
477 source: err.into(),
478 }),
479 }
480 }
481}
482impl From<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError> for Error {
483 fn from(err: crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError) -> Self {
484 match err {
485 crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::AccessDeniedException(inner) => {
486 Error::AccessDeniedException(inner)
487 }
488 crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ConflictException(inner) => {
489 Error::ConflictException(inner)
490 }
491 crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::InternalServerException(inner) => {
492 Error::InternalServerException(inner)
493 }
494 crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
495 Error::ResourceNotFoundException(inner)
496 }
497 crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ThrottlingException(inner) => {
498 Error::ThrottlingException(inner)
499 }
500 crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ValidationException(inner) => {
501 Error::ValidationException(inner)
502 }
503 crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
504 }
505 }
506}
507impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>> for Error
508where
509 R: Send + Sync + std::fmt::Debug + 'static,
510{
511 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>) -> Self {
512 match err {
513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
516 source: err.into(),
517 }),
518 }
519 }
520}
521impl From<crate::operation::delete_scraper::DeleteScraperError> for Error {
522 fn from(err: crate::operation::delete_scraper::DeleteScraperError) -> Self {
523 match err {
524 crate::operation::delete_scraper::DeleteScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
525 crate::operation::delete_scraper::DeleteScraperError::ConflictException(inner) => Error::ConflictException(inner),
526 crate::operation::delete_scraper::DeleteScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
527 crate::operation::delete_scraper::DeleteScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
528 crate::operation::delete_scraper::DeleteScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
529 crate::operation::delete_scraper::DeleteScraperError::ValidationException(inner) => Error::ValidationException(inner),
530 crate::operation::delete_scraper::DeleteScraperError::Unhandled(inner) => Error::Unhandled(inner),
531 }
532 }
533}
534impl<R>
535 From<
536 ::aws_smithy_runtime_api::client::result::SdkError<
537 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError,
538 R,
539 >,
540 > for Error
541where
542 R: Send + Sync + std::fmt::Debug + 'static,
543{
544 fn from(
545 err: ::aws_smithy_runtime_api::client::result::SdkError<
546 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError,
547 R,
548 >,
549 ) -> Self {
550 match err {
551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
554 source: err.into(),
555 }),
556 }
557 }
558}
559impl From<crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError> for Error {
560 fn from(err: crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError) -> Self {
561 match err {
562 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::AccessDeniedException(inner) => {
563 Error::AccessDeniedException(inner)
564 }
565 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::ConflictException(inner) => {
566 Error::ConflictException(inner)
567 }
568 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::InternalServerException(inner) => {
569 Error::InternalServerException(inner)
570 }
571 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::ResourceNotFoundException(inner) => {
572 Error::ResourceNotFoundException(inner)
573 }
574 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::ValidationException(inner) => {
575 Error::ValidationException(inner)
576 }
577 crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::Unhandled(inner) => {
578 Error::Unhandled(inner)
579 }
580 }
581 }
582}
583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>> for Error
584where
585 R: Send + Sync + std::fmt::Debug + 'static,
586{
587 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>) -> Self {
588 match err {
589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
592 source: err.into(),
593 }),
594 }
595 }
596}
597impl From<crate::operation::delete_workspace::DeleteWorkspaceError> for Error {
598 fn from(err: crate::operation::delete_workspace::DeleteWorkspaceError) -> Self {
599 match err {
600 crate::operation::delete_workspace::DeleteWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
601 crate::operation::delete_workspace::DeleteWorkspaceError::ConflictException(inner) => Error::ConflictException(inner),
602 crate::operation::delete_workspace::DeleteWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
603 crate::operation::delete_workspace::DeleteWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
604 crate::operation::delete_workspace::DeleteWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
605 crate::operation::delete_workspace::DeleteWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
606 crate::operation::delete_workspace::DeleteWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
607 }
608 }
609}
610impl<R>
611 From<
612 ::aws_smithy_runtime_api::client::result::SdkError<
613 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
614 R,
615 >,
616 > for Error
617where
618 R: Send + Sync + std::fmt::Debug + 'static,
619{
620 fn from(
621 err: ::aws_smithy_runtime_api::client::result::SdkError<
622 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
623 R,
624 >,
625 ) -> Self {
626 match err {
627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
630 source: err.into(),
631 }),
632 }
633 }
634}
635impl From<crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError> for Error {
636 fn from(err: crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError) -> Self {
637 match err {
638 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::AccessDeniedException(inner) => {
639 Error::AccessDeniedException(inner)
640 }
641 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::InternalServerException(inner) => {
642 Error::InternalServerException(inner)
643 }
644 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
645 Error::ResourceNotFoundException(inner)
646 }
647 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ThrottlingException(inner) => {
648 Error::ThrottlingException(inner)
649 }
650 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ValidationException(inner) => {
651 Error::ValidationException(inner)
652 }
653 crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
654 }
655 }
656}
657impl<R>
658 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
659 for Error
660where
661 R: Send + Sync + std::fmt::Debug + 'static,
662{
663 fn from(
664 err: ::aws_smithy_runtime_api::client::result::SdkError<
665 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
666 R,
667 >,
668 ) -> Self {
669 match err {
670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
673 source: err.into(),
674 }),
675 }
676 }
677}
678impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
679 fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
680 match err {
681 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::AccessDeniedException(inner) => {
682 Error::AccessDeniedException(inner)
683 }
684 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerException(inner) => {
685 Error::InternalServerException(inner)
686 }
687 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
688 Error::ResourceNotFoundException(inner)
689 }
690 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ValidationException(inner) => {
691 Error::ValidationException(inner)
692 }
693 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
694 }
695 }
696}
697impl<R>
698 From<
699 ::aws_smithy_runtime_api::client::result::SdkError<
700 crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
701 R,
702 >,
703 > for Error
704where
705 R: Send + Sync + std::fmt::Debug + 'static,
706{
707 fn from(
708 err: ::aws_smithy_runtime_api::client::result::SdkError<
709 crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
710 R,
711 >,
712 ) -> Self {
713 match err {
714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
717 source: err.into(),
718 }),
719 }
720 }
721}
722impl From<crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError> for Error {
723 fn from(err: crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError) -> Self {
724 match err {
725 crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::AccessDeniedException(inner) => {
726 Error::AccessDeniedException(inner)
727 }
728 crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::InternalServerException(inner) => {
729 Error::InternalServerException(inner)
730 }
731 crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
732 Error::ResourceNotFoundException(inner)
733 }
734 crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ValidationException(inner) => {
735 Error::ValidationException(inner)
736 }
737 crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::Unhandled(inner) => {
738 Error::Unhandled(inner)
739 }
740 }
741 }
742}
743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
744where
745 R: Send + Sync + std::fmt::Debug + 'static,
746{
747 fn from(
748 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
749 ) -> Self {
750 match err {
751 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
752 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
753 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
754 source: err.into(),
755 }),
756 }
757 }
758}
759impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
760 fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
761 match err {
762 crate::operation::describe_resource_policy::DescribeResourcePolicyError::AccessDeniedException(inner) => {
763 Error::AccessDeniedException(inner)
764 }
765 crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerException(inner) => {
766 Error::InternalServerException(inner)
767 }
768 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
769 Error::ResourceNotFoundException(inner)
770 }
771 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
772 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
773 crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
774 }
775 }
776}
777impl<R>
778 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError, R>>
779 for Error
780where
781 R: Send + Sync + std::fmt::Debug + 'static,
782{
783 fn from(
784 err: ::aws_smithy_runtime_api::client::result::SdkError<
785 crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError,
786 R,
787 >,
788 ) -> Self {
789 match err {
790 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
791 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
792 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
793 source: err.into(),
794 }),
795 }
796 }
797}
798impl From<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError> for Error {
799 fn from(err: crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError) -> Self {
800 match err {
801 crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::AccessDeniedException(inner) => {
802 Error::AccessDeniedException(inner)
803 }
804 crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::InternalServerException(inner) => {
805 Error::InternalServerException(inner)
806 }
807 crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
808 Error::ResourceNotFoundException(inner)
809 }
810 crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ThrottlingException(inner) => {
811 Error::ThrottlingException(inner)
812 }
813 crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ValidationException(inner) => {
814 Error::ValidationException(inner)
815 }
816 crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
817 }
818 }
819}
820impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>> for Error
821where
822 R: Send + Sync + std::fmt::Debug + 'static,
823{
824 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>) -> Self {
825 match err {
826 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
827 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
828 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
829 source: err.into(),
830 }),
831 }
832 }
833}
834impl From<crate::operation::describe_scraper::DescribeScraperError> for Error {
835 fn from(err: crate::operation::describe_scraper::DescribeScraperError) -> Self {
836 match err {
837 crate::operation::describe_scraper::DescribeScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
838 crate::operation::describe_scraper::DescribeScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
839 crate::operation::describe_scraper::DescribeScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
840 crate::operation::describe_scraper::DescribeScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
841 crate::operation::describe_scraper::DescribeScraperError::ValidationException(inner) => Error::ValidationException(inner),
842 crate::operation::describe_scraper::DescribeScraperError::Unhandled(inner) => Error::Unhandled(inner),
843 }
844 }
845}
846impl<R>
847 From<
848 ::aws_smithy_runtime_api::client::result::SdkError<
849 crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError,
850 R,
851 >,
852 > for Error
853where
854 R: Send + Sync + std::fmt::Debug + 'static,
855{
856 fn from(
857 err: ::aws_smithy_runtime_api::client::result::SdkError<
858 crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError,
859 R,
860 >,
861 ) -> Self {
862 match err {
863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
866 source: err.into(),
867 }),
868 }
869 }
870}
871impl From<crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError> for Error {
872 fn from(err: crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError) -> Self {
873 match err {
874 crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::AccessDeniedException(inner) => {
875 Error::AccessDeniedException(inner)
876 }
877 crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::InternalServerException(inner) => {
878 Error::InternalServerException(inner)
879 }
880 crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::ResourceNotFoundException(inner) => {
881 Error::ResourceNotFoundException(inner)
882 }
883 crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::ValidationException(inner) => {
884 Error::ValidationException(inner)
885 }
886 crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::Unhandled(inner) => {
887 Error::Unhandled(inner)
888 }
889 }
890 }
891}
892impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>> for Error
893where
894 R: Send + Sync + std::fmt::Debug + 'static,
895{
896 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>) -> Self {
897 match err {
898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
901 source: err.into(),
902 }),
903 }
904 }
905}
906impl From<crate::operation::describe_workspace::DescribeWorkspaceError> for Error {
907 fn from(err: crate::operation::describe_workspace::DescribeWorkspaceError) -> Self {
908 match err {
909 crate::operation::describe_workspace::DescribeWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
910 crate::operation::describe_workspace::DescribeWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
911 crate::operation::describe_workspace::DescribeWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
912 crate::operation::describe_workspace::DescribeWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
913 crate::operation::describe_workspace::DescribeWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
914 crate::operation::describe_workspace::DescribeWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
915 }
916 }
917}
918impl<R>
919 From<
920 ::aws_smithy_runtime_api::client::result::SdkError<
921 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
922 R,
923 >,
924 > for Error
925where
926 R: Send + Sync + std::fmt::Debug + 'static,
927{
928 fn from(
929 err: ::aws_smithy_runtime_api::client::result::SdkError<
930 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
931 R,
932 >,
933 ) -> Self {
934 match err {
935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938 source: err.into(),
939 }),
940 }
941 }
942}
943impl From<crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError> for Error {
944 fn from(err: crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError) -> Self {
945 match err {
946 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::AccessDeniedException(inner) => {
947 Error::AccessDeniedException(inner)
948 }
949 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::InternalServerException(inner) => {
950 Error::InternalServerException(inner)
951 }
952 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
953 Error::ResourceNotFoundException(inner)
954 }
955 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ThrottlingException(inner) => {
956 Error::ThrottlingException(inner)
957 }
958 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ValidationException(inner) => {
959 Error::ValidationException(inner)
960 }
961 crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
962 }
963 }
964}
965impl<R>
966 From<
967 ::aws_smithy_runtime_api::client::result::SdkError<
968 crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
969 R,
970 >,
971 > for Error
972where
973 R: Send + Sync + std::fmt::Debug + 'static,
974{
975 fn from(
976 err: ::aws_smithy_runtime_api::client::result::SdkError<
977 crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
978 R,
979 >,
980 ) -> Self {
981 match err {
982 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
983 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
984 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
985 source: err.into(),
986 }),
987 }
988 }
989}
990impl From<crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError> for Error {
991 fn from(err: crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError) -> Self {
992 match err {
993 crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::AccessDeniedException(inner) => {
994 Error::AccessDeniedException(inner)
995 }
996 crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::InternalServerException(inner) => {
997 Error::InternalServerException(inner)
998 }
999 crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::ThrottlingException(inner) => {
1000 Error::ThrottlingException(inner)
1001 }
1002 crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1003 }
1004 }
1005}
1006impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>>
1007 for Error
1008where
1009 R: Send + Sync + std::fmt::Debug + 'static,
1010{
1011 fn from(
1012 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>,
1013 ) -> Self {
1014 match err {
1015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1018 source: err.into(),
1019 }),
1020 }
1021 }
1022}
1023impl From<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError> for Error {
1024 fn from(err: crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError) -> Self {
1025 match err {
1026 crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::AccessDeniedException(inner) => {
1027 Error::AccessDeniedException(inner)
1028 }
1029 crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::InternalServerException(inner) => {
1030 Error::InternalServerException(inner)
1031 }
1032 crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ResourceNotFoundException(inner) => {
1033 Error::ResourceNotFoundException(inner)
1034 }
1035 crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ThrottlingException(inner) => {
1036 Error::ThrottlingException(inner)
1037 }
1038 crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ValidationException(inner) => {
1039 Error::ValidationException(inner)
1040 }
1041 crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
1042 }
1043 }
1044}
1045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>> for Error
1046where
1047 R: Send + Sync + std::fmt::Debug + 'static,
1048{
1049 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>) -> Self {
1050 match err {
1051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1054 source: err.into(),
1055 }),
1056 }
1057 }
1058}
1059impl From<crate::operation::list_scrapers::ListScrapersError> for Error {
1060 fn from(err: crate::operation::list_scrapers::ListScrapersError) -> Self {
1061 match err {
1062 crate::operation::list_scrapers::ListScrapersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1063 crate::operation::list_scrapers::ListScrapersError::InternalServerException(inner) => Error::InternalServerException(inner),
1064 crate::operation::list_scrapers::ListScrapersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1065 crate::operation::list_scrapers::ListScrapersError::ValidationException(inner) => Error::ValidationException(inner),
1066 crate::operation::list_scrapers::ListScrapersError::Unhandled(inner) => Error::Unhandled(inner),
1067 }
1068 }
1069}
1070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1071where
1072 R: Send + Sync + std::fmt::Debug + 'static,
1073{
1074 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1075 match err {
1076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1079 source: err.into(),
1080 }),
1081 }
1082 }
1083}
1084impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1085 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1086 match err {
1087 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1088 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1089 Error::InternalServerException(inner)
1090 }
1091 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1092 Error::ResourceNotFoundException(inner)
1093 }
1094 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1095 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1096 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1097 }
1098 }
1099}
1100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>> for Error
1101where
1102 R: Send + Sync + std::fmt::Debug + 'static,
1103{
1104 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>) -> Self {
1105 match err {
1106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1109 source: err.into(),
1110 }),
1111 }
1112 }
1113}
1114impl From<crate::operation::list_workspaces::ListWorkspacesError> for Error {
1115 fn from(err: crate::operation::list_workspaces::ListWorkspacesError) -> Self {
1116 match err {
1117 crate::operation::list_workspaces::ListWorkspacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1118 crate::operation::list_workspaces::ListWorkspacesError::InternalServerException(inner) => Error::InternalServerException(inner),
1119 crate::operation::list_workspaces::ListWorkspacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1120 crate::operation::list_workspaces::ListWorkspacesError::ValidationException(inner) => Error::ValidationException(inner),
1121 crate::operation::list_workspaces::ListWorkspacesError::Unhandled(inner) => Error::Unhandled(inner),
1122 }
1123 }
1124}
1125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>>
1126 for Error
1127where
1128 R: Send + Sync + std::fmt::Debug + 'static,
1129{
1130 fn from(
1131 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>,
1132 ) -> Self {
1133 match err {
1134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1137 source: err.into(),
1138 }),
1139 }
1140 }
1141}
1142impl From<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError> for Error {
1143 fn from(err: crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError) -> Self {
1144 match err {
1145 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::AccessDeniedException(inner) => {
1146 Error::AccessDeniedException(inner)
1147 }
1148 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ConflictException(inner) => {
1149 Error::ConflictException(inner)
1150 }
1151 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::InternalServerException(inner) => {
1152 Error::InternalServerException(inner)
1153 }
1154 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
1155 Error::ResourceNotFoundException(inner)
1156 }
1157 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ServiceQuotaExceededException(inner) => {
1158 Error::ServiceQuotaExceededException(inner)
1159 }
1160 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ThrottlingException(inner) => {
1161 Error::ThrottlingException(inner)
1162 }
1163 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ValidationException(inner) => {
1164 Error::ValidationException(inner)
1165 }
1166 crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1167 }
1168 }
1169}
1170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1171where
1172 R: Send + Sync + std::fmt::Debug + 'static,
1173{
1174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1175 match err {
1176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1179 source: err.into(),
1180 }),
1181 }
1182 }
1183}
1184impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1185 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1186 match err {
1187 crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1188 crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1189 crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1190 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1191 Error::ResourceNotFoundException(inner)
1192 }
1193 crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1194 crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1195 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1196 }
1197 }
1198}
1199impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>>
1200 for Error
1201where
1202 R: Send + Sync + std::fmt::Debug + 'static,
1203{
1204 fn from(
1205 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>,
1206 ) -> Self {
1207 match err {
1208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1211 source: err.into(),
1212 }),
1213 }
1214 }
1215}
1216impl From<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError> for Error {
1217 fn from(err: crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError) -> Self {
1218 match err {
1219 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::AccessDeniedException(inner) => {
1220 Error::AccessDeniedException(inner)
1221 }
1222 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
1223 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::InternalServerException(inner) => {
1224 Error::InternalServerException(inner)
1225 }
1226 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
1227 Error::ResourceNotFoundException(inner)
1228 }
1229 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ServiceQuotaExceededException(inner) => {
1230 Error::ServiceQuotaExceededException(inner)
1231 }
1232 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1233 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
1234 crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1235 }
1236 }
1237}
1238impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1239where
1240 R: Send + Sync + std::fmt::Debug + 'static,
1241{
1242 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1243 match err {
1244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1247 source: err.into(),
1248 }),
1249 }
1250 }
1251}
1252impl From<crate::operation::tag_resource::TagResourceError> for Error {
1253 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1254 match err {
1255 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1256 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1257 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1258 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1259 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1260 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1261 }
1262 }
1263}
1264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1265where
1266 R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1269 match err {
1270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1273 source: err.into(),
1274 }),
1275 }
1276 }
1277}
1278impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1279 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1280 match err {
1281 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1282 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1283 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1284 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1285 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1286 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1287 }
1288 }
1289}
1290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1291 for Error
1292where
1293 R: Send + Sync + std::fmt::Debug + 'static,
1294{
1295 fn from(
1296 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1297 ) -> Self {
1298 match err {
1299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1302 source: err.into(),
1303 }),
1304 }
1305 }
1306}
1307impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1308 fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1309 match err {
1310 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::AccessDeniedException(inner) => {
1311 Error::AccessDeniedException(inner)
1312 }
1313 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ConflictException(inner) => {
1314 Error::ConflictException(inner)
1315 }
1316 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerException(inner) => {
1317 Error::InternalServerException(inner)
1318 }
1319 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1320 Error::ResourceNotFoundException(inner)
1321 }
1322 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ValidationException(inner) => {
1323 Error::ValidationException(inner)
1324 }
1325 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1326 }
1327 }
1328}
1329impl<R>
1330 From<
1331 ::aws_smithy_runtime_api::client::result::SdkError<
1332 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1333 R,
1334 >,
1335 > for Error
1336where
1337 R: Send + Sync + std::fmt::Debug + 'static,
1338{
1339 fn from(
1340 err: ::aws_smithy_runtime_api::client::result::SdkError<
1341 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1342 R,
1343 >,
1344 ) -> Self {
1345 match err {
1346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1349 source: err.into(),
1350 }),
1351 }
1352 }
1353}
1354impl From<crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError> for Error {
1355 fn from(err: crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError) -> Self {
1356 match err {
1357 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::AccessDeniedException(inner) => {
1358 Error::AccessDeniedException(inner)
1359 }
1360 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ConflictException(inner) => {
1361 Error::ConflictException(inner)
1362 }
1363 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::InternalServerException(inner) => {
1364 Error::InternalServerException(inner)
1365 }
1366 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
1367 Error::ResourceNotFoundException(inner)
1368 }
1369 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ValidationException(inner) => {
1370 Error::ValidationException(inner)
1371 }
1372 crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1373 }
1374 }
1375}
1376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>> for Error
1377where
1378 R: Send + Sync + std::fmt::Debug + 'static,
1379{
1380 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>) -> Self {
1381 match err {
1382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1385 source: err.into(),
1386 }),
1387 }
1388 }
1389}
1390impl From<crate::operation::update_scraper::UpdateScraperError> for Error {
1391 fn from(err: crate::operation::update_scraper::UpdateScraperError) -> Self {
1392 match err {
1393 crate::operation::update_scraper::UpdateScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1394 crate::operation::update_scraper::UpdateScraperError::ConflictException(inner) => Error::ConflictException(inner),
1395 crate::operation::update_scraper::UpdateScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
1396 crate::operation::update_scraper::UpdateScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1397 crate::operation::update_scraper::UpdateScraperError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1398 crate::operation::update_scraper::UpdateScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1399 crate::operation::update_scraper::UpdateScraperError::ValidationException(inner) => Error::ValidationException(inner),
1400 crate::operation::update_scraper::UpdateScraperError::Unhandled(inner) => Error::Unhandled(inner),
1401 }
1402 }
1403}
1404impl<R>
1405 From<
1406 ::aws_smithy_runtime_api::client::result::SdkError<
1407 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError,
1408 R,
1409 >,
1410 > for Error
1411where
1412 R: Send + Sync + std::fmt::Debug + 'static,
1413{
1414 fn from(
1415 err: ::aws_smithy_runtime_api::client::result::SdkError<
1416 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError,
1417 R,
1418 >,
1419 ) -> Self {
1420 match err {
1421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1424 source: err.into(),
1425 }),
1426 }
1427 }
1428}
1429impl From<crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError> for Error {
1430 fn from(err: crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError) -> Self {
1431 match err {
1432 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::AccessDeniedException(inner) => {
1433 Error::AccessDeniedException(inner)
1434 }
1435 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::ConflictException(inner) => {
1436 Error::ConflictException(inner)
1437 }
1438 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::InternalServerException(inner) => {
1439 Error::InternalServerException(inner)
1440 }
1441 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::ResourceNotFoundException(inner) => {
1442 Error::ResourceNotFoundException(inner)
1443 }
1444 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::ValidationException(inner) => {
1445 Error::ValidationException(inner)
1446 }
1447 crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::Unhandled(inner) => {
1448 Error::Unhandled(inner)
1449 }
1450 }
1451 }
1452}
1453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError, R>> for Error
1454where
1455 R: Send + Sync + std::fmt::Debug + 'static,
1456{
1457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError, R>) -> Self {
1458 match err {
1459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1462 source: err.into(),
1463 }),
1464 }
1465 }
1466}
1467impl From<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError> for Error {
1468 fn from(err: crate::operation::update_workspace_alias::UpdateWorkspaceAliasError) -> Self {
1469 match err {
1470 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1471 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ConflictException(inner) => Error::ConflictException(inner),
1472 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::InternalServerException(inner) => {
1473 Error::InternalServerException(inner)
1474 }
1475 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ResourceNotFoundException(inner) => {
1476 Error::ResourceNotFoundException(inner)
1477 }
1478 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ServiceQuotaExceededException(inner) => {
1479 Error::ServiceQuotaExceededException(inner)
1480 }
1481 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1482 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ValidationException(inner) => Error::ValidationException(inner),
1483 crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::Unhandled(inner) => Error::Unhandled(inner),
1484 }
1485 }
1486}
1487impl<R>
1488 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError, R>>
1489 for Error
1490where
1491 R: Send + Sync + std::fmt::Debug + 'static,
1492{
1493 fn from(
1494 err: ::aws_smithy_runtime_api::client::result::SdkError<
1495 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError,
1496 R,
1497 >,
1498 ) -> Self {
1499 match err {
1500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1503 source: err.into(),
1504 }),
1505 }
1506 }
1507}
1508impl From<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError> for Error {
1509 fn from(err: crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError) -> Self {
1510 match err {
1511 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::AccessDeniedException(inner) => {
1512 Error::AccessDeniedException(inner)
1513 }
1514 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ConflictException(inner) => {
1515 Error::ConflictException(inner)
1516 }
1517 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::InternalServerException(inner) => {
1518 Error::InternalServerException(inner)
1519 }
1520 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
1521 Error::ResourceNotFoundException(inner)
1522 }
1523 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ServiceQuotaExceededException(inner) => {
1524 Error::ServiceQuotaExceededException(inner)
1525 }
1526 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ThrottlingException(inner) => {
1527 Error::ThrottlingException(inner)
1528 }
1529 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ValidationException(inner) => {
1530 Error::ValidationException(inner)
1531 }
1532 crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1533 }
1534 }
1535}
1536impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1537where
1538 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1539 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1540{
1541 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1542 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1543 meta: ::std::default::Default::default(),
1544 source: err.into(),
1545 })
1546 }
1547}
1548impl ::std::error::Error for Error {
1549 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1550 match self {
1551 Error::AccessDeniedException(inner) => inner.source(),
1552 Error::ConflictException(inner) => inner.source(),
1553 Error::InternalServerException(inner) => inner.source(),
1554 Error::ResourceNotFoundException(inner) => inner.source(),
1555 Error::ServiceQuotaExceededException(inner) => inner.source(),
1556 Error::ThrottlingException(inner) => inner.source(),
1557 Error::ValidationException(inner) => inner.source(),
1558 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1559 }
1560 }
1561}
1562impl ::aws_types::request_id::RequestId for Error {
1563 fn request_id(&self) -> Option<&str> {
1564 match self {
1565 Self::AccessDeniedException(e) => e.request_id(),
1566 Self::ConflictException(e) => e.request_id(),
1567 Self::InternalServerException(e) => e.request_id(),
1568 Self::ResourceNotFoundException(e) => e.request_id(),
1569 Self::ServiceQuotaExceededException(e) => e.request_id(),
1570 Self::ThrottlingException(e) => e.request_id(),
1571 Self::ValidationException(e) => e.request_id(),
1572 Self::Unhandled(e) => e.meta.request_id(),
1573 }
1574 }
1575}