aws_sdk_evidently/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You do not have sufficient permissions to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>A resource was in an inconsistent state during an update or a deletion.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Unexpected error while processing the request. Retry the request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The request references a resource that does not exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The service was unavailable. Retry the request.</p>
17    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
18    /// <p>The request was denied because of request throttling. Retry the request.</p>
19    ThrottlingException(crate::types::error::ThrottlingException),
20    /// <p>The value of a parameter in the request caused an error.</p>
21    ValidationException(crate::types::error::ValidationException),
22    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
23    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24    variable wildcard pattern and check `.code()`:
25     \
26    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27     \
28    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29    Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        match self {
34            Error::AccessDeniedException(inner) => inner.fmt(f),
35            Error::ConflictException(inner) => inner.fmt(f),
36            Error::InternalServerException(inner) => inner.fmt(f),
37            Error::ResourceNotFoundException(inner) => inner.fmt(f),
38            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
39            Error::ServiceUnavailableException(inner) => inner.fmt(f),
40            Error::ThrottlingException(inner) => inner.fmt(f),
41            Error::ValidationException(inner) => inner.fmt(f),
42            Error::Unhandled(_) => {
43                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44                    write!(f, "unhandled error ({code})")
45                } else {
46                    f.write_str("unhandled error")
47                }
48            }
49        }
50    }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55            source: value.into(),
56            meta: ::std::default::Default::default(),
57        })
58    }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62        match self {
63            Self::AccessDeniedException(inner) => inner.meta(),
64            Self::ConflictException(inner) => inner.meta(),
65            Self::InternalServerException(inner) => inner.meta(),
66            Self::ResourceNotFoundException(inner) => inner.meta(),
67            Self::ServiceQuotaExceededException(inner) => inner.meta(),
68            Self::ServiceUnavailableException(inner) => inner.meta(),
69            Self::ThrottlingException(inner) => inner.meta(),
70            Self::ValidationException(inner) => inner.meta(),
71            Self::Unhandled(inner) => &inner.meta,
72        }
73    }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError, R>> for Error
76where
77    R: Send + Sync + std::fmt::Debug + 'static,
78{
79    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError, R>) -> Self {
80        match err {
81            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84                source: err.into(),
85            }),
86        }
87    }
88}
89impl From<crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError> for Error {
90    fn from(err: crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError) -> Self {
91        match err {
92            crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
93            crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError::ResourceNotFoundException(inner) => {
94                Error::ResourceNotFoundException(inner)
95            }
96            crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
97            crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError::ValidationException(inner) => Error::ValidationException(inner),
98            crate::operation::batch_evaluate_feature::BatchEvaluateFeatureError::Unhandled(inner) => Error::Unhandled(inner),
99        }
100    }
101}
102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>> for Error
103where
104    R: Send + Sync + std::fmt::Debug + 'static,
105{
106    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>) -> Self {
107        match err {
108            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111                source: err.into(),
112            }),
113        }
114    }
115}
116impl From<crate::operation::create_experiment::CreateExperimentError> for Error {
117    fn from(err: crate::operation::create_experiment::CreateExperimentError) -> Self {
118        match err {
119            crate::operation::create_experiment::CreateExperimentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
120            crate::operation::create_experiment::CreateExperimentError::ConflictException(inner) => Error::ConflictException(inner),
121            crate::operation::create_experiment::CreateExperimentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
122            crate::operation::create_experiment::CreateExperimentError::ServiceQuotaExceededException(inner) => {
123                Error::ServiceQuotaExceededException(inner)
124            }
125            crate::operation::create_experiment::CreateExperimentError::ValidationException(inner) => Error::ValidationException(inner),
126            crate::operation::create_experiment::CreateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
127        }
128    }
129}
130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature::CreateFeatureError, R>> for Error
131where
132    R: Send + Sync + std::fmt::Debug + 'static,
133{
134    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature::CreateFeatureError, R>) -> Self {
135        match err {
136            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
137            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
138                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
139                source: err.into(),
140            }),
141        }
142    }
143}
144impl From<crate::operation::create_feature::CreateFeatureError> for Error {
145    fn from(err: crate::operation::create_feature::CreateFeatureError) -> Self {
146        match err {
147            crate::operation::create_feature::CreateFeatureError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
148            crate::operation::create_feature::CreateFeatureError::ConflictException(inner) => Error::ConflictException(inner),
149            crate::operation::create_feature::CreateFeatureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
150            crate::operation::create_feature::CreateFeatureError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
151            crate::operation::create_feature::CreateFeatureError::ValidationException(inner) => Error::ValidationException(inner),
152            crate::operation::create_feature::CreateFeatureError::Unhandled(inner) => Error::Unhandled(inner),
153        }
154    }
155}
156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch::CreateLaunchError, R>> for Error
157where
158    R: Send + Sync + std::fmt::Debug + 'static,
159{
160    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch::CreateLaunchError, R>) -> Self {
161        match err {
162            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
163            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
164                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
165                source: err.into(),
166            }),
167        }
168    }
169}
170impl From<crate::operation::create_launch::CreateLaunchError> for Error {
171    fn from(err: crate::operation::create_launch::CreateLaunchError) -> Self {
172        match err {
173            crate::operation::create_launch::CreateLaunchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
174            crate::operation::create_launch::CreateLaunchError::ConflictException(inner) => Error::ConflictException(inner),
175            crate::operation::create_launch::CreateLaunchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
176            crate::operation::create_launch::CreateLaunchError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
177            crate::operation::create_launch::CreateLaunchError::ValidationException(inner) => Error::ValidationException(inner),
178            crate::operation::create_launch::CreateLaunchError::Unhandled(inner) => Error::Unhandled(inner),
179        }
180    }
181}
182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
183where
184    R: Send + Sync + std::fmt::Debug + 'static,
185{
186    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
187        match err {
188            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
189            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
190                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
191                source: err.into(),
192            }),
193        }
194    }
195}
196impl From<crate::operation::create_project::CreateProjectError> for Error {
197    fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
198        match err {
199            crate::operation::create_project::CreateProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
200            crate::operation::create_project::CreateProjectError::ConflictException(inner) => Error::ConflictException(inner),
201            crate::operation::create_project::CreateProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
202            crate::operation::create_project::CreateProjectError::ValidationException(inner) => Error::ValidationException(inner),
203            crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
204        }
205    }
206}
207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_segment::CreateSegmentError, R>> for Error
208where
209    R: Send + Sync + std::fmt::Debug + 'static,
210{
211    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_segment::CreateSegmentError, R>) -> Self {
212        match err {
213            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
214            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
215                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
216                source: err.into(),
217            }),
218        }
219    }
220}
221impl From<crate::operation::create_segment::CreateSegmentError> for Error {
222    fn from(err: crate::operation::create_segment::CreateSegmentError) -> Self {
223        match err {
224            crate::operation::create_segment::CreateSegmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
225            crate::operation::create_segment::CreateSegmentError::ConflictException(inner) => Error::ConflictException(inner),
226            crate::operation::create_segment::CreateSegmentError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
227            crate::operation::create_segment::CreateSegmentError::ValidationException(inner) => Error::ValidationException(inner),
228            crate::operation::create_segment::CreateSegmentError::Unhandled(inner) => Error::Unhandled(inner),
229        }
230    }
231}
232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>> for Error
233where
234    R: Send + Sync + std::fmt::Debug + 'static,
235{
236    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::delete_experiment::DeleteExperimentError> for Error {
247    fn from(err: crate::operation::delete_experiment::DeleteExperimentError) -> Self {
248        match err {
249            crate::operation::delete_experiment::DeleteExperimentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
250            crate::operation::delete_experiment::DeleteExperimentError::ConflictException(inner) => Error::ConflictException(inner),
251            crate::operation::delete_experiment::DeleteExperimentError::InternalServerException(inner) => Error::InternalServerException(inner),
252            crate::operation::delete_experiment::DeleteExperimentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
253            crate::operation::delete_experiment::DeleteExperimentError::ServiceUnavailableException(inner) => {
254                Error::ServiceUnavailableException(inner)
255            }
256            crate::operation::delete_experiment::DeleteExperimentError::ValidationException(inner) => Error::ValidationException(inner),
257            crate::operation::delete_experiment::DeleteExperimentError::Unhandled(inner) => Error::Unhandled(inner),
258        }
259    }
260}
261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature::DeleteFeatureError, R>> for Error
262where
263    R: Send + Sync + std::fmt::Debug + 'static,
264{
265    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature::DeleteFeatureError, R>) -> Self {
266        match err {
267            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
268            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
269                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
270                source: err.into(),
271            }),
272        }
273    }
274}
275impl From<crate::operation::delete_feature::DeleteFeatureError> for Error {
276    fn from(err: crate::operation::delete_feature::DeleteFeatureError) -> Self {
277        match err {
278            crate::operation::delete_feature::DeleteFeatureError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
279            crate::operation::delete_feature::DeleteFeatureError::ConflictException(inner) => Error::ConflictException(inner),
280            crate::operation::delete_feature::DeleteFeatureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
281            crate::operation::delete_feature::DeleteFeatureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
282            crate::operation::delete_feature::DeleteFeatureError::ValidationException(inner) => Error::ValidationException(inner),
283            crate::operation::delete_feature::DeleteFeatureError::Unhandled(inner) => Error::Unhandled(inner),
284        }
285    }
286}
287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch::DeleteLaunchError, R>> for Error
288where
289    R: Send + Sync + std::fmt::Debug + 'static,
290{
291    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch::DeleteLaunchError, R>) -> Self {
292        match err {
293            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
294            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
295                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
296                source: err.into(),
297            }),
298        }
299    }
300}
301impl From<crate::operation::delete_launch::DeleteLaunchError> for Error {
302    fn from(err: crate::operation::delete_launch::DeleteLaunchError) -> Self {
303        match err {
304            crate::operation::delete_launch::DeleteLaunchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
305            crate::operation::delete_launch::DeleteLaunchError::ConflictException(inner) => Error::ConflictException(inner),
306            crate::operation::delete_launch::DeleteLaunchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
307            crate::operation::delete_launch::DeleteLaunchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
308            crate::operation::delete_launch::DeleteLaunchError::ValidationException(inner) => Error::ValidationException(inner),
309            crate::operation::delete_launch::DeleteLaunchError::Unhandled(inner) => Error::Unhandled(inner),
310        }
311    }
312}
313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
314where
315    R: Send + Sync + std::fmt::Debug + 'static,
316{
317    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
318        match err {
319            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
320            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
321                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
322                source: err.into(),
323            }),
324        }
325    }
326}
327impl From<crate::operation::delete_project::DeleteProjectError> for Error {
328    fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
329        match err {
330            crate::operation::delete_project::DeleteProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
331            crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
332            crate::operation::delete_project::DeleteProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
333            crate::operation::delete_project::DeleteProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
334            crate::operation::delete_project::DeleteProjectError::ValidationException(inner) => Error::ValidationException(inner),
335            crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
336        }
337    }
338}
339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_segment::DeleteSegmentError, R>> for Error
340where
341    R: Send + Sync + std::fmt::Debug + 'static,
342{
343    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_segment::DeleteSegmentError, R>) -> Self {
344        match err {
345            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
346            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
347                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
348                source: err.into(),
349            }),
350        }
351    }
352}
353impl From<crate::operation::delete_segment::DeleteSegmentError> for Error {
354    fn from(err: crate::operation::delete_segment::DeleteSegmentError) -> Self {
355        match err {
356            crate::operation::delete_segment::DeleteSegmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
357            crate::operation::delete_segment::DeleteSegmentError::ConflictException(inner) => Error::ConflictException(inner),
358            crate::operation::delete_segment::DeleteSegmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
359            crate::operation::delete_segment::DeleteSegmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
360            crate::operation::delete_segment::DeleteSegmentError::ValidationException(inner) => Error::ValidationException(inner),
361            crate::operation::delete_segment::DeleteSegmentError::Unhandled(inner) => Error::Unhandled(inner),
362        }
363    }
364}
365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_feature::EvaluateFeatureError, R>> for Error
366where
367    R: Send + Sync + std::fmt::Debug + 'static,
368{
369    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_feature::EvaluateFeatureError, R>) -> Self {
370        match err {
371            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
372            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
373                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
374                source: err.into(),
375            }),
376        }
377    }
378}
379impl From<crate::operation::evaluate_feature::EvaluateFeatureError> for Error {
380    fn from(err: crate::operation::evaluate_feature::EvaluateFeatureError) -> Self {
381        match err {
382            crate::operation::evaluate_feature::EvaluateFeatureError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
383            crate::operation::evaluate_feature::EvaluateFeatureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
384            crate::operation::evaluate_feature::EvaluateFeatureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
385            crate::operation::evaluate_feature::EvaluateFeatureError::ValidationException(inner) => Error::ValidationException(inner),
386            crate::operation::evaluate_feature::EvaluateFeatureError::Unhandled(inner) => Error::Unhandled(inner),
387        }
388    }
389}
390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment::GetExperimentError, R>> for Error
391where
392    R: Send + Sync + std::fmt::Debug + 'static,
393{
394    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment::GetExperimentError, R>) -> Self {
395        match err {
396            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
397            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
398                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
399                source: err.into(),
400            }),
401        }
402    }
403}
404impl From<crate::operation::get_experiment::GetExperimentError> for Error {
405    fn from(err: crate::operation::get_experiment::GetExperimentError) -> Self {
406        match err {
407            crate::operation::get_experiment::GetExperimentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
408            crate::operation::get_experiment::GetExperimentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
409            crate::operation::get_experiment::GetExperimentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
410            crate::operation::get_experiment::GetExperimentError::ValidationException(inner) => Error::ValidationException(inner),
411            crate::operation::get_experiment::GetExperimentError::Unhandled(inner) => Error::Unhandled(inner),
412        }
413    }
414}
415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment_results::GetExperimentResultsError, R>> for Error
416where
417    R: Send + Sync + std::fmt::Debug + 'static,
418{
419    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment_results::GetExperimentResultsError, R>) -> Self {
420        match err {
421            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
422            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
423                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
424                source: err.into(),
425            }),
426        }
427    }
428}
429impl From<crate::operation::get_experiment_results::GetExperimentResultsError> for Error {
430    fn from(err: crate::operation::get_experiment_results::GetExperimentResultsError) -> Self {
431        match err {
432            crate::operation::get_experiment_results::GetExperimentResultsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
433            crate::operation::get_experiment_results::GetExperimentResultsError::ConflictException(inner) => Error::ConflictException(inner),
434            crate::operation::get_experiment_results::GetExperimentResultsError::ResourceNotFoundException(inner) => {
435                Error::ResourceNotFoundException(inner)
436            }
437            crate::operation::get_experiment_results::GetExperimentResultsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
438            crate::operation::get_experiment_results::GetExperimentResultsError::ValidationException(inner) => Error::ValidationException(inner),
439            crate::operation::get_experiment_results::GetExperimentResultsError::Unhandled(inner) => Error::Unhandled(inner),
440        }
441    }
442}
443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feature::GetFeatureError, R>> for Error
444where
445    R: Send + Sync + std::fmt::Debug + 'static,
446{
447    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feature::GetFeatureError, R>) -> Self {
448        match err {
449            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
450            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
451                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
452                source: err.into(),
453            }),
454        }
455    }
456}
457impl From<crate::operation::get_feature::GetFeatureError> for Error {
458    fn from(err: crate::operation::get_feature::GetFeatureError) -> Self {
459        match err {
460            crate::operation::get_feature::GetFeatureError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
461            crate::operation::get_feature::GetFeatureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
462            crate::operation::get_feature::GetFeatureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
463            crate::operation::get_feature::GetFeatureError::ValidationException(inner) => Error::ValidationException(inner),
464            crate::operation::get_feature::GetFeatureError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch::GetLaunchError, R>> for Error
469where
470    R: Send + Sync + std::fmt::Debug + 'static,
471{
472    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch::GetLaunchError, R>) -> Self {
473        match err {
474            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
475            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
476                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
477                source: err.into(),
478            }),
479        }
480    }
481}
482impl From<crate::operation::get_launch::GetLaunchError> for Error {
483    fn from(err: crate::operation::get_launch::GetLaunchError) -> Self {
484        match err {
485            crate::operation::get_launch::GetLaunchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
486            crate::operation::get_launch::GetLaunchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
487            crate::operation::get_launch::GetLaunchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
488            crate::operation::get_launch::GetLaunchError::ValidationException(inner) => Error::ValidationException(inner),
489            crate::operation::get_launch::GetLaunchError::Unhandled(inner) => Error::Unhandled(inner),
490        }
491    }
492}
493impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>> for Error
494where
495    R: Send + Sync + std::fmt::Debug + 'static,
496{
497    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>) -> Self {
498        match err {
499            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
500            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
501                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
502                source: err.into(),
503            }),
504        }
505    }
506}
507impl From<crate::operation::get_project::GetProjectError> for Error {
508    fn from(err: crate::operation::get_project::GetProjectError) -> Self {
509        match err {
510            crate::operation::get_project::GetProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
511            crate::operation::get_project::GetProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
512            crate::operation::get_project::GetProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
513            crate::operation::get_project::GetProjectError::ValidationException(inner) => Error::ValidationException(inner),
514            crate::operation::get_project::GetProjectError::Unhandled(inner) => Error::Unhandled(inner),
515        }
516    }
517}
518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment::GetSegmentError, R>> for Error
519where
520    R: Send + Sync + std::fmt::Debug + 'static,
521{
522    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment::GetSegmentError, R>) -> Self {
523        match err {
524            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
525            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
526                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
527                source: err.into(),
528            }),
529        }
530    }
531}
532impl From<crate::operation::get_segment::GetSegmentError> for Error {
533    fn from(err: crate::operation::get_segment::GetSegmentError) -> Self {
534        match err {
535            crate::operation::get_segment::GetSegmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
536            crate::operation::get_segment::GetSegmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
537            crate::operation::get_segment::GetSegmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
538            crate::operation::get_segment::GetSegmentError::ValidationException(inner) => Error::ValidationException(inner),
539            crate::operation::get_segment::GetSegmentError::Unhandled(inner) => Error::Unhandled(inner),
540        }
541    }
542}
543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>> for Error
544where
545    R: Send + Sync + std::fmt::Debug + 'static,
546{
547    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>) -> Self {
548        match err {
549            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
550            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
551                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
552                source: err.into(),
553            }),
554        }
555    }
556}
557impl From<crate::operation::list_experiments::ListExperimentsError> for Error {
558    fn from(err: crate::operation::list_experiments::ListExperimentsError) -> Self {
559        match err {
560            crate::operation::list_experiments::ListExperimentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
561            crate::operation::list_experiments::ListExperimentsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
562            crate::operation::list_experiments::ListExperimentsError::ValidationException(inner) => Error::ValidationException(inner),
563            crate::operation::list_experiments::ListExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
564        }
565    }
566}
567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_features::ListFeaturesError, R>> for Error
568where
569    R: Send + Sync + std::fmt::Debug + 'static,
570{
571    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_features::ListFeaturesError, R>) -> Self {
572        match err {
573            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
574            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
575                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
576                source: err.into(),
577            }),
578        }
579    }
580}
581impl From<crate::operation::list_features::ListFeaturesError> for Error {
582    fn from(err: crate::operation::list_features::ListFeaturesError) -> Self {
583        match err {
584            crate::operation::list_features::ListFeaturesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
585            crate::operation::list_features::ListFeaturesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
586            crate::operation::list_features::ListFeaturesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
587            crate::operation::list_features::ListFeaturesError::ValidationException(inner) => Error::ValidationException(inner),
588            crate::operation::list_features::ListFeaturesError::Unhandled(inner) => Error::Unhandled(inner),
589        }
590    }
591}
592impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_launches::ListLaunchesError, R>> for Error
593where
594    R: Send + Sync + std::fmt::Debug + 'static,
595{
596    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_launches::ListLaunchesError, R>) -> Self {
597        match err {
598            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
599            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
600                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
601                source: err.into(),
602            }),
603        }
604    }
605}
606impl From<crate::operation::list_launches::ListLaunchesError> for Error {
607    fn from(err: crate::operation::list_launches::ListLaunchesError) -> Self {
608        match err {
609            crate::operation::list_launches::ListLaunchesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
610            crate::operation::list_launches::ListLaunchesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
611            crate::operation::list_launches::ListLaunchesError::ValidationException(inner) => Error::ValidationException(inner),
612            crate::operation::list_launches::ListLaunchesError::Unhandled(inner) => Error::Unhandled(inner),
613        }
614    }
615}
616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
617where
618    R: Send + Sync + std::fmt::Debug + 'static,
619{
620    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
621        match err {
622            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
623            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
624                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
625                source: err.into(),
626            }),
627        }
628    }
629}
630impl From<crate::operation::list_projects::ListProjectsError> for Error {
631    fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
632        match err {
633            crate::operation::list_projects::ListProjectsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
634            crate::operation::list_projects::ListProjectsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
635            crate::operation::list_projects::ListProjectsError::ValidationException(inner) => Error::ValidationException(inner),
636            crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
637        }
638    }
639}
640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_segment_references::ListSegmentReferencesError, R>> for Error
641where
642    R: Send + Sync + std::fmt::Debug + 'static,
643{
644    fn from(
645        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_segment_references::ListSegmentReferencesError, R>,
646    ) -> Self {
647        match err {
648            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
649            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
650                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
651                source: err.into(),
652            }),
653        }
654    }
655}
656impl From<crate::operation::list_segment_references::ListSegmentReferencesError> for Error {
657    fn from(err: crate::operation::list_segment_references::ListSegmentReferencesError) -> Self {
658        match err {
659            crate::operation::list_segment_references::ListSegmentReferencesError::AccessDeniedException(inner) => {
660                Error::AccessDeniedException(inner)
661            }
662            crate::operation::list_segment_references::ListSegmentReferencesError::ResourceNotFoundException(inner) => {
663                Error::ResourceNotFoundException(inner)
664            }
665            crate::operation::list_segment_references::ListSegmentReferencesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
666            crate::operation::list_segment_references::ListSegmentReferencesError::ValidationException(inner) => Error::ValidationException(inner),
667            crate::operation::list_segment_references::ListSegmentReferencesError::Unhandled(inner) => Error::Unhandled(inner),
668        }
669    }
670}
671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_segments::ListSegmentsError, R>> for Error
672where
673    R: Send + Sync + std::fmt::Debug + 'static,
674{
675    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_segments::ListSegmentsError, R>) -> Self {
676        match err {
677            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
678            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
679                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
680                source: err.into(),
681            }),
682        }
683    }
684}
685impl From<crate::operation::list_segments::ListSegmentsError> for Error {
686    fn from(err: crate::operation::list_segments::ListSegmentsError) -> Self {
687        match err {
688            crate::operation::list_segments::ListSegmentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
689            crate::operation::list_segments::ListSegmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
690            crate::operation::list_segments::ListSegmentsError::ValidationException(inner) => Error::ValidationException(inner),
691            crate::operation::list_segments::ListSegmentsError::Unhandled(inner) => Error::Unhandled(inner),
692        }
693    }
694}
695impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
696where
697    R: Send + Sync + std::fmt::Debug + 'static,
698{
699    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
700        match err {
701            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
702            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
703                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
704                source: err.into(),
705            }),
706        }
707    }
708}
709impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
710    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
711        match err {
712            crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
713            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
714                Error::ResourceNotFoundException(inner)
715            }
716            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
717            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
718        }
719    }
720}
721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_project_events::PutProjectEventsError, R>> for Error
722where
723    R: Send + Sync + std::fmt::Debug + 'static,
724{
725    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_project_events::PutProjectEventsError, R>) -> Self {
726        match err {
727            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
728            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
729                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
730                source: err.into(),
731            }),
732        }
733    }
734}
735impl From<crate::operation::put_project_events::PutProjectEventsError> for Error {
736    fn from(err: crate::operation::put_project_events::PutProjectEventsError) -> Self {
737        match err {
738            crate::operation::put_project_events::PutProjectEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
739            crate::operation::put_project_events::PutProjectEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
740            crate::operation::put_project_events::PutProjectEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
741            crate::operation::put_project_events::PutProjectEventsError::ValidationException(inner) => Error::ValidationException(inner),
742            crate::operation::put_project_events::PutProjectEventsError::Unhandled(inner) => Error::Unhandled(inner),
743        }
744    }
745}
746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_experiment::StartExperimentError, R>> for Error
747where
748    R: Send + Sync + std::fmt::Debug + 'static,
749{
750    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_experiment::StartExperimentError, R>) -> Self {
751        match err {
752            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
753            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
754                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
755                source: err.into(),
756            }),
757        }
758    }
759}
760impl From<crate::operation::start_experiment::StartExperimentError> for Error {
761    fn from(err: crate::operation::start_experiment::StartExperimentError) -> Self {
762        match err {
763            crate::operation::start_experiment::StartExperimentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
764            crate::operation::start_experiment::StartExperimentError::ConflictException(inner) => Error::ConflictException(inner),
765            crate::operation::start_experiment::StartExperimentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
766            crate::operation::start_experiment::StartExperimentError::ServiceQuotaExceededException(inner) => {
767                Error::ServiceQuotaExceededException(inner)
768            }
769            crate::operation::start_experiment::StartExperimentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
770            crate::operation::start_experiment::StartExperimentError::ValidationException(inner) => Error::ValidationException(inner),
771            crate::operation::start_experiment::StartExperimentError::Unhandled(inner) => Error::Unhandled(inner),
772        }
773    }
774}
775impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_launch::StartLaunchError, 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::start_launch::StartLaunchError, 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::start_launch::StartLaunchError> for Error {
790    fn from(err: crate::operation::start_launch::StartLaunchError) -> Self {
791        match err {
792            crate::operation::start_launch::StartLaunchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
793            crate::operation::start_launch::StartLaunchError::ConflictException(inner) => Error::ConflictException(inner),
794            crate::operation::start_launch::StartLaunchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
795            crate::operation::start_launch::StartLaunchError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
796            crate::operation::start_launch::StartLaunchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
797            crate::operation::start_launch::StartLaunchError::ValidationException(inner) => Error::ValidationException(inner),
798            crate::operation::start_launch::StartLaunchError::Unhandled(inner) => Error::Unhandled(inner),
799        }
800    }
801}
802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_experiment::StopExperimentError, R>> for Error
803where
804    R: Send + Sync + std::fmt::Debug + 'static,
805{
806    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_experiment::StopExperimentError, R>) -> Self {
807        match err {
808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
811                source: err.into(),
812            }),
813        }
814    }
815}
816impl From<crate::operation::stop_experiment::StopExperimentError> for Error {
817    fn from(err: crate::operation::stop_experiment::StopExperimentError) -> Self {
818        match err {
819            crate::operation::stop_experiment::StopExperimentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
820            crate::operation::stop_experiment::StopExperimentError::ConflictException(inner) => Error::ConflictException(inner),
821            crate::operation::stop_experiment::StopExperimentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
822            crate::operation::stop_experiment::StopExperimentError::ServiceQuotaExceededException(inner) => {
823                Error::ServiceQuotaExceededException(inner)
824            }
825            crate::operation::stop_experiment::StopExperimentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
826            crate::operation::stop_experiment::StopExperimentError::ValidationException(inner) => Error::ValidationException(inner),
827            crate::operation::stop_experiment::StopExperimentError::Unhandled(inner) => Error::Unhandled(inner),
828        }
829    }
830}
831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_launch::StopLaunchError, R>> for Error
832where
833    R: Send + Sync + std::fmt::Debug + 'static,
834{
835    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_launch::StopLaunchError, R>) -> Self {
836        match err {
837            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
838            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
839                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
840                source: err.into(),
841            }),
842        }
843    }
844}
845impl From<crate::operation::stop_launch::StopLaunchError> for Error {
846    fn from(err: crate::operation::stop_launch::StopLaunchError) -> Self {
847        match err {
848            crate::operation::stop_launch::StopLaunchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
849            crate::operation::stop_launch::StopLaunchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
850            crate::operation::stop_launch::StopLaunchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
851            crate::operation::stop_launch::StopLaunchError::ValidationException(inner) => Error::ValidationException(inner),
852            crate::operation::stop_launch::StopLaunchError::Unhandled(inner) => Error::Unhandled(inner),
853        }
854    }
855}
856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
857where
858    R: Send + Sync + std::fmt::Debug + 'static,
859{
860    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
861        match err {
862            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865                source: err.into(),
866            }),
867        }
868    }
869}
870impl From<crate::operation::tag_resource::TagResourceError> for Error {
871    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
872        match err {
873            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
874            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
875            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
876            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
877        }
878    }
879}
880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_segment_pattern::TestSegmentPatternError, R>> for Error
881where
882    R: Send + Sync + std::fmt::Debug + 'static,
883{
884    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_segment_pattern::TestSegmentPatternError, R>) -> Self {
885        match err {
886            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
887            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
888                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
889                source: err.into(),
890            }),
891        }
892    }
893}
894impl From<crate::operation::test_segment_pattern::TestSegmentPatternError> for Error {
895    fn from(err: crate::operation::test_segment_pattern::TestSegmentPatternError) -> Self {
896        match err {
897            crate::operation::test_segment_pattern::TestSegmentPatternError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
898            crate::operation::test_segment_pattern::TestSegmentPatternError::ThrottlingException(inner) => Error::ThrottlingException(inner),
899            crate::operation::test_segment_pattern::TestSegmentPatternError::ValidationException(inner) => Error::ValidationException(inner),
900            crate::operation::test_segment_pattern::TestSegmentPatternError::Unhandled(inner) => Error::Unhandled(inner),
901        }
902    }
903}
904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
905where
906    R: Send + Sync + std::fmt::Debug + 'static,
907{
908    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
909        match err {
910            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
911            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
912                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
913                source: err.into(),
914            }),
915        }
916    }
917}
918impl From<crate::operation::untag_resource::UntagResourceError> for Error {
919    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
920        match err {
921            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
922            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
923            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
924            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
925        }
926    }
927}
928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>> for Error
929where
930    R: Send + Sync + std::fmt::Debug + 'static,
931{
932    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>) -> Self {
933        match err {
934            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
935            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
936                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
937                source: err.into(),
938            }),
939        }
940    }
941}
942impl From<crate::operation::update_experiment::UpdateExperimentError> for Error {
943    fn from(err: crate::operation::update_experiment::UpdateExperimentError) -> Self {
944        match err {
945            crate::operation::update_experiment::UpdateExperimentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
946            crate::operation::update_experiment::UpdateExperimentError::ConflictException(inner) => Error::ConflictException(inner),
947            crate::operation::update_experiment::UpdateExperimentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
948            crate::operation::update_experiment::UpdateExperimentError::ValidationException(inner) => Error::ValidationException(inner),
949            crate::operation::update_experiment::UpdateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
950        }
951    }
952}
953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature::UpdateFeatureError, R>> for Error
954where
955    R: Send + Sync + std::fmt::Debug + 'static,
956{
957    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature::UpdateFeatureError, R>) -> Self {
958        match err {
959            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
960            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
961                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
962                source: err.into(),
963            }),
964        }
965    }
966}
967impl From<crate::operation::update_feature::UpdateFeatureError> for Error {
968    fn from(err: crate::operation::update_feature::UpdateFeatureError) -> Self {
969        match err {
970            crate::operation::update_feature::UpdateFeatureError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
971            crate::operation::update_feature::UpdateFeatureError::ConflictException(inner) => Error::ConflictException(inner),
972            crate::operation::update_feature::UpdateFeatureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
973            crate::operation::update_feature::UpdateFeatureError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
974            crate::operation::update_feature::UpdateFeatureError::ValidationException(inner) => Error::ValidationException(inner),
975            crate::operation::update_feature::UpdateFeatureError::Unhandled(inner) => Error::Unhandled(inner),
976        }
977    }
978}
979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_launch::UpdateLaunchError, R>> for Error
980where
981    R: Send + Sync + std::fmt::Debug + 'static,
982{
983    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_launch::UpdateLaunchError, R>) -> Self {
984        match err {
985            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
986            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
987                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
988                source: err.into(),
989            }),
990        }
991    }
992}
993impl From<crate::operation::update_launch::UpdateLaunchError> for Error {
994    fn from(err: crate::operation::update_launch::UpdateLaunchError) -> Self {
995        match err {
996            crate::operation::update_launch::UpdateLaunchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
997            crate::operation::update_launch::UpdateLaunchError::ConflictException(inner) => Error::ConflictException(inner),
998            crate::operation::update_launch::UpdateLaunchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
999            crate::operation::update_launch::UpdateLaunchError::ValidationException(inner) => Error::ValidationException(inner),
1000            crate::operation::update_launch::UpdateLaunchError::Unhandled(inner) => Error::Unhandled(inner),
1001        }
1002    }
1003}
1004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
1005where
1006    R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
1009        match err {
1010            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1011            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1012                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1013                source: err.into(),
1014            }),
1015        }
1016    }
1017}
1018impl From<crate::operation::update_project::UpdateProjectError> for Error {
1019    fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
1020        match err {
1021            crate::operation::update_project::UpdateProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1022            crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
1023            crate::operation::update_project::UpdateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1024            crate::operation::update_project::UpdateProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1025            crate::operation::update_project::UpdateProjectError::ValidationException(inner) => Error::ValidationException(inner),
1026            crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1027        }
1028    }
1029}
1030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError, R>>
1031    for Error
1032where
1033    R: Send + Sync + std::fmt::Debug + 'static,
1034{
1035    fn from(
1036        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError, R>,
1037    ) -> Self {
1038        match err {
1039            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042                source: err.into(),
1043            }),
1044        }
1045    }
1046}
1047impl From<crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError> for Error {
1048    fn from(err: crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError) -> Self {
1049        match err {
1050            crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError::AccessDeniedException(inner) => {
1051                Error::AccessDeniedException(inner)
1052            }
1053            crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError::ConflictException(inner) => {
1054                Error::ConflictException(inner)
1055            }
1056            crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError::ResourceNotFoundException(inner) => {
1057                Error::ResourceNotFoundException(inner)
1058            }
1059            crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError::ServiceQuotaExceededException(inner) => {
1060                Error::ServiceQuotaExceededException(inner)
1061            }
1062            crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError::ValidationException(inner) => {
1063                Error::ValidationException(inner)
1064            }
1065            crate::operation::update_project_data_delivery::UpdateProjectDataDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
1066        }
1067    }
1068}
1069impl ::std::error::Error for Error {
1070    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1071        match self {
1072            Error::AccessDeniedException(inner) => inner.source(),
1073            Error::ConflictException(inner) => inner.source(),
1074            Error::InternalServerException(inner) => inner.source(),
1075            Error::ResourceNotFoundException(inner) => inner.source(),
1076            Error::ServiceQuotaExceededException(inner) => inner.source(),
1077            Error::ServiceUnavailableException(inner) => inner.source(),
1078            Error::ThrottlingException(inner) => inner.source(),
1079            Error::ValidationException(inner) => inner.source(),
1080            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1081        }
1082    }
1083}
1084impl ::aws_types::request_id::RequestId for Error {
1085    fn request_id(&self) -> Option<&str> {
1086        match self {
1087            Self::AccessDeniedException(e) => e.request_id(),
1088            Self::ConflictException(e) => e.request_id(),
1089            Self::InternalServerException(e) => e.request_id(),
1090            Self::ResourceNotFoundException(e) => e.request_id(),
1091            Self::ServiceQuotaExceededException(e) => e.request_id(),
1092            Self::ServiceUnavailableException(e) => e.request_id(),
1093            Self::ThrottlingException(e) => e.request_id(),
1094            Self::ValidationException(e) => e.request_id(),
1095            Self::Unhandled(e) => e.meta.request_id(),
1096        }
1097    }
1098}