Skip to main content

aws_sdk_mediaconvert/
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    /// The service can't process your request because of a problem in the request. Please check your request form and syntax.
7    BadRequestException(crate::types::error::BadRequestException),
8    /// The service couldn't complete your request because there is a conflict with the current state of the resource.
9    ConflictException(crate::types::error::ConflictException),
10    /// You don't have permissions for this action with the credentials you sent.
11    ForbiddenException(crate::types::error::ForbiddenException),
12    /// The service encountered an unexpected condition and can't fulfill your request.
13    InternalServerErrorException(crate::types::error::InternalServerErrorException),
14    /// The resource you requested doesn't exist.
15    NotFoundException(crate::types::error::NotFoundException),
16    /// You attempted to create more resources than the service allows based on service quotas.
17    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18    /// Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests.
19    TooManyRequestsException(crate::types::error::TooManyRequestsException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[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::BadRequestException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::ForbiddenException(inner) => inner.fmt(f),
35            Error::InternalServerErrorException(inner) => inner.fmt(f),
36            Error::NotFoundException(inner) => inner.fmt(f),
37            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
38            Error::TooManyRequestsException(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::BadRequestException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::ForbiddenException(inner) => inner.meta(),
63            Self::InternalServerErrorException(inner) => inner.meta(),
64            Self::NotFoundException(inner) => inner.meta(),
65            Self::ServiceQuotaExceededException(inner) => inner.meta(),
66            Self::TooManyRequestsException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_certificate::AssociateCertificateError, 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::associate_certificate::AssociateCertificateError, 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::associate_certificate::AssociateCertificateError> for Error {
86    fn from(err: crate::operation::associate_certificate::AssociateCertificateError) -> Self {
87        match err {
88            crate::operation::associate_certificate::AssociateCertificateError::BadRequestException(inner) => Error::BadRequestException(inner),
89            crate::operation::associate_certificate::AssociateCertificateError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::associate_certificate::AssociateCertificateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
91            crate::operation::associate_certificate::AssociateCertificateError::InternalServerErrorException(inner) => {
92                Error::InternalServerErrorException(inner)
93            }
94            crate::operation::associate_certificate::AssociateCertificateError::NotFoundException(inner) => Error::NotFoundException(inner),
95            crate::operation::associate_certificate::AssociateCertificateError::ServiceQuotaExceededException(inner) => {
96                Error::ServiceQuotaExceededException(inner)
97            }
98            crate::operation::associate_certificate::AssociateCertificateError::TooManyRequestsException(inner) => {
99                Error::TooManyRequestsException(inner)
100            }
101            crate::operation::associate_certificate::AssociateCertificateError::Unhandled(inner) => Error::Unhandled(inner),
102        }
103    }
104}
105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job::CancelJobError, R>> for Error
106where
107    R: Send + Sync + std::fmt::Debug + 'static,
108{
109    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job::CancelJobError, R>) -> Self {
110        match err {
111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
114                source: err.into(),
115            }),
116        }
117    }
118}
119impl From<crate::operation::cancel_job::CancelJobError> for Error {
120    fn from(err: crate::operation::cancel_job::CancelJobError) -> Self {
121        match err {
122            crate::operation::cancel_job::CancelJobError::BadRequestException(inner) => Error::BadRequestException(inner),
123            crate::operation::cancel_job::CancelJobError::ConflictException(inner) => Error::ConflictException(inner),
124            crate::operation::cancel_job::CancelJobError::ForbiddenException(inner) => Error::ForbiddenException(inner),
125            crate::operation::cancel_job::CancelJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
126            crate::operation::cancel_job::CancelJobError::NotFoundException(inner) => Error::NotFoundException(inner),
127            crate::operation::cancel_job::CancelJobError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
128            crate::operation::cancel_job::CancelJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
129            crate::operation::cancel_job::CancelJobError::Unhandled(inner) => Error::Unhandled(inner),
130        }
131    }
132}
133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job::CreateJobError, R>> for Error
134where
135    R: Send + Sync + std::fmt::Debug + 'static,
136{
137    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job::CreateJobError, R>) -> Self {
138        match err {
139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
142                source: err.into(),
143            }),
144        }
145    }
146}
147impl From<crate::operation::create_job::CreateJobError> for Error {
148    fn from(err: crate::operation::create_job::CreateJobError) -> Self {
149        match err {
150            crate::operation::create_job::CreateJobError::BadRequestException(inner) => Error::BadRequestException(inner),
151            crate::operation::create_job::CreateJobError::ConflictException(inner) => Error::ConflictException(inner),
152            crate::operation::create_job::CreateJobError::ForbiddenException(inner) => Error::ForbiddenException(inner),
153            crate::operation::create_job::CreateJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
154            crate::operation::create_job::CreateJobError::NotFoundException(inner) => Error::NotFoundException(inner),
155            crate::operation::create_job::CreateJobError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
156            crate::operation::create_job::CreateJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
157            crate::operation::create_job::CreateJobError::Unhandled(inner) => Error::Unhandled(inner),
158        }
159    }
160}
161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job_template::CreateJobTemplateError, R>> for Error
162where
163    R: Send + Sync + std::fmt::Debug + 'static,
164{
165    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job_template::CreateJobTemplateError, R>) -> Self {
166        match err {
167            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
168            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
169                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
170                source: err.into(),
171            }),
172        }
173    }
174}
175impl From<crate::operation::create_job_template::CreateJobTemplateError> for Error {
176    fn from(err: crate::operation::create_job_template::CreateJobTemplateError) -> Self {
177        match err {
178            crate::operation::create_job_template::CreateJobTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
179            crate::operation::create_job_template::CreateJobTemplateError::ConflictException(inner) => Error::ConflictException(inner),
180            crate::operation::create_job_template::CreateJobTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
181            crate::operation::create_job_template::CreateJobTemplateError::InternalServerErrorException(inner) => {
182                Error::InternalServerErrorException(inner)
183            }
184            crate::operation::create_job_template::CreateJobTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
185            crate::operation::create_job_template::CreateJobTemplateError::ServiceQuotaExceededException(inner) => {
186                Error::ServiceQuotaExceededException(inner)
187            }
188            crate::operation::create_job_template::CreateJobTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
189            crate::operation::create_job_template::CreateJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
190        }
191    }
192}
193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_preset::CreatePresetError, R>> for Error
194where
195    R: Send + Sync + std::fmt::Debug + 'static,
196{
197    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_preset::CreatePresetError, R>) -> Self {
198        match err {
199            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
200            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
201                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
202                source: err.into(),
203            }),
204        }
205    }
206}
207impl From<crate::operation::create_preset::CreatePresetError> for Error {
208    fn from(err: crate::operation::create_preset::CreatePresetError) -> Self {
209        match err {
210            crate::operation::create_preset::CreatePresetError::BadRequestException(inner) => Error::BadRequestException(inner),
211            crate::operation::create_preset::CreatePresetError::ConflictException(inner) => Error::ConflictException(inner),
212            crate::operation::create_preset::CreatePresetError::ForbiddenException(inner) => Error::ForbiddenException(inner),
213            crate::operation::create_preset::CreatePresetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
214            crate::operation::create_preset::CreatePresetError::NotFoundException(inner) => Error::NotFoundException(inner),
215            crate::operation::create_preset::CreatePresetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
216            crate::operation::create_preset::CreatePresetError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
217            crate::operation::create_preset::CreatePresetError::Unhandled(inner) => Error::Unhandled(inner),
218        }
219    }
220}
221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue::CreateQueueError, R>> for Error
222where
223    R: Send + Sync + std::fmt::Debug + 'static,
224{
225    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue::CreateQueueError, R>) -> Self {
226        match err {
227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
230                source: err.into(),
231            }),
232        }
233    }
234}
235impl From<crate::operation::create_queue::CreateQueueError> for Error {
236    fn from(err: crate::operation::create_queue::CreateQueueError) -> Self {
237        match err {
238            crate::operation::create_queue::CreateQueueError::BadRequestException(inner) => Error::BadRequestException(inner),
239            crate::operation::create_queue::CreateQueueError::ConflictException(inner) => Error::ConflictException(inner),
240            crate::operation::create_queue::CreateQueueError::ForbiddenException(inner) => Error::ForbiddenException(inner),
241            crate::operation::create_queue::CreateQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
242            crate::operation::create_queue::CreateQueueError::NotFoundException(inner) => Error::NotFoundException(inner),
243            crate::operation::create_queue::CreateQueueError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
244            crate::operation::create_queue::CreateQueueError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
245            crate::operation::create_queue::CreateQueueError::Unhandled(inner) => Error::Unhandled(inner),
246        }
247    }
248}
249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_share::CreateResourceShareError, R>> for Error
250where
251    R: Send + Sync + std::fmt::Debug + 'static,
252{
253    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_share::CreateResourceShareError, R>) -> Self {
254        match err {
255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
258                source: err.into(),
259            }),
260        }
261    }
262}
263impl From<crate::operation::create_resource_share::CreateResourceShareError> for Error {
264    fn from(err: crate::operation::create_resource_share::CreateResourceShareError) -> Self {
265        match err {
266            crate::operation::create_resource_share::CreateResourceShareError::BadRequestException(inner) => Error::BadRequestException(inner),
267            crate::operation::create_resource_share::CreateResourceShareError::ConflictException(inner) => Error::ConflictException(inner),
268            crate::operation::create_resource_share::CreateResourceShareError::ForbiddenException(inner) => Error::ForbiddenException(inner),
269            crate::operation::create_resource_share::CreateResourceShareError::InternalServerErrorException(inner) => {
270                Error::InternalServerErrorException(inner)
271            }
272            crate::operation::create_resource_share::CreateResourceShareError::NotFoundException(inner) => Error::NotFoundException(inner),
273            crate::operation::create_resource_share::CreateResourceShareError::ServiceQuotaExceededException(inner) => {
274                Error::ServiceQuotaExceededException(inner)
275            }
276            crate::operation::create_resource_share::CreateResourceShareError::TooManyRequestsException(inner) => {
277                Error::TooManyRequestsException(inner)
278            }
279            crate::operation::create_resource_share::CreateResourceShareError::Unhandled(inner) => Error::Unhandled(inner),
280        }
281    }
282}
283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job_template::DeleteJobTemplateError, R>> for Error
284where
285    R: Send + Sync + std::fmt::Debug + 'static,
286{
287    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job_template::DeleteJobTemplateError, R>) -> Self {
288        match err {
289            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
290            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
291                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
292                source: err.into(),
293            }),
294        }
295    }
296}
297impl From<crate::operation::delete_job_template::DeleteJobTemplateError> for Error {
298    fn from(err: crate::operation::delete_job_template::DeleteJobTemplateError) -> Self {
299        match err {
300            crate::operation::delete_job_template::DeleteJobTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
301            crate::operation::delete_job_template::DeleteJobTemplateError::ConflictException(inner) => Error::ConflictException(inner),
302            crate::operation::delete_job_template::DeleteJobTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
303            crate::operation::delete_job_template::DeleteJobTemplateError::InternalServerErrorException(inner) => {
304                Error::InternalServerErrorException(inner)
305            }
306            crate::operation::delete_job_template::DeleteJobTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
307            crate::operation::delete_job_template::DeleteJobTemplateError::ServiceQuotaExceededException(inner) => {
308                Error::ServiceQuotaExceededException(inner)
309            }
310            crate::operation::delete_job_template::DeleteJobTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
311            crate::operation::delete_job_template::DeleteJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
312        }
313    }
314}
315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>> for Error
316where
317    R: Send + Sync + std::fmt::Debug + 'static,
318{
319    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>) -> Self {
320        match err {
321            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
322            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
323                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
324                source: err.into(),
325            }),
326        }
327    }
328}
329impl From<crate::operation::delete_policy::DeletePolicyError> for Error {
330    fn from(err: crate::operation::delete_policy::DeletePolicyError) -> Self {
331        match err {
332            crate::operation::delete_policy::DeletePolicyError::BadRequestException(inner) => Error::BadRequestException(inner),
333            crate::operation::delete_policy::DeletePolicyError::ConflictException(inner) => Error::ConflictException(inner),
334            crate::operation::delete_policy::DeletePolicyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
335            crate::operation::delete_policy::DeletePolicyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
336            crate::operation::delete_policy::DeletePolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
337            crate::operation::delete_policy::DeletePolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
338            crate::operation::delete_policy::DeletePolicyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
339            crate::operation::delete_policy::DeletePolicyError::Unhandled(inner) => Error::Unhandled(inner),
340        }
341    }
342}
343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_preset::DeletePresetError, R>> for Error
344where
345    R: Send + Sync + std::fmt::Debug + 'static,
346{
347    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_preset::DeletePresetError, R>) -> Self {
348        match err {
349            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
350            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
351                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
352                source: err.into(),
353            }),
354        }
355    }
356}
357impl From<crate::operation::delete_preset::DeletePresetError> for Error {
358    fn from(err: crate::operation::delete_preset::DeletePresetError) -> Self {
359        match err {
360            crate::operation::delete_preset::DeletePresetError::BadRequestException(inner) => Error::BadRequestException(inner),
361            crate::operation::delete_preset::DeletePresetError::ConflictException(inner) => Error::ConflictException(inner),
362            crate::operation::delete_preset::DeletePresetError::ForbiddenException(inner) => Error::ForbiddenException(inner),
363            crate::operation::delete_preset::DeletePresetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
364            crate::operation::delete_preset::DeletePresetError::NotFoundException(inner) => Error::NotFoundException(inner),
365            crate::operation::delete_preset::DeletePresetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
366            crate::operation::delete_preset::DeletePresetError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
367            crate::operation::delete_preset::DeletePresetError::Unhandled(inner) => Error::Unhandled(inner),
368        }
369    }
370}
371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue::DeleteQueueError, R>> for Error
372where
373    R: Send + Sync + std::fmt::Debug + 'static,
374{
375    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue::DeleteQueueError, R>) -> Self {
376        match err {
377            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
378            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
379                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
380                source: err.into(),
381            }),
382        }
383    }
384}
385impl From<crate::operation::delete_queue::DeleteQueueError> for Error {
386    fn from(err: crate::operation::delete_queue::DeleteQueueError) -> Self {
387        match err {
388            crate::operation::delete_queue::DeleteQueueError::BadRequestException(inner) => Error::BadRequestException(inner),
389            crate::operation::delete_queue::DeleteQueueError::ConflictException(inner) => Error::ConflictException(inner),
390            crate::operation::delete_queue::DeleteQueueError::ForbiddenException(inner) => Error::ForbiddenException(inner),
391            crate::operation::delete_queue::DeleteQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
392            crate::operation::delete_queue::DeleteQueueError::NotFoundException(inner) => Error::NotFoundException(inner),
393            crate::operation::delete_queue::DeleteQueueError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
394            crate::operation::delete_queue::DeleteQueueError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
395            crate::operation::delete_queue::DeleteQueueError::Unhandled(inner) => Error::Unhandled(inner),
396        }
397    }
398}
399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoints::DescribeEndpointsError, R>> for Error
400where
401    R: Send + Sync + std::fmt::Debug + 'static,
402{
403    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoints::DescribeEndpointsError, R>) -> Self {
404        match err {
405            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
406            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
407                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
408                source: err.into(),
409            }),
410        }
411    }
412}
413impl From<crate::operation::describe_endpoints::DescribeEndpointsError> for Error {
414    fn from(err: crate::operation::describe_endpoints::DescribeEndpointsError) -> Self {
415        match err {
416            crate::operation::describe_endpoints::DescribeEndpointsError::BadRequestException(inner) => Error::BadRequestException(inner),
417            crate::operation::describe_endpoints::DescribeEndpointsError::ConflictException(inner) => Error::ConflictException(inner),
418            crate::operation::describe_endpoints::DescribeEndpointsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
419            crate::operation::describe_endpoints::DescribeEndpointsError::InternalServerErrorException(inner) => {
420                Error::InternalServerErrorException(inner)
421            }
422            crate::operation::describe_endpoints::DescribeEndpointsError::NotFoundException(inner) => Error::NotFoundException(inner),
423            crate::operation::describe_endpoints::DescribeEndpointsError::ServiceQuotaExceededException(inner) => {
424                Error::ServiceQuotaExceededException(inner)
425            }
426            crate::operation::describe_endpoints::DescribeEndpointsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
427            crate::operation::describe_endpoints::DescribeEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
428        }
429    }
430}
431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_certificate::DisassociateCertificateError, R>>
432    for Error
433where
434    R: Send + Sync + std::fmt::Debug + 'static,
435{
436    fn from(
437        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_certificate::DisassociateCertificateError, R>,
438    ) -> Self {
439        match err {
440            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
441            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
442                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
443                source: err.into(),
444            }),
445        }
446    }
447}
448impl From<crate::operation::disassociate_certificate::DisassociateCertificateError> for Error {
449    fn from(err: crate::operation::disassociate_certificate::DisassociateCertificateError) -> Self {
450        match err {
451            crate::operation::disassociate_certificate::DisassociateCertificateError::BadRequestException(inner) => Error::BadRequestException(inner),
452            crate::operation::disassociate_certificate::DisassociateCertificateError::ConflictException(inner) => Error::ConflictException(inner),
453            crate::operation::disassociate_certificate::DisassociateCertificateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
454            crate::operation::disassociate_certificate::DisassociateCertificateError::InternalServerErrorException(inner) => {
455                Error::InternalServerErrorException(inner)
456            }
457            crate::operation::disassociate_certificate::DisassociateCertificateError::NotFoundException(inner) => Error::NotFoundException(inner),
458            crate::operation::disassociate_certificate::DisassociateCertificateError::ServiceQuotaExceededException(inner) => {
459                Error::ServiceQuotaExceededException(inner)
460            }
461            crate::operation::disassociate_certificate::DisassociateCertificateError::TooManyRequestsException(inner) => {
462                Error::TooManyRequestsException(inner)
463            }
464            crate::operation::disassociate_certificate::DisassociateCertificateError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, 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_job::GetJobError, 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_job::GetJobError> for Error {
483    fn from(err: crate::operation::get_job::GetJobError) -> Self {
484        match err {
485            crate::operation::get_job::GetJobError::BadRequestException(inner) => Error::BadRequestException(inner),
486            crate::operation::get_job::GetJobError::ConflictException(inner) => Error::ConflictException(inner),
487            crate::operation::get_job::GetJobError::ForbiddenException(inner) => Error::ForbiddenException(inner),
488            crate::operation::get_job::GetJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
489            crate::operation::get_job::GetJobError::NotFoundException(inner) => Error::NotFoundException(inner),
490            crate::operation::get_job::GetJobError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
491            crate::operation::get_job::GetJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
492            crate::operation::get_job::GetJobError::Unhandled(inner) => Error::Unhandled(inner),
493        }
494    }
495}
496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_jobs_query_results::GetJobsQueryResultsError, R>> for Error
497where
498    R: Send + Sync + std::fmt::Debug + 'static,
499{
500    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_jobs_query_results::GetJobsQueryResultsError, R>) -> Self {
501        match err {
502            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
503            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
504                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
505                source: err.into(),
506            }),
507        }
508    }
509}
510impl From<crate::operation::get_jobs_query_results::GetJobsQueryResultsError> for Error {
511    fn from(err: crate::operation::get_jobs_query_results::GetJobsQueryResultsError) -> Self {
512        match err {
513            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::BadRequestException(inner) => Error::BadRequestException(inner),
514            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::ConflictException(inner) => Error::ConflictException(inner),
515            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
516            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::InternalServerErrorException(inner) => {
517                Error::InternalServerErrorException(inner)
518            }
519            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::NotFoundException(inner) => Error::NotFoundException(inner),
520            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::ServiceQuotaExceededException(inner) => {
521                Error::ServiceQuotaExceededException(inner)
522            }
523            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::TooManyRequestsException(inner) => {
524                Error::TooManyRequestsException(inner)
525            }
526            crate::operation::get_jobs_query_results::GetJobsQueryResultsError::Unhandled(inner) => Error::Unhandled(inner),
527        }
528    }
529}
530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_template::GetJobTemplateError, R>> for Error
531where
532    R: Send + Sync + std::fmt::Debug + 'static,
533{
534    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_template::GetJobTemplateError, R>) -> Self {
535        match err {
536            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
537            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
538                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
539                source: err.into(),
540            }),
541        }
542    }
543}
544impl From<crate::operation::get_job_template::GetJobTemplateError> for Error {
545    fn from(err: crate::operation::get_job_template::GetJobTemplateError) -> Self {
546        match err {
547            crate::operation::get_job_template::GetJobTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
548            crate::operation::get_job_template::GetJobTemplateError::ConflictException(inner) => Error::ConflictException(inner),
549            crate::operation::get_job_template::GetJobTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
550            crate::operation::get_job_template::GetJobTemplateError::InternalServerErrorException(inner) => {
551                Error::InternalServerErrorException(inner)
552            }
553            crate::operation::get_job_template::GetJobTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
554            crate::operation::get_job_template::GetJobTemplateError::ServiceQuotaExceededException(inner) => {
555                Error::ServiceQuotaExceededException(inner)
556            }
557            crate::operation::get_job_template::GetJobTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
558            crate::operation::get_job_template::GetJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
559        }
560    }
561}
562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>> for Error
563where
564    R: Send + Sync + std::fmt::Debug + 'static,
565{
566    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>) -> Self {
567        match err {
568            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
569            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
570                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
571                source: err.into(),
572            }),
573        }
574    }
575}
576impl From<crate::operation::get_policy::GetPolicyError> for Error {
577    fn from(err: crate::operation::get_policy::GetPolicyError) -> Self {
578        match err {
579            crate::operation::get_policy::GetPolicyError::BadRequestException(inner) => Error::BadRequestException(inner),
580            crate::operation::get_policy::GetPolicyError::ConflictException(inner) => Error::ConflictException(inner),
581            crate::operation::get_policy::GetPolicyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
582            crate::operation::get_policy::GetPolicyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
583            crate::operation::get_policy::GetPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
584            crate::operation::get_policy::GetPolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
585            crate::operation::get_policy::GetPolicyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
586            crate::operation::get_policy::GetPolicyError::Unhandled(inner) => Error::Unhandled(inner),
587        }
588    }
589}
590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_preset::GetPresetError, R>> for Error
591where
592    R: Send + Sync + std::fmt::Debug + 'static,
593{
594    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_preset::GetPresetError, R>) -> Self {
595        match err {
596            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
597            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
598                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
599                source: err.into(),
600            }),
601        }
602    }
603}
604impl From<crate::operation::get_preset::GetPresetError> for Error {
605    fn from(err: crate::operation::get_preset::GetPresetError) -> Self {
606        match err {
607            crate::operation::get_preset::GetPresetError::BadRequestException(inner) => Error::BadRequestException(inner),
608            crate::operation::get_preset::GetPresetError::ConflictException(inner) => Error::ConflictException(inner),
609            crate::operation::get_preset::GetPresetError::ForbiddenException(inner) => Error::ForbiddenException(inner),
610            crate::operation::get_preset::GetPresetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
611            crate::operation::get_preset::GetPresetError::NotFoundException(inner) => Error::NotFoundException(inner),
612            crate::operation::get_preset::GetPresetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
613            crate::operation::get_preset::GetPresetError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
614            crate::operation::get_preset::GetPresetError::Unhandled(inner) => Error::Unhandled(inner),
615        }
616    }
617}
618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue::GetQueueError, R>> for Error
619where
620    R: Send + Sync + std::fmt::Debug + 'static,
621{
622    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue::GetQueueError, R>) -> Self {
623        match err {
624            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
625            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
626                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
627                source: err.into(),
628            }),
629        }
630    }
631}
632impl From<crate::operation::get_queue::GetQueueError> for Error {
633    fn from(err: crate::operation::get_queue::GetQueueError) -> Self {
634        match err {
635            crate::operation::get_queue::GetQueueError::BadRequestException(inner) => Error::BadRequestException(inner),
636            crate::operation::get_queue::GetQueueError::ConflictException(inner) => Error::ConflictException(inner),
637            crate::operation::get_queue::GetQueueError::ForbiddenException(inner) => Error::ForbiddenException(inner),
638            crate::operation::get_queue::GetQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
639            crate::operation::get_queue::GetQueueError::NotFoundException(inner) => Error::NotFoundException(inner),
640            crate::operation::get_queue::GetQueueError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
641            crate::operation::get_queue::GetQueueError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
642            crate::operation::get_queue::GetQueueError::Unhandled(inner) => Error::Unhandled(inner),
643        }
644    }
645}
646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
647where
648    R: Send + Sync + std::fmt::Debug + 'static,
649{
650    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
651        match err {
652            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
653            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
654                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
655                source: err.into(),
656            }),
657        }
658    }
659}
660impl From<crate::operation::list_jobs::ListJobsError> for Error {
661    fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
662        match err {
663            crate::operation::list_jobs::ListJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
664            crate::operation::list_jobs::ListJobsError::ConflictException(inner) => Error::ConflictException(inner),
665            crate::operation::list_jobs::ListJobsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
666            crate::operation::list_jobs::ListJobsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
667            crate::operation::list_jobs::ListJobsError::NotFoundException(inner) => Error::NotFoundException(inner),
668            crate::operation::list_jobs::ListJobsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
669            crate::operation::list_jobs::ListJobsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
670            crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
671        }
672    }
673}
674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_templates::ListJobTemplatesError, R>> for Error
675where
676    R: Send + Sync + std::fmt::Debug + 'static,
677{
678    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_templates::ListJobTemplatesError, R>) -> Self {
679        match err {
680            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
681            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
682                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
683                source: err.into(),
684            }),
685        }
686    }
687}
688impl From<crate::operation::list_job_templates::ListJobTemplatesError> for Error {
689    fn from(err: crate::operation::list_job_templates::ListJobTemplatesError) -> Self {
690        match err {
691            crate::operation::list_job_templates::ListJobTemplatesError::BadRequestException(inner) => Error::BadRequestException(inner),
692            crate::operation::list_job_templates::ListJobTemplatesError::ConflictException(inner) => Error::ConflictException(inner),
693            crate::operation::list_job_templates::ListJobTemplatesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
694            crate::operation::list_job_templates::ListJobTemplatesError::InternalServerErrorException(inner) => {
695                Error::InternalServerErrorException(inner)
696            }
697            crate::operation::list_job_templates::ListJobTemplatesError::NotFoundException(inner) => Error::NotFoundException(inner),
698            crate::operation::list_job_templates::ListJobTemplatesError::ServiceQuotaExceededException(inner) => {
699                Error::ServiceQuotaExceededException(inner)
700            }
701            crate::operation::list_job_templates::ListJobTemplatesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
702            crate::operation::list_job_templates::ListJobTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
703        }
704    }
705}
706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_presets::ListPresetsError, R>> for Error
707where
708    R: Send + Sync + std::fmt::Debug + 'static,
709{
710    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_presets::ListPresetsError, R>) -> Self {
711        match err {
712            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
713            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
714                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
715                source: err.into(),
716            }),
717        }
718    }
719}
720impl From<crate::operation::list_presets::ListPresetsError> for Error {
721    fn from(err: crate::operation::list_presets::ListPresetsError) -> Self {
722        match err {
723            crate::operation::list_presets::ListPresetsError::BadRequestException(inner) => Error::BadRequestException(inner),
724            crate::operation::list_presets::ListPresetsError::ConflictException(inner) => Error::ConflictException(inner),
725            crate::operation::list_presets::ListPresetsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
726            crate::operation::list_presets::ListPresetsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
727            crate::operation::list_presets::ListPresetsError::NotFoundException(inner) => Error::NotFoundException(inner),
728            crate::operation::list_presets::ListPresetsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
729            crate::operation::list_presets::ListPresetsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
730            crate::operation::list_presets::ListPresetsError::Unhandled(inner) => Error::Unhandled(inner),
731        }
732    }
733}
734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queues::ListQueuesError, R>> for Error
735where
736    R: Send + Sync + std::fmt::Debug + 'static,
737{
738    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queues::ListQueuesError, R>) -> Self {
739        match err {
740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743                source: err.into(),
744            }),
745        }
746    }
747}
748impl From<crate::operation::list_queues::ListQueuesError> for Error {
749    fn from(err: crate::operation::list_queues::ListQueuesError) -> Self {
750        match err {
751            crate::operation::list_queues::ListQueuesError::BadRequestException(inner) => Error::BadRequestException(inner),
752            crate::operation::list_queues::ListQueuesError::ConflictException(inner) => Error::ConflictException(inner),
753            crate::operation::list_queues::ListQueuesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
754            crate::operation::list_queues::ListQueuesError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
755            crate::operation::list_queues::ListQueuesError::NotFoundException(inner) => Error::NotFoundException(inner),
756            crate::operation::list_queues::ListQueuesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
757            crate::operation::list_queues::ListQueuesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
758            crate::operation::list_queues::ListQueuesError::Unhandled(inner) => Error::Unhandled(inner),
759        }
760    }
761}
762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
763where
764    R: Send + Sync + std::fmt::Debug + 'static,
765{
766    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
767        match err {
768            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
769            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
770                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
771                source: err.into(),
772            }),
773        }
774    }
775}
776impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
777    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
778        match err {
779            crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
780            crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
781            crate::operation::list_tags_for_resource::ListTagsForResourceError::ForbiddenException(inner) => Error::ForbiddenException(inner),
782            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerErrorException(inner) => {
783                Error::InternalServerErrorException(inner)
784            }
785            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
786            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceQuotaExceededException(inner) => {
787                Error::ServiceQuotaExceededException(inner)
788            }
789            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestsException(inner) => {
790                Error::TooManyRequestsException(inner)
791            }
792            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
793        }
794    }
795}
796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_versions::ListVersionsError, R>> for Error
797where
798    R: Send + Sync + std::fmt::Debug + 'static,
799{
800    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_versions::ListVersionsError, R>) -> Self {
801        match err {
802            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
803            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
804                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
805                source: err.into(),
806            }),
807        }
808    }
809}
810impl From<crate::operation::list_versions::ListVersionsError> for Error {
811    fn from(err: crate::operation::list_versions::ListVersionsError) -> Self {
812        match err {
813            crate::operation::list_versions::ListVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
814            crate::operation::list_versions::ListVersionsError::ConflictException(inner) => Error::ConflictException(inner),
815            crate::operation::list_versions::ListVersionsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
816            crate::operation::list_versions::ListVersionsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
817            crate::operation::list_versions::ListVersionsError::NotFoundException(inner) => Error::NotFoundException(inner),
818            crate::operation::list_versions::ListVersionsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
819            crate::operation::list_versions::ListVersionsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
820            crate::operation::list_versions::ListVersionsError::Unhandled(inner) => Error::Unhandled(inner),
821        }
822    }
823}
824impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::probe::ProbeError, R>> for Error
825where
826    R: Send + Sync + std::fmt::Debug + 'static,
827{
828    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::probe::ProbeError, R>) -> Self {
829        match err {
830            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
831            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
832                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
833                source: err.into(),
834            }),
835        }
836    }
837}
838impl From<crate::operation::probe::ProbeError> for Error {
839    fn from(err: crate::operation::probe::ProbeError) -> Self {
840        match err {
841            crate::operation::probe::ProbeError::BadRequestException(inner) => Error::BadRequestException(inner),
842            crate::operation::probe::ProbeError::ConflictException(inner) => Error::ConflictException(inner),
843            crate::operation::probe::ProbeError::ForbiddenException(inner) => Error::ForbiddenException(inner),
844            crate::operation::probe::ProbeError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
845            crate::operation::probe::ProbeError::NotFoundException(inner) => Error::NotFoundException(inner),
846            crate::operation::probe::ProbeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
847            crate::operation::probe::ProbeError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
848            crate::operation::probe::ProbeError::Unhandled(inner) => Error::Unhandled(inner),
849        }
850    }
851}
852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_policy::PutPolicyError, R>> for Error
853where
854    R: Send + Sync + std::fmt::Debug + 'static,
855{
856    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_policy::PutPolicyError, R>) -> Self {
857        match err {
858            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
859            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
860                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
861                source: err.into(),
862            }),
863        }
864    }
865}
866impl From<crate::operation::put_policy::PutPolicyError> for Error {
867    fn from(err: crate::operation::put_policy::PutPolicyError) -> Self {
868        match err {
869            crate::operation::put_policy::PutPolicyError::BadRequestException(inner) => Error::BadRequestException(inner),
870            crate::operation::put_policy::PutPolicyError::ConflictException(inner) => Error::ConflictException(inner),
871            crate::operation::put_policy::PutPolicyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
872            crate::operation::put_policy::PutPolicyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
873            crate::operation::put_policy::PutPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
874            crate::operation::put_policy::PutPolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
875            crate::operation::put_policy::PutPolicyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
876            crate::operation::put_policy::PutPolicyError::Unhandled(inner) => Error::Unhandled(inner),
877        }
878    }
879}
880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_jobs::SearchJobsError, 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::search_jobs::SearchJobsError, 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::search_jobs::SearchJobsError> for Error {
895    fn from(err: crate::operation::search_jobs::SearchJobsError) -> Self {
896        match err {
897            crate::operation::search_jobs::SearchJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
898            crate::operation::search_jobs::SearchJobsError::ConflictException(inner) => Error::ConflictException(inner),
899            crate::operation::search_jobs::SearchJobsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
900            crate::operation::search_jobs::SearchJobsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
901            crate::operation::search_jobs::SearchJobsError::NotFoundException(inner) => Error::NotFoundException(inner),
902            crate::operation::search_jobs::SearchJobsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
903            crate::operation::search_jobs::SearchJobsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
904            crate::operation::search_jobs::SearchJobsError::Unhandled(inner) => Error::Unhandled(inner),
905        }
906    }
907}
908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_jobs_query::StartJobsQueryError, R>> for Error
909where
910    R: Send + Sync + std::fmt::Debug + 'static,
911{
912    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_jobs_query::StartJobsQueryError, R>) -> Self {
913        match err {
914            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
915            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
916                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
917                source: err.into(),
918            }),
919        }
920    }
921}
922impl From<crate::operation::start_jobs_query::StartJobsQueryError> for Error {
923    fn from(err: crate::operation::start_jobs_query::StartJobsQueryError) -> Self {
924        match err {
925            crate::operation::start_jobs_query::StartJobsQueryError::BadRequestException(inner) => Error::BadRequestException(inner),
926            crate::operation::start_jobs_query::StartJobsQueryError::ConflictException(inner) => Error::ConflictException(inner),
927            crate::operation::start_jobs_query::StartJobsQueryError::ForbiddenException(inner) => Error::ForbiddenException(inner),
928            crate::operation::start_jobs_query::StartJobsQueryError::InternalServerErrorException(inner) => {
929                Error::InternalServerErrorException(inner)
930            }
931            crate::operation::start_jobs_query::StartJobsQueryError::NotFoundException(inner) => Error::NotFoundException(inner),
932            crate::operation::start_jobs_query::StartJobsQueryError::ServiceQuotaExceededException(inner) => {
933                Error::ServiceQuotaExceededException(inner)
934            }
935            crate::operation::start_jobs_query::StartJobsQueryError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
936            crate::operation::start_jobs_query::StartJobsQueryError::Unhandled(inner) => Error::Unhandled(inner),
937        }
938    }
939}
940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
941where
942    R: Send + Sync + std::fmt::Debug + 'static,
943{
944    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
945        match err {
946            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
947            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
948                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
949                source: err.into(),
950            }),
951        }
952    }
953}
954impl From<crate::operation::tag_resource::TagResourceError> for Error {
955    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
956        match err {
957            crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
958            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
959            crate::operation::tag_resource::TagResourceError::ForbiddenException(inner) => Error::ForbiddenException(inner),
960            crate::operation::tag_resource::TagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
961            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
962            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
963            crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
964            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
965        }
966    }
967}
968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
969where
970    R: Send + Sync + std::fmt::Debug + 'static,
971{
972    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
973        match err {
974            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
975            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
976                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
977                source: err.into(),
978            }),
979        }
980    }
981}
982impl From<crate::operation::untag_resource::UntagResourceError> for Error {
983    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
984        match err {
985            crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
986            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
987            crate::operation::untag_resource::UntagResourceError::ForbiddenException(inner) => Error::ForbiddenException(inner),
988            crate::operation::untag_resource::UntagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
989            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
990            crate::operation::untag_resource::UntagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
991            crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
992            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
993        }
994    }
995}
996impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_job_template::UpdateJobTemplateError, R>> for Error
997where
998    R: Send + Sync + std::fmt::Debug + 'static,
999{
1000    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_job_template::UpdateJobTemplateError, R>) -> Self {
1001        match err {
1002            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1003            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1004                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1005                source: err.into(),
1006            }),
1007        }
1008    }
1009}
1010impl From<crate::operation::update_job_template::UpdateJobTemplateError> for Error {
1011    fn from(err: crate::operation::update_job_template::UpdateJobTemplateError) -> Self {
1012        match err {
1013            crate::operation::update_job_template::UpdateJobTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
1014            crate::operation::update_job_template::UpdateJobTemplateError::ConflictException(inner) => Error::ConflictException(inner),
1015            crate::operation::update_job_template::UpdateJobTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1016            crate::operation::update_job_template::UpdateJobTemplateError::InternalServerErrorException(inner) => {
1017                Error::InternalServerErrorException(inner)
1018            }
1019            crate::operation::update_job_template::UpdateJobTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
1020            crate::operation::update_job_template::UpdateJobTemplateError::ServiceQuotaExceededException(inner) => {
1021                Error::ServiceQuotaExceededException(inner)
1022            }
1023            crate::operation::update_job_template::UpdateJobTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1024            crate::operation::update_job_template::UpdateJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1025        }
1026    }
1027}
1028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_preset::UpdatePresetError, R>> for Error
1029where
1030    R: Send + Sync + std::fmt::Debug + 'static,
1031{
1032    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_preset::UpdatePresetError, R>) -> Self {
1033        match err {
1034            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1035            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1036                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1037                source: err.into(),
1038            }),
1039        }
1040    }
1041}
1042impl From<crate::operation::update_preset::UpdatePresetError> for Error {
1043    fn from(err: crate::operation::update_preset::UpdatePresetError) -> Self {
1044        match err {
1045            crate::operation::update_preset::UpdatePresetError::BadRequestException(inner) => Error::BadRequestException(inner),
1046            crate::operation::update_preset::UpdatePresetError::ConflictException(inner) => Error::ConflictException(inner),
1047            crate::operation::update_preset::UpdatePresetError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1048            crate::operation::update_preset::UpdatePresetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1049            crate::operation::update_preset::UpdatePresetError::NotFoundException(inner) => Error::NotFoundException(inner),
1050            crate::operation::update_preset::UpdatePresetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1051            crate::operation::update_preset::UpdatePresetError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1052            crate::operation::update_preset::UpdatePresetError::Unhandled(inner) => Error::Unhandled(inner),
1053        }
1054    }
1055}
1056impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue::UpdateQueueError, R>> for Error
1057where
1058    R: Send + Sync + std::fmt::Debug + 'static,
1059{
1060    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue::UpdateQueueError, R>) -> Self {
1061        match err {
1062            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1063            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1064                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1065                source: err.into(),
1066            }),
1067        }
1068    }
1069}
1070impl From<crate::operation::update_queue::UpdateQueueError> for Error {
1071    fn from(err: crate::operation::update_queue::UpdateQueueError) -> Self {
1072        match err {
1073            crate::operation::update_queue::UpdateQueueError::BadRequestException(inner) => Error::BadRequestException(inner),
1074            crate::operation::update_queue::UpdateQueueError::ConflictException(inner) => Error::ConflictException(inner),
1075            crate::operation::update_queue::UpdateQueueError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1076            crate::operation::update_queue::UpdateQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1077            crate::operation::update_queue::UpdateQueueError::NotFoundException(inner) => Error::NotFoundException(inner),
1078            crate::operation::update_queue::UpdateQueueError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1079            crate::operation::update_queue::UpdateQueueError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1080            crate::operation::update_queue::UpdateQueueError::Unhandled(inner) => Error::Unhandled(inner),
1081        }
1082    }
1083}
1084impl ::std::error::Error for Error {
1085    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1086        match self {
1087            Error::BadRequestException(inner) => inner.source(),
1088            Error::ConflictException(inner) => inner.source(),
1089            Error::ForbiddenException(inner) => inner.source(),
1090            Error::InternalServerErrorException(inner) => inner.source(),
1091            Error::NotFoundException(inner) => inner.source(),
1092            Error::ServiceQuotaExceededException(inner) => inner.source(),
1093            Error::TooManyRequestsException(inner) => inner.source(),
1094            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1095        }
1096    }
1097}
1098impl ::aws_types::request_id::RequestId for Error {
1099    fn request_id(&self) -> Option<&str> {
1100        match self {
1101            Self::BadRequestException(e) => e.request_id(),
1102            Self::ConflictException(e) => e.request_id(),
1103            Self::ForbiddenException(e) => e.request_id(),
1104            Self::InternalServerErrorException(e) => e.request_id(),
1105            Self::NotFoundException(e) => e.request_id(),
1106            Self::ServiceQuotaExceededException(e) => e.request_id(),
1107            Self::TooManyRequestsException(e) => e.request_id(),
1108            Self::Unhandled(e) => e.meta.request_id(),
1109        }
1110    }
1111}