1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerErrorException(crate::types::error::InternalServerErrorException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::AccessDeniedException(inner) => inner.fmt(f),
33 Error::ConflictException(inner) => inner.fmt(f),
34 Error::InternalServerErrorException(inner) => inner.fmt(f),
35 Error::ResourceNotFoundException(inner) => inner.fmt(f),
36 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37 Error::ThrottlingException(inner) => inner.fmt(f),
38 Error::ValidationException(inner) => inner.fmt(f),
39 Error::Unhandled(_) => {
40 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41 write!(f, "unhandled error ({code})")
42 } else {
43 f.write_str("unhandled error")
44 }
45 }
46 }
47 }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52 source: value.into(),
53 meta: ::std::default::Default::default(),
54 })
55 }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59 match self {
60 Self::AccessDeniedException(inner) => inner.meta(),
61 Self::ConflictException(inner) => inner.meta(),
62 Self::InternalServerErrorException(inner) => inner.meta(),
63 Self::ResourceNotFoundException(inner) => inner.meta(),
64 Self::ServiceQuotaExceededException(inner) => inner.meta(),
65 Self::ThrottlingException(inner) => inner.meta(),
66 Self::ValidationException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_farm::AssociateMemberToFarmError, R>> for Error
72where
73 R: Send + Sync + std::fmt::Debug + 'static,
74{
75 fn from(
76 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_farm::AssociateMemberToFarmError, R>,
77 ) -> Self {
78 match err {
79 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
80 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
81 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
82 source: err.into(),
83 }),
84 }
85 }
86}
87impl From<crate::operation::associate_member_to_farm::AssociateMemberToFarmError> for Error {
88 fn from(err: crate::operation::associate_member_to_farm::AssociateMemberToFarmError) -> Self {
89 match err {
90 crate::operation::associate_member_to_farm::AssociateMemberToFarmError::AccessDeniedException(inner) => {
91 Error::AccessDeniedException(inner)
92 }
93 crate::operation::associate_member_to_farm::AssociateMemberToFarmError::InternalServerErrorException(inner) => {
94 Error::InternalServerErrorException(inner)
95 }
96 crate::operation::associate_member_to_farm::AssociateMemberToFarmError::ResourceNotFoundException(inner) => {
97 Error::ResourceNotFoundException(inner)
98 }
99 crate::operation::associate_member_to_farm::AssociateMemberToFarmError::ServiceQuotaExceededException(inner) => {
100 Error::ServiceQuotaExceededException(inner)
101 }
102 crate::operation::associate_member_to_farm::AssociateMemberToFarmError::ThrottlingException(inner) => Error::ThrottlingException(inner),
103 crate::operation::associate_member_to_farm::AssociateMemberToFarmError::ValidationException(inner) => Error::ValidationException(inner),
104 crate::operation::associate_member_to_farm::AssociateMemberToFarmError::Unhandled(inner) => Error::Unhandled(inner),
105 }
106 }
107}
108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_fleet::AssociateMemberToFleetError, R>>
109 for Error
110where
111 R: Send + Sync + std::fmt::Debug + 'static,
112{
113 fn from(
114 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_fleet::AssociateMemberToFleetError, R>,
115 ) -> Self {
116 match err {
117 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
118 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
119 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
120 source: err.into(),
121 }),
122 }
123 }
124}
125impl From<crate::operation::associate_member_to_fleet::AssociateMemberToFleetError> for Error {
126 fn from(err: crate::operation::associate_member_to_fleet::AssociateMemberToFleetError) -> Self {
127 match err {
128 crate::operation::associate_member_to_fleet::AssociateMemberToFleetError::AccessDeniedException(inner) => {
129 Error::AccessDeniedException(inner)
130 }
131 crate::operation::associate_member_to_fleet::AssociateMemberToFleetError::InternalServerErrorException(inner) => {
132 Error::InternalServerErrorException(inner)
133 }
134 crate::operation::associate_member_to_fleet::AssociateMemberToFleetError::ResourceNotFoundException(inner) => {
135 Error::ResourceNotFoundException(inner)
136 }
137 crate::operation::associate_member_to_fleet::AssociateMemberToFleetError::ServiceQuotaExceededException(inner) => {
138 Error::ServiceQuotaExceededException(inner)
139 }
140 crate::operation::associate_member_to_fleet::AssociateMemberToFleetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
141 crate::operation::associate_member_to_fleet::AssociateMemberToFleetError::ValidationException(inner) => Error::ValidationException(inner),
142 crate::operation::associate_member_to_fleet::AssociateMemberToFleetError::Unhandled(inner) => Error::Unhandled(inner),
143 }
144 }
145}
146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_job::AssociateMemberToJobError, R>> for Error
147where
148 R: Send + Sync + std::fmt::Debug + 'static,
149{
150 fn from(
151 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_job::AssociateMemberToJobError, R>,
152 ) -> Self {
153 match err {
154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
157 source: err.into(),
158 }),
159 }
160 }
161}
162impl From<crate::operation::associate_member_to_job::AssociateMemberToJobError> for Error {
163 fn from(err: crate::operation::associate_member_to_job::AssociateMemberToJobError) -> Self {
164 match err {
165 crate::operation::associate_member_to_job::AssociateMemberToJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
166 crate::operation::associate_member_to_job::AssociateMemberToJobError::InternalServerErrorException(inner) => {
167 Error::InternalServerErrorException(inner)
168 }
169 crate::operation::associate_member_to_job::AssociateMemberToJobError::ResourceNotFoundException(inner) => {
170 Error::ResourceNotFoundException(inner)
171 }
172 crate::operation::associate_member_to_job::AssociateMemberToJobError::ServiceQuotaExceededException(inner) => {
173 Error::ServiceQuotaExceededException(inner)
174 }
175 crate::operation::associate_member_to_job::AssociateMemberToJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
176 crate::operation::associate_member_to_job::AssociateMemberToJobError::ValidationException(inner) => Error::ValidationException(inner),
177 crate::operation::associate_member_to_job::AssociateMemberToJobError::Unhandled(inner) => Error::Unhandled(inner),
178 }
179 }
180}
181impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_queue::AssociateMemberToQueueError, R>>
182 for Error
183where
184 R: Send + Sync + std::fmt::Debug + 'static,
185{
186 fn from(
187 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_member_to_queue::AssociateMemberToQueueError, R>,
188 ) -> Self {
189 match err {
190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
193 source: err.into(),
194 }),
195 }
196 }
197}
198impl From<crate::operation::associate_member_to_queue::AssociateMemberToQueueError> for Error {
199 fn from(err: crate::operation::associate_member_to_queue::AssociateMemberToQueueError) -> Self {
200 match err {
201 crate::operation::associate_member_to_queue::AssociateMemberToQueueError::AccessDeniedException(inner) => {
202 Error::AccessDeniedException(inner)
203 }
204 crate::operation::associate_member_to_queue::AssociateMemberToQueueError::InternalServerErrorException(inner) => {
205 Error::InternalServerErrorException(inner)
206 }
207 crate::operation::associate_member_to_queue::AssociateMemberToQueueError::ResourceNotFoundException(inner) => {
208 Error::ResourceNotFoundException(inner)
209 }
210 crate::operation::associate_member_to_queue::AssociateMemberToQueueError::ServiceQuotaExceededException(inner) => {
211 Error::ServiceQuotaExceededException(inner)
212 }
213 crate::operation::associate_member_to_queue::AssociateMemberToQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
214 crate::operation::associate_member_to_queue::AssociateMemberToQueueError::ValidationException(inner) => Error::ValidationException(inner),
215 crate::operation::associate_member_to_queue::AssociateMemberToQueueError::Unhandled(inner) => Error::Unhandled(inner),
216 }
217 }
218}
219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError, R>>
220 for Error
221where
222 R: Send + Sync + std::fmt::Debug + 'static,
223{
224 fn from(
225 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError, R>,
226 ) -> Self {
227 match err {
228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
231 source: err.into(),
232 }),
233 }
234 }
235}
236impl From<crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError> for Error {
237 fn from(err: crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError) -> Self {
238 match err {
239 crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError::AccessDeniedException(inner) => {
240 Error::AccessDeniedException(inner)
241 }
242 crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError::InternalServerErrorException(inner) => {
243 Error::InternalServerErrorException(inner)
244 }
245 crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError::ResourceNotFoundException(inner) => {
246 Error::ResourceNotFoundException(inner)
247 }
248 crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError::ThrottlingException(inner) => {
249 Error::ThrottlingException(inner)
250 }
251 crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError::ValidationException(inner) => {
252 Error::ValidationException(inner)
253 }
254 crate::operation::assume_fleet_role_for_read::AssumeFleetRoleForReadError::Unhandled(inner) => Error::Unhandled(inner),
255 }
256 }
257}
258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError, R>>
259 for Error
260where
261 R: Send + Sync + std::fmt::Debug + 'static,
262{
263 fn from(
264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError, R>,
265 ) -> 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::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError> for Error {
276 fn from(err: crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError) -> Self {
277 match err {
278 crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError::AccessDeniedException(inner) => {
279 Error::AccessDeniedException(inner)
280 }
281 crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError::ConflictException(inner) => {
282 Error::ConflictException(inner)
283 }
284 crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError::InternalServerErrorException(inner) => {
285 Error::InternalServerErrorException(inner)
286 }
287 crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError::ResourceNotFoundException(inner) => {
288 Error::ResourceNotFoundException(inner)
289 }
290 crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError::ThrottlingException(inner) => {
291 Error::ThrottlingException(inner)
292 }
293 crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError::ValidationException(inner) => {
294 Error::ValidationException(inner)
295 }
296 crate::operation::assume_fleet_role_for_worker::AssumeFleetRoleForWorkerError::Unhandled(inner) => Error::Unhandled(inner),
297 }
298 }
299}
300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError, R>>
301 for Error
302where
303 R: Send + Sync + std::fmt::Debug + 'static,
304{
305 fn from(
306 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError, R>,
307 ) -> Self {
308 match err {
309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
312 source: err.into(),
313 }),
314 }
315 }
316}
317impl From<crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError> for Error {
318 fn from(err: crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError) -> Self {
319 match err {
320 crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError::AccessDeniedException(inner) => {
321 Error::AccessDeniedException(inner)
322 }
323 crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError::InternalServerErrorException(inner) => {
324 Error::InternalServerErrorException(inner)
325 }
326 crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError::ResourceNotFoundException(inner) => {
327 Error::ResourceNotFoundException(inner)
328 }
329 crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError::ThrottlingException(inner) => {
330 Error::ThrottlingException(inner)
331 }
332 crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError::ValidationException(inner) => {
333 Error::ValidationException(inner)
334 }
335 crate::operation::assume_queue_role_for_read::AssumeQueueRoleForReadError::Unhandled(inner) => Error::Unhandled(inner),
336 }
337 }
338}
339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError, R>>
340 for Error
341where
342 R: Send + Sync + std::fmt::Debug + 'static,
343{
344 fn from(
345 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError, R>,
346 ) -> Self {
347 match err {
348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
351 source: err.into(),
352 }),
353 }
354 }
355}
356impl From<crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError> for Error {
357 fn from(err: crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError) -> Self {
358 match err {
359 crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError::AccessDeniedException(inner) => {
360 Error::AccessDeniedException(inner)
361 }
362 crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError::InternalServerErrorException(inner) => {
363 Error::InternalServerErrorException(inner)
364 }
365 crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError::ResourceNotFoundException(inner) => {
366 Error::ResourceNotFoundException(inner)
367 }
368 crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError::ThrottlingException(inner) => {
369 Error::ThrottlingException(inner)
370 }
371 crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError::ValidationException(inner) => {
372 Error::ValidationException(inner)
373 }
374 crate::operation::assume_queue_role_for_user::AssumeQueueRoleForUserError::Unhandled(inner) => Error::Unhandled(inner),
375 }
376 }
377}
378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError, R>>
379 for Error
380where
381 R: Send + Sync + std::fmt::Debug + 'static,
382{
383 fn from(
384 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError, R>,
385 ) -> Self {
386 match err {
387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
390 source: err.into(),
391 }),
392 }
393 }
394}
395impl From<crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError> for Error {
396 fn from(err: crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError) -> Self {
397 match err {
398 crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError::AccessDeniedException(inner) => {
399 Error::AccessDeniedException(inner)
400 }
401 crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError::ConflictException(inner) => {
402 Error::ConflictException(inner)
403 }
404 crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError::InternalServerErrorException(inner) => {
405 Error::InternalServerErrorException(inner)
406 }
407 crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError::ResourceNotFoundException(inner) => {
408 Error::ResourceNotFoundException(inner)
409 }
410 crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError::ThrottlingException(inner) => {
411 Error::ThrottlingException(inner)
412 }
413 crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError::ValidationException(inner) => {
414 Error::ValidationException(inner)
415 }
416 crate::operation::assume_queue_role_for_worker::AssumeQueueRoleForWorkerError::Unhandled(inner) => Error::Unhandled(inner),
417 }
418 }
419}
420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_job::BatchGetJobError, R>> for Error
421where
422 R: Send + Sync + std::fmt::Debug + 'static,
423{
424 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_job::BatchGetJobError, R>) -> Self {
425 match err {
426 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
427 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
428 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
429 source: err.into(),
430 }),
431 }
432 }
433}
434impl From<crate::operation::batch_get_job::BatchGetJobError> for Error {
435 fn from(err: crate::operation::batch_get_job::BatchGetJobError) -> Self {
436 match err {
437 crate::operation::batch_get_job::BatchGetJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
438 crate::operation::batch_get_job::BatchGetJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
439 crate::operation::batch_get_job::BatchGetJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
440 crate::operation::batch_get_job::BatchGetJobError::ValidationException(inner) => Error::ValidationException(inner),
441 crate::operation::batch_get_job::BatchGetJobError::Unhandled(inner) => Error::Unhandled(inner),
442 }
443 }
444}
445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_job_entity::BatchGetJobEntityError, R>> for Error
446where
447 R: Send + Sync + std::fmt::Debug + 'static,
448{
449 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_job_entity::BatchGetJobEntityError, R>) -> Self {
450 match err {
451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
454 source: err.into(),
455 }),
456 }
457 }
458}
459impl From<crate::operation::batch_get_job_entity::BatchGetJobEntityError> for Error {
460 fn from(err: crate::operation::batch_get_job_entity::BatchGetJobEntityError) -> Self {
461 match err {
462 crate::operation::batch_get_job_entity::BatchGetJobEntityError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
463 crate::operation::batch_get_job_entity::BatchGetJobEntityError::InternalServerErrorException(inner) => {
464 Error::InternalServerErrorException(inner)
465 }
466 crate::operation::batch_get_job_entity::BatchGetJobEntityError::ResourceNotFoundException(inner) => {
467 Error::ResourceNotFoundException(inner)
468 }
469 crate::operation::batch_get_job_entity::BatchGetJobEntityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
470 crate::operation::batch_get_job_entity::BatchGetJobEntityError::ValidationException(inner) => Error::ValidationException(inner),
471 crate::operation::batch_get_job_entity::BatchGetJobEntityError::Unhandled(inner) => Error::Unhandled(inner),
472 }
473 }
474}
475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_session::BatchGetSessionError, R>> for Error
476where
477 R: Send + Sync + std::fmt::Debug + 'static,
478{
479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_session::BatchGetSessionError, R>) -> Self {
480 match err {
481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484 source: err.into(),
485 }),
486 }
487 }
488}
489impl From<crate::operation::batch_get_session::BatchGetSessionError> for Error {
490 fn from(err: crate::operation::batch_get_session::BatchGetSessionError) -> Self {
491 match err {
492 crate::operation::batch_get_session::BatchGetSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
493 crate::operation::batch_get_session::BatchGetSessionError::InternalServerErrorException(inner) => {
494 Error::InternalServerErrorException(inner)
495 }
496 crate::operation::batch_get_session::BatchGetSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
497 crate::operation::batch_get_session::BatchGetSessionError::ValidationException(inner) => Error::ValidationException(inner),
498 crate::operation::batch_get_session::BatchGetSessionError::Unhandled(inner) => Error::Unhandled(inner),
499 }
500 }
501}
502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_session_action::BatchGetSessionActionError, R>> for Error
503where
504 R: Send + Sync + std::fmt::Debug + 'static,
505{
506 fn from(
507 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_session_action::BatchGetSessionActionError, R>,
508 ) -> Self {
509 match err {
510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
513 source: err.into(),
514 }),
515 }
516 }
517}
518impl From<crate::operation::batch_get_session_action::BatchGetSessionActionError> for Error {
519 fn from(err: crate::operation::batch_get_session_action::BatchGetSessionActionError) -> Self {
520 match err {
521 crate::operation::batch_get_session_action::BatchGetSessionActionError::AccessDeniedException(inner) => {
522 Error::AccessDeniedException(inner)
523 }
524 crate::operation::batch_get_session_action::BatchGetSessionActionError::InternalServerErrorException(inner) => {
525 Error::InternalServerErrorException(inner)
526 }
527 crate::operation::batch_get_session_action::BatchGetSessionActionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
528 crate::operation::batch_get_session_action::BatchGetSessionActionError::ValidationException(inner) => Error::ValidationException(inner),
529 crate::operation::batch_get_session_action::BatchGetSessionActionError::Unhandled(inner) => Error::Unhandled(inner),
530 }
531 }
532}
533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_step::BatchGetStepError, R>> for Error
534where
535 R: Send + Sync + std::fmt::Debug + 'static,
536{
537 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_step::BatchGetStepError, R>) -> Self {
538 match err {
539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
542 source: err.into(),
543 }),
544 }
545 }
546}
547impl From<crate::operation::batch_get_step::BatchGetStepError> for Error {
548 fn from(err: crate::operation::batch_get_step::BatchGetStepError) -> Self {
549 match err {
550 crate::operation::batch_get_step::BatchGetStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
551 crate::operation::batch_get_step::BatchGetStepError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
552 crate::operation::batch_get_step::BatchGetStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
553 crate::operation::batch_get_step::BatchGetStepError::ValidationException(inner) => Error::ValidationException(inner),
554 crate::operation::batch_get_step::BatchGetStepError::Unhandled(inner) => Error::Unhandled(inner),
555 }
556 }
557}
558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_task::BatchGetTaskError, R>> for Error
559where
560 R: Send + Sync + std::fmt::Debug + 'static,
561{
562 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_task::BatchGetTaskError, R>) -> Self {
563 match err {
564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
567 source: err.into(),
568 }),
569 }
570 }
571}
572impl From<crate::operation::batch_get_task::BatchGetTaskError> for Error {
573 fn from(err: crate::operation::batch_get_task::BatchGetTaskError) -> Self {
574 match err {
575 crate::operation::batch_get_task::BatchGetTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
576 crate::operation::batch_get_task::BatchGetTaskError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
577 crate::operation::batch_get_task::BatchGetTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
578 crate::operation::batch_get_task::BatchGetTaskError::ValidationException(inner) => Error::ValidationException(inner),
579 crate::operation::batch_get_task::BatchGetTaskError::Unhandled(inner) => Error::Unhandled(inner),
580 }
581 }
582}
583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_worker::BatchGetWorkerError, R>> for Error
584where
585 R: Send + Sync + std::fmt::Debug + 'static,
586{
587 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_worker::BatchGetWorkerError, R>) -> Self {
588 match err {
589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
592 source: err.into(),
593 }),
594 }
595 }
596}
597impl From<crate::operation::batch_get_worker::BatchGetWorkerError> for Error {
598 fn from(err: crate::operation::batch_get_worker::BatchGetWorkerError) -> Self {
599 match err {
600 crate::operation::batch_get_worker::BatchGetWorkerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
601 crate::operation::batch_get_worker::BatchGetWorkerError::InternalServerErrorException(inner) => {
602 Error::InternalServerErrorException(inner)
603 }
604 crate::operation::batch_get_worker::BatchGetWorkerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
605 crate::operation::batch_get_worker::BatchGetWorkerError::ValidationException(inner) => Error::ValidationException(inner),
606 crate::operation::batch_get_worker::BatchGetWorkerError::Unhandled(inner) => Error::Unhandled(inner),
607 }
608 }
609}
610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_job::BatchUpdateJobError, R>> for Error
611where
612 R: Send + Sync + std::fmt::Debug + 'static,
613{
614 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_job::BatchUpdateJobError, R>) -> Self {
615 match err {
616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
619 source: err.into(),
620 }),
621 }
622 }
623}
624impl From<crate::operation::batch_update_job::BatchUpdateJobError> for Error {
625 fn from(err: crate::operation::batch_update_job::BatchUpdateJobError) -> Self {
626 match err {
627 crate::operation::batch_update_job::BatchUpdateJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
628 crate::operation::batch_update_job::BatchUpdateJobError::InternalServerErrorException(inner) => {
629 Error::InternalServerErrorException(inner)
630 }
631 crate::operation::batch_update_job::BatchUpdateJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
632 crate::operation::batch_update_job::BatchUpdateJobError::ValidationException(inner) => Error::ValidationException(inner),
633 crate::operation::batch_update_job::BatchUpdateJobError::Unhandled(inner) => Error::Unhandled(inner),
634 }
635 }
636}
637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_task::BatchUpdateTaskError, R>> for Error
638where
639 R: Send + Sync + std::fmt::Debug + 'static,
640{
641 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_task::BatchUpdateTaskError, R>) -> Self {
642 match err {
643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
646 source: err.into(),
647 }),
648 }
649 }
650}
651impl From<crate::operation::batch_update_task::BatchUpdateTaskError> for Error {
652 fn from(err: crate::operation::batch_update_task::BatchUpdateTaskError) -> Self {
653 match err {
654 crate::operation::batch_update_task::BatchUpdateTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
655 crate::operation::batch_update_task::BatchUpdateTaskError::InternalServerErrorException(inner) => {
656 Error::InternalServerErrorException(inner)
657 }
658 crate::operation::batch_update_task::BatchUpdateTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
659 crate::operation::batch_update_task::BatchUpdateTaskError::ValidationException(inner) => Error::ValidationException(inner),
660 crate::operation::batch_update_task::BatchUpdateTaskError::Unhandled(inner) => Error::Unhandled(inner),
661 }
662 }
663}
664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_job_template::CopyJobTemplateError, R>> for Error
665where
666 R: Send + Sync + std::fmt::Debug + 'static,
667{
668 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_job_template::CopyJobTemplateError, R>) -> Self {
669 match err {
670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
673 source: err.into(),
674 }),
675 }
676 }
677}
678impl From<crate::operation::copy_job_template::CopyJobTemplateError> for Error {
679 fn from(err: crate::operation::copy_job_template::CopyJobTemplateError) -> Self {
680 match err {
681 crate::operation::copy_job_template::CopyJobTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
682 crate::operation::copy_job_template::CopyJobTemplateError::InternalServerErrorException(inner) => {
683 Error::InternalServerErrorException(inner)
684 }
685 crate::operation::copy_job_template::CopyJobTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
686 crate::operation::copy_job_template::CopyJobTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
687 crate::operation::copy_job_template::CopyJobTemplateError::ValidationException(inner) => Error::ValidationException(inner),
688 crate::operation::copy_job_template::CopyJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
689 }
690 }
691}
692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_budget::CreateBudgetError, R>> for Error
693where
694 R: Send + Sync + std::fmt::Debug + 'static,
695{
696 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_budget::CreateBudgetError, R>) -> Self {
697 match err {
698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
701 source: err.into(),
702 }),
703 }
704 }
705}
706impl From<crate::operation::create_budget::CreateBudgetError> for Error {
707 fn from(err: crate::operation::create_budget::CreateBudgetError) -> Self {
708 match err {
709 crate::operation::create_budget::CreateBudgetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
710 crate::operation::create_budget::CreateBudgetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
711 crate::operation::create_budget::CreateBudgetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
712 crate::operation::create_budget::CreateBudgetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
713 crate::operation::create_budget::CreateBudgetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
714 crate::operation::create_budget::CreateBudgetError::ValidationException(inner) => Error::ValidationException(inner),
715 crate::operation::create_budget::CreateBudgetError::Unhandled(inner) => Error::Unhandled(inner),
716 }
717 }
718}
719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_farm::CreateFarmError, R>> for Error
720where
721 R: Send + Sync + std::fmt::Debug + 'static,
722{
723 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_farm::CreateFarmError, R>) -> Self {
724 match err {
725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
728 source: err.into(),
729 }),
730 }
731 }
732}
733impl From<crate::operation::create_farm::CreateFarmError> for Error {
734 fn from(err: crate::operation::create_farm::CreateFarmError) -> Self {
735 match err {
736 crate::operation::create_farm::CreateFarmError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
737 crate::operation::create_farm::CreateFarmError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
738 crate::operation::create_farm::CreateFarmError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
739 crate::operation::create_farm::CreateFarmError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
740 crate::operation::create_farm::CreateFarmError::ThrottlingException(inner) => Error::ThrottlingException(inner),
741 crate::operation::create_farm::CreateFarmError::ValidationException(inner) => Error::ValidationException(inner),
742 crate::operation::create_farm::CreateFarmError::Unhandled(inner) => Error::Unhandled(inner),
743 }
744 }
745}
746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, 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::create_fleet::CreateFleetError, 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::create_fleet::CreateFleetError> for Error {
761 fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
762 match err {
763 crate::operation::create_fleet::CreateFleetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
764 crate::operation::create_fleet::CreateFleetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
765 crate::operation::create_fleet::CreateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
766 crate::operation::create_fleet::CreateFleetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
767 crate::operation::create_fleet::CreateFleetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
768 crate::operation::create_fleet::CreateFleetError::ValidationException(inner) => Error::ValidationException(inner),
769 crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
770 }
771 }
772}
773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job::CreateJobError, R>> for Error
774where
775 R: Send + Sync + std::fmt::Debug + 'static,
776{
777 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job::CreateJobError, R>) -> Self {
778 match err {
779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782 source: err.into(),
783 }),
784 }
785 }
786}
787impl From<crate::operation::create_job::CreateJobError> for Error {
788 fn from(err: crate::operation::create_job::CreateJobError) -> Self {
789 match err {
790 crate::operation::create_job::CreateJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
791 crate::operation::create_job::CreateJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
792 crate::operation::create_job::CreateJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
793 crate::operation::create_job::CreateJobError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
794 crate::operation::create_job::CreateJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
795 crate::operation::create_job::CreateJobError::ValidationException(inner) => Error::ValidationException(inner),
796 crate::operation::create_job::CreateJobError::Unhandled(inner) => Error::Unhandled(inner),
797 }
798 }
799}
800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_license_endpoint::CreateLicenseEndpointError, R>> for Error
801where
802 R: Send + Sync + std::fmt::Debug + 'static,
803{
804 fn from(
805 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_license_endpoint::CreateLicenseEndpointError, R>,
806 ) -> 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::create_license_endpoint::CreateLicenseEndpointError> for Error {
817 fn from(err: crate::operation::create_license_endpoint::CreateLicenseEndpointError) -> Self {
818 match err {
819 crate::operation::create_license_endpoint::CreateLicenseEndpointError::AccessDeniedException(inner) => {
820 Error::AccessDeniedException(inner)
821 }
822 crate::operation::create_license_endpoint::CreateLicenseEndpointError::ConflictException(inner) => Error::ConflictException(inner),
823 crate::operation::create_license_endpoint::CreateLicenseEndpointError::InternalServerErrorException(inner) => {
824 Error::InternalServerErrorException(inner)
825 }
826 crate::operation::create_license_endpoint::CreateLicenseEndpointError::ServiceQuotaExceededException(inner) => {
827 Error::ServiceQuotaExceededException(inner)
828 }
829 crate::operation::create_license_endpoint::CreateLicenseEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
830 crate::operation::create_license_endpoint::CreateLicenseEndpointError::ValidationException(inner) => Error::ValidationException(inner),
831 crate::operation::create_license_endpoint::CreateLicenseEndpointError::Unhandled(inner) => Error::Unhandled(inner),
832 }
833 }
834}
835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_limit::CreateLimitError, R>> for Error
836where
837 R: Send + Sync + std::fmt::Debug + 'static,
838{
839 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_limit::CreateLimitError, R>) -> Self {
840 match err {
841 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
842 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
843 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
844 source: err.into(),
845 }),
846 }
847 }
848}
849impl From<crate::operation::create_limit::CreateLimitError> for Error {
850 fn from(err: crate::operation::create_limit::CreateLimitError) -> Self {
851 match err {
852 crate::operation::create_limit::CreateLimitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
853 crate::operation::create_limit::CreateLimitError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
854 crate::operation::create_limit::CreateLimitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
855 crate::operation::create_limit::CreateLimitError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
856 crate::operation::create_limit::CreateLimitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
857 crate::operation::create_limit::CreateLimitError::ValidationException(inner) => Error::ValidationException(inner),
858 crate::operation::create_limit::CreateLimitError::Unhandled(inner) => Error::Unhandled(inner),
859 }
860 }
861}
862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>> for Error
863where
864 R: Send + Sync + std::fmt::Debug + 'static,
865{
866 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>) -> Self {
867 match err {
868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871 source: err.into(),
872 }),
873 }
874 }
875}
876impl From<crate::operation::create_monitor::CreateMonitorError> for Error {
877 fn from(err: crate::operation::create_monitor::CreateMonitorError) -> Self {
878 match err {
879 crate::operation::create_monitor::CreateMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
880 crate::operation::create_monitor::CreateMonitorError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
881 crate::operation::create_monitor::CreateMonitorError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
882 crate::operation::create_monitor::CreateMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
883 crate::operation::create_monitor::CreateMonitorError::ValidationException(inner) => Error::ValidationException(inner),
884 crate::operation::create_monitor::CreateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
885 }
886 }
887}
888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue::CreateQueueError, R>> for Error
889where
890 R: Send + Sync + std::fmt::Debug + 'static,
891{
892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue::CreateQueueError, R>) -> Self {
893 match err {
894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
897 source: err.into(),
898 }),
899 }
900 }
901}
902impl From<crate::operation::create_queue::CreateQueueError> for Error {
903 fn from(err: crate::operation::create_queue::CreateQueueError) -> Self {
904 match err {
905 crate::operation::create_queue::CreateQueueError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
906 crate::operation::create_queue::CreateQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
907 crate::operation::create_queue::CreateQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
908 crate::operation::create_queue::CreateQueueError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
909 crate::operation::create_queue::CreateQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
910 crate::operation::create_queue::CreateQueueError::ValidationException(inner) => Error::ValidationException(inner),
911 crate::operation::create_queue::CreateQueueError::Unhandled(inner) => Error::Unhandled(inner),
912 }
913 }
914}
915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue_environment::CreateQueueEnvironmentError, R>> for Error
916where
917 R: Send + Sync + std::fmt::Debug + 'static,
918{
919 fn from(
920 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue_environment::CreateQueueEnvironmentError, R>,
921 ) -> Self {
922 match err {
923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
926 source: err.into(),
927 }),
928 }
929 }
930}
931impl From<crate::operation::create_queue_environment::CreateQueueEnvironmentError> for Error {
932 fn from(err: crate::operation::create_queue_environment::CreateQueueEnvironmentError) -> Self {
933 match err {
934 crate::operation::create_queue_environment::CreateQueueEnvironmentError::AccessDeniedException(inner) => {
935 Error::AccessDeniedException(inner)
936 }
937 crate::operation::create_queue_environment::CreateQueueEnvironmentError::InternalServerErrorException(inner) => {
938 Error::InternalServerErrorException(inner)
939 }
940 crate::operation::create_queue_environment::CreateQueueEnvironmentError::ResourceNotFoundException(inner) => {
941 Error::ResourceNotFoundException(inner)
942 }
943 crate::operation::create_queue_environment::CreateQueueEnvironmentError::ServiceQuotaExceededException(inner) => {
944 Error::ServiceQuotaExceededException(inner)
945 }
946 crate::operation::create_queue_environment::CreateQueueEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
947 crate::operation::create_queue_environment::CreateQueueEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
948 crate::operation::create_queue_environment::CreateQueueEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
949 }
950 }
951}
952impl<R>
953 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError, R>>
954 for Error
955where
956 R: Send + Sync + std::fmt::Debug + 'static,
957{
958 fn from(
959 err: ::aws_smithy_runtime_api::client::result::SdkError<
960 crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError,
961 R,
962 >,
963 ) -> Self {
964 match err {
965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
968 source: err.into(),
969 }),
970 }
971 }
972}
973impl From<crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError> for Error {
974 fn from(err: crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError) -> Self {
975 match err {
976 crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError::AccessDeniedException(inner) => {
977 Error::AccessDeniedException(inner)
978 }
979 crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError::InternalServerErrorException(inner) => {
980 Error::InternalServerErrorException(inner)
981 }
982 crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError::ResourceNotFoundException(inner) => {
983 Error::ResourceNotFoundException(inner)
984 }
985 crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError::ThrottlingException(inner) => {
986 Error::ThrottlingException(inner)
987 }
988 crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError::ValidationException(inner) => {
989 Error::ValidationException(inner)
990 }
991 crate::operation::create_queue_fleet_association::CreateQueueFleetAssociationError::Unhandled(inner) => Error::Unhandled(inner),
992 }
993 }
994}
995impl<R>
996 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError, R>>
997 for Error
998where
999 R: Send + Sync + std::fmt::Debug + 'static,
1000{
1001 fn from(
1002 err: ::aws_smithy_runtime_api::client::result::SdkError<
1003 crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError,
1004 R,
1005 >,
1006 ) -> Self {
1007 match err {
1008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011 source: err.into(),
1012 }),
1013 }
1014 }
1015}
1016impl From<crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError> for Error {
1017 fn from(err: crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError) -> Self {
1018 match err {
1019 crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError::AccessDeniedException(inner) => {
1020 Error::AccessDeniedException(inner)
1021 }
1022 crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError::InternalServerErrorException(inner) => {
1023 Error::InternalServerErrorException(inner)
1024 }
1025 crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError::ResourceNotFoundException(inner) => {
1026 Error::ResourceNotFoundException(inner)
1027 }
1028 crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError::ThrottlingException(inner) => {
1029 Error::ThrottlingException(inner)
1030 }
1031 crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError::ValidationException(inner) => {
1032 Error::ValidationException(inner)
1033 }
1034 crate::operation::create_queue_limit_association::CreateQueueLimitAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1035 }
1036 }
1037}
1038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_storage_profile::CreateStorageProfileError, R>> for Error
1039where
1040 R: Send + Sync + std::fmt::Debug + 'static,
1041{
1042 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_storage_profile::CreateStorageProfileError, R>) -> Self {
1043 match err {
1044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1047 source: err.into(),
1048 }),
1049 }
1050 }
1051}
1052impl From<crate::operation::create_storage_profile::CreateStorageProfileError> for Error {
1053 fn from(err: crate::operation::create_storage_profile::CreateStorageProfileError) -> Self {
1054 match err {
1055 crate::operation::create_storage_profile::CreateStorageProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1056 crate::operation::create_storage_profile::CreateStorageProfileError::InternalServerErrorException(inner) => {
1057 Error::InternalServerErrorException(inner)
1058 }
1059 crate::operation::create_storage_profile::CreateStorageProfileError::ResourceNotFoundException(inner) => {
1060 Error::ResourceNotFoundException(inner)
1061 }
1062 crate::operation::create_storage_profile::CreateStorageProfileError::ServiceQuotaExceededException(inner) => {
1063 Error::ServiceQuotaExceededException(inner)
1064 }
1065 crate::operation::create_storage_profile::CreateStorageProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1066 crate::operation::create_storage_profile::CreateStorageProfileError::ValidationException(inner) => Error::ValidationException(inner),
1067 crate::operation::create_storage_profile::CreateStorageProfileError::Unhandled(inner) => Error::Unhandled(inner),
1068 }
1069 }
1070}
1071impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_worker::CreateWorkerError, R>> for Error
1072where
1073 R: Send + Sync + std::fmt::Debug + 'static,
1074{
1075 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_worker::CreateWorkerError, R>) -> Self {
1076 match err {
1077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1080 source: err.into(),
1081 }),
1082 }
1083 }
1084}
1085impl From<crate::operation::create_worker::CreateWorkerError> for Error {
1086 fn from(err: crate::operation::create_worker::CreateWorkerError) -> Self {
1087 match err {
1088 crate::operation::create_worker::CreateWorkerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1089 crate::operation::create_worker::CreateWorkerError::ConflictException(inner) => Error::ConflictException(inner),
1090 crate::operation::create_worker::CreateWorkerError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1091 crate::operation::create_worker::CreateWorkerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1092 crate::operation::create_worker::CreateWorkerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1093 crate::operation::create_worker::CreateWorkerError::ValidationException(inner) => Error::ValidationException(inner),
1094 crate::operation::create_worker::CreateWorkerError::Unhandled(inner) => Error::Unhandled(inner),
1095 }
1096 }
1097}
1098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_budget::DeleteBudgetError, R>> for Error
1099where
1100 R: Send + Sync + std::fmt::Debug + 'static,
1101{
1102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_budget::DeleteBudgetError, R>) -> Self {
1103 match err {
1104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1107 source: err.into(),
1108 }),
1109 }
1110 }
1111}
1112impl From<crate::operation::delete_budget::DeleteBudgetError> for Error {
1113 fn from(err: crate::operation::delete_budget::DeleteBudgetError) -> Self {
1114 match err {
1115 crate::operation::delete_budget::DeleteBudgetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1116 crate::operation::delete_budget::DeleteBudgetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1117 crate::operation::delete_budget::DeleteBudgetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1118 crate::operation::delete_budget::DeleteBudgetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1119 crate::operation::delete_budget::DeleteBudgetError::ValidationException(inner) => Error::ValidationException(inner),
1120 crate::operation::delete_budget::DeleteBudgetError::Unhandled(inner) => Error::Unhandled(inner),
1121 }
1122 }
1123}
1124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_farm::DeleteFarmError, R>> for Error
1125where
1126 R: Send + Sync + std::fmt::Debug + 'static,
1127{
1128 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_farm::DeleteFarmError, R>) -> Self {
1129 match err {
1130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1133 source: err.into(),
1134 }),
1135 }
1136 }
1137}
1138impl From<crate::operation::delete_farm::DeleteFarmError> for Error {
1139 fn from(err: crate::operation::delete_farm::DeleteFarmError) -> Self {
1140 match err {
1141 crate::operation::delete_farm::DeleteFarmError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1142 crate::operation::delete_farm::DeleteFarmError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1143 crate::operation::delete_farm::DeleteFarmError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1144 crate::operation::delete_farm::DeleteFarmError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1145 crate::operation::delete_farm::DeleteFarmError::ValidationException(inner) => Error::ValidationException(inner),
1146 crate::operation::delete_farm::DeleteFarmError::Unhandled(inner) => Error::Unhandled(inner),
1147 }
1148 }
1149}
1150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>> for Error
1151where
1152 R: Send + Sync + std::fmt::Debug + 'static,
1153{
1154 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>) -> Self {
1155 match err {
1156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1159 source: err.into(),
1160 }),
1161 }
1162 }
1163}
1164impl From<crate::operation::delete_fleet::DeleteFleetError> for Error {
1165 fn from(err: crate::operation::delete_fleet::DeleteFleetError) -> Self {
1166 match err {
1167 crate::operation::delete_fleet::DeleteFleetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1168 crate::operation::delete_fleet::DeleteFleetError::ConflictException(inner) => Error::ConflictException(inner),
1169 crate::operation::delete_fleet::DeleteFleetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1170 crate::operation::delete_fleet::DeleteFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1171 crate::operation::delete_fleet::DeleteFleetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1172 crate::operation::delete_fleet::DeleteFleetError::ValidationException(inner) => Error::ValidationException(inner),
1173 crate::operation::delete_fleet::DeleteFleetError::Unhandled(inner) => Error::Unhandled(inner),
1174 }
1175 }
1176}
1177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_license_endpoint::DeleteLicenseEndpointError, R>> for Error
1178where
1179 R: Send + Sync + std::fmt::Debug + 'static,
1180{
1181 fn from(
1182 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_license_endpoint::DeleteLicenseEndpointError, R>,
1183 ) -> Self {
1184 match err {
1185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1188 source: err.into(),
1189 }),
1190 }
1191 }
1192}
1193impl From<crate::operation::delete_license_endpoint::DeleteLicenseEndpointError> for Error {
1194 fn from(err: crate::operation::delete_license_endpoint::DeleteLicenseEndpointError) -> Self {
1195 match err {
1196 crate::operation::delete_license_endpoint::DeleteLicenseEndpointError::AccessDeniedException(inner) => {
1197 Error::AccessDeniedException(inner)
1198 }
1199 crate::operation::delete_license_endpoint::DeleteLicenseEndpointError::ConflictException(inner) => Error::ConflictException(inner),
1200 crate::operation::delete_license_endpoint::DeleteLicenseEndpointError::InternalServerErrorException(inner) => {
1201 Error::InternalServerErrorException(inner)
1202 }
1203 crate::operation::delete_license_endpoint::DeleteLicenseEndpointError::ResourceNotFoundException(inner) => {
1204 Error::ResourceNotFoundException(inner)
1205 }
1206 crate::operation::delete_license_endpoint::DeleteLicenseEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1207 crate::operation::delete_license_endpoint::DeleteLicenseEndpointError::ValidationException(inner) => Error::ValidationException(inner),
1208 crate::operation::delete_license_endpoint::DeleteLicenseEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1209 }
1210 }
1211}
1212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_limit::DeleteLimitError, R>> for Error
1213where
1214 R: Send + Sync + std::fmt::Debug + 'static,
1215{
1216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_limit::DeleteLimitError, R>) -> Self {
1217 match err {
1218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1221 source: err.into(),
1222 }),
1223 }
1224 }
1225}
1226impl From<crate::operation::delete_limit::DeleteLimitError> for Error {
1227 fn from(err: crate::operation::delete_limit::DeleteLimitError) -> Self {
1228 match err {
1229 crate::operation::delete_limit::DeleteLimitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1230 crate::operation::delete_limit::DeleteLimitError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1231 crate::operation::delete_limit::DeleteLimitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1232 crate::operation::delete_limit::DeleteLimitError::ValidationException(inner) => Error::ValidationException(inner),
1233 crate::operation::delete_limit::DeleteLimitError::Unhandled(inner) => Error::Unhandled(inner),
1234 }
1235 }
1236}
1237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metered_product::DeleteMeteredProductError, R>> for Error
1238where
1239 R: Send + Sync + std::fmt::Debug + 'static,
1240{
1241 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metered_product::DeleteMeteredProductError, R>) -> Self {
1242 match err {
1243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1246 source: err.into(),
1247 }),
1248 }
1249 }
1250}
1251impl From<crate::operation::delete_metered_product::DeleteMeteredProductError> for Error {
1252 fn from(err: crate::operation::delete_metered_product::DeleteMeteredProductError) -> Self {
1253 match err {
1254 crate::operation::delete_metered_product::DeleteMeteredProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1255 crate::operation::delete_metered_product::DeleteMeteredProductError::InternalServerErrorException(inner) => {
1256 Error::InternalServerErrorException(inner)
1257 }
1258 crate::operation::delete_metered_product::DeleteMeteredProductError::ResourceNotFoundException(inner) => {
1259 Error::ResourceNotFoundException(inner)
1260 }
1261 crate::operation::delete_metered_product::DeleteMeteredProductError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1262 crate::operation::delete_metered_product::DeleteMeteredProductError::ValidationException(inner) => Error::ValidationException(inner),
1263 crate::operation::delete_metered_product::DeleteMeteredProductError::Unhandled(inner) => Error::Unhandled(inner),
1264 }
1265 }
1266}
1267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>> for Error
1268where
1269 R: Send + Sync + std::fmt::Debug + 'static,
1270{
1271 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>) -> Self {
1272 match err {
1273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1276 source: err.into(),
1277 }),
1278 }
1279 }
1280}
1281impl From<crate::operation::delete_monitor::DeleteMonitorError> for Error {
1282 fn from(err: crate::operation::delete_monitor::DeleteMonitorError) -> Self {
1283 match err {
1284 crate::operation::delete_monitor::DeleteMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1285 crate::operation::delete_monitor::DeleteMonitorError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1286 crate::operation::delete_monitor::DeleteMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1287 crate::operation::delete_monitor::DeleteMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1288 crate::operation::delete_monitor::DeleteMonitorError::ValidationException(inner) => Error::ValidationException(inner),
1289 crate::operation::delete_monitor::DeleteMonitorError::Unhandled(inner) => Error::Unhandled(inner),
1290 }
1291 }
1292}
1293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue::DeleteQueueError, R>> for Error
1294where
1295 R: Send + Sync + std::fmt::Debug + 'static,
1296{
1297 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue::DeleteQueueError, R>) -> Self {
1298 match err {
1299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1302 source: err.into(),
1303 }),
1304 }
1305 }
1306}
1307impl From<crate::operation::delete_queue::DeleteQueueError> for Error {
1308 fn from(err: crate::operation::delete_queue::DeleteQueueError) -> Self {
1309 match err {
1310 crate::operation::delete_queue::DeleteQueueError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1311 crate::operation::delete_queue::DeleteQueueError::ConflictException(inner) => Error::ConflictException(inner),
1312 crate::operation::delete_queue::DeleteQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1313 crate::operation::delete_queue::DeleteQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1314 crate::operation::delete_queue::DeleteQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1315 crate::operation::delete_queue::DeleteQueueError::ValidationException(inner) => Error::ValidationException(inner),
1316 crate::operation::delete_queue::DeleteQueueError::Unhandled(inner) => Error::Unhandled(inner),
1317 }
1318 }
1319}
1320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue_environment::DeleteQueueEnvironmentError, R>> for Error
1321where
1322 R: Send + Sync + std::fmt::Debug + 'static,
1323{
1324 fn from(
1325 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue_environment::DeleteQueueEnvironmentError, R>,
1326 ) -> Self {
1327 match err {
1328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1331 source: err.into(),
1332 }),
1333 }
1334 }
1335}
1336impl From<crate::operation::delete_queue_environment::DeleteQueueEnvironmentError> for Error {
1337 fn from(err: crate::operation::delete_queue_environment::DeleteQueueEnvironmentError) -> Self {
1338 match err {
1339 crate::operation::delete_queue_environment::DeleteQueueEnvironmentError::AccessDeniedException(inner) => {
1340 Error::AccessDeniedException(inner)
1341 }
1342 crate::operation::delete_queue_environment::DeleteQueueEnvironmentError::InternalServerErrorException(inner) => {
1343 Error::InternalServerErrorException(inner)
1344 }
1345 crate::operation::delete_queue_environment::DeleteQueueEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1346 crate::operation::delete_queue_environment::DeleteQueueEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
1347 crate::operation::delete_queue_environment::DeleteQueueEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1348 }
1349 }
1350}
1351impl<R>
1352 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError, R>>
1353 for Error
1354where
1355 R: Send + Sync + std::fmt::Debug + 'static,
1356{
1357 fn from(
1358 err: ::aws_smithy_runtime_api::client::result::SdkError<
1359 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError,
1360 R,
1361 >,
1362 ) -> Self {
1363 match err {
1364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1367 source: err.into(),
1368 }),
1369 }
1370 }
1371}
1372impl From<crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError> for Error {
1373 fn from(err: crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError) -> Self {
1374 match err {
1375 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError::AccessDeniedException(inner) => {
1376 Error::AccessDeniedException(inner)
1377 }
1378 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError::ConflictException(inner) => {
1379 Error::ConflictException(inner)
1380 }
1381 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError::InternalServerErrorException(inner) => {
1382 Error::InternalServerErrorException(inner)
1383 }
1384 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError::ResourceNotFoundException(inner) => {
1385 Error::ResourceNotFoundException(inner)
1386 }
1387 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError::ThrottlingException(inner) => {
1388 Error::ThrottlingException(inner)
1389 }
1390 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError::ValidationException(inner) => {
1391 Error::ValidationException(inner)
1392 }
1393 crate::operation::delete_queue_fleet_association::DeleteQueueFleetAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1394 }
1395 }
1396}
1397impl<R>
1398 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError, R>>
1399 for Error
1400where
1401 R: Send + Sync + std::fmt::Debug + 'static,
1402{
1403 fn from(
1404 err: ::aws_smithy_runtime_api::client::result::SdkError<
1405 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError,
1406 R,
1407 >,
1408 ) -> Self {
1409 match err {
1410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413 source: err.into(),
1414 }),
1415 }
1416 }
1417}
1418impl From<crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError> for Error {
1419 fn from(err: crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError) -> Self {
1420 match err {
1421 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError::AccessDeniedException(inner) => {
1422 Error::AccessDeniedException(inner)
1423 }
1424 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError::ConflictException(inner) => {
1425 Error::ConflictException(inner)
1426 }
1427 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError::InternalServerErrorException(inner) => {
1428 Error::InternalServerErrorException(inner)
1429 }
1430 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError::ResourceNotFoundException(inner) => {
1431 Error::ResourceNotFoundException(inner)
1432 }
1433 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError::ThrottlingException(inner) => {
1434 Error::ThrottlingException(inner)
1435 }
1436 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError::ValidationException(inner) => {
1437 Error::ValidationException(inner)
1438 }
1439 crate::operation::delete_queue_limit_association::DeleteQueueLimitAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1440 }
1441 }
1442}
1443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_storage_profile::DeleteStorageProfileError, R>> for Error
1444where
1445 R: Send + Sync + std::fmt::Debug + 'static,
1446{
1447 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_storage_profile::DeleteStorageProfileError, R>) -> Self {
1448 match err {
1449 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1450 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1451 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1452 source: err.into(),
1453 }),
1454 }
1455 }
1456}
1457impl From<crate::operation::delete_storage_profile::DeleteStorageProfileError> for Error {
1458 fn from(err: crate::operation::delete_storage_profile::DeleteStorageProfileError) -> Self {
1459 match err {
1460 crate::operation::delete_storage_profile::DeleteStorageProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1461 crate::operation::delete_storage_profile::DeleteStorageProfileError::InternalServerErrorException(inner) => {
1462 Error::InternalServerErrorException(inner)
1463 }
1464 crate::operation::delete_storage_profile::DeleteStorageProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1465 crate::operation::delete_storage_profile::DeleteStorageProfileError::ValidationException(inner) => Error::ValidationException(inner),
1466 crate::operation::delete_storage_profile::DeleteStorageProfileError::Unhandled(inner) => Error::Unhandled(inner),
1467 }
1468 }
1469}
1470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_worker::DeleteWorkerError, R>> for Error
1471where
1472 R: Send + Sync + std::fmt::Debug + 'static,
1473{
1474 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_worker::DeleteWorkerError, R>) -> Self {
1475 match err {
1476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1479 source: err.into(),
1480 }),
1481 }
1482 }
1483}
1484impl From<crate::operation::delete_worker::DeleteWorkerError> for Error {
1485 fn from(err: crate::operation::delete_worker::DeleteWorkerError) -> Self {
1486 match err {
1487 crate::operation::delete_worker::DeleteWorkerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1488 crate::operation::delete_worker::DeleteWorkerError::ConflictException(inner) => Error::ConflictException(inner),
1489 crate::operation::delete_worker::DeleteWorkerError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1490 crate::operation::delete_worker::DeleteWorkerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1491 crate::operation::delete_worker::DeleteWorkerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1492 crate::operation::delete_worker::DeleteWorkerError::ValidationException(inner) => Error::ValidationException(inner),
1493 crate::operation::delete_worker::DeleteWorkerError::Unhandled(inner) => Error::Unhandled(inner),
1494 }
1495 }
1496}
1497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError, R>>
1498 for Error
1499where
1500 R: Send + Sync + std::fmt::Debug + 'static,
1501{
1502 fn from(
1503 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError, R>,
1504 ) -> Self {
1505 match err {
1506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1509 source: err.into(),
1510 }),
1511 }
1512 }
1513}
1514impl From<crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError> for Error {
1515 fn from(err: crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError) -> Self {
1516 match err {
1517 crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError::AccessDeniedException(inner) => {
1518 Error::AccessDeniedException(inner)
1519 }
1520 crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError::InternalServerErrorException(inner) => {
1521 Error::InternalServerErrorException(inner)
1522 }
1523 crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError::ResourceNotFoundException(inner) => {
1524 Error::ResourceNotFoundException(inner)
1525 }
1526 crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError::ThrottlingException(inner) => {
1527 Error::ThrottlingException(inner)
1528 }
1529 crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError::ValidationException(inner) => {
1530 Error::ValidationException(inner)
1531 }
1532 crate::operation::disassociate_member_from_farm::DisassociateMemberFromFarmError::Unhandled(inner) => Error::Unhandled(inner),
1533 }
1534 }
1535}
1536impl<R>
1537 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError, R>>
1538 for Error
1539where
1540 R: Send + Sync + std::fmt::Debug + 'static,
1541{
1542 fn from(
1543 err: ::aws_smithy_runtime_api::client::result::SdkError<
1544 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError,
1545 R,
1546 >,
1547 ) -> Self {
1548 match err {
1549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1552 source: err.into(),
1553 }),
1554 }
1555 }
1556}
1557impl From<crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError> for Error {
1558 fn from(err: crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError) -> Self {
1559 match err {
1560 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError::AccessDeniedException(inner) => {
1561 Error::AccessDeniedException(inner)
1562 }
1563 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError::ConflictException(inner) => {
1564 Error::ConflictException(inner)
1565 }
1566 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError::InternalServerErrorException(inner) => {
1567 Error::InternalServerErrorException(inner)
1568 }
1569 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError::ResourceNotFoundException(inner) => {
1570 Error::ResourceNotFoundException(inner)
1571 }
1572 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError::ThrottlingException(inner) => {
1573 Error::ThrottlingException(inner)
1574 }
1575 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError::ValidationException(inner) => {
1576 Error::ValidationException(inner)
1577 }
1578 crate::operation::disassociate_member_from_fleet::DisassociateMemberFromFleetError::Unhandled(inner) => Error::Unhandled(inner),
1579 }
1580 }
1581}
1582impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError, R>>
1583 for Error
1584where
1585 R: Send + Sync + std::fmt::Debug + 'static,
1586{
1587 fn from(
1588 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError, R>,
1589 ) -> Self {
1590 match err {
1591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1594 source: err.into(),
1595 }),
1596 }
1597 }
1598}
1599impl From<crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError> for Error {
1600 fn from(err: crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError) -> Self {
1601 match err {
1602 crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError::AccessDeniedException(inner) => {
1603 Error::AccessDeniedException(inner)
1604 }
1605 crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError::InternalServerErrorException(inner) => {
1606 Error::InternalServerErrorException(inner)
1607 }
1608 crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError::ResourceNotFoundException(inner) => {
1609 Error::ResourceNotFoundException(inner)
1610 }
1611 crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError::ThrottlingException(inner) => {
1612 Error::ThrottlingException(inner)
1613 }
1614 crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError::ValidationException(inner) => {
1615 Error::ValidationException(inner)
1616 }
1617 crate::operation::disassociate_member_from_job::DisassociateMemberFromJobError::Unhandled(inner) => Error::Unhandled(inner),
1618 }
1619 }
1620}
1621impl<R>
1622 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError, R>>
1623 for Error
1624where
1625 R: Send + Sync + std::fmt::Debug + 'static,
1626{
1627 fn from(
1628 err: ::aws_smithy_runtime_api::client::result::SdkError<
1629 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError,
1630 R,
1631 >,
1632 ) -> Self {
1633 match err {
1634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1637 source: err.into(),
1638 }),
1639 }
1640 }
1641}
1642impl From<crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError> for Error {
1643 fn from(err: crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError) -> Self {
1644 match err {
1645 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError::AccessDeniedException(inner) => {
1646 Error::AccessDeniedException(inner)
1647 }
1648 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError::ConflictException(inner) => {
1649 Error::ConflictException(inner)
1650 }
1651 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError::InternalServerErrorException(inner) => {
1652 Error::InternalServerErrorException(inner)
1653 }
1654 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError::ResourceNotFoundException(inner) => {
1655 Error::ResourceNotFoundException(inner)
1656 }
1657 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError::ThrottlingException(inner) => {
1658 Error::ThrottlingException(inner)
1659 }
1660 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError::ValidationException(inner) => {
1661 Error::ValidationException(inner)
1662 }
1663 crate::operation::disassociate_member_from_queue::DisassociateMemberFromQueueError::Unhandled(inner) => Error::Unhandled(inner),
1664 }
1665 }
1666}
1667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_budget::GetBudgetError, R>> for Error
1668where
1669 R: Send + Sync + std::fmt::Debug + 'static,
1670{
1671 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_budget::GetBudgetError, R>) -> Self {
1672 match err {
1673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1676 source: err.into(),
1677 }),
1678 }
1679 }
1680}
1681impl From<crate::operation::get_budget::GetBudgetError> for Error {
1682 fn from(err: crate::operation::get_budget::GetBudgetError) -> Self {
1683 match err {
1684 crate::operation::get_budget::GetBudgetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1685 crate::operation::get_budget::GetBudgetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1686 crate::operation::get_budget::GetBudgetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1687 crate::operation::get_budget::GetBudgetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1688 crate::operation::get_budget::GetBudgetError::ValidationException(inner) => Error::ValidationException(inner),
1689 crate::operation::get_budget::GetBudgetError::Unhandled(inner) => Error::Unhandled(inner),
1690 }
1691 }
1692}
1693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_farm::GetFarmError, R>> for Error
1694where
1695 R: Send + Sync + std::fmt::Debug + 'static,
1696{
1697 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_farm::GetFarmError, R>) -> Self {
1698 match err {
1699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1702 source: err.into(),
1703 }),
1704 }
1705 }
1706}
1707impl From<crate::operation::get_farm::GetFarmError> for Error {
1708 fn from(err: crate::operation::get_farm::GetFarmError) -> Self {
1709 match err {
1710 crate::operation::get_farm::GetFarmError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1711 crate::operation::get_farm::GetFarmError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1712 crate::operation::get_farm::GetFarmError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1713 crate::operation::get_farm::GetFarmError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1714 crate::operation::get_farm::GetFarmError::ValidationException(inner) => Error::ValidationException(inner),
1715 crate::operation::get_farm::GetFarmError::Unhandled(inner) => Error::Unhandled(inner),
1716 }
1717 }
1718}
1719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_fleet::GetFleetError, R>> for Error
1720where
1721 R: Send + Sync + std::fmt::Debug + 'static,
1722{
1723 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_fleet::GetFleetError, R>) -> Self {
1724 match err {
1725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1728 source: err.into(),
1729 }),
1730 }
1731 }
1732}
1733impl From<crate::operation::get_fleet::GetFleetError> for Error {
1734 fn from(err: crate::operation::get_fleet::GetFleetError) -> Self {
1735 match err {
1736 crate::operation::get_fleet::GetFleetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1737 crate::operation::get_fleet::GetFleetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1738 crate::operation::get_fleet::GetFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1739 crate::operation::get_fleet::GetFleetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1740 crate::operation::get_fleet::GetFleetError::ValidationException(inner) => Error::ValidationException(inner),
1741 crate::operation::get_fleet::GetFleetError::Unhandled(inner) => Error::Unhandled(inner),
1742 }
1743 }
1744}
1745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>> for Error
1746where
1747 R: Send + Sync + std::fmt::Debug + 'static,
1748{
1749 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>) -> Self {
1750 match err {
1751 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1752 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1753 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1754 source: err.into(),
1755 }),
1756 }
1757 }
1758}
1759impl From<crate::operation::get_job::GetJobError> for Error {
1760 fn from(err: crate::operation::get_job::GetJobError) -> Self {
1761 match err {
1762 crate::operation::get_job::GetJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1763 crate::operation::get_job::GetJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1764 crate::operation::get_job::GetJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1765 crate::operation::get_job::GetJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1766 crate::operation::get_job::GetJobError::ValidationException(inner) => Error::ValidationException(inner),
1767 crate::operation::get_job::GetJobError::Unhandled(inner) => Error::Unhandled(inner),
1768 }
1769 }
1770}
1771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_license_endpoint::GetLicenseEndpointError, R>> for Error
1772where
1773 R: Send + Sync + std::fmt::Debug + 'static,
1774{
1775 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_license_endpoint::GetLicenseEndpointError, R>) -> Self {
1776 match err {
1777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1780 source: err.into(),
1781 }),
1782 }
1783 }
1784}
1785impl From<crate::operation::get_license_endpoint::GetLicenseEndpointError> for Error {
1786 fn from(err: crate::operation::get_license_endpoint::GetLicenseEndpointError) -> Self {
1787 match err {
1788 crate::operation::get_license_endpoint::GetLicenseEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1789 crate::operation::get_license_endpoint::GetLicenseEndpointError::InternalServerErrorException(inner) => {
1790 Error::InternalServerErrorException(inner)
1791 }
1792 crate::operation::get_license_endpoint::GetLicenseEndpointError::ResourceNotFoundException(inner) => {
1793 Error::ResourceNotFoundException(inner)
1794 }
1795 crate::operation::get_license_endpoint::GetLicenseEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1796 crate::operation::get_license_endpoint::GetLicenseEndpointError::ValidationException(inner) => Error::ValidationException(inner),
1797 crate::operation::get_license_endpoint::GetLicenseEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1798 }
1799 }
1800}
1801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_limit::GetLimitError, R>> for Error
1802where
1803 R: Send + Sync + std::fmt::Debug + 'static,
1804{
1805 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_limit::GetLimitError, R>) -> Self {
1806 match err {
1807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1810 source: err.into(),
1811 }),
1812 }
1813 }
1814}
1815impl From<crate::operation::get_limit::GetLimitError> for Error {
1816 fn from(err: crate::operation::get_limit::GetLimitError) -> Self {
1817 match err {
1818 crate::operation::get_limit::GetLimitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1819 crate::operation::get_limit::GetLimitError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1820 crate::operation::get_limit::GetLimitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1821 crate::operation::get_limit::GetLimitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1822 crate::operation::get_limit::GetLimitError::ValidationException(inner) => Error::ValidationException(inner),
1823 crate::operation::get_limit::GetLimitError::Unhandled(inner) => Error::Unhandled(inner),
1824 }
1825 }
1826}
1827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor::GetMonitorError, R>> for Error
1828where
1829 R: Send + Sync + std::fmt::Debug + 'static,
1830{
1831 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor::GetMonitorError, R>) -> Self {
1832 match err {
1833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1836 source: err.into(),
1837 }),
1838 }
1839 }
1840}
1841impl From<crate::operation::get_monitor::GetMonitorError> for Error {
1842 fn from(err: crate::operation::get_monitor::GetMonitorError) -> Self {
1843 match err {
1844 crate::operation::get_monitor::GetMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1845 crate::operation::get_monitor::GetMonitorError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1846 crate::operation::get_monitor::GetMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1847 crate::operation::get_monitor::GetMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1848 crate::operation::get_monitor::GetMonitorError::ValidationException(inner) => Error::ValidationException(inner),
1849 crate::operation::get_monitor::GetMonitorError::Unhandled(inner) => Error::Unhandled(inner),
1850 }
1851 }
1852}
1853impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor_settings::GetMonitorSettingsError, R>> for Error
1854where
1855 R: Send + Sync + std::fmt::Debug + 'static,
1856{
1857 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor_settings::GetMonitorSettingsError, R>) -> Self {
1858 match err {
1859 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1860 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1861 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1862 source: err.into(),
1863 }),
1864 }
1865 }
1866}
1867impl From<crate::operation::get_monitor_settings::GetMonitorSettingsError> for Error {
1868 fn from(err: crate::operation::get_monitor_settings::GetMonitorSettingsError) -> Self {
1869 match err {
1870 crate::operation::get_monitor_settings::GetMonitorSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1871 crate::operation::get_monitor_settings::GetMonitorSettingsError::InternalServerErrorException(inner) => {
1872 Error::InternalServerErrorException(inner)
1873 }
1874 crate::operation::get_monitor_settings::GetMonitorSettingsError::ResourceNotFoundException(inner) => {
1875 Error::ResourceNotFoundException(inner)
1876 }
1877 crate::operation::get_monitor_settings::GetMonitorSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1878 crate::operation::get_monitor_settings::GetMonitorSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1879 crate::operation::get_monitor_settings::GetMonitorSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1880 }
1881 }
1882}
1883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue::GetQueueError, R>> for Error
1884where
1885 R: Send + Sync + std::fmt::Debug + 'static,
1886{
1887 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue::GetQueueError, R>) -> Self {
1888 match err {
1889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1892 source: err.into(),
1893 }),
1894 }
1895 }
1896}
1897impl From<crate::operation::get_queue::GetQueueError> for Error {
1898 fn from(err: crate::operation::get_queue::GetQueueError) -> Self {
1899 match err {
1900 crate::operation::get_queue::GetQueueError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1901 crate::operation::get_queue::GetQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1902 crate::operation::get_queue::GetQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1903 crate::operation::get_queue::GetQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1904 crate::operation::get_queue::GetQueueError::ValidationException(inner) => Error::ValidationException(inner),
1905 crate::operation::get_queue::GetQueueError::Unhandled(inner) => Error::Unhandled(inner),
1906 }
1907 }
1908}
1909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue_environment::GetQueueEnvironmentError, R>> for Error
1910where
1911 R: Send + Sync + std::fmt::Debug + 'static,
1912{
1913 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue_environment::GetQueueEnvironmentError, R>) -> Self {
1914 match err {
1915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1918 source: err.into(),
1919 }),
1920 }
1921 }
1922}
1923impl From<crate::operation::get_queue_environment::GetQueueEnvironmentError> for Error {
1924 fn from(err: crate::operation::get_queue_environment::GetQueueEnvironmentError) -> Self {
1925 match err {
1926 crate::operation::get_queue_environment::GetQueueEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1927 crate::operation::get_queue_environment::GetQueueEnvironmentError::InternalServerErrorException(inner) => {
1928 Error::InternalServerErrorException(inner)
1929 }
1930 crate::operation::get_queue_environment::GetQueueEnvironmentError::ResourceNotFoundException(inner) => {
1931 Error::ResourceNotFoundException(inner)
1932 }
1933 crate::operation::get_queue_environment::GetQueueEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1934 crate::operation::get_queue_environment::GetQueueEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
1935 crate::operation::get_queue_environment::GetQueueEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1936 }
1937 }
1938}
1939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError, R>>
1940 for Error
1941where
1942 R: Send + Sync + std::fmt::Debug + 'static,
1943{
1944 fn from(
1945 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError, R>,
1946 ) -> Self {
1947 match err {
1948 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1949 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1950 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1951 source: err.into(),
1952 }),
1953 }
1954 }
1955}
1956impl From<crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError> for Error {
1957 fn from(err: crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError) -> Self {
1958 match err {
1959 crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError::AccessDeniedException(inner) => {
1960 Error::AccessDeniedException(inner)
1961 }
1962 crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError::InternalServerErrorException(inner) => {
1963 Error::InternalServerErrorException(inner)
1964 }
1965 crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError::ResourceNotFoundException(inner) => {
1966 Error::ResourceNotFoundException(inner)
1967 }
1968 crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError::ThrottlingException(inner) => {
1969 Error::ThrottlingException(inner)
1970 }
1971 crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError::ValidationException(inner) => {
1972 Error::ValidationException(inner)
1973 }
1974 crate::operation::get_queue_fleet_association::GetQueueFleetAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1975 }
1976 }
1977}
1978impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue_limit_association::GetQueueLimitAssociationError, R>>
1979 for Error
1980where
1981 R: Send + Sync + std::fmt::Debug + 'static,
1982{
1983 fn from(
1984 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_queue_limit_association::GetQueueLimitAssociationError, R>,
1985 ) -> Self {
1986 match err {
1987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1990 source: err.into(),
1991 }),
1992 }
1993 }
1994}
1995impl From<crate::operation::get_queue_limit_association::GetQueueLimitAssociationError> for Error {
1996 fn from(err: crate::operation::get_queue_limit_association::GetQueueLimitAssociationError) -> Self {
1997 match err {
1998 crate::operation::get_queue_limit_association::GetQueueLimitAssociationError::AccessDeniedException(inner) => {
1999 Error::AccessDeniedException(inner)
2000 }
2001 crate::operation::get_queue_limit_association::GetQueueLimitAssociationError::InternalServerErrorException(inner) => {
2002 Error::InternalServerErrorException(inner)
2003 }
2004 crate::operation::get_queue_limit_association::GetQueueLimitAssociationError::ResourceNotFoundException(inner) => {
2005 Error::ResourceNotFoundException(inner)
2006 }
2007 crate::operation::get_queue_limit_association::GetQueueLimitAssociationError::ThrottlingException(inner) => {
2008 Error::ThrottlingException(inner)
2009 }
2010 crate::operation::get_queue_limit_association::GetQueueLimitAssociationError::ValidationException(inner) => {
2011 Error::ValidationException(inner)
2012 }
2013 crate::operation::get_queue_limit_association::GetQueueLimitAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2014 }
2015 }
2016}
2017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session::GetSessionError, R>> for Error
2018where
2019 R: Send + Sync + std::fmt::Debug + 'static,
2020{
2021 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session::GetSessionError, R>) -> Self {
2022 match err {
2023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2026 source: err.into(),
2027 }),
2028 }
2029 }
2030}
2031impl From<crate::operation::get_session::GetSessionError> for Error {
2032 fn from(err: crate::operation::get_session::GetSessionError) -> Self {
2033 match err {
2034 crate::operation::get_session::GetSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2035 crate::operation::get_session::GetSessionError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2036 crate::operation::get_session::GetSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2037 crate::operation::get_session::GetSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2038 crate::operation::get_session::GetSessionError::ValidationException(inner) => Error::ValidationException(inner),
2039 crate::operation::get_session::GetSessionError::Unhandled(inner) => Error::Unhandled(inner),
2040 }
2041 }
2042}
2043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session_action::GetSessionActionError, R>> for Error
2044where
2045 R: Send + Sync + std::fmt::Debug + 'static,
2046{
2047 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_session_action::GetSessionActionError, R>) -> Self {
2048 match err {
2049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2052 source: err.into(),
2053 }),
2054 }
2055 }
2056}
2057impl From<crate::operation::get_session_action::GetSessionActionError> for Error {
2058 fn from(err: crate::operation::get_session_action::GetSessionActionError) -> Self {
2059 match err {
2060 crate::operation::get_session_action::GetSessionActionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2061 crate::operation::get_session_action::GetSessionActionError::InternalServerErrorException(inner) => {
2062 Error::InternalServerErrorException(inner)
2063 }
2064 crate::operation::get_session_action::GetSessionActionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2065 crate::operation::get_session_action::GetSessionActionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2066 crate::operation::get_session_action::GetSessionActionError::ValidationException(inner) => Error::ValidationException(inner),
2067 crate::operation::get_session_action::GetSessionActionError::Unhandled(inner) => Error::Unhandled(inner),
2068 }
2069 }
2070}
2071impl<R>
2072 From<
2073 ::aws_smithy_runtime_api::client::result::SdkError<
2074 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError,
2075 R,
2076 >,
2077 > for Error
2078where
2079 R: Send + Sync + std::fmt::Debug + 'static,
2080{
2081 fn from(
2082 err: ::aws_smithy_runtime_api::client::result::SdkError<
2083 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError,
2084 R,
2085 >,
2086 ) -> Self {
2087 match err {
2088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2091 source: err.into(),
2092 }),
2093 }
2094 }
2095}
2096impl From<crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError> for Error {
2097 fn from(err: crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError) -> Self {
2098 match err {
2099 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError::AccessDeniedException(inner) => {
2100 Error::AccessDeniedException(inner)
2101 }
2102 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError::InternalServerErrorException(inner) => {
2103 Error::InternalServerErrorException(inner)
2104 }
2105 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError::ResourceNotFoundException(inner) => {
2106 Error::ResourceNotFoundException(inner)
2107 }
2108 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError::ThrottlingException(inner) => {
2109 Error::ThrottlingException(inner)
2110 }
2111 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError::ValidationException(inner) => {
2112 Error::ValidationException(inner)
2113 }
2114 crate::operation::get_sessions_statistics_aggregation::GetSessionsStatisticsAggregationError::Unhandled(inner) => Error::Unhandled(inner),
2115 }
2116 }
2117}
2118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_step::GetStepError, R>> for Error
2119where
2120 R: Send + Sync + std::fmt::Debug + 'static,
2121{
2122 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_step::GetStepError, R>) -> Self {
2123 match err {
2124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2127 source: err.into(),
2128 }),
2129 }
2130 }
2131}
2132impl From<crate::operation::get_step::GetStepError> for Error {
2133 fn from(err: crate::operation::get_step::GetStepError) -> Self {
2134 match err {
2135 crate::operation::get_step::GetStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2136 crate::operation::get_step::GetStepError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2137 crate::operation::get_step::GetStepError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2138 crate::operation::get_step::GetStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2139 crate::operation::get_step::GetStepError::ValidationException(inner) => Error::ValidationException(inner),
2140 crate::operation::get_step::GetStepError::Unhandled(inner) => Error::Unhandled(inner),
2141 }
2142 }
2143}
2144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage_profile::GetStorageProfileError, R>> for Error
2145where
2146 R: Send + Sync + std::fmt::Debug + 'static,
2147{
2148 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage_profile::GetStorageProfileError, R>) -> Self {
2149 match err {
2150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2153 source: err.into(),
2154 }),
2155 }
2156 }
2157}
2158impl From<crate::operation::get_storage_profile::GetStorageProfileError> for Error {
2159 fn from(err: crate::operation::get_storage_profile::GetStorageProfileError) -> Self {
2160 match err {
2161 crate::operation::get_storage_profile::GetStorageProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2162 crate::operation::get_storage_profile::GetStorageProfileError::InternalServerErrorException(inner) => {
2163 Error::InternalServerErrorException(inner)
2164 }
2165 crate::operation::get_storage_profile::GetStorageProfileError::ResourceNotFoundException(inner) => {
2166 Error::ResourceNotFoundException(inner)
2167 }
2168 crate::operation::get_storage_profile::GetStorageProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2169 crate::operation::get_storage_profile::GetStorageProfileError::ValidationException(inner) => Error::ValidationException(inner),
2170 crate::operation::get_storage_profile::GetStorageProfileError::Unhandled(inner) => Error::Unhandled(inner),
2171 }
2172 }
2173}
2174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError, R>>
2175 for Error
2176where
2177 R: Send + Sync + std::fmt::Debug + 'static,
2178{
2179 fn from(
2180 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError, R>,
2181 ) -> Self {
2182 match err {
2183 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2184 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2185 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2186 source: err.into(),
2187 }),
2188 }
2189 }
2190}
2191impl From<crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError> for Error {
2192 fn from(err: crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError) -> Self {
2193 match err {
2194 crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError::AccessDeniedException(inner) => {
2195 Error::AccessDeniedException(inner)
2196 }
2197 crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError::InternalServerErrorException(inner) => {
2198 Error::InternalServerErrorException(inner)
2199 }
2200 crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError::ResourceNotFoundException(inner) => {
2201 Error::ResourceNotFoundException(inner)
2202 }
2203 crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError::ThrottlingException(inner) => {
2204 Error::ThrottlingException(inner)
2205 }
2206 crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError::ValidationException(inner) => {
2207 Error::ValidationException(inner)
2208 }
2209 crate::operation::get_storage_profile_for_queue::GetStorageProfileForQueueError::Unhandled(inner) => Error::Unhandled(inner),
2210 }
2211 }
2212}
2213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task::GetTaskError, R>> for Error
2214where
2215 R: Send + Sync + std::fmt::Debug + 'static,
2216{
2217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task::GetTaskError, R>) -> Self {
2218 match err {
2219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2222 source: err.into(),
2223 }),
2224 }
2225 }
2226}
2227impl From<crate::operation::get_task::GetTaskError> for Error {
2228 fn from(err: crate::operation::get_task::GetTaskError) -> Self {
2229 match err {
2230 crate::operation::get_task::GetTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2231 crate::operation::get_task::GetTaskError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2232 crate::operation::get_task::GetTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2233 crate::operation::get_task::GetTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2234 crate::operation::get_task::GetTaskError::ValidationException(inner) => Error::ValidationException(inner),
2235 crate::operation::get_task::GetTaskError::Unhandled(inner) => Error::Unhandled(inner),
2236 }
2237 }
2238}
2239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_worker::GetWorkerError, R>> for Error
2240where
2241 R: Send + Sync + std::fmt::Debug + 'static,
2242{
2243 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_worker::GetWorkerError, R>) -> Self {
2244 match err {
2245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2248 source: err.into(),
2249 }),
2250 }
2251 }
2252}
2253impl From<crate::operation::get_worker::GetWorkerError> for Error {
2254 fn from(err: crate::operation::get_worker::GetWorkerError) -> Self {
2255 match err {
2256 crate::operation::get_worker::GetWorkerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2257 crate::operation::get_worker::GetWorkerError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2258 crate::operation::get_worker::GetWorkerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2259 crate::operation::get_worker::GetWorkerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2260 crate::operation::get_worker::GetWorkerError::ValidationException(inner) => Error::ValidationException(inner),
2261 crate::operation::get_worker::GetWorkerError::Unhandled(inner) => Error::Unhandled(inner),
2262 }
2263 }
2264}
2265impl<R>
2266 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_available_metered_products::ListAvailableMeteredProductsError, R>>
2267 for Error
2268where
2269 R: Send + Sync + std::fmt::Debug + 'static,
2270{
2271 fn from(
2272 err: ::aws_smithy_runtime_api::client::result::SdkError<
2273 crate::operation::list_available_metered_products::ListAvailableMeteredProductsError,
2274 R,
2275 >,
2276 ) -> Self {
2277 match err {
2278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2281 source: err.into(),
2282 }),
2283 }
2284 }
2285}
2286impl From<crate::operation::list_available_metered_products::ListAvailableMeteredProductsError> for Error {
2287 fn from(err: crate::operation::list_available_metered_products::ListAvailableMeteredProductsError) -> Self {
2288 match err {
2289 crate::operation::list_available_metered_products::ListAvailableMeteredProductsError::InternalServerErrorException(inner) => {
2290 Error::InternalServerErrorException(inner)
2291 }
2292 crate::operation::list_available_metered_products::ListAvailableMeteredProductsError::ThrottlingException(inner) => {
2293 Error::ThrottlingException(inner)
2294 }
2295 crate::operation::list_available_metered_products::ListAvailableMeteredProductsError::Unhandled(inner) => Error::Unhandled(inner),
2296 }
2297 }
2298}
2299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_budgets::ListBudgetsError, R>> for Error
2300where
2301 R: Send + Sync + std::fmt::Debug + 'static,
2302{
2303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_budgets::ListBudgetsError, R>) -> Self {
2304 match err {
2305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2308 source: err.into(),
2309 }),
2310 }
2311 }
2312}
2313impl From<crate::operation::list_budgets::ListBudgetsError> for Error {
2314 fn from(err: crate::operation::list_budgets::ListBudgetsError) -> Self {
2315 match err {
2316 crate::operation::list_budgets::ListBudgetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2317 crate::operation::list_budgets::ListBudgetsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2318 crate::operation::list_budgets::ListBudgetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2319 crate::operation::list_budgets::ListBudgetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2320 crate::operation::list_budgets::ListBudgetsError::ValidationException(inner) => Error::ValidationException(inner),
2321 crate::operation::list_budgets::ListBudgetsError::Unhandled(inner) => Error::Unhandled(inner),
2322 }
2323 }
2324}
2325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_farm_members::ListFarmMembersError, R>> for Error
2326where
2327 R: Send + Sync + std::fmt::Debug + 'static,
2328{
2329 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_farm_members::ListFarmMembersError, R>) -> Self {
2330 match err {
2331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2334 source: err.into(),
2335 }),
2336 }
2337 }
2338}
2339impl From<crate::operation::list_farm_members::ListFarmMembersError> for Error {
2340 fn from(err: crate::operation::list_farm_members::ListFarmMembersError) -> Self {
2341 match err {
2342 crate::operation::list_farm_members::ListFarmMembersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2343 crate::operation::list_farm_members::ListFarmMembersError::InternalServerErrorException(inner) => {
2344 Error::InternalServerErrorException(inner)
2345 }
2346 crate::operation::list_farm_members::ListFarmMembersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2347 crate::operation::list_farm_members::ListFarmMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2348 crate::operation::list_farm_members::ListFarmMembersError::ValidationException(inner) => Error::ValidationException(inner),
2349 crate::operation::list_farm_members::ListFarmMembersError::Unhandled(inner) => Error::Unhandled(inner),
2350 }
2351 }
2352}
2353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_farms::ListFarmsError, R>> for Error
2354where
2355 R: Send + Sync + std::fmt::Debug + 'static,
2356{
2357 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_farms::ListFarmsError, R>) -> Self {
2358 match err {
2359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2362 source: err.into(),
2363 }),
2364 }
2365 }
2366}
2367impl From<crate::operation::list_farms::ListFarmsError> for Error {
2368 fn from(err: crate::operation::list_farms::ListFarmsError) -> Self {
2369 match err {
2370 crate::operation::list_farms::ListFarmsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2371 crate::operation::list_farms::ListFarmsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2372 crate::operation::list_farms::ListFarmsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2373 crate::operation::list_farms::ListFarmsError::ValidationException(inner) => Error::ValidationException(inner),
2374 crate::operation::list_farms::ListFarmsError::Unhandled(inner) => Error::Unhandled(inner),
2375 }
2376 }
2377}
2378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleet_members::ListFleetMembersError, R>> for Error
2379where
2380 R: Send + Sync + std::fmt::Debug + 'static,
2381{
2382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleet_members::ListFleetMembersError, R>) -> Self {
2383 match err {
2384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2387 source: err.into(),
2388 }),
2389 }
2390 }
2391}
2392impl From<crate::operation::list_fleet_members::ListFleetMembersError> for Error {
2393 fn from(err: crate::operation::list_fleet_members::ListFleetMembersError) -> Self {
2394 match err {
2395 crate::operation::list_fleet_members::ListFleetMembersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2396 crate::operation::list_fleet_members::ListFleetMembersError::InternalServerErrorException(inner) => {
2397 Error::InternalServerErrorException(inner)
2398 }
2399 crate::operation::list_fleet_members::ListFleetMembersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2400 crate::operation::list_fleet_members::ListFleetMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2401 crate::operation::list_fleet_members::ListFleetMembersError::ValidationException(inner) => Error::ValidationException(inner),
2402 crate::operation::list_fleet_members::ListFleetMembersError::Unhandled(inner) => Error::Unhandled(inner),
2403 }
2404 }
2405}
2406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, R>> for Error
2407where
2408 R: Send + Sync + std::fmt::Debug + 'static,
2409{
2410 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, R>) -> Self {
2411 match err {
2412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2415 source: err.into(),
2416 }),
2417 }
2418 }
2419}
2420impl From<crate::operation::list_fleets::ListFleetsError> for Error {
2421 fn from(err: crate::operation::list_fleets::ListFleetsError) -> Self {
2422 match err {
2423 crate::operation::list_fleets::ListFleetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2424 crate::operation::list_fleets::ListFleetsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2425 crate::operation::list_fleets::ListFleetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2426 crate::operation::list_fleets::ListFleetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2427 crate::operation::list_fleets::ListFleetsError::ValidationException(inner) => Error::ValidationException(inner),
2428 crate::operation::list_fleets::ListFleetsError::Unhandled(inner) => Error::Unhandled(inner),
2429 }
2430 }
2431}
2432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_members::ListJobMembersError, R>> for Error
2433where
2434 R: Send + Sync + std::fmt::Debug + 'static,
2435{
2436 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_members::ListJobMembersError, R>) -> Self {
2437 match err {
2438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2441 source: err.into(),
2442 }),
2443 }
2444 }
2445}
2446impl From<crate::operation::list_job_members::ListJobMembersError> for Error {
2447 fn from(err: crate::operation::list_job_members::ListJobMembersError) -> Self {
2448 match err {
2449 crate::operation::list_job_members::ListJobMembersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2450 crate::operation::list_job_members::ListJobMembersError::InternalServerErrorException(inner) => {
2451 Error::InternalServerErrorException(inner)
2452 }
2453 crate::operation::list_job_members::ListJobMembersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2454 crate::operation::list_job_members::ListJobMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2455 crate::operation::list_job_members::ListJobMembersError::ValidationException(inner) => Error::ValidationException(inner),
2456 crate::operation::list_job_members::ListJobMembersError::Unhandled(inner) => Error::Unhandled(inner),
2457 }
2458 }
2459}
2460impl<R>
2461 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError, R>>
2462 for Error
2463where
2464 R: Send + Sync + std::fmt::Debug + 'static,
2465{
2466 fn from(
2467 err: ::aws_smithy_runtime_api::client::result::SdkError<
2468 crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError,
2469 R,
2470 >,
2471 ) -> Self {
2472 match err {
2473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2476 source: err.into(),
2477 }),
2478 }
2479 }
2480}
2481impl From<crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError> for Error {
2482 fn from(err: crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError) -> Self {
2483 match err {
2484 crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError::AccessDeniedException(inner) => {
2485 Error::AccessDeniedException(inner)
2486 }
2487 crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError::InternalServerErrorException(inner) => {
2488 Error::InternalServerErrorException(inner)
2489 }
2490 crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError::ResourceNotFoundException(inner) => {
2491 Error::ResourceNotFoundException(inner)
2492 }
2493 crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError::ThrottlingException(inner) => {
2494 Error::ThrottlingException(inner)
2495 }
2496 crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError::ValidationException(inner) => {
2497 Error::ValidationException(inner)
2498 }
2499 crate::operation::list_job_parameter_definitions::ListJobParameterDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
2500 }
2501 }
2502}
2503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
2504where
2505 R: Send + Sync + std::fmt::Debug + 'static,
2506{
2507 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
2508 match err {
2509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2512 source: err.into(),
2513 }),
2514 }
2515 }
2516}
2517impl From<crate::operation::list_jobs::ListJobsError> for Error {
2518 fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
2519 match err {
2520 crate::operation::list_jobs::ListJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2521 crate::operation::list_jobs::ListJobsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2522 crate::operation::list_jobs::ListJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2523 crate::operation::list_jobs::ListJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2524 crate::operation::list_jobs::ListJobsError::ValidationException(inner) => Error::ValidationException(inner),
2525 crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
2526 }
2527 }
2528}
2529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_license_endpoints::ListLicenseEndpointsError, R>> for Error
2530where
2531 R: Send + Sync + std::fmt::Debug + 'static,
2532{
2533 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_license_endpoints::ListLicenseEndpointsError, R>) -> Self {
2534 match err {
2535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2538 source: err.into(),
2539 }),
2540 }
2541 }
2542}
2543impl From<crate::operation::list_license_endpoints::ListLicenseEndpointsError> for Error {
2544 fn from(err: crate::operation::list_license_endpoints::ListLicenseEndpointsError) -> Self {
2545 match err {
2546 crate::operation::list_license_endpoints::ListLicenseEndpointsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2547 crate::operation::list_license_endpoints::ListLicenseEndpointsError::InternalServerErrorException(inner) => {
2548 Error::InternalServerErrorException(inner)
2549 }
2550 crate::operation::list_license_endpoints::ListLicenseEndpointsError::ResourceNotFoundException(inner) => {
2551 Error::ResourceNotFoundException(inner)
2552 }
2553 crate::operation::list_license_endpoints::ListLicenseEndpointsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2554 crate::operation::list_license_endpoints::ListLicenseEndpointsError::ValidationException(inner) => Error::ValidationException(inner),
2555 crate::operation::list_license_endpoints::ListLicenseEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
2556 }
2557 }
2558}
2559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_limits::ListLimitsError, R>> for Error
2560where
2561 R: Send + Sync + std::fmt::Debug + 'static,
2562{
2563 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_limits::ListLimitsError, R>) -> Self {
2564 match err {
2565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2568 source: err.into(),
2569 }),
2570 }
2571 }
2572}
2573impl From<crate::operation::list_limits::ListLimitsError> for Error {
2574 fn from(err: crate::operation::list_limits::ListLimitsError) -> Self {
2575 match err {
2576 crate::operation::list_limits::ListLimitsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2577 crate::operation::list_limits::ListLimitsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2578 crate::operation::list_limits::ListLimitsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2579 crate::operation::list_limits::ListLimitsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2580 crate::operation::list_limits::ListLimitsError::ValidationException(inner) => Error::ValidationException(inner),
2581 crate::operation::list_limits::ListLimitsError::Unhandled(inner) => Error::Unhandled(inner),
2582 }
2583 }
2584}
2585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metered_products::ListMeteredProductsError, R>> for Error
2586where
2587 R: Send + Sync + std::fmt::Debug + 'static,
2588{
2589 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metered_products::ListMeteredProductsError, R>) -> Self {
2590 match err {
2591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2594 source: err.into(),
2595 }),
2596 }
2597 }
2598}
2599impl From<crate::operation::list_metered_products::ListMeteredProductsError> for Error {
2600 fn from(err: crate::operation::list_metered_products::ListMeteredProductsError) -> Self {
2601 match err {
2602 crate::operation::list_metered_products::ListMeteredProductsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2603 crate::operation::list_metered_products::ListMeteredProductsError::InternalServerErrorException(inner) => {
2604 Error::InternalServerErrorException(inner)
2605 }
2606 crate::operation::list_metered_products::ListMeteredProductsError::ResourceNotFoundException(inner) => {
2607 Error::ResourceNotFoundException(inner)
2608 }
2609 crate::operation::list_metered_products::ListMeteredProductsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2610 crate::operation::list_metered_products::ListMeteredProductsError::ValidationException(inner) => Error::ValidationException(inner),
2611 crate::operation::list_metered_products::ListMeteredProductsError::Unhandled(inner) => Error::Unhandled(inner),
2612 }
2613 }
2614}
2615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>> for Error
2616where
2617 R: Send + Sync + std::fmt::Debug + 'static,
2618{
2619 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>) -> Self {
2620 match err {
2621 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2622 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2623 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2624 source: err.into(),
2625 }),
2626 }
2627 }
2628}
2629impl From<crate::operation::list_monitors::ListMonitorsError> for Error {
2630 fn from(err: crate::operation::list_monitors::ListMonitorsError) -> Self {
2631 match err {
2632 crate::operation::list_monitors::ListMonitorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2633 crate::operation::list_monitors::ListMonitorsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2634 crate::operation::list_monitors::ListMonitorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2635 crate::operation::list_monitors::ListMonitorsError::ValidationException(inner) => Error::ValidationException(inner),
2636 crate::operation::list_monitors::ListMonitorsError::Unhandled(inner) => Error::Unhandled(inner),
2637 }
2638 }
2639}
2640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_environments::ListQueueEnvironmentsError, R>> for Error
2641where
2642 R: Send + Sync + std::fmt::Debug + 'static,
2643{
2644 fn from(
2645 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_environments::ListQueueEnvironmentsError, R>,
2646 ) -> Self {
2647 match err {
2648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2651 source: err.into(),
2652 }),
2653 }
2654 }
2655}
2656impl From<crate::operation::list_queue_environments::ListQueueEnvironmentsError> for Error {
2657 fn from(err: crate::operation::list_queue_environments::ListQueueEnvironmentsError) -> Self {
2658 match err {
2659 crate::operation::list_queue_environments::ListQueueEnvironmentsError::AccessDeniedException(inner) => {
2660 Error::AccessDeniedException(inner)
2661 }
2662 crate::operation::list_queue_environments::ListQueueEnvironmentsError::InternalServerErrorException(inner) => {
2663 Error::InternalServerErrorException(inner)
2664 }
2665 crate::operation::list_queue_environments::ListQueueEnvironmentsError::ResourceNotFoundException(inner) => {
2666 Error::ResourceNotFoundException(inner)
2667 }
2668 crate::operation::list_queue_environments::ListQueueEnvironmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2669 crate::operation::list_queue_environments::ListQueueEnvironmentsError::ValidationException(inner) => Error::ValidationException(inner),
2670 crate::operation::list_queue_environments::ListQueueEnvironmentsError::Unhandled(inner) => Error::Unhandled(inner),
2671 }
2672 }
2673}
2674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError, R>>
2675 for Error
2676where
2677 R: Send + Sync + std::fmt::Debug + 'static,
2678{
2679 fn from(
2680 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError, R>,
2681 ) -> Self {
2682 match err {
2683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2686 source: err.into(),
2687 }),
2688 }
2689 }
2690}
2691impl From<crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError> for Error {
2692 fn from(err: crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError) -> Self {
2693 match err {
2694 crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError::AccessDeniedException(inner) => {
2695 Error::AccessDeniedException(inner)
2696 }
2697 crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError::InternalServerErrorException(inner) => {
2698 Error::InternalServerErrorException(inner)
2699 }
2700 crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError::ResourceNotFoundException(inner) => {
2701 Error::ResourceNotFoundException(inner)
2702 }
2703 crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError::ThrottlingException(inner) => {
2704 Error::ThrottlingException(inner)
2705 }
2706 crate::operation::list_queue_fleet_associations::ListQueueFleetAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2707 }
2708 }
2709}
2710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError, R>>
2711 for Error
2712where
2713 R: Send + Sync + std::fmt::Debug + 'static,
2714{
2715 fn from(
2716 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError, R>,
2717 ) -> Self {
2718 match err {
2719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2722 source: err.into(),
2723 }),
2724 }
2725 }
2726}
2727impl From<crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError> for Error {
2728 fn from(err: crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError) -> Self {
2729 match err {
2730 crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError::AccessDeniedException(inner) => {
2731 Error::AccessDeniedException(inner)
2732 }
2733 crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError::InternalServerErrorException(inner) => {
2734 Error::InternalServerErrorException(inner)
2735 }
2736 crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError::ResourceNotFoundException(inner) => {
2737 Error::ResourceNotFoundException(inner)
2738 }
2739 crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError::ThrottlingException(inner) => {
2740 Error::ThrottlingException(inner)
2741 }
2742 crate::operation::list_queue_limit_associations::ListQueueLimitAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2743 }
2744 }
2745}
2746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_members::ListQueueMembersError, R>> for Error
2747where
2748 R: Send + Sync + std::fmt::Debug + 'static,
2749{
2750 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_members::ListQueueMembersError, R>) -> Self {
2751 match err {
2752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2755 source: err.into(),
2756 }),
2757 }
2758 }
2759}
2760impl From<crate::operation::list_queue_members::ListQueueMembersError> for Error {
2761 fn from(err: crate::operation::list_queue_members::ListQueueMembersError) -> Self {
2762 match err {
2763 crate::operation::list_queue_members::ListQueueMembersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2764 crate::operation::list_queue_members::ListQueueMembersError::InternalServerErrorException(inner) => {
2765 Error::InternalServerErrorException(inner)
2766 }
2767 crate::operation::list_queue_members::ListQueueMembersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2768 crate::operation::list_queue_members::ListQueueMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2769 crate::operation::list_queue_members::ListQueueMembersError::ValidationException(inner) => Error::ValidationException(inner),
2770 crate::operation::list_queue_members::ListQueueMembersError::Unhandled(inner) => Error::Unhandled(inner),
2771 }
2772 }
2773}
2774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queues::ListQueuesError, R>> for Error
2775where
2776 R: Send + Sync + std::fmt::Debug + 'static,
2777{
2778 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queues::ListQueuesError, R>) -> Self {
2779 match err {
2780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2783 source: err.into(),
2784 }),
2785 }
2786 }
2787}
2788impl From<crate::operation::list_queues::ListQueuesError> for Error {
2789 fn from(err: crate::operation::list_queues::ListQueuesError) -> Self {
2790 match err {
2791 crate::operation::list_queues::ListQueuesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2792 crate::operation::list_queues::ListQueuesError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2793 crate::operation::list_queues::ListQueuesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2794 crate::operation::list_queues::ListQueuesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2795 crate::operation::list_queues::ListQueuesError::ValidationException(inner) => Error::ValidationException(inner),
2796 crate::operation::list_queues::ListQueuesError::Unhandled(inner) => Error::Unhandled(inner),
2797 }
2798 }
2799}
2800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_actions::ListSessionActionsError, R>> for Error
2801where
2802 R: Send + Sync + std::fmt::Debug + 'static,
2803{
2804 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_session_actions::ListSessionActionsError, R>) -> Self {
2805 match err {
2806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2809 source: err.into(),
2810 }),
2811 }
2812 }
2813}
2814impl From<crate::operation::list_session_actions::ListSessionActionsError> for Error {
2815 fn from(err: crate::operation::list_session_actions::ListSessionActionsError) -> Self {
2816 match err {
2817 crate::operation::list_session_actions::ListSessionActionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2818 crate::operation::list_session_actions::ListSessionActionsError::InternalServerErrorException(inner) => {
2819 Error::InternalServerErrorException(inner)
2820 }
2821 crate::operation::list_session_actions::ListSessionActionsError::ResourceNotFoundException(inner) => {
2822 Error::ResourceNotFoundException(inner)
2823 }
2824 crate::operation::list_session_actions::ListSessionActionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2825 crate::operation::list_session_actions::ListSessionActionsError::ValidationException(inner) => Error::ValidationException(inner),
2826 crate::operation::list_session_actions::ListSessionActionsError::Unhandled(inner) => Error::Unhandled(inner),
2827 }
2828 }
2829}
2830impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>> for Error
2831where
2832 R: Send + Sync + std::fmt::Debug + 'static,
2833{
2834 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>) -> Self {
2835 match err {
2836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2839 source: err.into(),
2840 }),
2841 }
2842 }
2843}
2844impl From<crate::operation::list_sessions::ListSessionsError> for Error {
2845 fn from(err: crate::operation::list_sessions::ListSessionsError) -> Self {
2846 match err {
2847 crate::operation::list_sessions::ListSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2848 crate::operation::list_sessions::ListSessionsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2849 crate::operation::list_sessions::ListSessionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2850 crate::operation::list_sessions::ListSessionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2851 crate::operation::list_sessions::ListSessionsError::ValidationException(inner) => Error::ValidationException(inner),
2852 crate::operation::list_sessions::ListSessionsError::Unhandled(inner) => Error::Unhandled(inner),
2853 }
2854 }
2855}
2856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions_for_worker::ListSessionsForWorkerError, R>> for Error
2857where
2858 R: Send + Sync + std::fmt::Debug + 'static,
2859{
2860 fn from(
2861 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions_for_worker::ListSessionsForWorkerError, R>,
2862 ) -> Self {
2863 match err {
2864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2867 source: err.into(),
2868 }),
2869 }
2870 }
2871}
2872impl From<crate::operation::list_sessions_for_worker::ListSessionsForWorkerError> for Error {
2873 fn from(err: crate::operation::list_sessions_for_worker::ListSessionsForWorkerError) -> Self {
2874 match err {
2875 crate::operation::list_sessions_for_worker::ListSessionsForWorkerError::AccessDeniedException(inner) => {
2876 Error::AccessDeniedException(inner)
2877 }
2878 crate::operation::list_sessions_for_worker::ListSessionsForWorkerError::InternalServerErrorException(inner) => {
2879 Error::InternalServerErrorException(inner)
2880 }
2881 crate::operation::list_sessions_for_worker::ListSessionsForWorkerError::ResourceNotFoundException(inner) => {
2882 Error::ResourceNotFoundException(inner)
2883 }
2884 crate::operation::list_sessions_for_worker::ListSessionsForWorkerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2885 crate::operation::list_sessions_for_worker::ListSessionsForWorkerError::ValidationException(inner) => Error::ValidationException(inner),
2886 crate::operation::list_sessions_for_worker::ListSessionsForWorkerError::Unhandled(inner) => Error::Unhandled(inner),
2887 }
2888 }
2889}
2890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_step_consumers::ListStepConsumersError, R>> for Error
2891where
2892 R: Send + Sync + std::fmt::Debug + 'static,
2893{
2894 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_step_consumers::ListStepConsumersError, R>) -> Self {
2895 match err {
2896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2899 source: err.into(),
2900 }),
2901 }
2902 }
2903}
2904impl From<crate::operation::list_step_consumers::ListStepConsumersError> for Error {
2905 fn from(err: crate::operation::list_step_consumers::ListStepConsumersError) -> Self {
2906 match err {
2907 crate::operation::list_step_consumers::ListStepConsumersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2908 crate::operation::list_step_consumers::ListStepConsumersError::InternalServerErrorException(inner) => {
2909 Error::InternalServerErrorException(inner)
2910 }
2911 crate::operation::list_step_consumers::ListStepConsumersError::ResourceNotFoundException(inner) => {
2912 Error::ResourceNotFoundException(inner)
2913 }
2914 crate::operation::list_step_consumers::ListStepConsumersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2915 crate::operation::list_step_consumers::ListStepConsumersError::ValidationException(inner) => Error::ValidationException(inner),
2916 crate::operation::list_step_consumers::ListStepConsumersError::Unhandled(inner) => Error::Unhandled(inner),
2917 }
2918 }
2919}
2920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_step_dependencies::ListStepDependenciesError, R>> for Error
2921where
2922 R: Send + Sync + std::fmt::Debug + 'static,
2923{
2924 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_step_dependencies::ListStepDependenciesError, R>) -> Self {
2925 match err {
2926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2929 source: err.into(),
2930 }),
2931 }
2932 }
2933}
2934impl From<crate::operation::list_step_dependencies::ListStepDependenciesError> for Error {
2935 fn from(err: crate::operation::list_step_dependencies::ListStepDependenciesError) -> Self {
2936 match err {
2937 crate::operation::list_step_dependencies::ListStepDependenciesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2938 crate::operation::list_step_dependencies::ListStepDependenciesError::InternalServerErrorException(inner) => {
2939 Error::InternalServerErrorException(inner)
2940 }
2941 crate::operation::list_step_dependencies::ListStepDependenciesError::ResourceNotFoundException(inner) => {
2942 Error::ResourceNotFoundException(inner)
2943 }
2944 crate::operation::list_step_dependencies::ListStepDependenciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2945 crate::operation::list_step_dependencies::ListStepDependenciesError::ValidationException(inner) => Error::ValidationException(inner),
2946 crate::operation::list_step_dependencies::ListStepDependenciesError::Unhandled(inner) => Error::Unhandled(inner),
2947 }
2948 }
2949}
2950impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_steps::ListStepsError, R>> for Error
2951where
2952 R: Send + Sync + std::fmt::Debug + 'static,
2953{
2954 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_steps::ListStepsError, R>) -> Self {
2955 match err {
2956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2959 source: err.into(),
2960 }),
2961 }
2962 }
2963}
2964impl From<crate::operation::list_steps::ListStepsError> for Error {
2965 fn from(err: crate::operation::list_steps::ListStepsError) -> Self {
2966 match err {
2967 crate::operation::list_steps::ListStepsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2968 crate::operation::list_steps::ListStepsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2969 crate::operation::list_steps::ListStepsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2970 crate::operation::list_steps::ListStepsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2971 crate::operation::list_steps::ListStepsError::ValidationException(inner) => Error::ValidationException(inner),
2972 crate::operation::list_steps::ListStepsError::Unhandled(inner) => Error::Unhandled(inner),
2973 }
2974 }
2975}
2976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_storage_profiles::ListStorageProfilesError, R>> for Error
2977where
2978 R: Send + Sync + std::fmt::Debug + 'static,
2979{
2980 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_storage_profiles::ListStorageProfilesError, R>) -> Self {
2981 match err {
2982 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2983 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2984 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2985 source: err.into(),
2986 }),
2987 }
2988 }
2989}
2990impl From<crate::operation::list_storage_profiles::ListStorageProfilesError> for Error {
2991 fn from(err: crate::operation::list_storage_profiles::ListStorageProfilesError) -> Self {
2992 match err {
2993 crate::operation::list_storage_profiles::ListStorageProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2994 crate::operation::list_storage_profiles::ListStorageProfilesError::InternalServerErrorException(inner) => {
2995 Error::InternalServerErrorException(inner)
2996 }
2997 crate::operation::list_storage_profiles::ListStorageProfilesError::ResourceNotFoundException(inner) => {
2998 Error::ResourceNotFoundException(inner)
2999 }
3000 crate::operation::list_storage_profiles::ListStorageProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3001 crate::operation::list_storage_profiles::ListStorageProfilesError::ValidationException(inner) => Error::ValidationException(inner),
3002 crate::operation::list_storage_profiles::ListStorageProfilesError::Unhandled(inner) => Error::Unhandled(inner),
3003 }
3004 }
3005}
3006impl<R>
3007 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError, R>>
3008 for Error
3009where
3010 R: Send + Sync + std::fmt::Debug + 'static,
3011{
3012 fn from(
3013 err: ::aws_smithy_runtime_api::client::result::SdkError<
3014 crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError,
3015 R,
3016 >,
3017 ) -> Self {
3018 match err {
3019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3022 source: err.into(),
3023 }),
3024 }
3025 }
3026}
3027impl From<crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError> for Error {
3028 fn from(err: crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError) -> Self {
3029 match err {
3030 crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError::AccessDeniedException(inner) => {
3031 Error::AccessDeniedException(inner)
3032 }
3033 crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError::InternalServerErrorException(inner) => {
3034 Error::InternalServerErrorException(inner)
3035 }
3036 crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError::ResourceNotFoundException(inner) => {
3037 Error::ResourceNotFoundException(inner)
3038 }
3039 crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError::ThrottlingException(inner) => {
3040 Error::ThrottlingException(inner)
3041 }
3042 crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError::ValidationException(inner) => {
3043 Error::ValidationException(inner)
3044 }
3045 crate::operation::list_storage_profiles_for_queue::ListStorageProfilesForQueueError::Unhandled(inner) => Error::Unhandled(inner),
3046 }
3047 }
3048}
3049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
3050where
3051 R: Send + Sync + std::fmt::Debug + 'static,
3052{
3053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
3054 match err {
3055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3058 source: err.into(),
3059 }),
3060 }
3061 }
3062}
3063impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
3064 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
3065 match err {
3066 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3067 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerErrorException(inner) => {
3068 Error::InternalServerErrorException(inner)
3069 }
3070 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
3071 Error::ResourceNotFoundException(inner)
3072 }
3073 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3074 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
3075 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
3076 }
3077 }
3078}
3079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>> for Error
3080where
3081 R: Send + Sync + std::fmt::Debug + 'static,
3082{
3083 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>) -> Self {
3084 match err {
3085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3088 source: err.into(),
3089 }),
3090 }
3091 }
3092}
3093impl From<crate::operation::list_tasks::ListTasksError> for Error {
3094 fn from(err: crate::operation::list_tasks::ListTasksError) -> Self {
3095 match err {
3096 crate::operation::list_tasks::ListTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3097 crate::operation::list_tasks::ListTasksError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3098 crate::operation::list_tasks::ListTasksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3099 crate::operation::list_tasks::ListTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3100 crate::operation::list_tasks::ListTasksError::ValidationException(inner) => Error::ValidationException(inner),
3101 crate::operation::list_tasks::ListTasksError::Unhandled(inner) => Error::Unhandled(inner),
3102 }
3103 }
3104}
3105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workers::ListWorkersError, R>> for Error
3106where
3107 R: Send + Sync + std::fmt::Debug + 'static,
3108{
3109 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workers::ListWorkersError, R>) -> Self {
3110 match err {
3111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3114 source: err.into(),
3115 }),
3116 }
3117 }
3118}
3119impl From<crate::operation::list_workers::ListWorkersError> for Error {
3120 fn from(err: crate::operation::list_workers::ListWorkersError) -> Self {
3121 match err {
3122 crate::operation::list_workers::ListWorkersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3123 crate::operation::list_workers::ListWorkersError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3124 crate::operation::list_workers::ListWorkersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3125 crate::operation::list_workers::ListWorkersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3126 crate::operation::list_workers::ListWorkersError::ValidationException(inner) => Error::ValidationException(inner),
3127 crate::operation::list_workers::ListWorkersError::Unhandled(inner) => Error::Unhandled(inner),
3128 }
3129 }
3130}
3131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metered_product::PutMeteredProductError, R>> for Error
3132where
3133 R: Send + Sync + std::fmt::Debug + 'static,
3134{
3135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metered_product::PutMeteredProductError, R>) -> Self {
3136 match err {
3137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3140 source: err.into(),
3141 }),
3142 }
3143 }
3144}
3145impl From<crate::operation::put_metered_product::PutMeteredProductError> for Error {
3146 fn from(err: crate::operation::put_metered_product::PutMeteredProductError) -> Self {
3147 match err {
3148 crate::operation::put_metered_product::PutMeteredProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3149 crate::operation::put_metered_product::PutMeteredProductError::InternalServerErrorException(inner) => {
3150 Error::InternalServerErrorException(inner)
3151 }
3152 crate::operation::put_metered_product::PutMeteredProductError::ResourceNotFoundException(inner) => {
3153 Error::ResourceNotFoundException(inner)
3154 }
3155 crate::operation::put_metered_product::PutMeteredProductError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3156 crate::operation::put_metered_product::PutMeteredProductError::ValidationException(inner) => Error::ValidationException(inner),
3157 crate::operation::put_metered_product::PutMeteredProductError::Unhandled(inner) => Error::Unhandled(inner),
3158 }
3159 }
3160}
3161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_jobs::SearchJobsError, R>> for Error
3162where
3163 R: Send + Sync + std::fmt::Debug + 'static,
3164{
3165 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_jobs::SearchJobsError, R>) -> Self {
3166 match err {
3167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3170 source: err.into(),
3171 }),
3172 }
3173 }
3174}
3175impl From<crate::operation::search_jobs::SearchJobsError> for Error {
3176 fn from(err: crate::operation::search_jobs::SearchJobsError) -> Self {
3177 match err {
3178 crate::operation::search_jobs::SearchJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3179 crate::operation::search_jobs::SearchJobsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3180 crate::operation::search_jobs::SearchJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3181 crate::operation::search_jobs::SearchJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3182 crate::operation::search_jobs::SearchJobsError::ValidationException(inner) => Error::ValidationException(inner),
3183 crate::operation::search_jobs::SearchJobsError::Unhandled(inner) => Error::Unhandled(inner),
3184 }
3185 }
3186}
3187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_steps::SearchStepsError, R>> for Error
3188where
3189 R: Send + Sync + std::fmt::Debug + 'static,
3190{
3191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_steps::SearchStepsError, R>) -> Self {
3192 match err {
3193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3196 source: err.into(),
3197 }),
3198 }
3199 }
3200}
3201impl From<crate::operation::search_steps::SearchStepsError> for Error {
3202 fn from(err: crate::operation::search_steps::SearchStepsError) -> Self {
3203 match err {
3204 crate::operation::search_steps::SearchStepsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3205 crate::operation::search_steps::SearchStepsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3206 crate::operation::search_steps::SearchStepsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3207 crate::operation::search_steps::SearchStepsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3208 crate::operation::search_steps::SearchStepsError::ValidationException(inner) => Error::ValidationException(inner),
3209 crate::operation::search_steps::SearchStepsError::Unhandled(inner) => Error::Unhandled(inner),
3210 }
3211 }
3212}
3213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_tasks::SearchTasksError, R>> for Error
3214where
3215 R: Send + Sync + std::fmt::Debug + 'static,
3216{
3217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_tasks::SearchTasksError, R>) -> Self {
3218 match err {
3219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3222 source: err.into(),
3223 }),
3224 }
3225 }
3226}
3227impl From<crate::operation::search_tasks::SearchTasksError> for Error {
3228 fn from(err: crate::operation::search_tasks::SearchTasksError) -> Self {
3229 match err {
3230 crate::operation::search_tasks::SearchTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3231 crate::operation::search_tasks::SearchTasksError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3232 crate::operation::search_tasks::SearchTasksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3233 crate::operation::search_tasks::SearchTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3234 crate::operation::search_tasks::SearchTasksError::ValidationException(inner) => Error::ValidationException(inner),
3235 crate::operation::search_tasks::SearchTasksError::Unhandled(inner) => Error::Unhandled(inner),
3236 }
3237 }
3238}
3239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_workers::SearchWorkersError, R>> for Error
3240where
3241 R: Send + Sync + std::fmt::Debug + 'static,
3242{
3243 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_workers::SearchWorkersError, R>) -> Self {
3244 match err {
3245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3248 source: err.into(),
3249 }),
3250 }
3251 }
3252}
3253impl From<crate::operation::search_workers::SearchWorkersError> for Error {
3254 fn from(err: crate::operation::search_workers::SearchWorkersError) -> Self {
3255 match err {
3256 crate::operation::search_workers::SearchWorkersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3257 crate::operation::search_workers::SearchWorkersError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3258 crate::operation::search_workers::SearchWorkersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3259 crate::operation::search_workers::SearchWorkersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3260 crate::operation::search_workers::SearchWorkersError::ValidationException(inner) => Error::ValidationException(inner),
3261 crate::operation::search_workers::SearchWorkersError::Unhandled(inner) => Error::Unhandled(inner),
3262 }
3263 }
3264}
3265impl<R>
3266 From<
3267 ::aws_smithy_runtime_api::client::result::SdkError<
3268 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError,
3269 R,
3270 >,
3271 > for Error
3272where
3273 R: Send + Sync + std::fmt::Debug + 'static,
3274{
3275 fn from(
3276 err: ::aws_smithy_runtime_api::client::result::SdkError<
3277 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError,
3278 R,
3279 >,
3280 ) -> Self {
3281 match err {
3282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3285 source: err.into(),
3286 }),
3287 }
3288 }
3289}
3290impl From<crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError> for Error {
3291 fn from(err: crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError) -> Self {
3292 match err {
3293 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError::AccessDeniedException(inner) => {
3294 Error::AccessDeniedException(inner)
3295 }
3296 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError::InternalServerErrorException(inner) => {
3297 Error::InternalServerErrorException(inner)
3298 }
3299 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError::ResourceNotFoundException(inner) => {
3300 Error::ResourceNotFoundException(inner)
3301 }
3302 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError::ThrottlingException(inner) => {
3303 Error::ThrottlingException(inner)
3304 }
3305 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError::ValidationException(inner) => {
3306 Error::ValidationException(inner)
3307 }
3308 crate::operation::start_sessions_statistics_aggregation::StartSessionsStatisticsAggregationError::Unhandled(inner) => {
3309 Error::Unhandled(inner)
3310 }
3311 }
3312 }
3313}
3314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3315where
3316 R: Send + Sync + std::fmt::Debug + 'static,
3317{
3318 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3319 match err {
3320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3323 source: err.into(),
3324 }),
3325 }
3326 }
3327}
3328impl From<crate::operation::tag_resource::TagResourceError> for Error {
3329 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3330 match err {
3331 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3332 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
3333 crate::operation::tag_resource::TagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3334 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3335 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3336 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3337 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3338 }
3339 }
3340}
3341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3342where
3343 R: Send + Sync + std::fmt::Debug + 'static,
3344{
3345 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3346 match err {
3347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3350 source: err.into(),
3351 }),
3352 }
3353 }
3354}
3355impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3356 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3357 match err {
3358 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3359 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
3360 crate::operation::untag_resource::UntagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3361 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3362 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3363 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3364 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3365 }
3366 }
3367}
3368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_budget::UpdateBudgetError, R>> for Error
3369where
3370 R: Send + Sync + std::fmt::Debug + 'static,
3371{
3372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_budget::UpdateBudgetError, R>) -> Self {
3373 match err {
3374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3377 source: err.into(),
3378 }),
3379 }
3380 }
3381}
3382impl From<crate::operation::update_budget::UpdateBudgetError> for Error {
3383 fn from(err: crate::operation::update_budget::UpdateBudgetError) -> Self {
3384 match err {
3385 crate::operation::update_budget::UpdateBudgetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3386 crate::operation::update_budget::UpdateBudgetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3387 crate::operation::update_budget::UpdateBudgetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3388 crate::operation::update_budget::UpdateBudgetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3389 crate::operation::update_budget::UpdateBudgetError::ValidationException(inner) => Error::ValidationException(inner),
3390 crate::operation::update_budget::UpdateBudgetError::Unhandled(inner) => Error::Unhandled(inner),
3391 }
3392 }
3393}
3394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_farm::UpdateFarmError, R>> for Error
3395where
3396 R: Send + Sync + std::fmt::Debug + 'static,
3397{
3398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_farm::UpdateFarmError, R>) -> Self {
3399 match err {
3400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3403 source: err.into(),
3404 }),
3405 }
3406 }
3407}
3408impl From<crate::operation::update_farm::UpdateFarmError> for Error {
3409 fn from(err: crate::operation::update_farm::UpdateFarmError) -> Self {
3410 match err {
3411 crate::operation::update_farm::UpdateFarmError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3412 crate::operation::update_farm::UpdateFarmError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3413 crate::operation::update_farm::UpdateFarmError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3414 crate::operation::update_farm::UpdateFarmError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3415 crate::operation::update_farm::UpdateFarmError::ValidationException(inner) => Error::ValidationException(inner),
3416 crate::operation::update_farm::UpdateFarmError::Unhandled(inner) => Error::Unhandled(inner),
3417 }
3418 }
3419}
3420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>> for Error
3421where
3422 R: Send + Sync + std::fmt::Debug + 'static,
3423{
3424 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>) -> Self {
3425 match err {
3426 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3427 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3428 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3429 source: err.into(),
3430 }),
3431 }
3432 }
3433}
3434impl From<crate::operation::update_fleet::UpdateFleetError> for Error {
3435 fn from(err: crate::operation::update_fleet::UpdateFleetError) -> Self {
3436 match err {
3437 crate::operation::update_fleet::UpdateFleetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3438 crate::operation::update_fleet::UpdateFleetError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3439 crate::operation::update_fleet::UpdateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3440 crate::operation::update_fleet::UpdateFleetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3441 crate::operation::update_fleet::UpdateFleetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3442 crate::operation::update_fleet::UpdateFleetError::ValidationException(inner) => Error::ValidationException(inner),
3443 crate::operation::update_fleet::UpdateFleetError::Unhandled(inner) => Error::Unhandled(inner),
3444 }
3445 }
3446}
3447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_job::UpdateJobError, R>> for Error
3448where
3449 R: Send + Sync + std::fmt::Debug + 'static,
3450{
3451 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_job::UpdateJobError, R>) -> Self {
3452 match err {
3453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3456 source: err.into(),
3457 }),
3458 }
3459 }
3460}
3461impl From<crate::operation::update_job::UpdateJobError> for Error {
3462 fn from(err: crate::operation::update_job::UpdateJobError) -> Self {
3463 match err {
3464 crate::operation::update_job::UpdateJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3465 crate::operation::update_job::UpdateJobError::ConflictException(inner) => Error::ConflictException(inner),
3466 crate::operation::update_job::UpdateJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3467 crate::operation::update_job::UpdateJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3468 crate::operation::update_job::UpdateJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3469 crate::operation::update_job::UpdateJobError::ValidationException(inner) => Error::ValidationException(inner),
3470 crate::operation::update_job::UpdateJobError::Unhandled(inner) => Error::Unhandled(inner),
3471 }
3472 }
3473}
3474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_limit::UpdateLimitError, R>> for Error
3475where
3476 R: Send + Sync + std::fmt::Debug + 'static,
3477{
3478 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_limit::UpdateLimitError, R>) -> Self {
3479 match err {
3480 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3481 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3482 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3483 source: err.into(),
3484 }),
3485 }
3486 }
3487}
3488impl From<crate::operation::update_limit::UpdateLimitError> for Error {
3489 fn from(err: crate::operation::update_limit::UpdateLimitError) -> Self {
3490 match err {
3491 crate::operation::update_limit::UpdateLimitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3492 crate::operation::update_limit::UpdateLimitError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3493 crate::operation::update_limit::UpdateLimitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3494 crate::operation::update_limit::UpdateLimitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3495 crate::operation::update_limit::UpdateLimitError::ValidationException(inner) => Error::ValidationException(inner),
3496 crate::operation::update_limit::UpdateLimitError::Unhandled(inner) => Error::Unhandled(inner),
3497 }
3498 }
3499}
3500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>> for Error
3501where
3502 R: Send + Sync + std::fmt::Debug + 'static,
3503{
3504 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>) -> Self {
3505 match err {
3506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3509 source: err.into(),
3510 }),
3511 }
3512 }
3513}
3514impl From<crate::operation::update_monitor::UpdateMonitorError> for Error {
3515 fn from(err: crate::operation::update_monitor::UpdateMonitorError) -> Self {
3516 match err {
3517 crate::operation::update_monitor::UpdateMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3518 crate::operation::update_monitor::UpdateMonitorError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3519 crate::operation::update_monitor::UpdateMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3520 crate::operation::update_monitor::UpdateMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3521 crate::operation::update_monitor::UpdateMonitorError::ValidationException(inner) => Error::ValidationException(inner),
3522 crate::operation::update_monitor::UpdateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
3523 }
3524 }
3525}
3526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor_settings::UpdateMonitorSettingsError, R>> for Error
3527where
3528 R: Send + Sync + std::fmt::Debug + 'static,
3529{
3530 fn from(
3531 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor_settings::UpdateMonitorSettingsError, R>,
3532 ) -> Self {
3533 match err {
3534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3537 source: err.into(),
3538 }),
3539 }
3540 }
3541}
3542impl From<crate::operation::update_monitor_settings::UpdateMonitorSettingsError> for Error {
3543 fn from(err: crate::operation::update_monitor_settings::UpdateMonitorSettingsError) -> Self {
3544 match err {
3545 crate::operation::update_monitor_settings::UpdateMonitorSettingsError::AccessDeniedException(inner) => {
3546 Error::AccessDeniedException(inner)
3547 }
3548 crate::operation::update_monitor_settings::UpdateMonitorSettingsError::InternalServerErrorException(inner) => {
3549 Error::InternalServerErrorException(inner)
3550 }
3551 crate::operation::update_monitor_settings::UpdateMonitorSettingsError::ResourceNotFoundException(inner) => {
3552 Error::ResourceNotFoundException(inner)
3553 }
3554 crate::operation::update_monitor_settings::UpdateMonitorSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3555 crate::operation::update_monitor_settings::UpdateMonitorSettingsError::ValidationException(inner) => Error::ValidationException(inner),
3556 crate::operation::update_monitor_settings::UpdateMonitorSettingsError::Unhandled(inner) => Error::Unhandled(inner),
3557 }
3558 }
3559}
3560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue::UpdateQueueError, R>> for Error
3561where
3562 R: Send + Sync + std::fmt::Debug + 'static,
3563{
3564 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue::UpdateQueueError, R>) -> Self {
3565 match err {
3566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3569 source: err.into(),
3570 }),
3571 }
3572 }
3573}
3574impl From<crate::operation::update_queue::UpdateQueueError> for Error {
3575 fn from(err: crate::operation::update_queue::UpdateQueueError) -> Self {
3576 match err {
3577 crate::operation::update_queue::UpdateQueueError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3578 crate::operation::update_queue::UpdateQueueError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3579 crate::operation::update_queue::UpdateQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3580 crate::operation::update_queue::UpdateQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3581 crate::operation::update_queue::UpdateQueueError::ValidationException(inner) => Error::ValidationException(inner),
3582 crate::operation::update_queue::UpdateQueueError::Unhandled(inner) => Error::Unhandled(inner),
3583 }
3584 }
3585}
3586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_environment::UpdateQueueEnvironmentError, R>> for Error
3587where
3588 R: Send + Sync + std::fmt::Debug + 'static,
3589{
3590 fn from(
3591 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_environment::UpdateQueueEnvironmentError, R>,
3592 ) -> Self {
3593 match err {
3594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3597 source: err.into(),
3598 }),
3599 }
3600 }
3601}
3602impl From<crate::operation::update_queue_environment::UpdateQueueEnvironmentError> for Error {
3603 fn from(err: crate::operation::update_queue_environment::UpdateQueueEnvironmentError) -> Self {
3604 match err {
3605 crate::operation::update_queue_environment::UpdateQueueEnvironmentError::AccessDeniedException(inner) => {
3606 Error::AccessDeniedException(inner)
3607 }
3608 crate::operation::update_queue_environment::UpdateQueueEnvironmentError::InternalServerErrorException(inner) => {
3609 Error::InternalServerErrorException(inner)
3610 }
3611 crate::operation::update_queue_environment::UpdateQueueEnvironmentError::ResourceNotFoundException(inner) => {
3612 Error::ResourceNotFoundException(inner)
3613 }
3614 crate::operation::update_queue_environment::UpdateQueueEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3615 crate::operation::update_queue_environment::UpdateQueueEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
3616 crate::operation::update_queue_environment::UpdateQueueEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
3617 }
3618 }
3619}
3620impl<R>
3621 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError, R>>
3622 for Error
3623where
3624 R: Send + Sync + std::fmt::Debug + 'static,
3625{
3626 fn from(
3627 err: ::aws_smithy_runtime_api::client::result::SdkError<
3628 crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError,
3629 R,
3630 >,
3631 ) -> Self {
3632 match err {
3633 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3634 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3635 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3636 source: err.into(),
3637 }),
3638 }
3639 }
3640}
3641impl From<crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError> for Error {
3642 fn from(err: crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError) -> Self {
3643 match err {
3644 crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError::AccessDeniedException(inner) => {
3645 Error::AccessDeniedException(inner)
3646 }
3647 crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError::InternalServerErrorException(inner) => {
3648 Error::InternalServerErrorException(inner)
3649 }
3650 crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError::ResourceNotFoundException(inner) => {
3651 Error::ResourceNotFoundException(inner)
3652 }
3653 crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError::ThrottlingException(inner) => {
3654 Error::ThrottlingException(inner)
3655 }
3656 crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError::ValidationException(inner) => {
3657 Error::ValidationException(inner)
3658 }
3659 crate::operation::update_queue_fleet_association::UpdateQueueFleetAssociationError::Unhandled(inner) => Error::Unhandled(inner),
3660 }
3661 }
3662}
3663impl<R>
3664 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError, R>>
3665 for Error
3666where
3667 R: Send + Sync + std::fmt::Debug + 'static,
3668{
3669 fn from(
3670 err: ::aws_smithy_runtime_api::client::result::SdkError<
3671 crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError,
3672 R,
3673 >,
3674 ) -> Self {
3675 match err {
3676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3679 source: err.into(),
3680 }),
3681 }
3682 }
3683}
3684impl From<crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError> for Error {
3685 fn from(err: crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError) -> Self {
3686 match err {
3687 crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError::AccessDeniedException(inner) => {
3688 Error::AccessDeniedException(inner)
3689 }
3690 crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError::InternalServerErrorException(inner) => {
3691 Error::InternalServerErrorException(inner)
3692 }
3693 crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError::ResourceNotFoundException(inner) => {
3694 Error::ResourceNotFoundException(inner)
3695 }
3696 crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError::ThrottlingException(inner) => {
3697 Error::ThrottlingException(inner)
3698 }
3699 crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError::ValidationException(inner) => {
3700 Error::ValidationException(inner)
3701 }
3702 crate::operation::update_queue_limit_association::UpdateQueueLimitAssociationError::Unhandled(inner) => Error::Unhandled(inner),
3703 }
3704 }
3705}
3706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_session::UpdateSessionError, R>> for Error
3707where
3708 R: Send + Sync + std::fmt::Debug + 'static,
3709{
3710 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_session::UpdateSessionError, R>) -> Self {
3711 match err {
3712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3715 source: err.into(),
3716 }),
3717 }
3718 }
3719}
3720impl From<crate::operation::update_session::UpdateSessionError> for Error {
3721 fn from(err: crate::operation::update_session::UpdateSessionError) -> Self {
3722 match err {
3723 crate::operation::update_session::UpdateSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3724 crate::operation::update_session::UpdateSessionError::ConflictException(inner) => Error::ConflictException(inner),
3725 crate::operation::update_session::UpdateSessionError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3726 crate::operation::update_session::UpdateSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3727 crate::operation::update_session::UpdateSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3728 crate::operation::update_session::UpdateSessionError::ValidationException(inner) => Error::ValidationException(inner),
3729 crate::operation::update_session::UpdateSessionError::Unhandled(inner) => Error::Unhandled(inner),
3730 }
3731 }
3732}
3733impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_step::UpdateStepError, R>> for Error
3734where
3735 R: Send + Sync + std::fmt::Debug + 'static,
3736{
3737 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_step::UpdateStepError, R>) -> Self {
3738 match err {
3739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3742 source: err.into(),
3743 }),
3744 }
3745 }
3746}
3747impl From<crate::operation::update_step::UpdateStepError> for Error {
3748 fn from(err: crate::operation::update_step::UpdateStepError) -> Self {
3749 match err {
3750 crate::operation::update_step::UpdateStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3751 crate::operation::update_step::UpdateStepError::ConflictException(inner) => Error::ConflictException(inner),
3752 crate::operation::update_step::UpdateStepError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3753 crate::operation::update_step::UpdateStepError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3754 crate::operation::update_step::UpdateStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3755 crate::operation::update_step::UpdateStepError::ValidationException(inner) => Error::ValidationException(inner),
3756 crate::operation::update_step::UpdateStepError::Unhandled(inner) => Error::Unhandled(inner),
3757 }
3758 }
3759}
3760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage_profile::UpdateStorageProfileError, R>> for Error
3761where
3762 R: Send + Sync + std::fmt::Debug + 'static,
3763{
3764 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage_profile::UpdateStorageProfileError, R>) -> Self {
3765 match err {
3766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3769 source: err.into(),
3770 }),
3771 }
3772 }
3773}
3774impl From<crate::operation::update_storage_profile::UpdateStorageProfileError> for Error {
3775 fn from(err: crate::operation::update_storage_profile::UpdateStorageProfileError) -> Self {
3776 match err {
3777 crate::operation::update_storage_profile::UpdateStorageProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3778 crate::operation::update_storage_profile::UpdateStorageProfileError::InternalServerErrorException(inner) => {
3779 Error::InternalServerErrorException(inner)
3780 }
3781 crate::operation::update_storage_profile::UpdateStorageProfileError::ResourceNotFoundException(inner) => {
3782 Error::ResourceNotFoundException(inner)
3783 }
3784 crate::operation::update_storage_profile::UpdateStorageProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3785 crate::operation::update_storage_profile::UpdateStorageProfileError::ValidationException(inner) => Error::ValidationException(inner),
3786 crate::operation::update_storage_profile::UpdateStorageProfileError::Unhandled(inner) => Error::Unhandled(inner),
3787 }
3788 }
3789}
3790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task::UpdateTaskError, R>> for Error
3791where
3792 R: Send + Sync + std::fmt::Debug + 'static,
3793{
3794 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task::UpdateTaskError, R>) -> Self {
3795 match err {
3796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3799 source: err.into(),
3800 }),
3801 }
3802 }
3803}
3804impl From<crate::operation::update_task::UpdateTaskError> for Error {
3805 fn from(err: crate::operation::update_task::UpdateTaskError) -> Self {
3806 match err {
3807 crate::operation::update_task::UpdateTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3808 crate::operation::update_task::UpdateTaskError::ConflictException(inner) => Error::ConflictException(inner),
3809 crate::operation::update_task::UpdateTaskError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3810 crate::operation::update_task::UpdateTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3811 crate::operation::update_task::UpdateTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3812 crate::operation::update_task::UpdateTaskError::ValidationException(inner) => Error::ValidationException(inner),
3813 crate::operation::update_task::UpdateTaskError::Unhandled(inner) => Error::Unhandled(inner),
3814 }
3815 }
3816}
3817impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_worker::UpdateWorkerError, R>> for Error
3818where
3819 R: Send + Sync + std::fmt::Debug + 'static,
3820{
3821 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_worker::UpdateWorkerError, R>) -> Self {
3822 match err {
3823 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3824 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3825 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3826 source: err.into(),
3827 }),
3828 }
3829 }
3830}
3831impl From<crate::operation::update_worker::UpdateWorkerError> for Error {
3832 fn from(err: crate::operation::update_worker::UpdateWorkerError) -> Self {
3833 match err {
3834 crate::operation::update_worker::UpdateWorkerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3835 crate::operation::update_worker::UpdateWorkerError::ConflictException(inner) => Error::ConflictException(inner),
3836 crate::operation::update_worker::UpdateWorkerError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3837 crate::operation::update_worker::UpdateWorkerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3838 crate::operation::update_worker::UpdateWorkerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3839 crate::operation::update_worker::UpdateWorkerError::ValidationException(inner) => Error::ValidationException(inner),
3840 crate::operation::update_worker::UpdateWorkerError::Unhandled(inner) => Error::Unhandled(inner),
3841 }
3842 }
3843}
3844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_worker_schedule::UpdateWorkerScheduleError, R>> for Error
3845where
3846 R: Send + Sync + std::fmt::Debug + 'static,
3847{
3848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_worker_schedule::UpdateWorkerScheduleError, R>) -> Self {
3849 match err {
3850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3853 source: err.into(),
3854 }),
3855 }
3856 }
3857}
3858impl From<crate::operation::update_worker_schedule::UpdateWorkerScheduleError> for Error {
3859 fn from(err: crate::operation::update_worker_schedule::UpdateWorkerScheduleError) -> Self {
3860 match err {
3861 crate::operation::update_worker_schedule::UpdateWorkerScheduleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3862 crate::operation::update_worker_schedule::UpdateWorkerScheduleError::ConflictException(inner) => Error::ConflictException(inner),
3863 crate::operation::update_worker_schedule::UpdateWorkerScheduleError::InternalServerErrorException(inner) => {
3864 Error::InternalServerErrorException(inner)
3865 }
3866 crate::operation::update_worker_schedule::UpdateWorkerScheduleError::ResourceNotFoundException(inner) => {
3867 Error::ResourceNotFoundException(inner)
3868 }
3869 crate::operation::update_worker_schedule::UpdateWorkerScheduleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3870 crate::operation::update_worker_schedule::UpdateWorkerScheduleError::ValidationException(inner) => Error::ValidationException(inner),
3871 crate::operation::update_worker_schedule::UpdateWorkerScheduleError::Unhandled(inner) => Error::Unhandled(inner),
3872 }
3873 }
3874}
3875impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
3876where
3877 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
3878 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
3879{
3880 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
3881 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3882 meta: ::std::default::Default::default(),
3883 source: err.into(),
3884 })
3885 }
3886}
3887impl ::std::error::Error for Error {
3888 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3889 match self {
3890 Error::AccessDeniedException(inner) => inner.source(),
3891 Error::ConflictException(inner) => inner.source(),
3892 Error::InternalServerErrorException(inner) => inner.source(),
3893 Error::ResourceNotFoundException(inner) => inner.source(),
3894 Error::ServiceQuotaExceededException(inner) => inner.source(),
3895 Error::ThrottlingException(inner) => inner.source(),
3896 Error::ValidationException(inner) => inner.source(),
3897 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3898 }
3899 }
3900}
3901impl ::aws_types::request_id::RequestId for Error {
3902 fn request_id(&self) -> Option<&str> {
3903 match self {
3904 Self::AccessDeniedException(e) => e.request_id(),
3905 Self::ConflictException(e) => e.request_id(),
3906 Self::InternalServerErrorException(e) => e.request_id(),
3907 Self::ResourceNotFoundException(e) => e.request_id(),
3908 Self::ServiceQuotaExceededException(e) => e.request_id(),
3909 Self::ThrottlingException(e) => e.request_id(),
3910 Self::ValidationException(e) => e.request_id(),
3911 Self::Unhandled(e) => e.meta.request_id(),
3912 }
3913 }
3914}