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