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